/*
Theme Name: NLC Theme
Theme URI: https://nagarjunlearningcenter.org
Author: Nagarjun Learning Center
Description: Custom theme for Nagarjun Learning Center - modern, clean design with AOS animations.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: nlc-theme
*/

:root {
    --primary: #2D5016;
    --secondary: #C8960C;
    --accent: #F5F0E8;
    --white: #ffffff;
    --dark: #1a1a1a;
    --glass: rgba(255, 255, 255, 0.7);
}

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

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    background-color: var(--accent);
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
}

.site-title a {
    color: var(--primary);
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-list li {
    list-style: none;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 999px;
    padding: 6px 16px;
    color: var(--primary);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle span {
    font-size: 1.2rem;
    line-height: 1;
}

.menu-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

.nav-list a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

.nav-list a:hover::after,
.nav-list .current-menu-item a::after,
.nav-list .current_page_item a::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero {
    height: 50vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.1);
    animation: zoomOut 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.8) 0%, rgba(26, 26, 26, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    color: var(--white);
    text-align: center;
}

.hero-subtitle {
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 900;
}

.hero-desc {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.pulse {
    animation: pulseGlow 2s infinite;
}

/* Sections */
section {
    padding: 80px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

img {
    max-width: 100%;
    border-radius: 15px;
}

/* Vision */
.vision-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 900;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 30px;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--secondary);
    display: inline-block;
}

.stat-item span {
    font-size: 2rem;
    color: var(--secondary);
}

/* Program Cards */
.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 50px;
    font-weight: 900;
    text-transform: uppercase;
}

.program-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-text {
    height: 96px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    margin-bottom: 20px;
    transition: height 1.0s cubic-bezier(0.4, 0, 0.2, 1),
                mask-image 0.8s ease,
                -webkit-mask-image 0.8s ease;
    display: block;
}

.card-text.expanded {
    mask-image: none;
    -webkit-mask-image: none;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.program-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 900;
}

.read-more-btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 10px 25px;
}

/* Projects */
.project-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}
.project-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.project-caption {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}

.projects-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
}

/* CTA */
.cta-section {
    position: relative;
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.cta-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(45, 80, 22, 0.7);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    font-weight: 900;
}

/* Contact */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form form input,
.contact-form form textarea,
.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
}

.contact-form .wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 15px 40px;
    border-radius: 50px;
    background-color: var(--secondary);
    color: var(--white);
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form .wpcf7-form input[type="submit"]:hover {
    transform: scale(1.05);
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

/* Dropdown Menu Styles */
.menu-dropdown {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    background: #2D5016;
    border: none;
    border-radius: 20px;
    padding: 16px 20px;
    min-width: 280px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    z-index: 1001;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.menu-dropdown a {
    display: block;
    padding: 6px 12px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.2s ease, padding-left 0.2s ease;
    text-align: left;
}

.menu-dropdown a:hover {
    background: rgba(255,255,255,0.12);
    padding-left: 20px;
    color: #C8960C;
}

.menu-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #C8960C;
    margin: 8px 0 2px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 4px;
    margin-bottom: 4px;
}

/* About Page */
.approach-card {
    background: var(--accent);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* What We Do Page */
.services-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

/* Contact Page */
.contact-info-card {
    border-radius: 20px;
}

/* Hide WordPress admin bar spacing */
body.admin-bar .main-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .main-header {
        top: 46px;
    }
}

/* Animations */
@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1.0); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(200, 150, 12, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(200, 150, 12, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 150, 12, 0); }
}

/* Volunteers Page */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.volunteer-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.volunteer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.volunteer-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.volunteer-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 900;
}

.volunteer-member {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.volunteer-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.volunteer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 auto 15px;
}

.volunteer-member h3 {
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 5px;
}

.volunteer-role {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Donations Page */
.impact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.impact-card.featured {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.impact-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.impact-card.featured h3,
.impact-card.featured .impact-amount {
    color: var(--secondary);
}

.impact-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

.impact-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 900;
}

.donate-info-card {
    background: var(--primary);
    color: var(--white);
    padding: 50px;
    border-radius: 20px;
}

.donate-info-card p {
    line-height: 1.8;
}

.donation-message-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Mobile */
@media (max-width: 768px) {
    .header-inner {
        padding: 5px 0;
        flex-wrap: nowrap;
    }
    .logo {
        height: 35px;
    }
    .logo-area {
        gap: 8px;
        flex-shrink: 0;
    }
    .site-title {
        font-size: 0.75rem;
        max-width: 150px;
        line-height: 1.15;
    }
    .main-nav {
        gap: 0;
    }
    .menu-toggle {
        padding: 4px 12px;
        font-size: 0.75rem;
    }
    .menu-toggle span {
        font-size: 1rem;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .main-header {
        padding-bottom: 28px;
    }
    .nav-list {
        display: flex !important;
        flex-direction: row;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: transparent;
        padding: 4px 10px;
        box-shadow: none;
        gap: 0;
        justify-content: space-around;
        border-top: 1px solid rgba(0,0,0,0.06);
    }
    .nav-list li {
        flex: 1;
        text-align: center;
    }
    .nav-list a {
        font-size: 0.7rem;
        padding-bottom: 2px;
        color: var(--primary);
    }
    .menu-toggle {
        display: inline-flex;
    }
    .section-title {
        font-size: 2rem;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
    .care-item {
        flex-direction: column !important;
    }
    .care-item img {
        width: 100% !important;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .impact-card.featured {
        transform: none;
    }
    .impact-card.featured:hover {
        transform: translateY(-10px);
    }
    .project-detail-card > div {
        grid-template-columns: 1fr !important;
    }
}
