/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2rem;
    background: #4a90e2;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo h1 {
    color: #4a90e2;
    font-size: 1.8rem;
}

/* Navigation */
.nav-tabs {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-tabs li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-tabs li a:hover {
    background-color: #e8f4ff;
    color: #4a90e2;
}

.nav-tabs li a.active {
    background-color: #4a90e2;
    color: white;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .nav-tabs li a:hover,
    .nav-tabs li a.active {
        background-color: #4a90e2;
        color: #4a90e2;
    }
}

/* ==========================================================================
   RESPONSIVE NAVIGATION
   ========================================================================== */

/* Mobile Navigation Toggle Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: #4a90e2;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

/* Mobile Navigation Styles */
/* Mobile Navigation Styles */
@media (max-width: 1024px) {
    /* Prevent horizontal scrolling */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }
    
    header .container {
        position: relative;
        padding: 0.8rem 60px 0.8rem 20px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .nav-toggle {
        display: block !important;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        margin: 0;
    }
    
    .nav-tabs {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-tabs.active {
        right: 0;
    }
    
    .nav-tabs li {
        width: 100%;
    }
    
    .nav-tabs li a {
        display: block;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
        white-space: nowrap; /* Prevent text wrapping */
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-tabs li a:hover,
    .nav-tabs li a.active {
        border-left: 3px solid #4a90e2;
        background-color: #e8f4ff;
    }
    
    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(3px);
        z-index: 999;
        display: none;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    /* Adjust header for mobile */
    .logo {
        position: relative;
        z-index: 1;
        max-width: calc(100% - 70px); /* Leave space for hamburger */
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo img {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure container doesn't cause overflow */
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* Smaller screens adjustments */
@media (max-width: 768px) {
    .nav-tabs {
        width: 80%;
    }
    
    .nav-toggle {
        right: 15px;
        font-size: 1.4rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    header .container {
        padding: 0.8rem 50px 0.8rem 15px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .nav-toggle {
        right: 10px;
        font-size: 1.3rem;
    }
    
    header .container {
        padding: 0.8rem 45px 0.8rem 10px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
}

/* Large laptop screens */
@media (min-width: 1025px) {
    .nav-toggle {
        display: none !important;
    }
    
    .nav-tabs {
        display: flex !important;
    }
    
    .nav-overlay {
        display: none !important;
    }
}


/* Logo Link */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    height: 80vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 80px;
}

.video-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.05);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8) 0%, rgba(135, 206, 235, 0.6) 100%);
}


.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    background-color: white;
    color: #4a90e2;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #e8f4ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

/* Education Section */
.education-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.education-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.education-text h3 {
    color: #4a90e2;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.education-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.education-text ul {
    list-style: none;
    margin-top: 1.5rem;
}

.education-text li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.education-text li:before {
    content: "✓";
    color: #4a90e2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Problem & Solution Section */
.problem-solution-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.problem-solution-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.05"><circle cx="50" cy="50" r="2" fill="white"/></svg>');
    background-size: 50px 50px;
}

/* For screens under 750px, stack problem and solution vertically */
@media (max-width: 789px) {
    .problem-solution-content {
        grid-template-columns: 1fr !important; /* Single column */
        gap: 2rem !important;
    }
    
    /* Remove the vertical divider line */
    .problem-solution-content::before {
        display: none !important;
    }
    
    /* Make the cards full width */
    .problem-statement,
    .solution-approach {
        width: 100%;
        margin: 0;
    }
    
    /* Adjust spacing */
    .problem-solution-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.problem-solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
}

.problem-solution-content::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    transform: translateX(-50%);
}

.problem-statement,
.solution-approach {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease;
    overflow: hidden;
}

.problem-statement::before,
.solution-approach::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2 0%, #357abd 100%);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.section-header h3 {
    font-size: 1.8rem;
    margin: 0;
    color: white;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, white 0%, #357abd 100%);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.problem-statement p,
.solution-approach p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.problem-statement ul,
.solution-approach ul {
    list-style: none;
    margin-top: 1.5rem;
}

.problem-statement li,
.solution-approach li {
    padding: 0.8rem 0;
    padding-left: 2.5rem;
    position: relative;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.problem-statement li:last-child,
.solution-approach li:last-child {
    border-bottom: none;
}

.problem-statement li:before {
    content: "!";
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: white;
    color: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.solution-approach li:before {
    content: "✓";
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: white;
    color: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Mission, Vision & Values Section */
.mv-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.mv-title {
    text-align: center;
    color: #4a90e2;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.mv-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #4a90e2;
    border-radius: 2px;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mv-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2 0%, #4a90e2 100%);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.mv-icon {
    margin-bottom: 1.5rem;
    color: #4a90e2;
}

.mv-card h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.mv-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Impact Stats */
.impact-stats {
    padding: 60px 0;
    background-color: #4a90e2;
    color: white;
}

.impact-stats .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
}

.stat {
    padding: 1rem;
    min-width: 150px;
}

.stat h4 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.stat p {
    font-size: 1.1rem;
    font-weight: 500;
}

.count {
    transition: all 0.5s ease-out;
}

/* Featured Projects */
.featured-projects {
    padding: 80px 0;
    background-color: #f8fbff;
}

.featured-projects .section-title {
    text-align: center;
    color: #4a90e2;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: #4a90e2;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-stats span {
    background: #e8f4ff;
    color: #4a90e2;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.details-btn {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 100%;
}

.details-btn:hover {
    background-color: #357abd;
}

/* ==========================================================================
   RESPONSIVE MODAL STYLES
   ========================================================================== */

/* Mobile adjustments for project modals */
@media (max-width: 768px) {
    /* Project Modals */
    .modal-content,
    .news-modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        animation: modalSlideInMobile 0.3s ease;
    }
    
    @keyframes modalSlideInMobile {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Modal header adjustments */
    .modal-header,
    .news-modal-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .modal-header h2,
    .news-modal-header h2 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    /* Close buttons */
    .close-modal,
    .close-news-modal {
        right: 15px;
        top: 10px;
        font-size: 1.8rem;
        background: rgba(255, 255, 255, 0.9);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    /* Project badges */
    .project-badges {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Hero image */
    .project-hero,
    .news-modal-image {
        height: 200px;
    }
    
    /* Modal body content */
    .project-details,
    .news-modal-text {
        padding: 1.5rem 1rem;
    }
    
    .detail-section {
        margin-bottom: 1.5rem;
    }
    
    .detail-section h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .detail-section p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .detail-section ul {
        margin-left: 0;
    }
    
    .detail-section li {
        font-size: 0.95rem;
        padding: 0.4rem 0;
        padding-left: 1.5rem;
    }
    
    /* Event details modern section */
    .event-details-modern {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .event-detail-card {
        grid-column: 1 !important;
    }
    
    .detail-label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .detail-value {
        font-size: 1rem;
    }
    
    /* Speakers list */
    .speakers-list {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .speaker-tag {
        width: 100%;
        text-align: center;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Impact grid */
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .impact-item {
        padding: 0.75rem;
    }
    
    .impact-number {
        font-size: 1.5rem;
    }
    
    /* News modal content adjustments */
    .news-modal-text h4 {
        font-size: 1.1rem;
        margin: 1rem 0 0.5rem 0;
    }
    
    .news-modal-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .news-modal-text ul {
        margin-left: 0;
    }
    
    .news-modal-text li {
        font-size: 0.95rem;
        padding: 0.3rem 0;
        padding-left: 1.5rem;
    }
    
    /* Make sure modal is swipeable */
    .modal-content,
    .news-modal-content {
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   NEWS MODAL RESPONSIVE FIXES
   ========================================================================== */

/* Mobile adjustments for news modal images */
@media (max-width: 768px) {
    .news-modal-image {
        height: 150px !important; /* Fixed height for mobile */
        max-height: 150px !important;
        overflow: hidden;
    }
    
    .news-modal-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Adjust for very small screens */
@media (max-width: 480px) {
    .news-modal-image {
        height: 120px !important; /* Even smaller for very small phones */
        max-height: 120px !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .news-modal-image {
        height: 200px !important;
        max-height: 200px !important;
    }
}

/* Desktop - maintain proportion */
@media (min-width: 1025px) {
    .news-modal-image {
        height: 300px;
        max-height: 300px;
        min-height: 250px;
    }
}

/* Ensure image loading and aspect ratio */
.news-modal-image img {
    width: 100%;
    transition: opacity 0.3s ease;
}

.news-modal-image img.loading {
    opacity: 0;
}

.news-modal-image img.loaded {
    opacity: 1;
}

/* Small mobile devices */
@media (max-width: 480px) {
    .modal-header h2,
    .news-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .project-hero,
    .news-modal-image {
        height: 150px;
    }
    
    .project-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .badge {
        width: 100%;
        text-align: center;
        margin-bottom: 0.25rem;
    }
    
    .detail-section h3 {
        font-size: 1.1rem;
    }
    
    .detail-section li {
        font-size: 0.9rem;
    }
    
    /* Improve touch targets */
    .close-modal,
    .close-news-modal {
        width: 45px;
        height: 45px;
    }
    
    /* News content columns */
    .news-modal-text div[style*="display: flex"] {
        flex-direction: column;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .modal-content,
    .news-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header h2,
    .news-modal-header h2 {
        font-size: 1.6rem;
    }
    
    .project-hero,
    .news-modal-image {
        height: 250px;
    }
}

/* Match modal image height with card image height on all devices */
@media (max-width: 768px) {
    .project-hero {
        height: 130px !important; /* Same as .project-image height */
    }
    
    .project-hero img {
        object-fit: cover;
    }
}

/* For larger screens, maintain proportion */
@media (min-width: 769px) {
    .project-hero {
        height: auto;
        max-height: 300px;
        min-height: 200px;
    }
    
    .project-hero img {
        height: 100%;
        object-fit: cover;
    }
}

/* Prevent body scroll when modal is open on mobile */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Add backdrop blur effect for iOS devices */
@supports (-webkit-backdrop-filter: blur(5px)) or (backdrop-filter: blur(5px)) {
    .project-modal,
    .news-modal {
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }
}

/* Improve modal scrolling on iOS */
.modal-content,
.news-modal-content {
    overscroll-behavior: contain;
}

/* Add swipe to close hint */
@media (max-width: 768px) {
    .modal-content::before,
    .news-modal-content::before {
        content: "";
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 5px;
        background: rgba(0,0,0,0.1);
        border-radius: 3px;
        z-index: 100;
    }
}

/* News content responsive columns */
@media (max-width: 768px) {
    .news-modal-text div[style*="display: flex"] {
        flex-direction: column;
    }
    
    .news-modal-text div[style*="flex: 1"] {
        flex: none;
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Recent News */
.recent-news {
    padding: 80px 0;
    background-color: #ffffff;
}

.recent-news .section-title {
    text-align: center;
    color: #4a90e2;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #4a90e2;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.news-content h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #357abd;
    text-decoration: underline;
}

/* Collaborated With */
.collaborated-with {
    padding: 80px 0;
    background-color: #f8fbff;
}

.collaborated-with .section-title {
    text-align: center;
    color: #4a90e2;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}


.logo-item {
    background: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    width: 120px;
    overflow: hidden;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Logo Names */
.logo-names {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

.logo-name-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
    margin-top: -0.5rem;
}

.logo-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   WAYS TO HELP
   ========================================================================== */

.ways-to-help {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4ff 100%);
}

.ways-to-help .section-title {
    text-align: center;
    color: #4a90e2;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.help-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Stack vertically when screen is less than 800px (half of laptop) */
@media (max-width: 750px) {
    .help-options {
        grid-template-columns: 1fr; /* Single column */
        gap: 2rem;
        max-width: 500px;
    }
}

.help-option {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.help-option::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2 0%, #357abd 100%);
}

.help-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.help-icon {
    margin-bottom: 1.5rem;
    color: #4a90e2;
}

.help-option h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.help-option p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.help-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.help-features span {
    background: #f8f9fa;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 4px solid #4a90e2;
}

.help-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
    text-align: center;
    background: #4a90e2;
    color: white;
    border: 2px solid #4a90e2;
}

.help-button:hover {
    background: #357abd;
    border-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* ==========================================================================
   IMAGE GRID
   ========================================================================== */

.image-grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    width: 400px;
    height: 400px;
    border: 2px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.grid-item {
    background-image: url('images/logo2.png');
    background-size: 400px 400px;
    background-position: center;
    transition: all 0.3s ease;
    position: relative;
}

.grid-item:hover {
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

/* Background positions */
.item-1 { background-position: 0% 0%; }
.item-2 { background-position: 50% 0%; }
.item-3 { background-position: 100% 0%; }
.item-4 { background-position: 0% 50%; }
.item-5 { background-position: 50% 50%; }
.item-6 { background-position: 100% 50%; }
.item-7 { background-position: 0% 100%; }
.item-8 { background-position: 50% 100%; }
.item-9 { background-position: 100% 100%; }

/* Remove image grid on screens smaller than 750px */
@media (max-width: 900px) {
    .image-grid {
        display: none !important;
    }
    
    /* Adjust education content to use full width */
    .education-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Center the education text */
    .education-text {
        text-align: center;
    }
    
    /* Adjust list alignment */
    .education-text ul {
        display: inline-block;
        text-align: left;
    }
}

/* ==========================================================================
   MODAL STYLES
   ========================================================================== */

/* Project Modals */
.project-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #eee;
    position: relative;
}

.modal-header h2 {
    color: #4a90e2;
    margin-bottom: 1rem;
}
/* ==========================================================================
   FIX BADGE LAYOUT - HORIZONTAL INLINE
   ========================================================================== */

/* Force horizontal inline layout for badges */
.project-badges {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    width: 100% !important;
}

/* Individual badges - inline elements */
.badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: fit-content !important;
    margin: 0 !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 15px !important;
    font-size: 0.8rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    height: auto !important;
    float: none !important;
    clear: none !important;
}

/* Remove any block display or grid */
.modal-header .project-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
}

/* Override any grid or column layout */
.project-badges {
    grid-template-columns: none !important;
    display: flex !important;
}

.badge.ongoing { background: #e8f4ff; color: #4a90e2; }
.badge.completed { background: #e8f6f3; color: #27ae60; }
.badge.impact { background: #ffe8e8; color: #e74c3c; }
.badge.education { background: #f8e8ff; color: #9b59b6; }
.badge.community { background: #fff8e8; color: #f39c12; }

.modal-body {
    padding: 0;
}

.project-hero {
    height: 300px;
    overflow: hidden;
}

.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-details {
    padding: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    color: #4a90e2;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.detail-section p {
    line-height: 1.7;
    color: #666;
    margin-bottom: 1rem;
}

.detail-section ul {
    list-style: none;
    padding-left: 0;
}

.detail-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.detail-section li:before {
    content: "✓";
    color: #4a90e2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.impact-item {
    text-align: center;
    padding: 1rem;
    background: #f8fbff;
    border-radius: 8px;
    border: 1px solid #e8f4ff;
}

.impact-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 0.5rem;
}

.impact-label {
    font-size: 0.9rem;
    color: #666;
}

/* News Modals */
.news-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.news-modal-content {
    background-color: white;
    margin: 2% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.close-news-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-news-modal:hover {
    color: #e74c3c;
}

.news-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #eee;
    position: relative;
}

.news-modal-date {
    color: #4a90e2;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.news-modal-header h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    line-height: 1.3;
}

.news-modal-body {
    padding: 0;
}

.news-modal-image {
    height: 300px;
    overflow: hidden;
}

.news-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-modal-text {
    padding: 2rem;
}

.news-modal-text h4 {
    color: #4a90e2;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

.news-modal-text p {
    line-height: 1.7;
    color: #666;
    margin-bottom: 1rem;
}

.news-modal-text ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.news-modal-text li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.news-modal-text li:before {
    content: "•";
    color: #4a90e2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ==========================================================================
   EVENT DETAILS
   ========================================================================== */

.event-details-modern {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e1e8f0;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.08);
}

.event-details-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f7ff;
}

.event-details-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.event-details-header h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.event-detail-card {
    border-radius: 10px;
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-label {
    display: block;
    font-size: 0.9rem;
    color: #4a90e2;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    display: block;
    color: #2c3e50;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 500;
}

.speakers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.speaker-tag {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(74, 144, 226, 0.2);
    transition: all 0.2s ease;
}

.speaker-tag:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: scale(1.05);
}

.key-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.key-feature-item {
    background: #f8fbff;
    border-radius: 10px;
    padding: 1rem;
    border-left: 3px solid #4a90e2;
    transition: all 0.3s ease;
}

.key-feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.15);
}

.key-feature-item:before {
    content: "✓";
    color: #4a90e2;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ==========================================================================
   FLOATING BUTTONS
   ========================================================================== */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #357abd;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Heart Donation Button */
.heart-donation {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: visible;
    animation: heartbeat 3s infinite ease-in-out;
}

.donation-tooltip {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
    letter-spacing: 0.5px;
}

.donation-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid #333;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.heart-donation:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.heart-donation:hover .donation-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    5% { transform: scale(1.1); }
    10% { transform: scale(1); }
    15% { transform: scale(1.1); }
    20% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* ==========================================================================
   IMAGE LOADING STATES
   ========================================================================== */

.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loaded {
    opacity: 1;
}

.error {
    border: 2px dashed #e74c3c;
}

