:root {
    /* Light theme variables */
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --background-color: #ffffff;
    --text-color: #333333;
    --header-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-start: #4a90e2;
    --gradient-end: #2c3e50;
}

[data-theme="dark"] {
    --primary-color: #64b5f6;
    --secondary-color: #90caf9;
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --header-bg: rgba(26, 26, 26, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-start: #64b5f6;
    --gradient-end: #90caf9;
    /* Added variables for dark mode dropdown */
    --dark-dropdown-bg: #2d2d2d;
    --dark-dropdown-border: rgba(255, 255, 255, 0.1);
    --dark-dropdown-hover: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 10px var(--shadow-color);
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navigation Menu */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: rotate(30deg);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a2e42, #0d1a2b); /* Gradient dark blue/black */
    color: #ffffff; /* White text */
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adjust min-width for potentially smaller columns */
    gap: 3rem; /* Increased gap between columns */
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #ffffff; /* White color for headings */
}

/* Brand Identity Column */
.footer-section.brand-identity .footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

.footer-section.brand-identity .mission-tagline {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff; /* White for tagline */
}

/* Quick Links Column */
.footer-section.quick-links ul {
    list-style: none;
    padding: 0;
}

.footer-section.quick-links li {
    margin-bottom: 0.8rem;
}

.footer-section.quick-links a {
    color: #ffffff; /* White for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section.quick-links a:hover {
    color: var(--primary-color); /* Hover effect using primary theme color */
}

/* Contact Info Column */
.footer-section.contact-info p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.footer-section.contact-info a {
    color: #ffffff; /* White for contact links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section.contact-info a:hover {
    color: var(--primary-color); /* Hover effect */
}

/* Social Media Column */
.footer-section.social-media .social-icons {
    display: flex;
    gap: 1rem;
}

.footer-section.social-media .social-icons a {
    color: #ffffff; /* White for icons */
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5)); /* Subtle shadow for icons */
}

.footer-section.social-media .social-icons a:hover {
    transform: translateY(-3px);
    color: var(--primary-color); /* Icon hover color */
    filter: drop-shadow(0 0 8px rgba(74, 144, 226, 0.6)); /* Glowing effect on hover */
}

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

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Lighter border for dark background */
    font-size: 0.9rem;
    color: #ffffff; /* White for copyright text */
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    footer {
        padding: 3rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem; /* Adjust gap for stacked layout */
    }

    .footer-section {
        text-align: center; /* Center text when stacked */
    }

    .footer-section.brand-identity .footer-logo {
         margin-left: auto;
         margin-right: auto;
    }

    .footer-section.quick-links ul,
    .footer-section.contact-info p {
        padding-left: 0;
        text-align: center;
    }

    .footer-section.social-media .social-icons {
        justify-content: center;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--header-bg);
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }

    .hamburger-menu {
        display: block;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Custom Cursor (Optional) */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
}

.custom-cursor.active {
    transform: scale(1.5);
    background: rgba(74, 144, 226, 0.1);
}

/* Hero Section Styles */
.hero {
    position: relative;
    min-height: 85vh;
    padding: 80px 0 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 0 1rem;
}

/* Desktop layout for hero content */
@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row; /* Arrange items horizontally on desktop */
        text-align: left; /* Align text to the left */
        align-items: center; /* Vertically center items */
        gap: 4rem; /* Increase gap between columns on desktop */
    }

    .hero-text {
        flex: 1; /* Allow text section to grow */
        padding-top: 0;
    }

    .hero-animation {
        flex: 1; /* Allow animation section to grow */
        order: 2; /* Place animation on the right */
        margin-top: 0;
        margin-bottom: 0;
    }

    .welcome-logo {
        position: relative; /* Restore relative positioning */
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 1rem; /* Adjust margin as needed */
        text-align: left; /* Align welcome logo text left */
    }

     .recognition-badge {
         margin-left: 0; /* Remove auto margin */
         margin-right: auto; /* Align badge left */
     }

    .hero-cta {
        justify-content: flex-start; /* Align CTA buttons to the left */
    }
}

.hero-text {
    color: var(--text-color);
}

.recognition-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem auto;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: auto;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.recognition-badge i {
    color: #ffea00;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(255, 234, 0, 0.5));
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.hero-animation {
    flex: 1;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8rem;
}

#robotics-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.1) 0%,
        rgba(44, 62, 80, 0.1) 100%
    );
    animation: gradientShift 15s ease infinite;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(74, 144, 226, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(44, 62, 80, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particleFloat 20s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50px);
    }
}

/* Responsive Hero Section */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 2rem;
        min-height: 100vh;
    }

    .hero-content {
        padding: 0 1rem;
        width: 100%;
    }

    .hero-text {
        order: 2;
        padding-top: 1rem;
        width: 100%;
    }
    
    .hero-animation {
        order: 1;
        height: 250px;
        margin-top: 6rem;
        margin-bottom: 1rem;
        width: 100%;
    }

    .welcome-logo {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .welcome-text {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .twh-logo {
        max-width: 200px;
        width: 100%;
    }

    .recognition-badge {
        display: inline-flex;
        white-space: normal;
        margin: 1rem auto;
        width: auto;
        max-width: 100%;
        justify-content: center;
        padding: 0.5rem 1rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 1rem;
        width: 100%;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        margin: 0 auto;
    }

    /* MVV Section adjustments */
     .mission-vision-values h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
     }

     .mvv-block {
        padding: 1.5rem;
     }

     .mvv-icon {
        font-size: 2.5rem;
     }

     .mvv-block h3 {
        font-size: 1.3rem;
     }

     .mvv-block p, .mvv-block ul li {
        font-size: 0.95rem;
     }
     
     /* Adjust spacing for stacked values list */
     .mvv-block ul li {
         padding-left: 1.2rem; 
     }

     .mvv-block ul li::before {
        left: 0; 
        margin-right: 0.3rem; 
     }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 2rem;
        min-height: 100vh;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .cta-button {
        width: 100%;
    }

    .hero-animation {
        height: 250px;
    }

    .mission-vision-values {
        padding: 4rem 1rem;
    }

    .mission-vision-values h2 {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .mvv-block {
        padding: 1rem;
    }

    .mvv-icon {
        font-size: 2rem;
    }

    .mvv-block h3 {
        font-size: 1.2rem;
     }

    .mvv-block p, .mvv-block ul li {
        font-size: 0.9rem;
    }
     
     /* Ensure consistent spacing for stacked values list on smaller screens */
     .mvv-block ul li {
         padding-left: 1.2rem; 
     }

     .mvv-block ul li::before {
        left: 0; 
        margin-right: 0.3rem; 
     }

    .recognition-badge {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        margin: 0.8rem auto;
    }
}

/* Mission, Vision, Values Section Styles */
.mission-vision-values {
    padding: 6rem 2rem;
    background: var(--background-color); /* Or a subtle background differentiating it */
    text-align: center;
}

.mission-vision-values h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.mission-vision-values h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1rem;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.mvv-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr; /* Three blocks separated by auto-sized dividers */
    gap: 2rem; /* Gap between items in the grid */
    max-width: 1200px;
    margin: 0 auto;
    align-items: start; /* Align items to the start of their grid areas */
}

.mvv-block {
    padding: 2rem;
    background: rgba(74, 144, 226, 0.05); /* Subtle background for blocks */
    border-radius: 10px;
    text-align: left;
    height: 100%; /* Ensure blocks stretch to fill height */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mvv-icon {
    font-size: 3rem;
    color: var(--primary-color); /* Icon color */
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(74, 144, 226, 0.4)); /* Glowing effect for icons */
}

.mvv-block h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--secondary-color); /* Heading color */
    margin-bottom: 1rem;
}

.mvv-block p, .mvv-block ul {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    flex-grow: 1; /* Allow content to push list/bottom elements down */
}

.mvv-block ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.mvv-block ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0; /* Remove padding-left from the list item */
}

/* Custom bullet point style (replacing 🔹) */
.mvv-block ul li::before {
    content: '\2022'; /* Unicode for bullet point */
    color: var(--primary-color); /* Color for bullet */
    font-weight: bold;
    display: inline-block; /* Use inline-block to control width and margin */
    width: 1em; /* Give the bullet a fixed width */
    margin-right: 0.3rem; /* Create space between bullet and text */
    font-size: 1.2em;
    filter: drop-shadow(0 0 3px rgba(74, 144, 226, 0.4)); /* Subtle glow effect */
}

.mvv-divider {
    width: 2px; /* Thickness of the divider */
    background: linear-gradient(to bottom, 
        rgba(74, 144, 226, 0) 0%,
        rgba(74, 144, 226, 0.8) 50%,
        rgba(74, 144, 226, 0) 100%
    ); /* Glowing gradient */
    filter: drop-shadow(0 0 5px rgba(74, 144, 226, 0.5)); /* Glow effect */
    height: 100%; /* Make divider fill the grid height */
    align-self: stretch; /* Ensure divider stretches vertically */
}

/* Initial state for motion on scroll */
.mvv-block, .mvv-divider {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Class to add when element is in view */
.mvv-block.is-visible, .mvv-divider.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments for grid */
@media (max-width: 1024px) {
    .mvv-grid {
        grid-template-columns: 1fr; /* Stack blocks on smaller screens */
        gap: 3rem; /* Increase gap when stacked */
    }

    .mvv-divider {
        width: 80%; /* Wider divider when stacked */
        height: 2px; /* Thin horizontal line */
        background: linear-gradient(to right, 
            rgba(74, 144, 226, 0) 0%,
            rgba(74, 144, 226, 0.8) 50%,
            rgba(74, 144, 226, 0) 100%
        ); /* Horizontal glowing gradient */
        filter: drop-shadow(0 0 5px rgba(74, 144, 226, 0.5)); /* Glow effect */
        margin: 2rem auto; /* Center horizontal divider */
    }

     .mvv-block {
        align-items: flex-start; /* Align text to left when stacked */
        text-align: left;
    }
     
    .mvv-block ul {
        padding-left: 0; /* Keep padding-left 0 for ul when stacked */
    }

    .mvv-block ul li {
         padding-left: 0; /* Keep padding-left 0 for li when stacked */
    }

    .mvv-block ul li::before {
        /* Use margin-right for spacing, consistent with non-responsive */
        margin-right: 0.3rem; 
    }
}

@media (max-width: 768px) {
     .mission-vision-values h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
     }

     .mvv-block {
        padding: 1.5rem;
     }

     .mvv-icon {
        font-size: 2.5rem;
     }

     .mvv-block h3 {
        font-size: 1.3rem;
     }

     .mvv-block p, .mvv-block ul li {
        font-size: 0.95rem;
     }

}

@media (max-width: 480px) {
    .mission-vision-values {
        padding: 4rem 1rem;
    }

    .mission-vision-values h2 {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .mvv-block {
        padding: 1rem;
    }

    .mvv-icon {
        font-size: 2rem;
    }

    .mvv-block h3 {
        font-size: 1.2rem;
     }

    .mvv-block p, .mvv-block ul li {
        font-size: 0.9rem;
    }
     
     /* Ensure consistent spacing for stacked values list on smaller screens */
     .mvv-block ul li {
         padding-left: 1.2rem; 
     }

     .mvv-block ul li::before {
        left: 0; 
        margin-right: 0.3rem; 
     }
}

.mvv-block ul li strong {
    color: var(--primary-color); /* Highlight color */
    font-weight: 700; /* Ensure it's bold */
}

/* What We Do Section Styles */
.what-we-do {
    padding: 6rem 2rem;
    background: #1a2e42; /* Dark blue background for blueprint look */
    background-image: repeating-linear-gradient(0deg, rgba(74, 144, 226, 0.07) 1px, transparent 1px),
                      repeating-linear-gradient(90deg, rgba(74, 144, 226, 0.07) 1px, transparent 1px); /* Faint blue grid lines */
    background-size: 20px 20px; /* Size of the grid cells */
    color: white;
    text-align: center;
    overflow: hidden;
}

.what-we-do h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.what-we-do h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1rem;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.section-subtext {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0.5rem auto 4rem auto;
}

.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
}

.what-we-do-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.what-we-do-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
     filter: drop-shadow(0 0 8px rgba(74, 144, 226, 0.4));
}

.what-we-do-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.8rem;
}

.what-we-do-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    flex-grow: 1;
}

/* Metrics Section Styles */
.metrics-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 4rem auto;
    text-align: center;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
     filter: drop-shadow(0 0 6px rgba(74, 144, 226, 0.4));
}

.metric-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
}

.metric-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* See Our Work Button Container */
.see-work-button {
    text-align: center;
    margin-top: 3rem;
}

/* Responsive adjustments for What We Do section */
@media (max-width: 768px) {
    .what-we-do h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-subtext {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

     .what-we-do-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
     }

     .what-we-do-card {
        padding: 1.5rem;
     }

     .card-icon {
        font-size: 3rem;
     }

     .what-we-do-card h3 {
        font-size: 1.3rem;
     }

     .what-we-do-card p {
        font-size: 0.95rem;
     }

     .metrics-section {
        grid-template-columns: repeat(4, 1fr); 
        gap: 1rem; 
        margin: 3rem auto;
     }

     .metric-icon {
        font-size: 2rem;
     }

     .metric-value {
        font-size: 1.5rem;
     }

     .metric-label {
        font-size: 0.8rem;
     }
}

@media (max-width: 480px) {
     .what-we-do {
        padding: 4rem 1rem;
     }

     .what-we-do h2 {
        font-size: 1.8rem;
     }

     .section-subtext {
        font-size: 0.9rem;
        margin-bottom: 2rem;
     }

     .what-we-do-card {
        padding: 1rem;
     }

     .card-icon {
        font-size: 2.5rem;
     }

     .what-we-do-card h3 {
        font-size: 1.2rem;
     }

      .metrics-section {
        grid-template-columns: repeat(4, 1fr); 
        gap: 0.5rem; 
        margin: 2rem auto;
     }

     .metric-icon {
        font-size: 1.8rem;
     }

     .metric-value {
        font-size: 1.3rem;
     }

     .metric-label {
        font-size: 0.7rem;
     }
}

/* Initial state for motion on scroll for What We Do section */
.what-we-do-card, .metrics-section {
    opacity: 0;
    transform: translateY(30px); 
    transition: opacity 0.7s ease-out, transform 0.7s ease-out; 
}

/* Class to add when element is in view */
.what-we-do-card.is-visible, .metrics-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Featured Projects Section */
.featured-projects {
    padding: 3rem 2rem;
    background: var(--background-color);
    text-align: center;
}

.featured-projects h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.featured-projects h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1rem;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.featured-projects .section-subtext {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* See All Projects Button */
.see-all-projects {
    text-align: center;
    margin-top: 50px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.4s;
}

.see-all-projects.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.see-all-projects .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    font-size: 1.1em;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.see-all-projects .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.see-all-projects .cta-button i {
    transition: transform 0.3s ease;
}

.see-all-projects .cta-button:hover i {
    transform: translateY(2px);
}

@media (max-width: 768px) {
    .see-all-projects {
        margin-top: 40px;
    }

    .see-all-projects .cta-button {
        padding: 10px 25px;
        font-size: 1em;
    }
}

.project-article {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}

.project-article.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the animation for each project card */
.project-article:nth-child(1) { transition-delay: 0.1s; }
.project-article:nth-child(2) { transition-delay: 0.2s; }
.project-article:nth-child(3) { transition-delay: 0.3s; }

.project-header {
    position: relative;
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-article:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

.project-info h2 {
    font-size: 1.5em;
    margin: 0 0 10px 0;
    color: var(--text-color);
    text-align: left;
}

.project-meta {
    display: flex;
    gap: 15px;
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9em;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-content {
    padding: 0 20px 20px;
}

.project-description {
    margin-bottom: 20px;
}

.project-description-main {
    margin-bottom: 20px;
}

.project-description h3 {
    color: var(--primary-color);
    margin: 15px 0 10px;
    font-size: 1.2em;
}

.project-description p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.project-description ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.project-description li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--text-color);
}

.project-description li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-item {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.learn-more:hover {
    gap: 12px;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }

    .project-info h2 {
        font-size: 1.3em;
    }

    .project-meta {
        flex-direction: column;
        gap: 5px;
    }

    .tech-stack {
        gap: 6px;
    }

    .tech-item {
        font-size: 0.75em;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Project Modal Styles */
#project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

#project-modal .modal-content {
    background-color: var(--background-color);
    margin: 50px auto;
    padding: 30px;
    max-width: 900px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

#project-modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

#project-modal .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: transform 0.3s ease;
    z-index: 1;
}

#project-modal .close-button:hover {
    transform: rotate(90deg);
}

#project-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

#project-modal .modal-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

#project-modal .modal-text {
    padding: 0;
    width: 100%;
}

#project-modal .modal-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--text-color);
}

#project-modal .modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.8;
}

#project-modal .modal-description {
    margin-bottom: 30px;
    width: 100%;
}

#project-modal .modal-description h3 {
    color: var(--primary-color);
    margin: 20px 0 10px;
}

#project-modal .modal-description p {
    margin-bottom: 15px;
    line-height: 1.6;
}

#project-modal .modal-tech-stack {
    margin: 20px 0;
    width: 100%;
}

#project-modal .modal-tech-stack h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

#project-modal .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#project-modal .tech-item {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

#project-modal .modal-impact {
    margin-top: 20px;
    width: 100%;
}

#project-modal .modal-impact h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

#project-modal .modal-impact ul {
    list-style: none;
    padding-left: 20px;
}

#project-modal .modal-impact li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

#project-modal .modal-impact li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    #project-modal .modal-content {
        margin: 20px auto;
        padding: 20px;
    }

    #project-modal .modal-image {
        height: 200px;
    }

    #project-modal .modal-title {
        font-size: 1.5em;
    }

    #project-modal .modal-meta {
        flex-direction: column;
        gap: 10px;
    }

    #project-modal .tech-stack {
        gap: 8px;
    }

    #project-modal .tech-item {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}

/* Featured Projects Section */
.featured-projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 columns on larger screens */
    gap: 30px;
    margin-top: 40px;
}

.featured-projects .project-article {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Indicate clickable */
}

.featured-projects .project-article:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.featured-projects .project-header {
    position: relative;
}

.featured-projects .project-image img {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Cover the area without distortion */
}

.featured-projects .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    padding: 20px;
    color: #fff;
}

.featured-projects .project-info h2 {
    margin: 0 0 5px 0;
    font-size: 1.4em;
    color: #fff;
}

.featured-projects .project-meta {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

.featured-projects .project-meta i {
    margin-right: 5px;
}

/* Hide content that will be shown in modal */
.featured-projects .project-content {
    display: none; /* Hide the content within the card */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .featured-projects .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 2 columns on mobile */
        gap: 20px;
    }

    .featured-projects .project-info {
         padding: 15px;
    }

     .featured-projects .project-info h2 {
         font-size: 1.2em;
     }

     .featured-projects .project-image img {
          height: 180px;
     }
}

/* Upcoming Events Section */
.upcoming-events {
    padding: 0.5rem 2rem;
    background: var(--background-color);
    text-align: center;
}

.upcoming-events h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.upcoming-events h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1rem;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.upcoming-events .section-subtext {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    margin: 0.5rem auto 4rem auto;
}

.events-timeline {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    max-width: 600px;
    margin: 0 auto;
}

.event-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.event-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-poster:hover .event-overlay {
    opacity: 1;
}

.event-poster:hover img {
    transform: scale(1.05);
}

.event-overlay span {
    color: white;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-details {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.view-details:hover {
    transform: translateY(-2px);
    background-color: var(--gradient-end);
}

/* Event Details Modal Styles */
.event-details {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
    height: 90%;
    max-height: 95vh;
    background: var(--background-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-details.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.event-details .event-header {
    position: relative;
    padding: 20px 30px;
    border-bottom: none;
    flex-shrink: 0;
}

.event-details .event-header h3 {
    font-size: 1.8em;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-color);
}

.event-details .close-details {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 1001;
}

.event-details .close-details:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

.event-details .modal-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px;
    min-height: 0;
}

.event-details .event-top-section {
    display: flex;
    gap: 30px;
    margin-bottom: 0;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding: 0;
}

.event-details .event-top-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-basis: 40%;
    flex-grow: 0;
    flex-shrink: 0;
    max-width: 400px;
    align-items: flex-start;
}

.event-details .event-top-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    flex-basis: 0;
}

.event-details .event-image-container {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-shrink: 0;
    border-radius: 8px;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.event-details .modal-event-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    padding: 0;
    margin: 0;
    border: none;
}

.event-details .image-details-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    margin: 0;
    width: 100%;
    margin-top: 10px;
}

.event-details .event-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-color);
    font-size: 1em;
    opacity: 0.9;
}

.event-details .event-meta.image-meta {
    font-size: 1em;
    opacity: 1;
    font-weight: 500;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    padding: 5px 0;
}

.event-details .event-meta.side-meta {
    flex-direction: column;
    gap: 10px;
    font-size: 0.9em;
    opacity: 0.8;
}

.event-details .event-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-details .event-meta.image-meta .meta-item {
    gap: 8px;
}

.event-details .event-meta .meta-item i {
    color: var(--primary-color);
    font-size: 1.1em;
}

.event-details .event-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
    margin: 0;
    flex-grow: 0;
    flex-shrink: 0;
}

.event-details .event-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
    overflow-y: visible;
    flex-grow: 0;
    min-height: auto;
}

.event-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.event-description {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1em;
}

.event-highlights {
    background: rgba(74, 144, 226, 0.03);
    padding: 30px;
    border-radius: 10px;
}

.event-highlights h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-highlights p {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-color);
    font-size: 1.1em;
}

.instructor-title {
    font-size: 0.95em;
    color: var(--text-color);
    opacity: 0.8;
}

.event-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    justify-content: center;
}

.event-actions .cta-button,
.event-actions .calendar-button,
.event-actions .share-button {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.event-actions .cta-button.primary {
    background: var(--primary-color);
    color: white;
}

.event-actions .calendar-button,
.event-actions .share-button {
    background: var(--secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.event-actions .calendar-button:hover,
.event-actions .share-button:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-actions .calendar-button i,
.event-actions .share-button i {
    font-size: 1.1rem;
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.event-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.event-tags .tag:hover {
    background: rgba(74, 144, 226, 0.15);
    transform: translateY(-2px);
}

.event-tags .tag i {
    font-size: 1.1em;
}

[data-theme="dark"] .event-actions .calendar-button,
[data-theme="dark"] .event-actions .share-button {
    background: var(--dark-secondary-bg);
    border-color: var(--dark-border-color);
}

[data-theme="dark"] .event-actions .calendar-button:hover,
[data-theme="dark"] .event-actions .share-button:hover {
    background: var(--dark-hover-bg);
}

[data-theme="dark"] .event-tags .tag {
    background: rgba(100, 181, 246, 0.1);
    color: var(--primary-color);
}

[data-theme="dark"] .event-tags .tag:hover {
    background: rgba(100, 181, 246, 0.15);
}

@media (max-width: 768px) {
    .event-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .event-actions .cta-button,
    .event-actions .calendar-button,
    .event-actions .share-button {
        width: 100%;
        justify-content: center;
    }

    .event-tags {
        gap: 8px;
    }

    .event-tags .tag {
        padding: 6px 12px;
        font-size: 0.85em;
    }
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1201px) {
    .event-content {
        flex-direction: initial;
        display: grid;
        grid-template-columns: 3fr 1fr;
        gap: 60px;
        max-width: 1400px;
    }
}

@media (max-width: 1200px) {
    .event-content {
        grid-template-columns: 1fr;
        max-width: 800px;
        padding: 40px;
        gap: 30px;
    }

    .event-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .event-details {
        width: 95%;
        max-height: 95vh;
    }

    .event-image {
        height: 300px;
    }

    .event-info {
        padding: 30px;
    }

    .event-info h3 {
        font-size: 2em;
    }

    .event-meta {
        flex-direction: column;
        gap: 10px;
    }

    .event-content {
        padding: 30px;
        gap: 30px;
    }

    .event-highlights,
    .event-instructor {
        padding: 25px;
    }

    .event-details .event-top-section {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }

    .event-details .event-top-left {
        flex-basis: auto;
        max-width: none;
        width: 100%;
        align-items: center;
    }

    .event-details .event-top-right {
        flex-basis: auto;
        width: 100%;
    }

    .event-details .event-image-container {
        max-height: 250px;
    }

    .event-details .image-details-container {
        align-items: center;
        margin-top: 15px;
    }

    .event-details .event-meta.side-meta {
        flex-basis: auto;
        align-items: center;
        text-align: center;
    }

    .event-details .event-meta.side-meta .meta-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .event-image {
        height: 250px;
    }

    .event-info {
        padding: 20px;
    }

    .event-info h3 {
        font-size: 1.8em;
    }

    .event-content {
        padding: 20px;
        gap: 20px;
    }

    .event-highlights,
    .event-instructor {
        padding: 20px;
    }

    .tag {
        padding: 6px 12px;
        font-size: 0.85em;
    }
}

.countdown-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(74, 144, 226, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.countdown-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .countdown-badge {
    background: rgba(100, 181, 246, 0.9);
}

@media (max-width: 768px) {
    .countdown-badge {
        font-size: 0.8em;
        padding: 6px 12px;
        top: 10px;
        right: 10px;
    }
}

.events-hero {
    padding: 120px 2rem 4rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-align: center;
}

.events-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.events-nav {
    background: var(--background-color);
    padding: 1rem 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.events-nav .container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.events-nav-btn {
    padding: 0.8rem 2rem;
    border: none;
    background: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.events-nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.events-nav-btn:hover::after,
.events-nav-btn.active::after {
    width: 80%;
}

.events-nav-btn.active {
    color: var(--primary-color);
}

.events-section {
    padding: 4rem 2rem;
    display: none;
}

.events-section.active {
    display: block;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#all-events .event-card {
    opacity: 1;
    transition: all 0.3s ease;
}

#all-events .event-card.past-event {
    opacity: 0.8;
    filter: grayscale(0.3);
}

#all-events .event-card:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-5px);
}

#all-events .countdown-badge {
    background: rgba(74, 144, 226, 0.9);
}

#all-events .event-card.past-event .countdown-badge {
    background: rgba(128, 128, 128, 0.9);
}

[data-theme="dark"] #all-events .countdown-badge {
    background: rgba(100, 181, 246, 0.9);
}

[data-theme="dark"] #all-events .event-card.past-event .countdown-badge {
    background: rgba(128, 128, 128, 0.9);
}

@media (max-width: 768px) {
    .events-hero {
        padding: 100px 1rem 2rem;
    }

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

    .events-nav {
        top: 70px;
    }

    .events-nav-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .events-section {
        padding: 2rem 1rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }
}

#past-events .event-card {
    opacity: 0.8;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

#past-events .event-card:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-5px);
}

#past-events .countdown-badge {
    background: rgba(128, 128, 128, 0.9);
}

#upcoming-events .event-card {
    opacity: 1;
    transition: all 0.3s ease;
}

#upcoming-events .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#upcoming-events .countdown-badge {
    background: rgba(74, 144, 226, 0.9);
}

[data-theme="dark"] #upcoming-events .countdown-badge {
    background: rgba(100, 181, 246, 0.9);
}

[data-theme="dark"] #past-events .countdown-badge {
    background: rgba(128, 128, 128, 0.9);
}

.welcome-logo {
    text-align: center;
    position: absolute;
    top: -6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.welcome-text {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.1rem;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.twh-logo {
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.team-section {
    padding: 6rem 2rem;
    background: var(--background-color);
    text-align: center;
}

.team-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.team-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1rem;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.team-section .section-subtext {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.team-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.team-tabs .tab-button {
    padding: 0.8rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.team-tabs .tab-button::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.team-tabs .tab-button:hover::after,
.team-tabs .tab-button.active::after {
    width: 100%;
}

.team-tabs .tab-button.active {
    color: var(--primary-color);
}

.team-search {
    margin-bottom: 2rem;
}

.team-search input[type="text"] {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    width: 100%;
    max-width: 400px;
    background: var(--secondary-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.team-search input[type="text"]::placeholder {
    color: var(--text-color);
    opacity: 0.7;
}

.team-search input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.members-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 1.5rem;
    justify-content: center;
    align-items: start;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.member-card {
    background: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    cursor: pointer;
    width: calc((100% - 2 * 3rem) / 3);
    max-width: 450px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-grow: 0;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.member-card img {
    width: 100%;
    height: 300px;
    border-radius: 12px 12px 0 0;
    object-fit: cover;
    margin-bottom: 0;
    border: none;
    box-shadow: none;
}

.member-card .info-panel {
    background-color: #a6e7fd;
    width: 100%;
    padding: 1.2rem 1rem 1.5rem 1rem;
    position: relative;
}

[data-theme="dark"] .member-card .info-panel {
    background-color: #2d2d2d;
}

.member-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
    width: 100%;
    text-align: left;
    padding: 0 0 0.3rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-card p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.7;
    margin: 0;
    text-align: left;
    width: 100%;
    padding: 0;
}

.member-card .linkedin-link {
    position: absolute;
    top: 1.2rem;
    right: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: #0077B5;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 119, 181, 0.3);
}

.member-card .linkedin-link:hover {
    background-color: #005e93;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

[data-theme="dark"] .member-card {
    background: var(--dark-bg-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .member-card img {
    border: none;
    box-shadow: none;
}

[data-theme="dark"] .member-card h3 {
    color: var(--dark-text-color);
}

[data-theme="dark"] .member-card p {
    color: var(--dark-text-color);
    opacity: 0.7;
}

[data-theme="dark"] .member-card .linkedin-link {
    background-color: #0077B5;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 119, 181, 0.2);
}

[data-theme="dark"] .member-card .linkedin-link:hover {
    background-color: #005e93;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

@media (max-width: 1200px) {
    .member-card {
        width: calc((100% - 1 * 3rem) / 2);
    }
}

@media (max-width: 768px) {
    .members-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
        margin-top: 1rem;
    }

    .member-card {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .member-card img {
        width: 100%;
        height: 200px;
    }
    
    .member-card .info-panel {
        padding: 1rem 0.8rem 1.2rem 0.8rem;
    }

    .member-card h3 {
        font-size: 1.1rem;
        padding: 0 0 0.2rem 0;
        text-align: left;
    }

    .member-card p {
        font-size: 0.9rem;
        text-align: left;
        margin: 0;
    }
    
    .member-card .linkedin-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        top: 1rem;
        right: 0.8rem;
    }
}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.25rem;
    }

    .member-card {
        padding: 0;
        max-width: 100%;
        margin: 0;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .member-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 3/2;
        object-fit: cover;
        object-position: center 25%;
        margin: 0;
        display: block;
        border-radius: 12px 12px 0 0;
    }
    
    .member-card .info-panel {
        padding: 0.7rem 1rem;
        background-color: #a6e7fd;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    [data-theme="dark"] .member-card .info-panel {
        background-color: #2d2d2d;
    }
    
    .member-card .info-text {
        flex: 1;
        padding-right: 0.5rem;
    }

    .member-card h3 {
        font-size: 1.1rem;
        padding: 0;
        text-align: left;
        margin: 0 0 0.1rem 0;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .member-card p {
        font-size: 0.85rem;
        text-align: left;
        margin: 0;
        padding: 0;
        line-height: 1.2;
        color: var(--text-color);
        opacity: 0.8;
    }
    
    .member-card .linkedin-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        position: relative;
        top: auto;
        right: auto;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

[data-theme="dark"] .team-tabs .tab-button {
    color: var(--dark-text-color);
}

[data-theme="dark"] .team-tabs .tab-button::after {
    background: var(--dark-primary-color);
}

[data-theme="dark"] .team-tabs .tab-button.active {
    color: var(--dark-primary-color);
}

[data-theme="dark"] .team-search input[type="text"] {
    border-color: var(--dark-border-color);
    background: var(--dark-secondary-bg);
    color: var(--dark-text-color);
}

[data-theme="dark"] .team-search input[type="text"]::placeholder {
    color: var(--dark-text-color);
    opacity: 0.7;
}

[data-theme="dark"] .team-search input[type="text"]:focus {
    outline: none;
    border-color: var(--dark-primary-color);
    box-shadow: 0 0 8px rgba(100, 181, 246, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.team-section .quick-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(74, 144, 226, 0.07);
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(74, 144, 226, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .team-section .quick-stat {
    background: rgba(100, 181, 246, 0.07);
    border-color: rgba(100, 181, 246, 0.15);
    color: var(--primary-color);
}

.team-section .quick-stat i {
    font-size: 1.6rem;
    color: var(--primary-color); /* Icon color */
}

[data-theme="dark"] .team-section .quick-stat i {
    color: var(--dark-primary-color);
}

.team-search {
}

@media (max-width: 768px) {
    .team-section {
        padding: 2rem 1rem; /* Adjust section padding */
    }

    .team-tabs {
        gap: 0.5rem; /* Reduce gap between tabs on small screens */
        padding-bottom: 0.8rem;
    }

    .team-tabs .tab-button {
        padding: 0.6rem 1rem; /* Adjust tab button padding */
        font-size: 0.9rem;
    }

    .team-search {
        margin-bottom: 1.5rem; /* Adjust margin below search */
    }

    .team-search input[type="text"] {
        padding: 0.6rem 1rem; /* Adjust search input padding */
        font-size: 0.9rem;
    }

    .members-grid {
        gap: 1.5rem; /* Further reduce grid gap */
        padding: 0 0.5rem; /* Adjust grid padding */
    }

    .member-card {
        width: 100%; /* Make cards take full width */
        max-width: 300px; /* Keep a reasonable max width for alignment */
        padding: 1.5rem; /* Adjust card padding */
        margin: 0.75rem auto; /* Adjust vertical margin between cards and center */
    }

    .member-card img {
        width: 100px; /* Adjust image size */
        height: 100px;
        margin-bottom: 1rem;
    }

    .member-card h3 {
        font-size: 1.2rem; /* Ensure name font size is appropriate */
        white-space: normal; /* Allow name to wrap */
        word-break: break-word; /* Break long words if necessary */
        text-align: center; /* Ensure text is centered */
    }

    .member-card p {
        font-size: 1rem; /* Ensure role font size is appropriate */
        text-align: center; /* Ensure text is centered */
    }

    .team-section .quick-stat {
        font-size: 1.1rem; /* Reduce quick stat font size */
        padding: 0.6rem 1rem; /* Adjust quick stat padding */
    }

    .team-section .quick-stat i {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
     .team-section {
        padding: 1.5rem 0.5rem; /* Further reduce section padding */
    }

    .team-search {
        margin-bottom: 1rem; /* Further reduce margin below search */
    }

    .members-grid {
        gap: 1rem; /* Further reduce grid gap */
        padding: 0 0.25rem; /* Further adjust grid padding */
    }

    .member-card {
        padding: 1rem; /* Further reduce card padding */
        margin: 0.5rem auto; /* Further reduce vertical margin */
    }

     .member-card img {
        width: 80px; /* Further adjust image size */
        height: 80px;
        margin-bottom: 0.8rem;
    }

    .member-card h3 {
        font-size: 1.1rem; /* Further adjust name font size */
        white-space: normal; /* Allow name to wrap */
        word-break: break-word; /* Break long words if necessary */
        text-align: center; /* Ensure text is centered */
    }

    .member-card p {
        font-size: 0.9rem; /* Further adjust role font size */
        text-align: center; /* Ensure text is centered */
    }

    .team-section .quick-stat {
        font-size: 1rem; /* Further reduce quick stat font size */
        padding: 0.5rem 0.8rem; /* Adjust quick stat padding */
    }

     .team-section .quick-stat i {
        font-size: 1.2rem;
    }
}

/* Voices of Impact Testimonials Section */
.testimonials-section {
    padding: 1rem 2rem;
    background: var(--background-color);
    text-align: center;
}

.testimonials-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.testimonials-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1rem;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.testimonials-section .section-subtext {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.testimonial-slider-container {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    overflow: hidden;
    position: relative;
    padding: 0 1rem;
}

.testimonial-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
    /* No specific width needed, flex items define it */
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.333rem);
    box-sizing: border-box;
    padding: 2.5rem;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    /* margin: 0; Removed margin */
    border-top: 5px solid var(--primary-color);
    /* opacity/transform for active state handled in JS */
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }

    .testimonial-slides {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .testimonial-slider-container {
        padding: 0 0.5rem;
         max-width: 700px; /* Adjust max-width for tablet */
    }

    .testimonial-slides {
        gap: 1.5rem; /* Adjust gap for tablet */
    }

    .testimonial-card {
        flex: 0 0 calc(100% - 1.5rem); /* Changed to 100% minus gap for single card on screens up to 768px */
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
        padding-left: 2.4rem;
    }

    .testimonial-text::before,
    .testimonial-text::after {
        font-size: 2.5rem;
        opacity: 0.5;
    }

    .testimonial-text::before {
        left: 0;
        top: -0.6rem;
    }

    .testimonial-text::after {
        left: 0;
        bottom: -0.6rem;
        right: auto;
    }

    .testimonial-author {
        font-size: 0.9rem;
    }

     .submit-story-button {
        margin-top: 2rem;
     }
}

@media (max-width: 480px) {
     .testimonials-section {
        padding: 0.75rem 0.5rem;
    }

    .testimonials-section h2 {
        font-size: 1.8rem;
    }

    .testimonials-section .section-subtext {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
        padding-left: 2rem;
    }

    .testimonial-text::before,
    .testimonial-text::after {
        font-size: 2.1rem;
    }

    .testimonial-text::before {
        left: 0;
        top: -0.5rem;
    }

    .testimonial-text::after {
        left: 0;
        bottom: -0.5rem;
        right: auto;
    }

     .testimonial-author {
        font-size: 0.8rem;
     }
}
.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '❝';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
    top: 0;
    line-height: 1;
    opacity: 0.6;
}

.testimonial-text::after {
     content: '❞';
     font-size: 3rem;
     color: var(--primary-color);
     position: absolute;
     right: -1.5rem;
     bottom: 0;
     line-height: 1;
     opacity: 0.6;
}

.testimonial-author {
    font-size: 1rem;
    color: var(--text-color);
    text-align: right;
    margin-top: 1rem;
}

.testimonial-author strong {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Optional: Style for the graduation cap icon */
.testimonial-author i {
    margin-left: 5px;
}

.submit-story-button {
    text-align: center;
    margin-top: 3rem;
}

/* Ready to Join Section */
.join-section {
    padding: 6rem 2rem;
    background: var(--background-color);
    text-align: center;
}

.join-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.join-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1rem;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.motivation-block {
    max-width: 800px;
    margin: 2rem auto 4rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.role-card {
    background: var(--background-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
}

.role-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-card h3::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.2rem;
}

.role-card h3[data-role="general-member"]::before {
    content: '\f007';
}

.role-card h3[data-role="campus-ambassador"]::before {
    content: '\f19d';
}

.role-card h3[data-role="intern"]::before {
    content: '\f0b1';
}

.role-card h3[data-role="volunteer"]::before {
    content: '\f0c0';
}

.role-card h3[data-role="mentor"]::before {
    content: '\f51c';
}

.role-card h3[data-role="collaborator"]::before {
    content: '\f2b5';
}

.role-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.role-card .quote {
    font-style: italic;
    color: var(--secondary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.role-card .benefits {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: auto;
}

.role-card .duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(74, 144, 226, 0.1);
}

/* Responsive adjustments for roles grid */
@media (max-width: 1200px) {
    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .roles-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 3rem;
    }

    .role-card {
        padding: 1.5rem;
    }

    .role-card h3 {
        font-size: 1.3rem;
    }

    .role-card .quote {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .roles-grid {
        padding: 0 0.5rem;
    }

    .role-card {
        padding: 1.2rem;
    }

    .role-card h3 {
        font-size: 1.2rem;
    }

    .role-card p {
        font-size: 0.95rem;
    }

    .role-card .quote {
        font-size: 0.85rem;
    }
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(74, 144, 226, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: var(--background-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-color);
    transition: background-color 0.3s ease;
    text-align: left;
}

.faq-question span {
    flex: 1;
    text-align: left;
    padding-right: 1rem;
}

.faq-question i {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--background-color);
    text-align: left;
}

.faq-answer p {
    text-align: left;
    margin-bottom: 1rem;
}

.faq-answer ul {
    text-align: left;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    text-align: left;
    margin-bottom: 0.5rem;
}

.fee-table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    text-align: left;
}

.fee-table th,
.fee-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.fee-table th {
    background: rgba(74, 144, 226, 0.05);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .join-section {
        padding: 4rem 1rem;
    }

    .join-section h2 {
        font-size: 2rem;
    }

    .motivation-block {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .roles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .role-card {
        padding: 1.5rem;
    }

    .role-card h3 {
        font-size: 1.3rem;
    }

    .faq-question {
        padding: 1.2rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .join-section {
        padding: 3rem 0.5rem;
    }

    .join-section h2 {
        font-size: 1.8rem;
    }

    .motivation-block {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .role-card {
        padding: 1.2rem;
    }

    .role-card h3 {
        font-size: 1.2rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        font-size: 0.85rem;
    }
}

/* Back to Home Button */
.back-to-home {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.back-button i {
    font-size: 1.1em;
}

/* Dark mode adjustments */
.dark-mode .back-button {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .back-button:hover {
    background: rgba(0, 0, 0, 0.3);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 1000px;
}

.faq-item.active .faq-question {
    background: rgba(74, 144, 226, 0.05);
}

/* Roles Details Section */
.roles-details-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.view-roles-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 2rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.view-roles-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.roles-tabs-container {
    display: none;
    background: var(--background-color);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.roles-tabs-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.roles-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(74, 144, 226, 0.05);
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.role-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    background: var(--background-color);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-tab:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.role-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.role-content {
    padding: 2rem;
}

.role-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.role-panel.active {
    display: block;
}

.role-panel h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.role-info {
    display: grid;
    grid-template-columns: 1fr; /* Default: Stack on smallest screens */
    gap: 1.5rem; /* Default gap */
}

@media (min-width: 769px) {
    .role-info {
        grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */
        gap: 2rem;
    }

    .role-section {
        padding: 1.5rem; /* Adjust padding for medium screens */
    }
}

@media (min-width: 992px) { /* Adjust breakpoint as needed for desired 3-column layout */
    .role-info {
        grid-template-columns: repeat(3, 1fr); /* Three columns on large screens */
        gap: 2rem;
    }

    .role-section {
         padding: 1.5rem; /* Keep padding consistent */
    }
}

@media (max-width: 768px) {
    .role-section {
        padding: 1.2rem;
    }

    .role-section h4 {
        font-size: 1.1rem;
    }

    .role-section p,
    .role-section ul li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
     .role-section {
        padding: 1rem;
    }

    .role-section h4 {
        font-size: 1rem;
    }

     .role-section p,
    .role-section ul li {
        font-size: 0.9rem;
    }
}

.role-section {
    /* Basic styling for the box */
    background-color: rgba(74, 144, 226, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(74, 144, 226, 0.1);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.role-section h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    text-align: left;
}

.role-section p,
.role-section ul {
    color: var(--text-color);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 0;
    padding-left: 0;
}

.role-section ul {
    list-style: none;
}

.role-section ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-color);
}

.role-section ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.role-section .benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
}

.role-section .benefits-list li::before {
    display: none; /* Hide the bullet point */
}

.role-section .benefits-list li i {
    color: var(--primary-color);
    font-size: 1.1em;
    flex-shrink: 0;
}

/* Handle the 'Role' section span if needed */
/* On wider screens, the 'Role' should span across, then Responsibilities and Benefits side-by-side */
@media (min-width: 769px) { /* Adjust breakpoint as needed for desired layout start */
    /* Removed grid-column: 1 / -1; rule */
}

@media (max-width: 768px) {
    .role-info {
        grid-template-columns: 1fr; /* Stack sections on smaller screens */
        gap: 1.5rem;
    }

    .role-section {
        padding: 1.2rem;
    }

    .role-section h4 {
        font-size: 1.1rem;
    }

    .role-section p,
    .role-section ul li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
     .role-section {
        padding: 1rem;
    }

    .role-section h4 {
        font-size: 1rem;
    }

     .role-section p,
    .role-section ul li {
        font-size: 0.9rem;
    }
}

/* Apply Now Section Styles */
.apply-now-section {
    text-align: center;
    margin: 3rem 0;
    position: relative;
}

.apply-now-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.apply-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.apply-now-btn i {
    margin-right: 0.5rem;
}

/* Role Dropdown Styles */
.role-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    width: 300px;
    z-index: 1000;
    margin-top: 1rem;
    overflow: hidden;
}

.role-dropdown.active {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

.dropdown-header {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    text-align: left;
}

.dropdown-header i {
    margin-right: 0.5rem;
}

.dropdown-options {
    max-height: 400px;
    overflow-y: auto;
}

.role-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.role-option:hover {
    background: #f5f5f5;
}

.role-option input[type="radio"] {
    margin-right: 1rem;
}

.role-option i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Application Forms Styles */
.application-forms {
    max-width: 800px;
    margin: 2rem auto;
    display: none;
}

.application-forms.active {
    display: block;
    animation: formFadeIn 0.5s ease;
}

.application-form {
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.application-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.application-form h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.application-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"], /* Added url type here */
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(var(--text-rgb), 0.2);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e1e5eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: normal;
    margin: 0;
}

.radio-group label:hover,
.checkbox-group label:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: var(--primary-color);
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Payment Section Styles */
.payment-section {
    background: linear-gradient(145deg, #f8f9ff, #ffffff);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.payment-section h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.payment-section h4::before {
    content: '💳';
    font-size: 1.6rem;
}

.payment-section p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Code of Conduct Section Styles */
.code-conduct-section {
    background: linear-gradient(145deg, #fff9f0, #ffffff);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(var(--accent-rgb), 0.1);
}

.code-conduct-section h4 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.code-conduct-section h4::before {
    content: '📜';
    font-size: 1.6rem;
}

.code-conduct-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.code-conduct-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

/* Submit Button Enhancement */
.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Changed gradient for stronger contrast */
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3); /* Enhanced shadow */
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    ); /* Adjusted shine opacity */
    transition: 0.5s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4); /* Stronger hover shadow */
}

.submit-btn:hover::before {
    left: 100%;
}

/* Success Message Enhancement */
.success-message {
    display: none;
    text-align: center;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    display: none;
}

.success-message i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
    display: block;
}

.success-message h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
}

.success-message p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

[data-theme="dark"] .success-message {
    background: var(--card-background);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Dark Mode Styles */
[data-theme="dark"] .application-form {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-group input[type="text"],
[data-theme="dark"] .form-group input[type="email"],
[data-theme="dark"] .form-group input[type="tel"],
[data-theme="dark"] .form-group input[type="url"], /* Added url type here for dark mode */
[data-theme="dark"] .form-group textarea {
    background: rgba(255, 255, 255, 0.1); /* Increased opacity slightly */
    border-color: rgba(255, 255, 255, 0.15); /* Adjusted border color */
    color: #fff;
}

[data-theme="dark"] .radio-group label,
[data-theme="dark"] .checkbox-group label {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .payment-section {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-color: rgba(var(--primary-rgb), 0.2);
}

[data-theme="dark"] .code-conduct-section {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-color: rgba(var(--accent-rgb), 0.2);
}

[data-theme="dark"] .success-message {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-color: rgba(72, 187, 120, 0.2);
}

[data-theme="dark"] .role-dropdown {
    background: white; /* Set background back to white */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Adjust border for white background */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2); /* Adjust shadow for white background */
}

[data-theme="dark"] .dropdown-header {
    background: var(--primary-color); /* Keep header color */
    color: white; /* Keep header text white */
}

[data-theme="dark"] .role-option {
    color: #000000; /* Keep text color black */
}

[data-theme="dark"] .role-option i {
     color: var(--primary-color); /* Keep icons in theme color */
}

[data-theme="dark"] .role-option:hover {
    background: #f0f0f0; /* Light hover background for white dropdown */
}

/* Gallery Section Styles */
.gallery-section {
    padding: 6rem 2rem;
    background: var(--background-color);
}

.gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/gallery-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 2rem 4rem;  /* Increased top padding to 6rem to account for navbar */
    position: relative;
    margin-top: 60px;  /* Added margin-top to account for fixed navbar */
}

.gallery-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-hero .section-subtext {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

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

.gallery-section .section-subtext {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Gallery Tabs Styles */
.gallery-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.gallery-tabs .tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    color: var(--text-color);
    position: relative;
    margin: 0 10px;
}

.gallery-tabs .tab-button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.gallery-tabs .tab-button:hover:not(.active) {
    color: var(--secondary-color);
}

/* Gallery Content Styles */
.gallery-content {
    margin-top: 2rem;
}

.gallery-content .tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.gallery-content .tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Image Grid Styles */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.image-grid img {
    width: 100%;
    height: 300px; /* Fixed height for grid thumbnails */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover; /* Crop images in grid view */
    object-position: center;
}

.image-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for image grid */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .image-grid img {
        height: 250px; /* Slightly smaller height on mobile */
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .image-grid img {
        height: 200px; /* Even smaller height on very small screens */
    }
}

.image-grid img[loading="lazy"] {
    /* Optional: Add a placeholder background or style while loading */
    background-color: #f0f0f0;
}

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

.video-item {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item img {
    display: block;
    width: 100%;
    height: auto;
}

.video-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-item:hover .play-icon {
    opacity: 1;
}

.video-item:hover {
     transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-modal .modal-content {
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 90vh; /* Limit height to 90% of viewport height */
    width: auto; /* Allow width to adjust based on image aspect ratio */
    height: auto; /* Allow height to adjust based on image aspect ratio */
    object-fit: contain; /* Show full image without cropping */
    border-radius: 12px;
}

/* Responsive adjustments for image grid */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .image-grid img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .image-grid img {
        height: 200px;
    }
}

.lightbox-modal .close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ffffff; /* Set color to white for better contrast */
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
    background-color: rgba(0, 0, 0, 0.5); /* Add a semi-transparent dark background */
    border-radius: 50%; /* Make it round */
    width: 40px; /* Give it a fixed size */
    height: 40px; /* Give it a fixed size */
    display: flex; /* Use flexbox to center the 'X' */
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Add a subtle text shadow */
}

.lightbox-modal .close-button:hover,
.lightbox-modal .close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7); /* Darker background on hover */
}

.lightbox-modal .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #f1f1f1;
    cursor: pointer;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 2001; /* Ensure buttons are above image/video */
}

.lightbox-modal .nav-button.prev {
    left: 15px;
}

.lightbox-modal .nav-button.next {
    right: 15px;
}

.lightbox-modal .nav-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments for Lightbox */
@media (max-width: 768px) {
    .lightbox-modal .nav-button {
        font-size: 20px;
        padding: 8px 12px;
    }

    .lightbox-modal .close-button {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }
     .lightbox-video-container iframe {
         min-width: 300px;
         min-height: 170px;
     }
}

/* Dark Mode for Gallery */
[data-theme="dark"] .gallery-section h2,
[data-theme="dark"] .gallery-tabs .tab-button.active {
    color: var(--secondary-color); /* Use secondary color for dark mode headings/active tabs */
}

[data-theme="dark"] .gallery-tabs {
    border-bottom-color: #444; /* Darker border */
}

[data-theme="dark"] .gallery-tabs .tab-button:hover:not(.active) {
     color: var(--primary-color); /* Use primary color for dark mode hover */
}

[data-theme="dark"] .image-grid img,
[data-theme="dark"] .video-item {
     box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1); /* Lighter shadow for dark mode */
}

[data-theme="dark"] .image-grid img:hover,
[data-theme="dark"] .video-item:hover {
     box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2); /* Lighter hover shadow */
}

[data-theme="dark"] .video-item .play-icon {
     color: #eee; /* Lighter play icon */
}

/* About Us Hero Section */
.about-hero {
    padding: 120px 2rem 4rem; /* Adjust padding similar to other hero sections */
    background-image: url('../images/Aboutus.JPG'); /* Background image */
    background-size: cover;
    background-position: center 29%;
    background-repeat: no-repeat;
    color: white; /* White text for contrast */
    text-align: center;
    position: relative; /* Needed for potential overlay */
    overflow: hidden; /* Hide overflow from potential animations */
}

.about-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem; /* Consistent with other page titles */
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-hero .section-subtext {
    font-size: 1.2rem; /* Slightly larger subtitle */
    line-height: 1.6;
    max-width: 800px;
    margin: 0.5rem auto 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Optional: Add overlay effect if desired */
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
}

.about-hero .container {
    position: relative;
    z-index: 2; /* Ensure text is above overlay */
}


/* Our Story Section */
.our-story-section {
    padding: 6rem 2rem;
    background: var(--background-color); /* Use theme background */
}

.our-story-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.our-story-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    display: inline-block; /* Center the underline */
    left: 50%;
    transform: translateX(-50%);
}

.our-story-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1rem;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color)); /* Theme gradient underline */
    border-radius: 2px;
}


.story-content {
    display: flex;
    gap: 4rem; /* Space between intro and timeline */
}

.story-intro {
    flex: 1; /* Takes available space */
    line-height: 1.8;
    color: var(--text-color);
}

.story-intro p {
    margin-bottom: 1.5rem;
}

/* Timeline Styles */
.timeline-container {
    flex-shrink: 0; /* Don't shrink the timeline column */
    width: 400px; /* Fixed width for the timeline column */
    position: relative;
    padding-left: 30px; /* Space for the line and icons */
}

.timeline-line {
    position: absolute;
    left: 0; /* Position the line on the left of the container */
    top: 0;
    bottom: 0;
    width: 4px; /* Thickness of the line */
    background: #ddd; /* Default line color */
    z-index: 0; /* Behind events */
}

.timeline-events {
    position: relative;
    z-index: 1; /* Events above the line */
}

.timeline-event {
    position: relative;
    margin-bottom: 3rem; /* Space between events */
    opacity: 0; /* Initial state for animation */
    transform: translateX(50px); /* Initial state for animation */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    display: flex; /* Layout for icon and card */
    align-items: center; /* Align items vertically */
}

.timeline-event.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-icon {
    flex-shrink: 0; /* Don't shrink the icon */
    width: 40px;
    height: 40px;
    background: var(--primary-color); /* Icon background color */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Icon color */
    font-size: 1.2rem;
    margin-right: 1rem; /* Space between icon and card */
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5); /* Subtle glow */
    position: relative;
    z-index: 1; /* Ensure icon is above line */
}

/* Position icons relative to the timeline line */
.timeline-icon {
    position: absolute;
    left: -20px; /* Half of icon width to center on the line */
    top: 50%; /* Vertically center icon with the start of the card */
    transform: translateY(-50%); /* Adjust for vertical centering */
}

.timeline-card {
    background: var(--card-background); /* Use theme card background */
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle card shadow */
    flex-grow: 1; /* Card takes remaining space */
    margin-left: 40px; /* Space to account for icon */
    border: 1px solid rgba(74, 144, 226, 0.1); /* Subtle border */
}

.timeline-card h3 {
    font-size: 1.2rem;
    color: var(--secondary-color); /* Theme color for card heading */
    margin-bottom: 0.5rem;
}

.timeline-card p {
    font-size: 0.95rem;
    color: var(--text-color); /* Theme text color */
    line-height: 1.6;
}

/* Responsive adjustments for Our Story */
@media (max-width: 1024px) {
    .story-content {
        flex-direction: column; /* Stack intro and timeline */
        gap: 3rem;
    }

    .timeline-container {
        width: 100%; /* Full width when stacked */
        padding-left: 0; /* Remove left padding */
    }

    .timeline-container .timeline-line {
        display: none; /* Hide the vertical timeline line on mobile */
    }

    .timeline-line {
        left: 50%; /* Center the line */
        transform: translateX(-50%);
        width: 4px; /* Keep vertical line */
        top: 0;
        bottom: 0;
    }

    .timeline-event {
        flex-direction: column; /* Stack icon and card */
        align-items: center; /* Center stacked items */
        margin-bottom: 2rem;
        transform: translateY(50px); /* Animate from bottom */
    }

    .timeline-event.is-visible {
        transform: translateY(0);
    }

    .timeline-icon {
        position: static; /* Remove absolute positioning */
        transform: none; /* Remove translation */
        margin-right: 0;
        margin-bottom: 1rem; /* Space between icon and card */
    }

    .timeline-card {
        margin-left: 0; /* Remove left margin */
        width: 100%; /* Card takes full width */
        text-align: center; /* Center card content */
    }

    .timeline-card h3,
    .timeline-card p {
        text-align: center; /* Ensure text is centered */
    }
}

@media (max-width: 768px) {
    .our-story-section {
        padding: 4rem 1rem;
    }

    .our-story-section h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .story-content {
        gap: 2rem;
    }

    .story-intro {
        font-size: 0.95rem;
    }

    .timeline-card {
        padding: 1.2rem;
    }

    .timeline-card h3 {
        font-size: 1.1rem;
    }

    .timeline-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
     .about-hero {
        padding: 100px 1rem 2rem;
    }

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

    .about-hero .section-subtext {
        font-size: 1rem;
    }

    .our-story-section {
        padding: 3rem 0.5rem;
    }

    .our-story-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .timeline-card {
        padding: 1rem;
    }

    .timeline-card h3 {
        font-size: 1rem;
    }

    .timeline-card p {
        font-size: 0.85rem;
    }
}

/* Wings Page Styles */
.wings-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.wings-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/wings.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.wings-hero .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.wings-hero .abstract-shapes {
    display: none; /* Removing the abstract shapes since we're using an image */
}

.wings-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.wings-hero h1 {
    font-size: 3.5rem;
    margin: 0;
    color: white;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wings-hero .section-subtext {
    font-size: 1.2rem;
    color: white;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
}

/* Why Wings Section */
.why-wings-section {
    padding: 5rem 2rem;
    background: var(--background-color);
    text-align: center;
}

.why-wings-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.why-wings-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
}

/* Wings Grid Section */
.wings-grid-section {
    padding: 5rem 2rem;
    background: var(--background-color);
}

.wings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.wing-card {
    background: var(--card-background);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.wing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.wing-card:hover::before {
    opacity: 0.1;
}

.wing-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

.wing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    z-index: 2;
}

.wing-card p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Wing-specific colors */
.wing-card[data-wing="technical"] { border-top: 4px solid #FF6B6B; }
.wing-card[data-wing="documentation"] { border-top: 4px solid #4ECDC4; }
.wing-card[data-wing="strategy"] { border-top: 4px solid #45B7D1; }
.wing-card[data-wing="pr"] { border-top: 4px solid #96CEB4; }
.wing-card[data-wing="design"] { border-top: 4px solid #FFEEAD; }
.wing-card[data-wing="training"] { border-top: 4px solid #D4A5A5; }
.wing-card[data-wing="media"] { border-top: 4px solid #9B59B6; }
.wing-card[data-wing="outreach"] { border-top: 4px solid #3498DB; }
/* Success Message Enhancement for Forms */
.application-forms .success-message {
    display: none;
    text-align: center;
    padding: 2.5rem; /* Slightly more padding */
    background: var(--card-background); /* Ensure background is set */
    border-radius: 15px; /* Match form border-radius */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Consistent shadow with form */
    margin: 2rem auto;
    max-width: 600px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    color: var(--text-color); /* Default text color for content */
}

.application-forms .success-message.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.application-forms .success-message i {
    font-size: 4rem; /* Large icon */
    color: #4CAF50; /* Green color for success */
    margin-bottom: 1.5rem; /* Space below icon */
    display: block; /* Ensure icon is a block element for centering */
}

.application-forms .success-message h3 {
    font-family: 'Orbitron', sans-serif; /* Use theme font */
    font-size: 1.8rem; /* Clear heading size */
    color: var(--primary-color); /* Use theme primary color */
    margin-bottom: 1rem;
    display: block; /* Ensure heading is a block element */
}

.application-forms .success-message p {
    color: var(--text-color); /* Use theme text color */
    margin-bottom: 0.8rem;
    line-height: 1.7;
    font-size: 1rem;
    display: block; /* Ensure paragraph is a block element */
}

.application-forms .close-success-btn {
    position: absolute;
    top: 0.5rem; /* Closer to the top edge */
    right: 0.5rem; /* Closer to the right edge */
    background: none; /* No background */
    border: none;
    color: #f44336; /* Red color */
    cursor: pointer;
    padding: 0.5rem; /* Sufficient click area */
    font-size: 1.8rem; /* Make icon a bit bigger */
    font-weight: normal; /* Ensure normal weight */
    transition: color 0.3s ease, transform 0.3s ease;
    opacity: 0.8; /* Slightly transparent */
    z-index: 10; /* Ensure it's on top */
}

.application-forms .close-success-btn:hover {
    color: #d32f2f; /* Darker red on hover */
    transform: rotate(90deg); /* Rotate effect */
    opacity: 1;
}

/* Ensure these styles are specific enough */
.application-forms .success-message .fas {
    /* Ensure Font Awesome icons within the success message are styled correctly */
    line-height: 1;
}

/* Dark Mode Styles for Success Message */
[data-theme="dark"] .application-forms .success-message {
    background: var(--dark-card-background); /* Use theme dark card background */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--dark-text-color); /* Default text color for content in dark mode */
}

[data-theme="dark"] .application-forms .success-message h3 {
    color: var(--dark-primary-color); /* Use theme dark primary color */
}

[data-theme="dark"] .application-forms .success-message i {
    color: #81c784; /* Lighter green for dark mode */
}

[data-theme="dark"] .application-forms .success-message p {
    color: var(--dark-text-color); /* Use theme dark text color */
}

[data-theme="dark"] .application-forms .close-success-btn {
    color: #e57373; /* Lighter red for dark mode */
}

[data-theme="dark"] .application-forms .close-success-btn:hover {
    color: #ef9a9a; /* Even lighter red on hover in dark mode */
}

/* Remove close button styles */
.application-forms .close-success-btn,
.application-forms .close-success-btn:hover,
[data-theme="dark"] .application-forms .close-success-btn,
[data-theme="dark"] .application-forms .close-success-btn:hover {
    display: none;
}

/* Contact Page Styles */
.contact-hero {
    padding: 120px 2rem 4rem;
    /* background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); */
    background-image: url('../images/contact.JPG'); /* Set the background image to the correct file */
    background-size: cover; /* Cover the entire area */
    background-position: center 25%; /* Center horizontally, move down vertically */
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2; /* Ensure text is above overlay */
}

.contact-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-hero .section-subtext {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.contact-section {
    padding: 6rem 2rem;
    background: var(--background-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-container {
    background: var(--card-background);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form label i {
    color: var(--primary-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

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

.contact-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .checkbox-label:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.contact-form .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.submit-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: var(--secondary-color); /* Change hover background to secondary color */
}

.submit-button .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

.submit-button.loading .button-text {
    display: none;
}

.submit-button.loading .spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--card-background);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.info-item h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-color);
    line-height: 1.6;
}

.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: var(--accent-color);
}

.map-section {
    padding: 4rem 2rem;
    background: var(--background-color);
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

/* Dark Mode Styles for Contact Page */
[data-theme="dark"] .contact-form-container,
[data-theme="dark"] .info-card {
    background: var(--card-background);
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form select,
[data-theme="dark"] .contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
}

[data-theme="dark"] .contact-form .checkbox-label {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive Styles for Contact Page */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 1.5rem 3rem;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-section {
        padding: 4rem 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-container,
    .info-card {
        padding: 2rem;
    }

    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 80px 1rem 2rem;
    }

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

    .contact-hero .section-subtext {
        font-size: 1rem;
    }

    .contact-section {
        padding: 3rem 1rem;
    }

    .contact-form-container,
    .info-card {
        padding: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-icons {
        gap: 1rem;
    }

    .map-container iframe {
        height: 300px;
    }
}

.why-join-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--background-color), var(--background-color));
    text-align: center;
}

.why-join-section h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.why-join-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.why-join-section p {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.benefit-item {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
}

@media (max-width: 768px) {
    .why-join-section {
        padding: 3rem 0;
    }

    .why-join-section h2 {
        font-size: 2rem;
    }

    .why-join-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-item {
        padding: 1.5rem;
    }

    .benefit-item i {
        font-size: 2rem;
    }

    .benefit-item h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .why-join-section h2 {
        font-size: 1.8rem;
    }

    .why-join-section p {
        font-size: 0.95rem;
    }

    .benefit-item {
        padding: 1.2rem;
    }

    .benefit-item i {
        font-size: 1.8rem;
    }

    .benefit-item h4 {
        font-size: 1rem;
    }
}

.wings-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--background-color), var(--background-color));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wings-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(44, 62, 80, 0.1));
    z-index: 1;
}

.wings-cta-section .container {
    position: relative;
    z-index: 2;
}

.wings-cta-section h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.wings-cta-section .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.wings-cta-section .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

.wings-cta-section .cta-button i {
    transition: transform 0.3s ease;
}

.wings-cta-section .cta-button:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .wings-cta-section {
        padding: 4rem 0;
    }

    .wings-cta-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .wings-cta-section .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .wings-cta-section {
        padding: 3rem 0;
    }

    .wings-cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .wings-cta-section .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* Product Details Page Styles */
.product-hero {
    padding: 120px 2rem 4rem;
    background: var(--background-color);
}

.product-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Product Gallery Styles */
.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    background: var(--bg-primary);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

.thumbnail-images {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

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

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* Product Details Styles */
.product-details {
    padding: 1rem;
}

.product-details h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.product-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-description {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-description p {
    margin-bottom: 1rem;
}

.product-description ul {
    list-style: none;
    padding: 0;
}

.product-description ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-description ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.order-notice {
    background: rgba(var(--primary-rgb), 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.order-notice p {
    margin: 0;
    color: var(--text-color);
}

.order-notice strong {
    color: var(--primary-color);
}

/* Order Form Styles */
.order-form-section {
    padding: 4rem 2rem;
    background: var(--bg-secondary);
}

.order-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.order-form h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(var(--text-rgb), 0.2);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(var(--text-rgb), 0.5);
}

.size-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.size-option {
    flex: 1;
    position: relative;
}

.size-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.size-option span {
    display: block;
    padding: 0.8rem;
    text-align: center;
    border: 2px solid rgba(var(--text-rgb), 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option input[type="radio"]:checked + span {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.payment-details {
    background: rgba(var(--primary-rgb), 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.payment-details h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.payment-details p {
    color: var(--text-color);
    margin: 0;
    opacity: 0.8;
}

.submit-order-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .product-hero-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding: 100px 1rem 2rem;
    }

    .product-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-details h1 {
        font-size: 2rem;
    }

    .order-form {
        padding: 2rem;
    }

    .size-options {
        flex-wrap: wrap;
    }

    .size-option {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

@media (max-width: 480px) {
    .product-hero {
        padding: 80px 1rem 1.5rem;
    }

    .product-details h1 {
        font-size: 1.8rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .order-form {
        padding: 20px 15px;
    }
}

/* Product Card Styles */
.products-grid {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.product-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 350px;
    max-width: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-details-btn {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-info h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0;
}

.product-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    margin-top: auto;
}

@media (max-width: 768px) {
    .product-card {
        width: 300px;
    }

    .product-image {
        height: 300px;
    }

    .product-info h3 {
        font-size: 1.2rem;
    }

    .product-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 280px;
    }

    .product-image {
        height: 280px;
    }
}

/* Products Hero Section Styles */
.products-hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    color: white;
    text-align: center;
    padding: 6rem 2rem 4rem;
    margin-top: 60px;
    overflow: hidden;
}

.products-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.products-hero .section-subtext {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .products-hero {
        padding: 4rem 1rem 2rem;
    }
    .products-hero h1 {
        font-size: 2.2rem;
    }
    .products-hero .section-subtext {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .products-hero {
        padding: 3rem 1rem 1.5rem;
    }
    .products-hero h1 {
        font-size: 1.5rem;
    }
    .products-hero .section-subtext {
        font-size: 0.95rem;
    }
}

/* Order Success Message Styles */
#order-success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 2rem;
    background: rgba(var(--primary-rgb), 0.08); /* Slightly more prominent background */
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 12px; /* Slightly larger border-radius */
    margin-top: 2rem;
    color: var(--text-color);
    opacity: 0; /* Start hidden for fade-in */
    transition: opacity 0.5s ease-in-out; /* Fade-in animation */
}

#order-success-message.visible {
    opacity: 1; /* Fade in when made visible by JS */
}

#order-success-message .fas {
    font-size: 3.5rem; /* Slightly larger icon */
    color: var(--primary-color);
    margin-bottom: 1.5rem; /* Increased space below icon */
}

#order-success-message h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem; /* Increased space below heading */
    font-size: 1.8rem; /* Slightly larger heading */
}

#order-success-message p {
    font-size: 1.1rem; /* Slightly larger text */
    line-height: 1.6;
    margin-bottom: 0.8rem; /* Increased space below paragraph */
}

/* T-shirt Ad Pop-up Styles */
.tshirt-ad {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 2000; /* Above everything else */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tshirt-ad.visible {
    opacity: 1;
}

.tshirt-ad .ad-content {
    position: relative;
    background: var(--background-color);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
}

.tshirt-ad img {
    display: block;
    max-width: 100%;
    max-height: 80vh; /* Limit image height */
    height: auto;
    border-radius: 8px;
}

.tshirt-ad .close-ad {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.tshirt-ad .close-ad:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Dark Mode Styles */
[data-theme="dark"] .tshirt-ad .ad-content {
    background: var(--dark-background-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .tshirt-ad .close-ad {
    background: rgba(255, 255, 255, 0.3);
    color: var(--text-color);
}

[data-theme="dark"] .tshirt-ad .close-ad:hover {
    background-color: rgba(255, 255, 255, 0.5);
}
/* No Events Message Styling */
.no-events-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.empty-calendar-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.3;
    filter: drop-shadow(0 0 8px rgba(74, 144, 226, 0.2));
}

.no-events-message p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

/* Dark mode adjustments */
[data-theme="dark"] .no-events-message {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .no-events-message {
        padding: 2rem 1rem;
    }
    
    .empty-calendar-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .no-events-message p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .no-events-message {
        padding: 1.5rem 1rem;
    }
    
    .empty-calendar-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .no-events-message p {
        font-size: 0.9rem;
    }
}/* Ho
me Events Section Styling */
.home-events {
    padding: 6rem 2rem;
    background: var(--background-color);
    text-align: center;
}

.home-events h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.home-events h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1rem;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.home-upcoming-events {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.view-all-events {
    margin-top: 3rem;
    text-align: center;
}

/* Responsive adjustments for home events */
@media (max-width: 768px) {
    .home-events {
        padding: 4rem 1rem;
    }
    
    .home-events h2 {
        font-size: 2rem;
    }
    
    .home-upcoming-events {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }
    
    .view-all-events {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .home-events {
        padding: 3rem 1rem;
    }
    
    .home-events h2 {
        font-size: 1.8rem;
    }
}/* View
 All Events Button (for backward compatibility) */
.view-all-events {
    text-align: center;
    margin-top: 50px;
    padding: 0 20px;
}

/* Make sure the button in home-events section is visible */
.home-events .see-all-projects {
    opacity: 1;
    transform: translateY(0);
}