/* CSS Variables - Cool Tone Theme */
:root {
    --primary: #002166;           /* Your dark blue */
    --secondary: #001a4d;         /* Darker blue */
    --accent: #001a4d;            /* Medium blue for CTAs */
    --light: #ffffff;             /* Pure white */
    --dark: #000000;              /* Black */
    --text: #0a0a0a;              /* Near-black text */
    --text-light: #666666;        /* Cool gray */
    --warm-light: #f8fafc;        /* Cool light gray */
    --section-bg: #f5f7fa;        /* Section backgrounds */
    --border: #e1e5eb;            /* Border color */
    
    /* Social media - cooler versions */
    --whatsapp: #128C7E;
    --tiktok: #010101;
    --instagram: #405DE6;
    --youtube: #FF0000;
    --facebook: #1877F2;
    --twitter: #1DA1F2;
    --linkedin: #0077B5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--warm-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
header {
    background-color: var(--light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 33, 102, 0.08);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.top-social {
    display: flex;
    gap: 15px;
    margin-right: 20px;
}

.top-social a {
    color: var(--text);
    transition: color 0.3s;
}

.top-social a:hover {
    color: var(--accent);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
    position: relative;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a:hover::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-left: 2rem;
}

.btn-nav:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation 24s infinite;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 33, 102, 0.7), rgba(0, 26, 77, 0.7));
}

.slide-1 {
    background-image: url('LUSOIMG/IMG-20250427-WA0034.jpg');
    animation-delay: 0s;
}

.slide-2 {
    background-image: url('LUSOIMG/IMG-20250326-WA0047.jpg');
    animation-delay: 8s;
}

.slide-3 {
    background-image: url('LUSOIMG/Workshop\ 1.jpg');
    animation-delay: 16s;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    color: white;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.3s forwards;
    color: white;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 33, 102, 0.1);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary);
}

/* Quick Stats Banner */
.stats-banner {
    background-color: var(--section-bg);
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-banner-item {
    padding: 20px;
}

.stat-banner-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.stat-banner-label {
    color: var(--text);
    font-weight: 600;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background-color: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Mission Section */
.mission {
    background-color: var(--section-bg);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text);
}

/* Programs Section - Updated for Home Page */
.programs-home {
    background-color: var(--light);
}

.programs-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.program-card-home {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 33, 102, 0.05);
    transition: transform 0.3s;
    border: 1px solid var(--border);
}

.program-card-home:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 33, 102, 0.1);
}

.program-img-home {
    height: 200px;
    overflow: hidden;
}

.program-img-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.program-card-home:hover .program-img-home img {
    transform: scale(1.1);
}

.program-content-home {
    padding: 25px;
}

.program-number-home {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.program-content-home h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

/* Research Highlight Section */
.research-highlight {
    background-color: var(--section-bg);
}

.research-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 33, 102, 0.05);
    border: 1px solid var(--border);
}

.research-slideshow {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.research-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.research-slide.active {
    opacity: 1;
}

.research-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.research-content {
    padding: 30px;
}

.research-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.research-title {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.research-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Impact Stories Section */
.impact-stories-home {
    background-color: var(--light);
}

.impact-story-home {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.impact-story-home:nth-child(even) {
    flex-direction: row-reverse;
}

.impact-content-home {
    flex: 1;
}

.impact-number-home {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.impact-content-home h3 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 1.2rem;
}

.impact-image-home {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 33, 102, 0.1);
}

.impact-image-home img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.impact-image-home:hover img {
    transform: scale(1.05);
}

/* Newsletter Section */
.newsletter {
    background-color: var(--section-bg);
    text-align: center;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-family: 'Open Sans', sans-serif;
}

.gdpr-notice {
    font-size: 0.8rem;
    margin-top: 15px;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    padding: 0 15px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    color: white;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    bottom: -8px;
    left: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.creator-credit {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes slideAnimation {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    8% {
        opacity: 1;
        transform: scale(1);
    }
    33% {
        opacity: 1;
        transform: scale(1);
    }
    41% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile-First Responsive Design */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        margin-bottom: 30px;
    }
    
    .impact-story-home {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .impact-story-home:nth-child(even) {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .top-social {
        display: none;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 33, 102, 0.1);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .btn-nav {
        margin: 15px 0 0;
        display: inline-block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* Stats Banner */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-banner-number {
        font-size: 2rem;
    }
    
    /* Programs */
    .programs-grid-home {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }
    
    /* Research */
    .research-slideshow {
        height: 250px;
    }
    
    /* Impact Stories */
    .impact-number-home {
        font-size: 2.5rem;
    }
    
    .impact-content-home h3 {
        font-size: 1.4rem;
    }
    
    /* Section spacing */
    section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .stat-banner-number {
        font-size: 1.8rem;
    }
    
    .impact-number-home {
        font-size: 2rem;
    }
    
    .impact-content-home h3 {
        font-size: 1.2rem;
    }
    
    .research-slideshow {
        height: 200px;
    }
    
    .research-content {
        padding: 20px;
    }
    
    .research-title {
        font-size: 1.3rem;
    }
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Lazy Loading for Images */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Accordion for Mobile Tabs */
.accordion {
    display: none;
}

@media (max-width: 768px) {
    .tabs-desktop {
        display: none;
    }
    
    .accordion {
        display: block;
    }
    
    .accordion-item {
        margin-bottom: 10px;
        border: 1px solid var(--border);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .accordion-header {
        padding: 15px;
        background-color: var(--section-bg);
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
    }
    
    .accordion-content {
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .accordion-item.active .accordion-content {
        padding: 15px;
        max-height: 1000px;
    }
}