body {
    font-family: 'Roboto', sans-serif;
}

.navbar {
    background-color: #f1f1f1;
}

/* Responsive navbar logo */
.navbar-logo {
    max-height: 40px;
    /* adjust size */
    height: auto;
    width: auto;
}

/* On very small screens */
@media (max-width: 576px) {
    .navbar-logo {
        max-height: 30px;
    }
}

.banner-register {
    position: absolute;
    top: 77%;
    left: 45%;
    width: 120px;
    height: 30px;
    cursor: pointer;
}

.banner-section {
    position: relative;
    width: 100%;
    text-align: center;
}

/* Banner Images */
.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Display correct banner image based on screen size */
.desktop-banner {
    display: block;
}

.mobile-banner {
    display: none;
}

/* Overlay Content - Desktop/Tablet */
.banner-content {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #142953;
    width: 90%;
    max-width: 900px;
    padding: 0 15px;
    text-align: center;
}

/* Responsive image height for medium screens */
@media (max-width: 991px) {
    .banner-img {
        height: auto;
        max-height: 70vh;
        object-fit: cover;
    }
}

/* Mobile: Show mobile banner, keep overlay */
@media (max-width: 575px) {
    .desktop-banner {
        display: none;
    }

    .mobile-banner {
        display: block;
        filter: brightness(0.85);
        /* optional: darken for text contrast */
    }

    .banner-register {
        position: absolute;
        top: 80%;
        left: 35%;
        width: 120px;
        height: 30px;
        cursor: pointer;
    }

    .banner-content {
        position: absolute;
        top: 54%;
        /* adjust as needed for best appearance */
        left: 50%;
        transform: translate(-50%, -50%);
        width: 92%;
        text-align: center;
        padding: 0 8px;
        margin-top: 0;
    }

    .banner-content h1 {
        font-size: 1.7rem;
        margin-top: 10px;
    }

    .banner-content .fs-5 {
        font-size: 1rem;
    }
}










.icon-img {
    width: 24px;
    /* adjust as per your design */
    height: 24px;
    /* keeps consistent size */
    object-fit: contain;
    /* ensures no distortion */
}

.icon-white-img {
    width: 32px;
    /* adjust as per your design */
    height: 32px;
    /* keeps consistent size */
    object-fit: contain;
    /* ensures no distortion */
}






.btn-register {
    background-color: #142953;
    color: #fff;
    border-radius: 50px;
    padding: 6px 18px;
    font-weight: 500;
}

.btn-register:hover {
    background-color: #142953;
    color: #fff;
}

.link-profile {
    background-color: #142953;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
}

.btn-logout {
    border: solid 1px #142953;
    color: #fff;
    border-radius: 30px;
    color: #142953;
    text-decoration: none;
}

.link-profile:hover {
    background-color: #142953;
    color: #fff;
    text-decoration: none;
}

/* Offcanvas custom: 50% width on mobile */
@media (max-width: 991.98px) {
    .offcanvas.offcanvas-end {
        width: 50% !important;
        /* below navbar height */
        height: 100%;
        /* adjust height */
        border-top: 1px solid #ddd;
        border-radius: 10px;
    }
}

/* Grey nav links inside sidebar */
.offcanvas .nav-link {
    color: #555 !important;
    font-weight: 500;
    margin: 10px 0;
}

.offcanvas .nav-link:hover {
    color: #142953 !important;
}

.nav-link {
    color: rgb(57, 56, 56) !important;
}

.offcanvas-backdrop {
    background-color: rgb(148, 156, 172) !important;
    /* solid gray */
    opacity: 0.8 !important;
}

/* ✅ Remove border and background from hamburger */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ✅ Sidebar adjustments */
.offcanvas-body {
    padding-top: 0.5rem !important;
    /* reduce space from top */
}

.offcanvas-header {
    padding: 0.5rem 1rem !important;
    /* make close button compact */
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-outline-blue {
    background: transparent;
    color: #142953;
    border: 2px solid #142953;
    ;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-outline-white:hover {
    background: white;
    color: #0d6efd;
}

.location-icon {
    display: flex;
    align-items: center;
}

.vr {
    border-radius: 3px;
}

@media (max-width: 768px) {
    .vr {
        display: none !important;
    }

    td.desh-row {
        display: none !important;
        background-color: red;
    }
}

/* Horizontal scroll container */
#about .cards-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
    /* softer snap */
    -webkit-overflow-scrolling: touch;
    /* smoother touch pan */
}

/* Hide scrollbar */
#about .cards-container::-webkit-scrollbar {
    display: none;
}

/* Card styling */
#about .card {
    background-color: #e9ecef;
    border-radius: 10px;
    text-align: center;
    flex: 0 0 auto;
    /* important for horizontal scroll */
    padding: 20px;
    scroll-snap-align: start;
    width: calc(25% - 15px);
    /* default 4 per row on large screens */
}

#speakers .card {
    border-radius: 12px;
    text-align: left;
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: calc(25% - 15px);
    /* responsive updated below */
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease;
    padding: 8px;
    border-radius: 20px;
}

#speakers .card:hover {
    cursor: pointer;
    transform: translateY(-3px);
}

#speakers .card img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

#speakers .card-body {
    padding: 15px;
}

#speakers .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #002366;
    margin-bottom: 4px;
}

#speakers .card-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    margin-top: 4px;
}

#speakers .card-text {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.4;
}

/* Blue box for speakers section */
#speakers .speakers-box {
    background-color: #142953;
    /* dark blue */
    border-radius: 20px;
    padding: 40px 20px;
}

/* Section header inside blue box */

#speakers .cards-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    /* prevents text highlight */
    scrollbar-width: thin;
    scrollbar-color: #fff transparent;
}

#speakers .cards-container.dragging {
    cursor: grabbing;
}


#speakers .cards-container::-webkit-scrollbar {
    display: none;
    /* optional, keep hidden if you want */
}

#speakers .cards-container:active {
    cursor: grabbing;
}

#speakers .cards-container::-webkit-scrollbar {
    margin-top: 10px;
    height: 6px;
    /* thin scrollbar */
}

#speakers .cards-container::-webkit-scrollbar-track {
    background: transparent;
    /* no background */
}

#speakers .cards-container::-webkit-scrollbar-thumb {
    background: #fff;
    /* white scrollbar line */
    border-radius: 3px;
}

#speakers .cards-container::-webkit-scrollbar-thumb:hover {
    background: #fff;
    /* still white on hover */
}

/* Hide scrollbar on mobile */
@media (max-width: 768px) {
    #speakers .cards-container::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Edge */
    }

    #speakers .cards-container {
        -ms-overflow-style: none;
        /* IE & old Edge */
        scrollbar-width: none;
        /* Firefox */
    }
}


@media (max-width: 1024px) {
    .top-row {
        flex-direction: column;
    }

    .top-row img {
        height: auto;
        width : 100%;
    }


    .bottom-row img {
        width: 100%;
        height: auto;
        /* ✅ keep proportions on mobile too */
    }
}

/* Speaker Image in modal */
.speaker-modal-img {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid #002366;
}

/* Speaker Info next to image */
.speaker-modal-info h5 {
    font-size: 1.25rem;
}

.speaker-modal-info p {
    margin: 0;
}

.modal-backdrop.show {
    background-color: rgb(79, 86, 99) !important;
    /* solid gray */
    opacity: 0.8 !important;
}

#speakerModal #speakerQualification {
    font-size: 0.9rem !important;
    /* smaller than default */
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .speaker-modal-img {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    #speakerModal .modal-dialog {
        margin: 1rem;
        /* space around modal */
        max-width: 95%;
        /* avoid full width */
    }
}


/* Responsive widths */
@media (max-width: 1200px) {
    #about .card {
        width: calc(33.333% - 13px);
        /* 3 cards */
    }

    #speakers .card {
        width: calc(33.333% - 13px);
    }
}

@media (max-width: 992px) {
    #about .card {
        width: calc(50% - 10px);
        /* 2 cards */
    }

    #speakers .card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    #about .card {
        width: 90%;
        /* 1 card full width with some margin */
    }

    #speakers .card {
        width: 90%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .speaker-modal-img {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    #speakerModal .modal-dialog {
        margin: 1rem;
        max-width: 70%;
        left: 15%
            /* avoid full width */
    }
}

.profile-sidebar.open {
    display: block;
}

.profile-sidebar ul li {
    padding: 12px 0;
}

.profile-sidebar ul li a {
    color: #002366;
    font-weight: 500;
    text-decoration: none;
}

.profile-sidebar ul li a:hover {
    text-decoration: underline;
}

.profile-sidebar {
    width: 230px;
    position: fixed;
    top: 1px;
    right: -250px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: right 0.3s ease;
    height: calc(100% - 1px);
    overflow-y: auto;
}

.profile-sidebar.open {
    right: 0;
}

.btn-profile {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.footer {
    margin-top: auto;
    padding: 10px;
    text-align: center;
    background-color: #12316C;
    color: white;
    font-size: 12px;
    line-height: 1.2;
}


/* Association Banner */
.association-banner {
    width: 100%;
    background: #f4f5f8;
    padding: 20px 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e5e7eb;
}

.association-inner {
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

.right-group {
    margin-left: 60px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.partner-logo {
    max-height: 80px;
    width: auto;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.aga {
    max-width: 180px;
}

.endorsed-text {
    font-size: 15px;
    font-weight: 400;
    color: #222e50;
    text-align: left;
    margin: 0;
    line-height: 1.1;
}

@media (max-width: 600px) {
    .association-inner {
        gap: 10px;
    }

    .partner-logo {
        max-height: 26px;
    }

    .aga {
        max-width: 200px;
    }

    .endorsed-text {
        font-size: 15px;
    }
}

/* Container setup */
#materials .cards-container {
    display: grid;
    gap: rem;
}

/* Card styling */
#materials .cards-container .card {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease-in-out;
}

#materials .cards-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

#materials .cards-container img {
    width: 100%;
    object-fit: cover;
}

#materials .cards-container .card-body {
    padding: 1rem;
    text-align: center;
}

#materials .cards-container .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #002366;
    margin-bottom: 0.5rem;
}

#materials .cards-container .card-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

#materials .card-download-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #002366;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

/* Large screens: grid with 4 cards */
@media (min-width: 993px) {
    #materials .cards-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 600px) and (max-width: 1024px) {
    #materials .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small screens: 1 card */
@media (max-width: 599px) {
    #materials .cards-container {
        grid-template-columns: 1fr;
    }
}

/* Medium and smaller: horizontal scroll */
@media (max-width: 992px) {

    #materials .cards-container::-webkit-scrollbar {
        display: none;
    }

    #materials .cards-container .card {
        flex: 0 0 310px;
        /* 👈 fixed width card so they don’t shrink */
        scroll-snap-align: start;
    }
}


/* ===== Location & Venue Section ===== */

.location-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* padding: 20px; */
    margin: auto 10px;
    max-width: 1200px;
}


.location-gallery img {
    width: 100%;
    height: auto;
    /* ✅ keeps natural aspect ratio */
    object-fit: contain;
    /* ✅ no zoom/crop */
    border-radius: 10px;
}

/* Top row (2 side by side images) */
.top-row {
    display: flex;
    gap: 12px;
}

.top-row img {
    flex: 1;
    /* both take equal width */
    height: 300px;
    /* ✅ fixed uniform height */
    object-fit: cover;
    /* ✅ fill the box without stretching */
    border-radius: 10px;
}


.bottom-row img {
    width: 100%;
    height: 400px;
    /* ✅ reduced height */
    object-fit: cover;
    /* ✅ keeps it proportional but crops edges */
    border-radius: 10px;
}





/* Map container */
.map-container {
    width: 85%;
    max-width: 1000px;
    margin: 0 auto 20px auto;
    text-align: center;
}

/* Responsive embed wrapper */
.map-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

/* Map link */
.map-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 12px;
    background: #12316C;
    color: #fff;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    /* ✅ removes underline */
    transition: background 0.3s ease, color 0.3s ease;
}

.map-link:hover {
    background: #0f2a5c;
    color: #fff;
    /* ✅ prevents blue text */
    text-decoration: none;
    /* ✅ keeps underline removed */
}


/* Table custome css */

/* Remove vertical borders but keep horizontal */
table td,
table th {
    border-left: none !important;
    border-right: none !important;
}

/* Column 2 background alternate colors */
table tbody tr:nth-child(odd) td:nth-child(1) {
    background-color: #1b2f53;
    color: #fff;
}

table tbody tr:nth-child(even) td:nth-child(1) {
    background-color: #132443;
    color: #fff;
}



/* Active Tab */
.nav-pills .nav-link.active {
    background-color: #132443 !important;
    color: white !important;
    border: 1px solid #132443
}

/* Inactive Tab */
.nav-pills .nav-link {
    background-color: white;
    color: #132443 !important;
    border: 1px solid #132443
}

table tbody td:not(:first-child) {
    text-align: left !important;
    vertical-align: middle;
}

/* Column width fix */
table td:nth-child(1),
table th:nth-child(1) {
    width: 20%;
}

table td:nth-child(2),
table th:nth-child(2) {
    width: 40%;
}

table td:nth-child(3),
table th:nth-child(3) {
    width: 40%;
}

.text-inline {
    flex: 1;
    /* baki jagah le lega */
    word-break: break-word;
    /* bada text wrap ho jayega */
}

.img-toggle {
    width: 60px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid #919193;
}

table td,
table th {
    padding: 20px !important;
    /* 20px padding sab cells pe */
}

table td:last-child,
table th:last-child {
    border-right: 1px solid #dee2e6 !important;
    /* Bootstrap ka default border color */
}



/* Normal table view for large screen */
.table-responsive-custom table {
    width: 100%;
}

/* Mobile view: stack columns */
@media (max-width: 768px) {

    .table-responsive-custom table,
    .table-responsive-custom thead,
    .table-responsive-custom tbody,
    .table-responsive-custom th,
    .table-responsive-custom td,
    .table-responsive-custom tr {
        display: block;
        width: 100%;
    }

    /* Hide thead in mobile */
    .table-responsive-custom thead tr {
        display: none;
    }

    .table-responsive-custom tr {
        margin-bottom: 1rem;
        /* rows ke beech gap */
        border: 1px solid #dee2e6;
        /* row ka outer border */
        border-radius: 6px;
        padding: 10px;
        background: #fff;
        /* card jaisa feel */
    }

    .table-responsive-custom td {
        position: relative;
        padding: 12px 12px 12px 50%;
        text-align: left !important;
        border: none;
        /* cell border remove */
        /* border-bottom: 1px solid #dee2e6; */
        /* sirf bottom border */
    }

    /* last td ka bottom border remove */
    .table-responsive-custom td:last-child {
        border-bottom: none;
    }

    /* Add label before each td */
    .table-responsive-custom td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 12px;
        font-weight: bold;
        white-space: nowrap;
    }


    /* Column width fix */
    table td:nth-child(1),
    table th:nth-child(1) {
        width: 100%;
    }

    /* Column width fix */
    table td:nth-child(1),
    table th:nth-child(1) {
        width: 100%;
    }

    table td:nth-child(2),
    table th:nth-child(2) {
        width: 100%;
    }

    table td:nth-child(3),
    table th:nth-child(3) {
        width: 100%;
    }

    table td:last-child,
    table th:last-child {
        border-right: 0px solid #dee2e6 !important;
    }
}



.image-wrapper {
    position: relative;
    display: inline-block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(148, 156, 172) !important;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0.8 !important;

}

.overlay.hidden {
    opacity: 0;
    visibility: hidden;
}


/* Table custome css */

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.badge {
    border: 1px solid #3ca1e0;
    color: #3ca1e0;
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: inline-block;
}

/* Initially hide sections */
.section {
    opacity: 0;
    transform: translateY(50px);
    /* slide up effect */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Visible state */
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/*** count-down section */
#countdown-section {
    margin: 0;
    padding: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.countdown-box {
    color: #fff;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    min-height: 80px;
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    background: #142953;
}

/* Countdown layout */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    width: auto;
}

/* Timer items (exclude divider) */
.countdown-timer>div:not(.divider) {
    min-width: 70px;
    /* flexible sizing */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 12px;
}

/* Divider styling */
.divider {
    background-color: #80acf07a;
    width: 1px;
    /* thin vertical line */
    height: 50px;
    /* matches text height */
    border-radius: 3px;
}

/* Numbers */
.count-num {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
}

/* Labels */
.count-label {
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive font scaling only */
@media (max-width: 992px) {
    .count-num {
        font-size: 1.8rem;
    }

    .count-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .count-num {
        font-size: 1.5rem;
    }

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

    .countdown-timer {
        gap: 10px;
    }
}

.profile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(148, 156, 172) !important;
  z-index: 1040; /* just below Bootstrap's offcanvas */
  transition: opacity 0.3s ease;
  opacity: 0.5 !important;

}

.profile-sidebar {
  position: fixed;
  top: 0;
  right: -250px; /* hidden by default */
  width: 230px;
  height: 100%;
  background: #fff;
  z-index: 1050; /* above overlay */
  transition: right 0.3s ease;
}

.profile-sidebar.open {
  right: 0;
}
