/* Global Styles */
:root {
    --primary: #4a6fa5;
    --secondary: #166088;
    --accent: #fd5e53;
    --light: #f8f9fa;
    --dark: #343a40;
    --education: #6a5acd;
    --sanitary: #ff69b4;
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-light: #ffffff;
    --font-xs: 0.75rem;   /* 12px */
    --font-sm: 0.875rem;  /* 14px */
    --font-base: 1rem;    /* 16px */
    --font-lg: 1.125rem;  /* 18px */
    --font-xl: 1.25rem;   /* 20px */
    --font-2xl: 1.5rem;   /* 24px */
    --font-3xl: 1.875rem; /* 30px */
    --font-4xl: 2.25rem;  /* 36px */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #f9f9f9;
    font-size: var(--font-base);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
    font-weight: 700;
}

h1 { font-size: var(--font-4xl); }
h2 { font-size: var(--font-3xl); }
h3 { font-size: var(--font-2xl); }
h4 { font-size: var(--font-xl); }

p, li, td {
    color: var(--text-secondary);
    font-size: var(--font-base);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-base);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--text-light);
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto;
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

/* Header Styles */
header {
    background-color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
a {
    text-decoration: none; /* Remove underline */
    color: inherit;        /* Keep the text color same as original */
    display: inline-block; /* Ensure div inside behaves properly */
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 15px;
    position: relative;
}

.nav-links > li > a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: var(--font-sm);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-links > li > a:hover {
    color: var(--accent);
}

.dropdown, .initiative-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--text-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 200px;
    display: none;
    z-index: 100;
}

.nav-links li:hover .dropdown,
.nav-links li:hover .initiative-dropdown {
    display: block;
}

.dropdown a, .initiative-dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--dark);
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    font-size: var(--font-sm);
}

.dropdown a:hover, .initiative-dropdown a:hover {
    background-color: var(--light);
    color: var(--accent);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: var(--font-2xl);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(74, 111, 165, 0.8), rgba(22, 96, 136, 0.8)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1920&h=800') no-repeat center center/cover;
    color: var(--text-light);
    padding: 150px 0 100px;
    text-align: center;
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero p {
    font-size: var(--font-lg);
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

/* About Section */
.about {
    background-color: var(--text-light);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1 1 500px;
}

.about-image {
    flex: 1 1 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.mission-vision {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.mission, .vision {
    flex: 1 1 300px;
    background-color: var(--light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.mission h3, .vision h3 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.mission h3 i, .vision h3 i {
    margin-right: 10px;
    color: var(--accent);
}

/* Teams Section */
.teams {
    background-color: #f1f7fd;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    height: 250px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-info h3 {
    margin-bottom: 5px;
    color: var(--primary);
}

.member-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

/* News Section */
.news {
    background-color: var(--text-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background-color: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--accent);
    font-size: var(--font-sm);
    font-weight: 600;
}

.news-content h3 {
    margin: 10px 0;
    font-size: var(--font-xl);
}

.news-content p {
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--accent);
}

/* Media Gallery Section */
.media-gallery {
    background-color: #f1f7fd;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--text-light);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.video-item {
    background-color: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background-color: var(--accent);
    color: var(--text-light);
}

.play-btn i {
    font-size: 20px;
    margin-left: 3px;
}

.video-item h3 {
    padding: 15px 20px 5px;
}

.video-item p {
    padding: 0 20px 15px;
}

/* Partners Section */
.partners {
    background-color: var(--text-light);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: center;
}

.partner-logo {
    background-color: var(--light);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;    
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    filter: grayscale(100%);
}

/* Blogs Section */
.blogs {
    background-color: #f1f7fd;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background-color: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-date {
    color: var(--accent);
    font-size: var(--font-sm);
    font-weight: 600;
}

.blog-content h3 {
    margin: 10px 0;
    font-size: var(--font-xl);
}

.blog-content p {
    margin-bottom: 15px;
}

.view-all-blogs {
    text-align: center;
    margin-top: 40px;
}

/* Grace Career Connect Section */
.education {
    background-color: #f1f7fd;
}

.career-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.career-text {
    flex: 1 1 500px;
}

.career-image {
    flex: 1 1 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.career-image img {
    width: 100%;
    height: auto;
    display: block;
}

.program-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.feature {
    flex: 1 1 200px;
    background-color: var(--text-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature i {
    font-size: 2rem;
    color: var(--education);
    margin-bottom: 15px;
}

/* Sports Section */
.sports {
    background-color: var(--text-light);
}

.sports-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.sports-text {
    flex: 1 1 500px;
}

.sports-image {
    flex: 1 1 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sports-image img {
    width: 100%;
    height: auto;
    display: block;
}

.sports-programs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.sport {
    flex: 1 1 200px;
    background-color: var(--light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sport i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

/* Sanitary Pads Section */
.sanitary {
    background-color: #fff9fc;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-img {
    height: 200px;
    overflow: hidden;
    background-color: var(--sanitary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.product-content {
    padding: 20px;
}

.product-content h3 {
    color: var(--sanitary);
    margin-bottom: 10px;
}

.product-features {
    list-style: none;
    margin: 15px 0;
}

.product-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: var(--font-sm);
}

.product-features li i {
    color: var(--sanitary);
    margin-right: 10px;
}

/* Initiative Cards */
.initiative-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card {
    background: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 300px;
    max-width: 380px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    margin-bottom: 15px;
}

.card-content p {
    margin-bottom: 20px;
}

/* Impact Section */
.impact {
    background: linear-gradient(rgba(74, 111, 165, 0.9), #166088e6), url('https://images.unsplash.com/photo-1521791055366-0d553872125f?auto=format&fit=crop&w=1920&h=600') no-repeat center center/cover;
    color: var(--text-light);
}

.impact h2, .impact h3 {
    color: var(--text-light);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.stat-item {
    text-align: center;
    flex: 1 1 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-light);
}

.stat-label {
    color: var(--text-light);
    font-size: var(--font-base);
}

.impact-stories {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.story {
    flex: 1 1 300px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.story p {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-light);
}

.story-author {
    font-weight: 600;
    color: var(--text-light);
}

/* Contact Section */
.contact {
    background-color: var();
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1 1 300px;
}

.contact-form {
    flex: 1 1 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: var(--font-base);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

footer {
    background-color: var(--dark);
    color: var(--text-light);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1 1 250px;
}

.footer-column h3 {
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin-top: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: var(--font-sm);
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.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: var(--text-light);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

/* Fix paragraph visibility */
footer p {
    color: #eee; /* makes text clearly visible */
    font-size: 15px;
    line-height: 1.6;
    margin-top: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--font-sm);
}
/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        padding: 15px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--text-light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .dropdown, .initiative-dropdown {
        position: static;
        display: none;
        box-shadow: none;
        width: 100%;
        text-align: center;
    }
    
    .nav-links li:hover .dropdown,
    .nav-links li:hover .initiative-dropdown {
        display: none;
    }
    
    .dropdown.active,
    .initiative-dropdown.active {
        display: block;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero h1 {
        font-size: var(--font-3xl);
    }
    
    .hero p {
        font-size: var(--font-base);
    }
    
    .section {
        padding: 40px 0;
    }
    
    .team-grid,
    .news-grid,
    .image-gallery,
    .video-gallery,
    .partners-grid,
    .blogs-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}