* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #d4d4d4;
}

/* Navigation Bar Styling */
.navbar {
    background-color: #b9b5b8;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: white;

    position: fixed;    /* stick to top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;      /* stay above content */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    padding-top: 80px;  /* roughly navbar height */
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-item {
    color: #333;
    text-decoration: none;
    padding: 14px 16px;
}

.nav-item:hover {
    background-color: #ddd;
    color: black;
    border-radius: 4px;
}

.navbar {
    opacity: 0;
    transform: translateY(-20px);
    transition: 0.6s ease;
}

.navbar.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Hamburger button – hidden on desktop */
/* Hamburger hidden on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: #333;
    border-radius: 999px;
    transition: 0.3s ease;
}

/* Open = X icon */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile dropdown */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #b9b5b8;
        flex-direction: column;

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;

        transition: 0.3s ease;
    }

    .nav-links.show {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        padding: 12px 0;
        text-align: center;
    }
}



/* Mobile styles */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 16px;
    }

    .nav-links {
        position: absolute;
        top: 60px;              /* just below navbar */
        right: 0;
        background-color: #b9b5b8;
        flex-direction: column;
        width: 100%;

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    /* Animated dropdown when .show is added */
    .nav-links.show {
        max-height: 500px;      /* enough space for all links */
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;          /* show hamburger on mobile */
    }
}


.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 20px;
}

.nav-left {
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero_section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Images/Research night.jpeg') center/cover no-repeat;
    padding: 120px 0;
    color: white;
}


/* Statistics Section */
.statistics_section {
    padding: 40px 20px;
    color: #1e293b;
    background-color: #ffffff;
}

.statistics_section .section_container {
    display: flex;
    justify-content: center;
}

/* Mission/Values Section */
.mission_section {
    padding: 60px 20px;
    color: #1e293b;
    background-color: #ffffff;
}

.mission_section .section_title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #762d78;
}

.mission_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.mission_card {
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission_card:hover {
    transform: translateY(-8px);
}

.mission_image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

.mission_card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #762d78;
    margin-bottom: 12px;
}

.mission_card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5a5a5a;
}

@media (max-width: 768px) {
    .mission_section {
        padding: 50px 16px;
    }

    .mission_section .section_title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .mission_grid {
        gap: 25px;
    }

    .mission_image {
        height: 180px;
        margin-bottom: 15px;
    }

    .mission_card h3 {
        font-size: 1.2rem;
    }

    .mission_card p {
        font-size: 0.9rem;
    }
}

.section_container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

.hero_container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.text_section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.text_section h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.text_section p {
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.5;
}

/* Buttons */
.hero_section_button {
    display: flex;
    gap: 15px;
}

.button {
    background-color: #762d78;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}

.button:hover {
    background-color: #5a1f5c;
}

/* Text Colour */
.section_container {
    padding: 40px 20px;
    color: #ffffff;
}

/* Box colour - removed */

.text_section {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0;
}

/* About Section */
.about_us {
    padding: 80px 20px;
    color: #1e293b;
    background-color: #f5f5f5;
}

.about_us .section_title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #762d78;
}

.section_container {
    max-width: 1100px;
    margin: 0 auto;
}

.about_us .section_container {
    max-width: 100%;
    padding: 0 20px;
}

.about_container {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.text_section {
    flex: 0 1 450px;
    max-width: 450px;
}

.about_intro {
    color: #333333;
    font-size: 1.3rem;
    margin: 0 0 25px 0;
    line-height: 1.6;
    font-weight: 500;
    text-align: left;
}

.about_main_text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 20px;
    font-weight: 400;
    text-align: left;
}

.about_secondary_text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 0;
    font-weight: 400;
    text-align: left;
}

.about_highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border-left: none;
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.highlight_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.highlight_number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #762d78;
    margin-bottom: 8px;
}

.highlight_number::after {
    content: '+';
}

.highlight_label {
    font-size: 0.85rem;
    color: #5a5a5a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Right-side image */
.image_section {
    flex: 0 1 450px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.image_wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.about_img {
    max-width: 550px;
    width: 100%;
    border-radius: 16px;
    transition: transform 0.3s ease;
    display: block;
    position: relative;
    z-index: 2;
}

.about_img:hover {
    transform: scale(1.02);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .about_us {
        padding: 60px 20px;
    }
    
    .about_us .section_title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .about_container {
        gap: 30px;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    
    .text_section {
        max-width: 100%;
        flex: 1 1 100%;
    }
    
    .about_intro {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .about_main_text {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .about_secondary_text {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .about_highlights {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
        margin-top: 20px;
        max-width: 100%;
    }
    
    .highlight_item {
        padding: 15px 10px;
    }
    
    .highlight_number {
        font-size: 1.5rem;
    }
    
    .highlight_label {
        font-size: 0.75rem;
    }
    
    .image_section {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
    
    .image_wrapper {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .about_us {
        padding: 40px 15px;
    }
    
    .about_us .section_title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .about_intro {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .about_main_text {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .about_secondary_text {
        font-size: 0.85rem;
    }
    
    .about_highlights {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 15px;
    }
    
    .highlight_number {
        font-size: 1.3rem;
    }
    
    .highlight_label {
        font-size: 0.7rem;
    }
}

/* Values Grid */

.values_section {
    padding: 60px 20px;
    color: #1e293b;
    background-color: #f5f5f5;
}

.values_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Values card wrapper for 3D flip perspective */
.values_card_wrapper {
    perspective: 1000px;
    cursor: pointer;
    height: 220px;
}

/* Individual values card with 3D flip */
.values_card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-style: preserve-3d;
}

.values_card_wrapper.flipped .values_card {
    transform: rotateY(180deg);
}

/* Front of values card */
.values_card_front {
    background: linear-gradient(135deg, rgba(118, 45, 120, 0.8) 0%, rgba(118, 45, 120, 0.6) 100%);
    border: 2px solid rgba(224, 216, 255, 0.4);
    padding: 30px 20px;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    backface-visibility: hidden;
    transition: 0.3s;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.values_card_front h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
}

.values_card_wrapper:hover .values_card_front {
    background: linear-gradient(135deg, rgba(118, 45, 120, 0.9) 0%, rgba(118, 45, 120, 0.7) 100%);
    border-color: rgba(224, 216, 255, 0.6);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Back of values card */
.values_card_back {
    background: linear-gradient(135deg, rgba(118, 45, 120, 0.7) 0%, rgba(118, 45, 120, 0.5) 100%);
    border: 2px solid rgba(224, 216, 255, 0.3);
    padding: 30px 20px;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    position: absolute;
    top: 0;
    left: 0;
}

.values_card_back p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ffffff;
}

/* Team Section */
.team_section {
    padding: 60px 20px;
    color: #1e293b;
    background-color: #ffffff;
}

.team_section .section_title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #762d78;
}

/* Sub-headings: T3, Officers, General Executives */
.team_group_title {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
    color: #762d78;
}

/* Grid layout for team cards */
.team_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    justify-items: center;   /* centers cards in each column */
    align-items: stretch;
    margin-bottom: 10px;
}

/* Individual team card */
.team_card {
    width: 100%;
    max-width: 280px;
    background-color: #f0f0f0;
    border-radius: 16px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: 4px solid rgba(118, 45, 120, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

/* Team photo */
.team_photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid rgba(255, 255, 255, 0.7);
}

/* Name + role */
.team_name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: #1e293b;
}

.team_role {
    font-size: 0.95rem;
    font-weight: 600;
    color: #762d78;
    margin-bottom: 8px;
}

/* Bio text */
.team_bio {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
    color: #1e293b;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .team_section {
        padding: 50px 16px;
    }

    .team_group_title {
        margin-top: 28px;
        margin-bottom: 12px;
    }

    .team_card {
        max-width: 320px;
    }
}


/* Sponsor Section */
/* Interviews Section */
.interviews_section {
    padding: 60px 20px;
    color: #1e293b;
    background-color: #f5f5f5;
}

.interviews_section .section_title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #762d78;
}

.interviews_description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #5a5a5a;
}

/* Interviews Grid */
.interviews_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Interview Card */
.interview_card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interview_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(118, 45, 120, 0.2);
}

.interview_video {
    position: relative;
    width: 100%;
    background-color: #000;
    overflow: hidden;
    margin-bottom: 0;
}

.interview_video iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 400px;
}

@media (max-width: 768px) {
    .interview_video iframe {
        min-height: 300px;
    }
}

.interview_content {
    padding: 25px;
}

.interview_content h3 {
    font-size: 1.3rem;
    color: #762d78;
    margin-bottom: 12px;
    line-height: 1.4;
}

.interview_content p {
    font-size: 0.95rem;
    color: #5a5a5a;
    line-height: 1.6;
    margin-bottom: 18px;
}

.interview_link {
    color: #762d78;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
}

.interview_link:hover {
    color: #5a1f5c;
    text-decoration: underline;
}

/* Sponsors Ribbon Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.sponsors_ribbon {
    background: linear-gradient(90deg, #ffffff 0%, #f5f5f5 50%, #ffffff 100%);
    padding: 40px 20px;
    overflow: hidden;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.ribbon_container {
    max-width: 100%;
    overflow: hidden;
}

.ribbon_track {
    display: flex;
    gap: 60px;
    animation: scroll-left 60s linear infinite;
    width: fit-content;
}

.ribbon_item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 80px;
}

.ribbon_item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: none;
}

.ribbon_item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sponsors_ribbon {
        padding: 30px 10px;
    }
    
    .ribbon_track {
        gap: 40px;
        animation: scroll-left 40s linear infinite;
    }
    
    .ribbon_item {
        min-width: 120px;
        height: 60px;
    }
}

.sponsor_section {
    padding: 60px 20px;
    color: #1e293b;
    background-color: #ffffff;
}

.sponsor_section .section_title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #762d78;
}

.sponsor_description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #5a5a5a;
}

/* Sponsor Grid */
.sponsor_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* Individual sponsor card */
.sponsor_card {
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor_card:hover {
    transform: translateY(-8px);
}

/* Sponsor image container */
.sponsor_image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

.sponsor_image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.sponsor_card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #762d78;
    margin-bottom: 12px;
}

.sponsor_card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5a5a5a;
}

/* Mobile Responsiveness for Sponsors */
@media (max-width: 768px) {
    .sponsor_grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 30px;
    }
    
    .sponsor_image {
        height: 150px;
    }
}

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

/* Merch Section */
.merch_section {
    padding: 60px 20px;
    color: #1e293b;
    background-color: #f5f5f5;
}

.merch_section .section_title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #762d78;
}

.merch_description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #5a5a5a;
}

.merch_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.merch_card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.merch_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(118, 45, 120, 0.2);
}

.merch_image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background-color: #e8e8e8;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.merch_badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #762d78;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.merch_info {
    padding: 20px;
}

.merch_info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #762d78;
    margin-bottom: 8px;
}

.merch_item_description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5a5a5a;
    margin-bottom: 12px;
}

.merch_price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.merch_cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.merch_cta h3 {
    font-size: 1.6rem;
    color: #762d78;
    margin-bottom: 15px;
}

.merch_cta p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #5a5a5a;
    max-width: 600px;
    margin: 0 auto 25px;
}

@media (max-width: 768px) {
    .merch_grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .merch_image {
        height: 220px;
    }
}

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

/* Contact Section */
.contact_section {
    padding: 60px 20px;
    color: #ffffff;
    background-color: #d4d4d4;
}

.contact_section .section_title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.contact_description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #5a5a5a;
}

/* Grid layout */
.contact_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: start;
}

/* Contact info text */
.contact_info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #5a5a5a;
}

.contact_info p {
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.5;
    color: #5a5a5a;
}

/* Contact form */
.contact_form {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form_group input,
.form_group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
}

.contact_button {
    background-color: #762d78;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}

.contact_button:hover {
    background-color: #5a1f5c;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.slide {
    display: flex;
    gap: 10px;
    overflow: hidden;
}

.item {
    min-width: 200px;
    padding: 20px;
    background: white;
    border-radius: 10px;
}

/* Gallery Section */
.gallery_section {
    padding: 60px 20px;
    color: #1e293b;
    background-color: #ffffff;
}

.gallery_section .section_title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #762d78;
}

.gallery_description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #5a5a5a;
}

.gallery_slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 30px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(118, 45, 120, 0.15);
    background-color: #000;
}

.slide {
    display: flex;
}

.item {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.item:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.image_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
    z-index: 5;
}

.item:hover .image_overlay {
    transform: translateY(0);
}

.image_overlay p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* Prev / Next Buttons */
.gallery_btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(118, 45, 120, 0.8);
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery_btn:hover {
    background: rgba(118, 45, 120, 1);
    transform: translateY(-50%) scale(1.1);
}

.gallery_btn.prev {
    left: 20px;
}

.gallery_btn.next {
    right: 20px;
}

/* Gallery Dots */
.gallery_dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
}

.gallery_dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d4d4d4;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery_dot.active {
    background-color: #762d78;
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(118, 45, 120, 0.2);
}

.gallery_dot:hover {
    background-color: #b9b5b8;
}

/* Mobile Gallery */
@media (max-width: 768px) {
    .gallery_section {
        padding: 40px 20px;
    }
    
    .gallery_section .section_title {
        font-size: 1.8rem;
    }
    
    .gallery_slider {
        max-width: 100%;
        margin: 0 0 20px 0;
    }
    
    .item {
        height: 300px;
    }
    
    .gallery_btn {
        padding: 10px 13px;
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
    
    .gallery_btn.prev {
        left: 12px;
    }
    
    .gallery_btn.next {
        right: 12px;
    }
    
    .image_overlay {
        padding: 20px 15px 15px;
    }
    
    .image_overlay p {
        font-size: 1rem;
    }
}

/* Upcoming Events Section */
#events {
    padding: 60px 20px;
    color: #1e293b;
    background-color: #f5f5f5;
    display: block !important;
}

#events .section_title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #762d78;
}

.events_description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #5a5a5a;
}

.events_calendar {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar_controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar_month {
    font-size: 1.5rem;
    color: #762d78;
    font-weight: 700;
    text-align: center;
    flex: 1;
}

.calendar_btn {
    background-color: #762d78;
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar_btn:hover {
    background-color: #5a1f5c;
    transform: scale(1.1);
}

.calendar_grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.calendar_header {
    text-align: center;
    font-weight: 700;
    color: #762d78;
    padding: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.calendar_day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #f9f9f9;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333333;
    position: relative;
    min-height: 60px;
    font-size: 1rem;
}

.calendar_day.empty {
    background-color: transparent;
    cursor: default;
}

.calendar_day:not(.empty):hover {
    background-color: #e8e0eb;
    border-color: #762d78;
}

/* Events List */
.events_list {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.events_list h3 {
    font-size: 1.5rem;
    color: #762d78;
    margin-bottom: 25px;
    font-weight: 700;
}

.event_item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.event_item:last-child {
    border-bottom: none;
}

.event_item:hover {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding-left: 30px;
}

.event_date {
    font-weight: 700;
    color: #762d78;
    white-space: nowrap;
    font-size: 1rem;
    min-width: 70px;
}

.event_details h4 {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 8px;
    font-weight: 700;
}

.event_details p {
    font-size: 0.95rem;
    color: #5a5a5a;
    line-height: 1.5;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    #events {
        padding: 50px 15px;
    }
    
    .events_calendar {
        padding: 25px;
    }
    
    .calendar_month {
        font-size: 1.3rem;
    }
    
    .calendar_btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .calendar_grid {
        gap: 6px;
    }
    
    .calendar_day {
        min-height: 55px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    #events {
        padding: 40px 15px;
    }
    
    #events .section_title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .events_description {
        margin: 0 auto 30px;
        font-size: 0.95rem;
    }
    
    .events_calendar {
        padding: 20px;
        border-radius: 10px;
    }
    
    .calendar_controls {
        margin-bottom: 20px;
    }
    
    .calendar_month {
        font-size: 1.2rem;
    }
    
    .calendar_btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .calendar_grid {
        gap: 5px;
    }
    
    .calendar_header {
        padding: 8px 2px;
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    .calendar_day {
        min-height: 45px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .events_list {
        padding: 20px;
        margin-top: 20px;
    }
    
    .events_list h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .event_item {
        gap: 15px;
        padding: 15px;
    }
    
    .event_item:hover {
        padding-left: 20px;
    }
    
    .event_date {
        font-size: 0.95rem;
        min-width: 65px;
    }
    
    .event_details h4 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .event_details p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #events {
        padding: 30px 12px;
    }
    
    #events .section_title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .events_description {
        margin: 0 auto 20px;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .events_calendar {
        padding: 12px;
    }
    
    .calendar_controls {
        margin-bottom: 15px;
        gap: 10px;
    }
    
    .calendar_month {
        font-size: 0.95rem;
    }
    
    .calendar_btn {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    .calendar_btn:hover {
        transform: scale(1.05);
    }
    
    .calendar_grid {
        gap: 3px;
        width: 100%;
        overflow: hidden;
    }
    
    .calendar_header {
        padding: 4px 1px;
        font-size: 0.6rem;
        font-weight: 600;
        letter-spacing: -0.5px;
        line-height: 1.2;
    }
    
    .calendar_day {
        min-height: 35px;
        font-size: 0.75rem;
        border-radius: 3px;
        padding: 0;
        aspect-ratio: 1;
    }
    
    .calendar_day:not(.empty):hover {
        background-color: #e8e0eb;
    }
    
    .events_list {
        padding: 15px;
        margin-top: 15px;
    }
    
    .events_list h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .event_item {
        gap: 12px;
        padding: 12px;
        flex-wrap: wrap;
    }
    
    .event_item:hover {
        background-color: transparent;
        padding-left: 12px;
    }
    
    .event_date {
        font-size: 0.9rem;
        min-width: 55px;
    }
    
    .event_details {
        flex: 1;
        min-width: 0;
    }
    
    .event_details h4 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    
    .event_details p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Scale Images Inside the Frame */
.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* fill the box neatly */
    border-radius: 12px;
}

/* Footer */
.footer {
    background-color: #4a004f; /* darker purple for contrast */
    color: #ffffff;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer_container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
}

/* Footer Sections */
.footer_section h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer_links {
    list-style: none;
    padding: 0;
}

.footer_links li {
    margin-bottom: 8px;
}

.footer_links a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

.footer_links a:hover {
    color: #e0b3ff;
}

/* Brand Area */
.footer_brand {
    max-width: 270px;
}

.footer_logo {
    width: 60px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.footer_title {
    margin: 5px 0;
    font-size: 1.4rem;
}

.footer_subtext {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Social Icons */
.footer_socials {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.social_icon {
    font-size: 1.6rem;
    text-decoration: none;
    color: #ffffff;
    transition: 0.3s;
}

.social_icon:hover {
    color: #e0b3ff;
}

/* Footer Bottom Bar */
.footer_bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
    border-top: 1px solid #ffffff33;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer_container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

.social_img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin: 0 4px;   /* reduced from 8px → closer icons */
    transition: 0.3s;
}

.social_img:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

/* =========================
   CONTACT SECTION
   ========================= */

.contact_section {
    padding: 60px 20px;
    color: #762d78;
}

.contact_section .section_title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #762d78;
}

.contact_text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    font-size: 1.05rem;
    color: #762d78;
}

/* Form styling */
.contact_form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input_group {
    display: flex;
    flex-direction: column;
}

.input_group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #762d78;
}

.input_group input,
.input_group textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: none;
    background-color: #ffffffdd;
    font-size: 1rem;
}

.input_group input:focus,
.input_group textarea:focus {
    outline: 2px solid #b88ae0;
}

/* Submit button */
.submit_button {
    background-color: #762d78;
    color: #ffffff;
    width: fit-content;
    margin: 10px auto 0;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.submit_button:hover {
    background-color: #5a1f5c;
    transform: translateY(-2px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact_form {
        width: 90%;
    }
}

/* Ensure mobile dropdown is positioned above content and appears below navbar */
@media (max-width: 768px) {
    .nav-links {
        top: 100% !important;
        left: 0 !important;
        z-index: 1001 !important;
        width: 100% !important;
    }
    /* Allow the absolutely-positioned dropdown to extend outside the navbar */
    .navbar {
        overflow: visible !important;
    }
}