/* TFPPS Website Styles - Theme replicated from official TFPPS brochure */
:root {
    --primary-color: #037135;
    --primary-dark: #025c2b;
    --secondary-color: #9f6a60;
    --accent-color: #638c6b;
    --accent-gold: #d4a017;
    --text-dark: #27292f;
    --text-muted: #4b5147;
    --text-light: #ffffff;
    --bg-light: #f4eeda;
    --bg-parchment: #eae2ca;
    --bg-parchment-light: #f4eeda;
    --bg-deep: #e0d5b4;
    --border-taupe: #b8b4a2;
    --bg-dark: #27292f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Tiro Tamil', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-parchment);
}

section {
    padding: 5rem 5%;
    background: var(--bg-parchment);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(3, 113, 53, 0.96);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.lang-toggle {
    background: var(--bg-parchment);
    color: var(--primary-color);
    border: 1px solid var(--bg-parchment);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

/* Logo sizing */
.nav-logo img {
    height: 42px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    object-fit: contain;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.partner-logos img {
    height: 64px;
    width: auto;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    padding: 8px;
    object-fit: contain;
}

.iyrp-logo {
    height: 90px;
    width: auto;
    margin: 0 auto 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    padding: 8px;
    object-fit: contain;
    display: block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(3, 113, 53, 0.88), rgba(39, 41, 47, 0.82)),
                url('../images/hero.jpg') center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-primary {
    background: var(--bg-parchment);
    color: var(--primary-color);
    border: 2px solid var(--bg-parchment);
}

.cta-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--bg-parchment);
}

/* Section Styles */
section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* News Ticker */
.news-ticker {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 1rem 5%;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-item {
    white-space: nowrap;
    padding: 0 3rem;
}

/* IYRP Banner */
.iyrp-banner {
    background: linear-gradient(135deg, #037135, #055c2c);
    color: var(--text-light);
    padding: 3rem 5%;
    text-align: center;
}

.iyrp-banner h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Communities Section */
.communities-bg {
    background: var(--bg-deep);
    background: var(--bg-light);
}

.community-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.community-card {
    background: var(--bg-parchment-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.community-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.community-card-content {
    padding: 1.5rem;
}

.community-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.work-card {
    background: var(--bg-parchment-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary-color);
}

.work-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Events Section */
.events-bg {
    background: var(--bg-deep);
    background: var(--bg-light);
}

.events-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-parchment-light);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.event-date {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: bold;
}

.event-date .month {
    font-size: 0.9rem;
}

.event-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Publications Section */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.publication-card {
    background: var(--bg-parchment-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.publication-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.publication-info {
    padding: 1.5rem;
}

.publication-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.download-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.3s;
}

.download-btn:hover {
    background: var(--secondary-color);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Video Gallery */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--bg-parchment-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent var(--primary-color);
    margin-left: 5px;
}

.video-info {
    padding: 1rem;
}

.video-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-bg {
    background: var(--bg-deep);
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    padding: 2rem;
    background: var(--bg-parchment-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
}

.contact-form {
    padding: 2rem;
    background: var(--bg-parchment-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-taupe);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

/* Newsletter */
.newsletter {
    background: var(--primary-color);
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 1.5rem auto 0;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--bg-parchment);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #d9cdab;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 5% 1rem;
    border-top: 4px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #d8d4c8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-link:hover {
    background: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4b5147;
    color: #b8b4a2;
}

/* Language Toggle */
[data-lang="ta"] {
    display: none;
}

body.lang-ta [data-lang="en"] {
    display: none;
}

body.lang-ta [data-lang="ta"] {
    display: block;
}

body.lang-ta .nav-links a[data-lang="en"] {
    display: none;
}

body.lang-ta .nav-links a[data-lang="ta"] {
    display: inline;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .event-item {
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Map Section */
.map-container {
    background: var(--bg-parchment-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.map-placeholder {
    background: linear-gradient(135deg, var(--bg-parchment-light), var(--bg-deep));
    height: 400px;
    border-radius: 10px;
    border: 2px dashed var(--border-taupe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
}
