/* ---------------------------
   Global Styles
--------------------------- */
body {
    color: #222;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Merriweather", sans-serif;
}

p {
    font-family: "jost", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

html {
    scroll-behavior: smooth;
}

/* Sections used by your JS loaders (hidden by default) */
#home,
#speakers,
#tracks,
#paper_submission,
#registration,
#venue,
#patrons,
#advisory,
#technical,
#organising {
    display: none;
}

.active {
    display: block !important;
}

/* ---------------------------
   Gold Bars (top/bottom thin bars)
--------------------------- */
.gold-bar {
    background-color: #A16B15;
    height: 7px;
    width: 100%;
}

/* ---------------------------
   Header / Logo
--------------------------- */
.logo {
    height: 90px;
    max-width: 100%;
}

/* ---------------------------
   Navbar Styling
--------------------------- */
.navbar-nav .nav-link {
    color: darkgreen !important;
    font-weight: 700;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.dropdown-item:hover {
    color: darkred !important;
}

/* Dropdown styling */
.dropdown-menu {
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 220px;
}

/* fixed syntax: display and position must be separate declarations */
.hero-carousel {
    /* enough space for text + poster */
    overflow: hidden;
    display: block;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    width: 100%;
}

/* images inside carousel */
.hero-carousel .carousel-item img {
    /* crop edges if aspect ratio doesn’t match */
    object-position: center;
    /* fill full width */
    object-fit: cover;
    /* fill the slide height */
    width: 100%;
    /* keep center part visible */
    filter: brightness(0.3);
    display: block;
    height: 100%;
    margin: 0;
    padding: 0;
    vertical-align: top;
}


/* caption area — originally used full height; you have it here as full-height flexbox */
.hero-carousel .carousel-caption {
    /* center horizontally */
    padding: 10px;
    /* center vertically */
    align-items: center;
    /* safe padding */
    text-align: center;
    /* take full slide height (CAUTION: causes stretching + spacing) */
    display: flex;
    box-sizing: border-box;
    color: white;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    left: 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    position: absolute;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    top: 0;
    width: 100%;
}

.home-heading {
    width: 100%;
}

.home-heading h1,
.home-heading h2,
.home-heading h3 {
    /* more breathing room */
    text-align: center;
    /* proportional line-height */
    word-break: break-word;
    display: block;
    line-height: 1.2;
    width: 100%;
}

/* Special color styling */
.home-heading h1 span {
    color: #ffae2c;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-heading h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 400;
}

.home-heading h3 {
    color: #ffae2c;
    font-size: 1.8rem;
    font-weight: 400;
}

/* Make carousel indicators small circles */
.carousel-indicators [data-bs-target] {
    /* golden color to match theme */
    margin: 0 5px;
    background-color: #ffae2c;
    border-radius: 50%;
    height: 10px;
    width: 10px;
}

.carousel-indicators .active {
    /* white active indicator */
    background-color: #fff;
}

/* Position indicators on poster bottom (keeps them over the image) */
.hero-carousel .carousel-indicators {
    /* lock them at the bottom of the poster */
    left: 50%;
    bottom: 10px;
    margin: 0;
    position: absolute;
    transform: translateX(-50%);
    z-index: 10;
}

@media (max-width: 1200px) {
    .hero-carousel .carousel-item {
        height: 600px;
        /* medium laptop screens */
        ;
    }
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 400px;
        /* tablets */
        ;
    }
}

@media (max-width: 576px) {
    .hero-carousel .carousel-item {
        height: 300px;
        /* mobiles */
        ;
    }
}

/* ---------------------------
   Responsive adjustments for hero text
--------------------------- */
@media (max-width: 992px) {
    .home-heading h1 span {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .gold-bar h1 span {
        font-size: 1.5rem;
    }

    .home-heading h2 {
        font-size: 1.1rem;
    }
}

/* ---------------------------
   Downloads bar
--------------------------- */

.downloads-bar {
    /* Keep in one line */
    /* Prevent bar from growing */
    white-space: nowrap;
    align-items: center;
    background: #f2f2f2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #004080;
    display: flex;
    font-size: 15px;
    gap: 12px;
    overflow: hidden;
    padding: 8px 12px;
}

.scroll-container {
    /* Hide overflow */
    /* Take remaining space */
    flex: 1;
    overflow: hidden;
}

.scroll-text {
    /* Medium speed */
    animation: scrollLeft 40s linear infinite;
    color: darkred;
    display: inline-block;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.downloads-head {
    /* thick blue */
    color: #0b5ed7;
    font-weight: 700;
    margin-right: 10px;
}

.downloads-bar a {
    color: #0b5ed7;
    font-weight: 700;
    margin: 0 6px;
    text-decoration: none;
}

.downloads-bar span {
    color: brown;
    font-weight: 700;
    margin: 0 6px;
    text-decoration: none;
}

.downloads-bar a:hover {
    text-decoration: underline;
}

/* ---------------------------
   Main / dynamic content container
--------------------------- */
/* Remove the black focus outline */
#content:focus {
    outline: none !important;
}

/* Reset borders and background */
#content {
    background: transparent !important;
    border: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Ensure section content looks like original full-width sections */
#content > section {
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

/* ---------------------------
   Papers & Updates Section
--------------------------- */

/* Smaller text for left column */
.small-heading {
    /* smaller than normal h3 */
    font-weight: 600;
    font-size: 1.2rem;
}

.small-text {
    /* smaller paragraph */
    font-weight: 500;
    color: #444;
    font-size: 1rem;
}

.papers-updates {
    /* smaller than py-5 */
    padding-bottom: 1rem !important;
    padding-top: 1rem !important;
}

/* Make row children equal height */
.papers-updates .row {
    /* ensures equal column height */
    align-items: stretch;
    display: flex;
}

/* Ensure each column stretches full height */
.papers-updates .col-lg-6 {
    display: flex;
}

/* Shadowed box fills the height of its parent */
.shadow-box {
    /* align content vertically */
    justify-content: center;
    /* expand to fill */
    display: flex;
    /* instead of Bootstrap p-4 */
    background: #fff;
    border: 10px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    flex-direction: column;
    padding: 10px !important;
}


/* Bentham logo styling */
.partner-logo {
    /* controls vertical size */
    max-width: 100%;
    /* ensures it never overflows column */
    width: auto;
    /* keeps original aspect ratio */
    object-fit: contain;
    /* keeps proportions */
    display: block;
    margin: 5px auto;
    max-height: 80px;
}

/* Footer Styling */
.footer {
    background: #2f3e46;
    color: #dcdcdc;
    font-size: 15px;
    padding: 50px 0 20px;
}

.footer h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section ul li,
.footer-section a {
    color: #dcdcdc;
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    text-decoration: none;
}

.footer-section a:hover {
    color: #00b98e;
}

.footer-logo {
    margin: 8px;
    max-height: 60px;
}

/* Full-width silver line */
.footer-line {
    background: #ccc;
    height: 1px;
    margin: 20px 0;
    width: 100%;
}

/* Copyright */
.footer-bottom {
    color: #aaa;
    font-size: 14px;
    margin-top: 10px;
}

/* Back To Top Button */
#backToTop {
    /* hidden by default */
    align-items: center;
    background: #00b98e;
    border: none;
    border-radius: 50%;
    bottom: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 20px;
    height: 50px;
    justify-content: center;
    outline: none;
    position: fixed;
    right: 30px;
    transition: 0.3s;
    width: 50px;
}

#backToTop:hover {
    background: #009f7a;
}

/* Footer icons - default green */
.footer i {
    /* theme green */
    margin-right: 8px;
    color: #00b98e;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* Hover effect - gold */
.footer i:hover {
    /* gold shade */
    color: #ffbf00;
}

/* Footer icons - default green */
.footer i {
    /* theme green */
    margin-right: 8px;
    color: #00b98e;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* Hover effect - gold */
.footer i:hover {
    /* gold shade */
    color: #ffbf00;
}

/* Back-to-Top button arrow */
#backToTop i {
    /* white inside green circle */
    font-size: 1.2rem;
    color: white;
    transition: color 0.3s ease;
}

/* Hover for Back-to-Top */
#backToTop:hover i {
    /* gold arrow on hover */
    color: #ffbf00;
}

/* Misc list icon */
ul.links li {
    background: url(../images/li_arrow.png) no-repeat left top;
    padding: 0px 0px 0px 15px;
}

/* Remove the black focus outline */
#content:focus {
    outline: none !important;
}

/* Reset borders and background */
#content {
    background: transparent !important;
    border: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Ensure section content looks like original full-width sections */
#content > section {
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

.advisory .col-lg-4 {
    background-color: white;
}

/* ---------------------------
   Other components (tables, blinking, misc)
--------------------------- */
.customers {
    border-collapse: collapse;
    width: 100%;
}

.customers td,
.customers th {
    border: 1px solid #ddd;
    padding: 4px;
    text-align: center;
}

.customers tr:nth-child(even) {
    background-color: #f2f2f2;
}

.customers tr:hover {
    background-color: #ddd;
}

.customers th {
    background-color: #618697;
    color: white;
    padding-bottom: 8px;
    padding-top: 8px;
    text-align: center;
}

.blink_me {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
        delay: 500;
    }
}

/* Remove underline & default blue from all "cat-item" links */
.cat-item {
    color: inherit !important;
    text-decoration: none !important;
}

.cat-item:hover {
    /* no underline even on hover */
    text-decoration: none !important;
}

/* ---------------------------
   Scroll-up (vertical ticker)
--------------------------- */
.scroll-up {
    /* visible area */
    overflow: hidden;
    height: 160px;
    position: relative;
}

.scroll-up ul {
    /* adjust 12s for speed */
    animation: scroll-up 12s linear infinite;
    list-style: none;
    margin: 0;
    padding: 0;
}

.scroll-up li {
    /* height of each line */
    line-height: 40px;
    color: #001861;
    font-size: 16px;
    height: 40px;
    text-align: center;
}

@keyframes scroll-up {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* Footer row flex behaviour */
.footer-row {
    display: flex;
    flex-wrap: wrap;
}

/* Optional: keep columns full width on small screens and order only on larger */
@media (max-width: 991px) {
    .footer-row > div {
        order: initial !important;
    }
}

/* ---------------------------
   Countdown timer styling
--------------------------- */
.countdown-timer {
    color: #ffffff;
    display: flex;
    font-family: 'Jost', sans-serif;
    font-size: 22px;
    font-weight: bold;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.countdown-timer div {
    text-align: center;
}

.countdown-timer span {
    display: block;
    font-size: 26px;
}

.countdown-timer small {
    color: #ff9f1c;
    display: block;
    font-size: 14px;
}

/* ---------------------------
   Responsive adjustments (repeated, kept as-is)
--------------------------- */
@media (max-width: 992px) {
    .home-heading h1 span {
        font-size: 2rem;
    }

    .home-heading h2 {
        font-size: 1.2rem;
    }

    .home-heading h3 {
        font-size: 1.2rem;
    }

    .countdown-timer {
        font-size: 16px;
    }

    .countdown-timer span {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .home-heading h1 span {
        font-size: 1.5rem;
    }

    .home-heading h2 {
        font-size: 1rem;
    }

    .home-heading h3 {
        font-size: 1rem;
    }

    .countdown-timer {
        font-size: 14px;
    }

    .countdown-timer span {
        font-size: 16px;
    }
}

.carousel-img {
  height: 600px;        /* fixed height for all images */
  width: 100%;          /* make it responsive */
  object-fit: contain;  /* scale image inside box without cutting */
  background: #e4e6e3;     /* black bars for images with different ratios */
  padding: 10px;        /* optional: small padding around image */
}


.hero-carousel {
  position: relative; /* make the section a positioning container */
}

.hero-social-icons {
  position: absolute;
  bottom: 20px;   /* distance from bottom of hero */
  right: 20px;    /* distance from right of hero */
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.hero-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.hero-social-icons a:nth-child(1) { background: #3b5998; } /* Facebook */
.hero-social-icons a:nth-child(2) { background: #1da1f2; } /* Instragram */
.hero-social-icons a:nth-child(3) { background: #0077b5; } /* LinkedIn */
.hero-social-icons a:nth-child(4) { background: #000000; } /* X-Twitter */
.hero-social-icons a:nth-child(5) { background: #ff0000; } /* YouTube */

.hero-social-icons a:hover {
  opacity: 0.8;
}

.new-badge {
  background: #ff0000;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
