/* General Styles */
* {
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-user-select: none; /* Chrome, Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Edge */
    user-select: none;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    
    
}

/* 2. Force box-sizing on every single element */
*, *::before, *::after {
    box-sizing: border-box;
}

input,
textarea,
a,
a * {
    user-select: text;
    pointer-events: auto;
}



img {
    pointer-events: none;
    -webkit-user-drag: none;
}


html {
    scroll-padding-top: 180px;
    scroll-behavior: smooth;
}

.responsive-logo {
    max-width: 100%; /* Scales the width relative to its container */
    max-height: 100%; /* Ensures it doesn’t exceed the container's height */
    height: auto;     /* Maintains the aspect ratio */
    display: block;   /* Prevents inline-block spacing issues */
    margin: 0 auto;   /* Centers the image */
}

p {
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center; 
    flex-wrap: wrap; 
    margin: 0;
    padding: 0;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 1.2rem;
  }

.nav-container {
    text-align: center;
    background: linear-gradient(to bottom, black, transparent);
    
}


.logo img {
    width: auto;
    height: 100px;
}

header nav ul li {
    margin: 10px;
}

header nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #e63946;
}

/* Hero Section */
#hero {
    height: 130vh; /* Default height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #2b2b2b, #121212);
    color: white;
    padding: 20px;
    margin-top: 25vh; /* Default top margin */
    transition: margin-top 0.3s ease; /* Smooth transition for margin changes */
}

/* Adjust top margin for smaller screens */
/* Small phones */
@media screen and (max-width: 480px) {
    header nav ul {
        font-size: 0.9rem;
    }

    #hero {
        margin-top: 18vh;
    }
}


/* Very small phones */
@media screen and (max-width: 375px) {
    header nav ul {
        font-size: 0.7rem;
    }

    #hero {
        margin-top: 15vh;
    }
}

/* Landscape phones (low height screens) */
@media screen and (max-height: 450px) and (orientation: landscape) {
    header nav ul {
        font-size: 0.8rem;
    }

    #hero {
        margin-top: 60vh; /* fixed, predictable */
    }

    header {
        padding: 6px 0;
    }

    .hero-image{
        height: auto; /* Maintain aspect ratio */
    }

    .logo img {
    width: auto;
    height: 50px;
    }
}


.hero-image {
    max-width: 70%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
    margin: 20px 0; /* Add spacing around the image */
    border-radius: 10px; /* Optional: Add rounded corners */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Optional: Add a shadow */
}

#hero h1 {
    font-size: 2.5em;
    margin: 0;
}

#hero p {
    font-size: 1.2em;
    margin: 10px 0;
}

.button {
    display: inline-block;
    background-color: #e63946;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #c31f35;
}

/* Section Styles */
section {
    padding: 50px 20px;
    text-align: center;
}

/* Events and Committee Layout */
#events-container, #committee-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 15px;
}

#events {
    position: relative; /* Ensure ::before is positioned relative to this element */
    z-index: 1; /* Ensure stacking context is set */
}



.blinking-text {
    animation: fade-in-out 2s infinite;
  }
  
  @keyframes fade-in-out {
    0% {
      color: white;
      opacity: 1;
    }
    50% {
      color: blue;
      opacity: 1;

/* Opening soon badge styling */
.event-card .opening-soon {
    display: inline-block;
    background: linear-gradient(90deg, #FFD54F 0%, #00E676 100%);
    color: #07120a;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    margin: 6px 0;
    -webkit-font-smoothing: antialiased;
    animation: mbs-pulse 2.8s ease-in-out infinite;
}

@keyframes mbs-pulse {
    0% { transform: translateY(0); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
    50% { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.26); }
    100% { transform: translateY(0); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
}

/* Make clickable cards show pointer and subtle hover lift */
.event-card[role="link"], .event-card[tabindex] {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.event-card[role="link"]:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* Coming soon badge (single, prominent) */
.coming-soon-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 12px auto;
}
.coming-soon-badge .coming-main {
    background: linear-gradient(90deg,#ffb86b 0%, #ffd54f 40%, #a1ff4a 100%);
    color: #0b0b08;
    padding: 8px 18px;
    border-radius: 28px;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transform: translateZ(0);
    animation: mbs-glow 2.6s infinite;
}
.coming-soon-badge .click-more {
    color: #dbe7c9;
    font-size: 0.85rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

@keyframes mbs-glow {
    0% { filter: drop-shadow(0 6px 14px rgba(255,181,77,0.12)); }
    50% { filter: drop-shadow(0 16px 34px rgba(161,255,74,0.18)); transform: translateY(-2px); }
    100% { filter: drop-shadow(0 6px 14px rgba(255,181,77,0.12)); transform: translateY(0); }
}
    }
    100% {
      color: greenyellow;
      opacity: 0.5;
    }

    50% {
        color: yellow;
        opacity: 1;
      }
  }
  

i {
    color: white;
    transition: transform 0.3s ease, color 0.3s ease;
}

i:hover {
    color: rgb(76, 78, 177);
}

h2 {
    font-size: 2.5rem;
}

.committee-card:hover {
    box-shadow: 0px 0px 5px 0px whitesmoke;
}

.committee-card {
    max-width: 200px;
    width: 100%;
    background: #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    color: #fff;

    /* KEY FIXES */
    display: flex;
    flex-direction: column;
    align-items: center;        /* horizontal centering */
    text-align: center;         /* text & icons centered */

    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.event-card {
    position: relative;
    max-width: 320px;
    background: #1f1f1f;
    justify-content: center;
    justify-items: center;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    color: #fff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Creating the animated border using a pseudo-element */
.event-card::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet);
    background-size: 400% 400%;
    border-radius: 10px;
    z-index: -1;
    animation: borderAnimation 2s infinite linear;
}

/* Keyframes for animating the gradient border */
@keyframes borderAnimation {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 100%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 0%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#eventsdone-container, #activities-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap; /* Allow cards to wrap to the next line if necessary */
    gap: 30px;
    padding: 20px;
}

@media (max-width: 700px) {
    .eventsdone-card, .activity-card {
        width: 100%;   /* stack on small screens */
    }
}

.eventsdone-card, .activity-card {
    min-width: 300px;
    max-width: 300px; /* Default width of the card */
    background: #1f1f1f;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    width: auto;
    color: #fff;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, max-width 0.5s ease;
    position: relative; /* Ensure the card's position can contain absolutely positioned elements */
    overflow: hidden; /* Hide overflow content */
}

.eventsdone-card:hover {
    box-shadow: 0px 6px 15px white; /* Enhance shadow on hover */
}

.activity-card:hover {
    box-shadow: 0px 6px 15px white; /* Enhance shadow on hover */
}

.hidden-description {
    opacity: 0;
    max-height: 0; /* Start with no height */
    overflow-y: hidden; /* Hide overflow initially */
    transition: opacity 0.3s ease, max-height 0.5s ease;
    font-size: 0.9rem;
    margin-top: 10px;
    color: #ccc;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: rgba(136, 136, 136, 0.5) rgba(241, 241, 241, 0); /* Transparent thumb and track for Firefox */
}

.eventsdone-card:hover .hidden-description, .activity-card:hover .hidden-description {
    opacity: 1;
    max-height: 350px; /* Set a fixed height */
    max-width:400px;
    overflow-y: scroll; /* Make content scrollable when it overflows */
    padding-right: 5px; /* Optional: add padding for scrollbar spacing */
}

/* --- Collapsed activity card behavior --- */
/* Let the activity card size itself based on the carousel/image height. Hide info until hover. */
.activity-card {
    /* keep width constraints but allow height to fit content (image) */
    display: block;
    padding: 0; /* remove extra padding so collapsed height equals image height */
    border-radius: 10px;
    overflow: hidden;
}

.activity-card .image-carousel {
    display: block;
    width: 100%;
    margin-bottom: 0;
}

.activity-card .image-track img,
.activity-card .image-carousel img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide textual info until hover */
.activity-card .event-info,
.activity-card .hidden-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
    padding: 0 12px; /* reduced horizontal padding for tighter spacing */
}

.activity-card:hover {
    box-shadow: 0px 6px 15px white;
}

.activity-card:hover .event-info,
.activity-card:hover .hidden-description {
    max-height: 800px;
    opacity: 1;
    padding-top: 8px; /* small top padding to separate from image */
}

/* Tighter typography inside revealed info */
.activity-card .event-info h3,
.event-card .event-info h3,
.eventsdone-card .event-info h3 {
    margin: 6px 0 4px;
    font-size: 0.8rem;
}

    /* Make the intro (first paragraph) inside activity cards bold */
    .activity-card .hidden-description > p:first-child {
        font-weight: 700;
        margin-bottom: 6px;
    }

.activity-card .event-info p,
.event-card .event-info p,
.eventsdone-card .event-info p {
    margin: 0;
    padding: 0;
}

/* Keep past-event cards behavior unchanged, but ensure their carousel still works */
.eventsdone-card .image-carousel {
    width: 100%;
}

/* Carousel container */
.image-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 8px;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

/* Image track */
.image-track {
    display: flex;
    transition: transform 0.4s ease;
    
}

.image-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    pointer-events: none;
}

/* Override global image sizing for activity cards so collapsed height matches image natural size */
.activity-card .image-carousel {
    aspect-ratio: auto; /* let image determine height */
}

.activity-card .image-track img {
    min-width: 100%;
    height: auto !important; /* allow natural image height */
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2;
}

.carousel-arrow.left {
    left: 6px;
}

.carousel-arrow.right {
    right: 6px;
}

/* Event info */
.event-info h3 {
    font-size: 1rem;
    margin: 4px 0 2px;
}

.event-date {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Hidden description */
.hidden-description {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    font-size: 0.85rem;
    margin-top: 4px;
}

.eventsdone-card:hover .hidden-description {
    opacity: 1;
    max-height: 180px;
    overflow-y: auto;
}

/* For Webkit browsers (Chrome, Safari) */
.hidden-description::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.hidden-description::-webkit-scrollbar-thumb {
    background-color: rgba(136, 136, 136, 0.5); /* Semi-transparent scrollbar thumb */
    border-radius: 10px; /* Rounded corners */
    border: 2px solid rgba(241, 241, 241, 0); /* Invisible border */
}

.hidden-description::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0); /* Invisible track */
    border-radius: 10px; /* Rounded corners */
}

.event-image {
    width: 100%;            /* Make the image take up the full width of its container */
    height: auto;           /* Maintain the aspect ratio */
    object-fit: cover;      /* Ensures the image covers the container without distortion */
    max-height: 400px;      /* Optional: limit the height to prevent it from becoming too large */
}



/* Teams Section */
#teams-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
    justify-items: center;
    justify-content: center;
}

iframe {
    .goog-logo-link { display: none; }
    .goog-inline-download-link { display: none; } 
    /* Attempt to hide zoom controls (adjust class names as needed) */
    .goog-zoom-in, .goog-zoom-out { display: none; } 
  }
.overlay {
    display: none;
    visibility: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    border-radius: inherit; /* Inherit border-radius from iframe */
}

.team-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid #2e2e2e;
    background: #1f1f1f;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.team-name-container {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    
}

.team-members-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 150px;
    height: 220px;           /* Base height */
    text-align: center;
    background: #2e2e2e;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    
    /* 1. Add 'height' to the transition list */
    /* 2. Added overflow: hidden to prevent content jumping during the stretch */
    transition: transform 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
    overflow: hidden; 
}

.member-card:hover {
    transform: translateY(-5px); /* Optional: small lift looks good with height increase */
    box-shadow: 0px 0px 10px 2px rgba(245, 245, 245, 0.3); /* Adjusted for a softer glow */
    height: 250px;               /* Final height */
}

.member-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.member-card p {
    margin: 5px 0;
}

/* Hover Link Visibility */
.member-card a,
.committee-card a {
    display: inline-flex;              /* key fix */
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;              /* prevent ghost clicks */
    text-decoration: none;
    color: #0a66c2;
    font-weight: bold;
    transition: opacity 0.25s ease, transform 0.25s ease;
}


.member-card:hover a,
.committee-card:hover a {
    visibility: visible; /* Make the link visible */
    opacity: 1; /* Make it fully opaque */
    color: rgb(132, 124, 206); /* Optional color change */
}

.fa-brands.fa-linkedin {
    font-size: 20px; /* Adjust the icon size as needed */
    margin-right: 5px; /* Add some spacing after the icon */
}

.brochure-link {
    color: #87cefa; /* Light blue color */
    text-decoration: underline; /* Optional: to emphasize it's a link */
    font-weight: bold; /* Optional: make it stand out */
    transition: color 0.3s ease; /* Smooth color change on hover */
}

.brochure-link:hover {
    color: #add8e6; /* Slightly lighter blue on hover */
}

.mbs-logo {
    width: 150px; /* Adjust size */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto 10px; /* Center the logo and add spacing below */
    border-radius: 10px; /* Optional: Rounded corners */
    transform: scale(1.4);
    transition: transform 0.3s ease; /* Smooth scaling on hover */
}

/* Testimonials Section */
/* Testimonials Section */
.testimonials {
    text-align: center;
    padding: 20px;
    background: #2e2e2e;
    margin: 30px;
    border-radius: 10px;
}

.testimonials h3 {
    font-size: 30px;
    margin-bottom: 20px;
    color: white;
}

/* Carousel wrapper */
.testimonial-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

/* Track */
.testimonial-track {
    display: flex;
    transition: transform 0.4s ease;
}

/* Each slide */
.testimonial-box {
    min-width: 100%;              /* 🔑 REQUIRED */
    box-sizing: border-box;
    padding: 20px;
    background: #202020;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

/* Text */
.testimonial-text {
    font-size: 0.95rem;           /* readable */
    line-height: 1.6;
    color: white;
    margin-bottom: 10px;
}

.testimonial-author {
    font-size: 0.85rem;
    font-weight: bold;
    color: #ccc;
}

/* Arrows */
.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
}

.testimonial-arrow.left { left: 10px; }
.testimonial-arrow.right { right: 10px; }

/* Mobile optimization */
@media (max-width: 600px) {
    .testimonials {
        margin: 15px;
    }

    .testimonial-text {
        font-size: 0.6rem;
    }
}

.contactinfo{
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: 2rem;
    gap: 20px;

}

#contact{
    background-color: #1f1f1f;
    border-radius: 10px;
    padding: 20px;
}

/* Footer */
footer.crafted {
    position: static; /* flow with document */
    margin: 20px auto; /* spacing and centered block */
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 12px 16px;
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    text-align: center; /* center text */
    max-width: 100%;
}

footer {
    text-align: center;
    background: #1f1f1f;
    padding: 20px;
    color: #cccccc;
}




