/* Hard stop any accidental horizontal scroll on mobile */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Bootstrap rows use negative margins; ensure your custom wrappers don't create overflow */
#seminar-list {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Prevent long titles/chips from stretching width */
.seminar-title,
.seminar-info {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Chips should wrap and never force container wider */
.seminar-bottom {
  justify-content: center;
  flex-wrap: wrap;
}

.chip {
  max-width: 100%;
  white-space: normal;
}


nav .navbar-nav li a,
nav .navbar-text a {
    color: white !important;
}

/* Carousel for images of seminar/workshops/scicom */
.carousel-custom-width {
    width: auto; /* Maintain aspect ratio */
    max-width: 60%; /* Adjust as needed */
    margin: 0 auto; /* Center the image horizontally */
}

#carouselExampleRide .carousel-control-prev-icon,
#carouselExampleRide .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

/* Welcoming Speech Carousel Styles */
#welcomeCarousel .carousel-control-prev,
#welcomeCarousel .carousel-control-next {
    width: 5%;
    background-color: rgba(0, 0, 0, 0.2);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    border-radius: 50%;
    height: 50px;
    width: 50px;
}

#welcomeCarousel .carousel-control-prev-icon,
#welcomeCarousel .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

#welcomeCarousel .carousel-indicators {
    position: relative;
    margin-top: 20px;
}

#welcomeCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

#welcomeCarousel .card {
    height: 100%;
}

#welcomeCarousel .card-body {
}

/* End of Speech*/


.hover-zoom {
    transition: transform 0.3s ease-in-out;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.timeline-container {
    background: linear-gradient(135deg, #040001, #360f3c);
    border-radius: 10px;
    padding: 3.5rem;
}


/*THIS IS RANDOM */

.header-gradient {
    background: linear-gradient(0deg, #040001, #360f3c);
}

.footer-gradient {
    background: linear-gradient(135deg, #040001, #360f3c);
}

.hero-section {
    background: linear-gradient(180deg, #040001, #360f3c);
    color: white;
    padding: 80px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.hero-cta .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.hero-image {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.countdown-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 0 10px;
    min-width: 100px;
    text-align: center;
}

.countdown-item span {
    font-size: 2.5rem;
    font-weight: bold;
}

.countdown-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        padding-top: 1em;
    }

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

    .hero-cta .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .countdown-item {
        min-width: 80px;
        padding: 10px;
    }

    .countdown-item span {
        font-size: 1.8rem;
    }
}

@keyframes breathing {
    0% {
        filter: invert(0%);
    }
    50% {
        filter: invert(100%);
    }
    100% {
        filter: invert(0%);
    }
}

.breathing {
    animation: breathing 2s infinite;
}

.pxn-5 {
    padding-left: 5em;
    padding-right: 5em;
}

.margin-auto {
    margin: 0 auto;
}

.py-6 {
    padding-top: 6em;
    padding-bottom: 6em;
}

.box-caption {
    background-color: #002B36;
    color: white;
    width: 100%;
    height: 200px;
    padding-top: 2em;
}

.view-fix {
    min-height: calc(100vh - 140px);
}

.bold {
    font-weight: bold;
}

.rem-12 {
    width: 12rem;
}

a {
    text-decoration: none;
}

.px-10em {
    padding-left: 10em;
    padding-right: 10em;
}

.no-border-color {
    border-color: rgba(255, 255, 255, 0) !important;
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
}

.navbar-shadow {
    box-shadow: 0 4px 8px -2px rgba(128, 128, 128, 0.76);
}

.seminar-list-container {
    width: 25%;
}

.img-about-us {
    max-height: 400px;
}

.zoom-effect-container {
    overflow: hidden;
}

.zoom-effect-container img {
    transition: transform 0.3s ease;
}

.zoom-effect-container img:hover {
    transform: scale(1.1);
}

.title-big {
    font-size: xxx-large;
}

.border-cart {
    border-style: solid;
    border-width: 2px;
    border-color: grey;
}

.checkout {
    width: 70%;
}

.checkout-font-size {
    font-size: medium;
}

.no-margin-bt {
    margin-bottom: 0;
}

.border-checkout {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgba(78, 78, 78, 0.18);
    width: 80%;
    justify-content: left;
    margin-bottom: 1em
}

.border-instruction {
    border-width: 1px;
    border-style: solid;
    border-color: rgba(78, 78, 78, 0.18);
    padding-left: 1.2em;
    padding-top: 1em;
}

.media-icons {
    justify-content: flex-end;
}

/* About Us Page Styles *//* About Us Page Styles */

/* Image Banner Styles */
.image-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-height: 400px;
    overflow: hidden;
}

.image-item {
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

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

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

.image-item.large {
    width: 300px;
    height: 300px;
}

.image-item.medium {
    width: 200px;
    height: 200px;
}

.image-item.small {
    width: 150px;
    height: 150px;
}

/* Contact Pill Styles */
.contact-pill {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    margin-bottom: 10px;
}

.contact-pill:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-pill {
    background-color: #25D366;
    color: white;
}

.email-pill {
    background-color: #0078D4;
    color: white;
}

.contact-icon {
    font-size: 24px;
    margin-right: 15px;
}

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

.contact-info strong {
    font-size: 16px;
    line-height: 1.2;
}

.contact-info span {
    font-size: 14px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .image-banner {
        max-height: none;
    }

    .image-item.large,
    .image-item.medium,
    .image-item.small {
        width: calc(50% - 5px);
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 576px) {
    .contact-pill {
        width: 100%;
    }
}

/* */

.contact-group {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
}

.aboutus-contact-container {
    display: flex;
    flex-direction: row;
    margin-left: 0.5em;
    margin-right: 0.5em;
    background: rgba(220, 220, 220, 0.3);
    backdrop-filter: blur(7.5px);
    align-items: center;
    border-radius: 100px;
    color: black;
}

.contact-details {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 5px;
    margin-right: 1em;
    padding-top: 2px;
    padding-bottom: 2px;
}

.contact-details p {
    margin-bottom: 0;
}

.icon-dec {
    vertical-align: middle;
    height: 3em;
    border-radius: 100px;
    padding: 0.5em;
}

.card-welcoming {
    background-color: #f8f9fa; /* Light gray background */
}

.card-welcoming .card-body {
    padding: 2rem;
}

.card-welcoming img {
    border: 5px solid #fff; /* White border around the image */
}

.card-text {
    font-size: 1rem;
    line-height: 1.6;
}

.welcome-container {
    margin: 0 25em;
}

/* Accordion Styles */

.custom-accordion .accordion-button::after {
    /*
      By default, Bootstrap uses an SVG background-image.
      We override it with the same SVG but a white fill (or choose another color).
      fill='%23fff' = #fff in hex, URL-encoded.
    */
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    /* Optionally adjust the position/size if desired */
    background-size: 1rem;
    background-repeat: no-repeat;
    margin-left: auto; /* Keeps the arrow on the right side */
}

.accordion-item .accordion-body {
    word-wrap: break-word;
    text-align: left;
}

.accordion-body ul {
    list-style-type: disc;
    padding-left: 20px;
}

.qrcode-img {
    max-width: 80%;
    height: auto;
}


/* Remove the fixed flex properties */
.silver-sponsor {
    /* No need for flex properties here */
}

/* 1) Base card: flex container, center the logo */
.sponsor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    padding: 1rem; /* space around logo */
    overflow: hidden;
    /* remove any padding-top / aspect-ratio hack here */
}

/* 2) Tier-specific card heights */
.platinum-sponsor .sponsor-card {
    height: 140px;
}

.gold-sponsor .sponsor-card {
    height: 120px;
}

.silver-sponsor .sponsor-card {
    height: 80px;
}

/* 3) Tier-specific logo sizing */
.platinum-sponsor .sponsor-logo {
    max-width: 95%;
    max-height: 95%;
}

.gold-sponsor .sponsor-logo {
    max-width: 75%;
    max-height: 75%;
}

.silver-sponsor .sponsor-logo {
    max-width: 50%;
    max-height: 50%;
}

/* 4) Preserve logo aspect ratio */
.sponsor-logo {
    width: auto;
    height: auto;
    object-fit: contain;
}


/* Adjust sponsor video iframe */
.sponsor-video iframe {
    width: 100%;
    height: auto;
}

/* Limit the height of the ads section images */
#partner-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 300px;
}

/* Ensure the close button is above other elements */
#partner-section .btn-close {
    z-index: 10;
}


@media (min-width: 576px) {
    .qrcode-img {
        max-width: 300px;
    }
}

@media (min-width: 992px) {
    .qrcode-img {
        max-width: 200px;
    }
}


@media only screen and (max-width: 1200px) {

    .hero-image {
        padding-top: 1em;
    }

    .px-10em {
        padding-left: 2em;
        padding-right: 2em;
    }

    .checkout {
        width: 80%;
    }

    .welcome-container {
        margin: 0 15em;
    }

    .carousel-custom-width {
        max-width: 70%; /* Adjust as needed */
    }
}


@media only screen and (max-width: 1000px) {
    .mt-r-3 {
        margin-top: 2em;
    }

    .welcome-container {
        margin: 0 15em;
    }

}

@media only screen and (max-width: 746px) {

    .contact-group {
        flex-direction: column;
        align-items: center;
    }

    .aboutus-contact-container {
        width: fit-content;
        height: fit-content;
        margin-bottom: 1em;
    }

}

@media only screen and (max-width: 600px) {
    .carousel-custom-width {
        max-width: 100%; /* Adjust as needed */
    }

    .pxn-5 {
        padding-left: 2em;
        padding-right: 2em;
    }

    .pad-phone {
        padding-left: 2em;
        padding-right: 2em;
    }

    .border-cart {
        border-width: 0;
        text-align: center;
    }

    .fix-ul {
        padding-left: 0 !important;
    }

    .checkout {
        width: 100%;
        padding-left: 1em;
        padding-right: 1em;
    }

    .media-icons {
        justify-content: center;
        align-content: center;
        margin: 0 auto;
    }

    .contact-group {
        flex-direction: column;
        align-items: center;
    }

    .aboutus-contact-container {
        width: fit-content;
        height: fit-content;
        margin-bottom: 1em;
    }

    .welcome-container {
        margin: 0 0em;
    }

    .accordion-body iframe {
        height: 400px;
    }

    .timeline-container {
        padding: 1.5rem;
    }


    #timeline-section .position-relative {
        height: 180px;
    }

}


/* =========================
   Premium Timeline UI
   ========================= */

.timeline-shell {
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.00));
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.timeline-scroll {
    max-height: 650px; /* keep your scroll behavior */
    overflow-y: auto;
    padding: 8px 8px 8px 4px;
}

/* day grouping */
.timeline-day {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.timeline-day-badge {
    position: sticky;
    top: 10px;
    align-self: start;
    border-radius: 16px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.timeline-day-dow {
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    opacity: 0.7;
}

.timeline-day-date {
    font-weight: 900;
    font-size: 1.35rem;
    line-height: 1.1;
    margin-top: 4px;
}

.timeline-day-year {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 4px;
}

/* events column: vertical line */
.timeline-events {
    position: relative;
    padding-left: 26px;
}

.timeline-events::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

/* timeline cards */
.timeline-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 14px;
}

.timeline-dot {
    position: absolute;
    left: 2px;
    top: 22px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    border: 3px solid rgba(13, 110, 253, 0.85); /* bootstrap primary-ish */
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.timeline-card-body {
    margin-left: 0;
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.timeline-card:hover .timeline-card-body {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

/* top row: badge + time pill */
.timeline-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.timeline-category {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.12);
    color: rgba(13, 110, 253, 1);
}

.timeline-time {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.70);
    white-space: nowrap;
}

.timeline-title {
    font-weight: 900;
    font-size: 1.02rem;
    margin: 0 0 8px;
    line-height: 1.25;
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.65);
}

.timeline-cta {
    font-weight: 800;
    color: rgba(13, 110, 253, 1);
    white-space: nowrap;
}

.timeline-empty {
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed rgba(0, 0, 0, 0.18);
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
}

/* Mobile layout */
@media (max-width: 768px) {
    .timeline-day {
        grid-template-columns: 1fr;
    }

    .timeline-day-badge {
        position: relative;
        top: 0;
    }

    .timeline-events {
        padding-left: 22px;
    }
}
