/* --- Global Header & Branding Tier Styles --- */
#mainHeader {
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
        z-index: 1050; /* Ensure it stays above other content */
        background-color: #ffffff; /* Or your preferred background */
    }
    /* Class added by JS when scrolling down */
    .header-hidden {
        transform: translateY(-100%);
    }
    /* Adds a subtle shadow when the user scrolls away from the top */
    .header-scrolled {
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }
.site-header {
    width: 100%;
}

.responsive-logo {
    height: auto;
    max-height: 87px; /* Max height matching your original design */
    width: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

.aioc-main-title {
    font-size: 2.25rem;
    letter-spacing: 2px;
    color: #800000; /* Matching maroon theme layout colors */
}
/* --- Slim & Balanced Header Styles --- */
.text-white{
    color: #800000 !important;
}
.brand-header-tier {
    background-color: #ffffff;
}

/* Forcing an absolute visual height to align asymmetric logos */
.header-logo {
    height: 85px; /* Significantly reduced to keep the section slim */
    width: auto;
    object-fit: contain;
    display: inline-block;
    transition: height 0.2s ease-in-out;
}

/* Typography */
.aioc-main-title {
    font-size: 31px;
    letter-spacing: 1px;
    color: #800000; /* Maroon accent */
    line-height: 1.1;
}
sub {
    bottom: 0.75em;
}
.aioc-subtitle {
    font-size: 0.85rem;
    display: block;
    margin-top: 2px;
}

/* --- Responsive Adaptations --- */

/* Tablets / Medium Screens */
@media (max-width: 768px) {
    .aioc-logo-left {
        max-height: 65px; /* Restored to full size for desktop */
    }
    
    .aioc-logo-right {
        max-height: 70px;
    }
    
    .aioc-main-title {
        font-size: 1.85rem; /* Restored to full size for desktop */
    }
  
    .aioc-subtitle {
    font-size: 11px;
    display: block;
    margin-top: 2px;
}
}

/* Mobile Phones */
@media (max-width: 576px) {
    .aioc-logo-left {
    width: auto;
}

.aioc-logo-right {
    max-height: 45px; /* Smaller for mobile */
    width: auto;
}

.aioc-main-title {
    font-size: 1.35rem; /* Readable font size for mobile */
    line-height: 1.3;
}

    .aioc-subtitle {
    font-size: 11px;
    display: block;
    margin-top: 2px;
}
}
/* --- Media Queries for All Devices --- */

/* Tablets / Medium Displays (e.g., iPads) */
@media (max-width: 991.98px) {
    .responsive-logo {
        max-height: 65px;
    }
    .aioc-main-title {
        font-size: 1.85rem;
    }
}

/* Mobile Devices (e.g., Smart Phones) */
@media (max-width: 575.98px) {
    .brand-header-tier {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .responsive-logo {
        max-height: 48px; /* Scales down smoothly on narrow viewports */
    }
    .aioc-main-title {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
}
/* --- Modern Variable Definitions --- */
:root {
    --royal-maroon: #800000;
    --royal-gold: #d4af37;
    --royal-gold-hover: #f3e5ab;
    --white: #ffffff;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Core Slider Layout --- */
.royal-hero-slider {
    position: relative;
    width: 100%;
    height: 65vh; /* Optimal height to balance visual punch and show below-the-fold content */
    overflow: hidden;
    background-color: #000;
}

.slider-main {
    width: 100%;
    height: 100%;
    position: relative;
}

.royal-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.royal-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Background & Dark Overlay Layer */
.royal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.royal-slide.active .royal-bg {
    transform: scale(1);
}

.royal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
}

/* --- Content Wrapper & Typography --- */
.content-wrapper {
    position: relative;
    z-index: 3;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.text-reveal {
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.royal-tag {
    display: inline-block;
    background-color: var(--royal-maroon);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-uppercase: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.royal-title {
    font-size: clamp(2.2rem, 5vw, 4rem); /* Responsive fluid typography scaling */
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
}

.royal-title span {
    color: var(--royal-gold);
}

.royal-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 650px;
    line-height: 1.5;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
}

/* --- Intelligent Responsive Button Grid --- */
.royal-btn-grid {
    display: grid;
    /* Grid configuration for large modern screen layouts */
    grid-template-columns: repeat(5, auto) 60px;
    gap: 12px;
    justify-content: start;
    align-items: center;
    width: 100%;
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-premium i {
    margin-right: 10px;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.btn-premium:hover {
    background: var(--white);
    color: var(--royal-maroon);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Main Highlighted Button */
.btn-premium.main {
    background: var(--royal-maroon);
    border-color: var(--royal-maroon);
    color: var(--white);
}

.btn-premium.main:hover {
    background: var(--royal-gold);
    border-color: var(--royal-gold);
    color: #000;
}

/* Icon-Only Map Navigation Toggle Button */
.btn-premium.icon-only {
    padding: 0.85rem 0;
    width: 60px;
    height: 52px;
}

.btn-premium.icon-only i {
    margin-right: 0;
}

/* --- Slider UI Controls Layout --- */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.slider-control:hover {
    background: var(--royal-maroon);
    border-color: var(--royal-maroon);
    color: var(--white);
}

.slider-control.prev { left: 20px; }
.slider-control.next { right: 20px; }

/* Indicator Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background: var(--royal-gold);
    width: 30px;
    border-radius: 10px;
}

/* --- Advanced Device Breakpoints --- */

/* Laptops & Small Desktops */
@media (max-width: 1200px) {
    .royal-btn-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .btn-premium.icon-only {
        width: 100%;
    }
    .btn-premium.icon-only i {
        margin-right: 10px;
    }
    /* Appends content tracking back onto map button visually */
    .btn-premium.icon-only::after {
        content: "View on Map";
    }
}

/* Tablets Landscape & Portrait */
/* --- Advanced Device Breakpoints (UPDATED FOR MOBILE VISIBILITY) --- */

@media (max-width: 768px) {
    .royal-hero-slider {
        height: auto;
        min-height: 80vh !important; /* Forces a hard viewport layout block so it can never collapse into a blank box */
        display: block !important;   /* Ensures the structural canvas remains rendered */
    }
    
    .slider-main {
        height: 100%;
        min-height: 57vh;
        position: relative;
        display: block;
    }

    .royal-slide {
        /* Guarantees that active state nodes stay fully visible on touchscreens */
        width: 100% !important;
        height: 100% !important;
    }

    .content-wrapper {
        padding-top: 6rem;
        padding-bottom: 4rem;
        position: relative;
        z-index: 5;
    }
    
    .royal-btn-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Safely hide the wide desktop side arrows to avoid breaking mobile overflow width bounds */
    .slider-control {
        display: none !important; 
    }
}

@media (max-width: 480px) {
    .royal-hero-slider {
        min-height: 53vh !important; /* Gives dense content breathing room on tiny phone screens */
    }
    
   
    
    .royal-title {
        display: none;
        font-size: 1.8rem !important; /* Lowers typography bounds to prevent line clipping splits */
    }
    .royal-subtitle{
        display: none;
    }
}
/* --- Core Section Settings --- */
.royal-about-area {
    position: relative;
    background-color: #fcfbfa; /* Warm paper-white canvas background */
    overflow: hidden;
}

.royal-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: radial-gradient(#800000 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

.z-index-2 {
    position: relative;
    z-index: 2;
}

/* --- History Label Tag --- */
.history-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.history-tag .line {
    width: 30px;
    height: 2px;
    background-color: #800000;
}

.history-tag .text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #800000;
}

/* --- Main Typography Grid --- */
.royal-heading {
    font-size: clamp(2rem, 3.8vw, 2.75rem);
    font-weight: 800;
    color: #2c2523;
    line-height: 1.25;
}

.text-maroon { color: #800000; }
.text-gold { color: #b89028; }

.premium-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a3e3d;
    line-height: 1.6;
}

.about-description {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #615554;
}

/* --- Premium Stats Component Cards --- */
.stat-card-premium {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.stat-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(128, 0, 0, 0.06);
}

.stat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 10px;
    font-size: 1.4rem;
}

/* Maroon Variant Settings */
.stat-card-premium.maroon-variant { border-left: 4px solid #800000; }
.stat-card-premium.maroon-variant .stat-icon-wrap {
    background-color: rgba(128, 0, 0, 0.06);
    color: #800000;
}

/* Gold Variant Settings */
.stat-card-premium.gold-variant { border-left: 4px solid #b89028; }
.stat-card-premium.gold-variant .stat-icon-wrap {
    background-color: rgba(184, 144, 40, 0.08);
    color: #b89028;
}

.stat-data h3 {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0;
    color: #2c2523;
}

.stat-data p {
    font-size: 0.95rem;
    font-weight: 500;
    color: #7c6e6d;
    margin: 0;
}

/* --- Sophisticated Stacking Image Frame Section --- */
.royal-image-container {
    padding: 15px; /* Creates breathing room for floating frames */
}

.royal-image-frame {
    position: relative;
    border-radius: 16px;
    width: 100%;
}

.frame-accent-border {
    position: absolute;
    top: -15px;
    right: -15px;
    bottom: 15px;
    left: 15px;
    border: 2px solid #b89028;
    border-radius: 16px;
    z-index: 1;
    pointer-events: none;
}

.royal-image-frame .main-img {
    position: relative;
    border-radius: 16px;
    z-index: 2;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.royal-image-frame:hover .main-img {
    transform: scale(1.02);
}

/* --- Floating Glassmorphic Institutional Badge --- */
.royal-floating-badge {
    position: absolute;
    bottom: -20px;
    left: -15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 1rem 1.5rem;
    border-radius: 14px;
    z-index: 3;
    transition: all 0.3s ease;
}

.royal-image-frame:hover .royal-floating-badge {
    transform: translateY(-3px);
}

.seal-container {
    background: #ffffff;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.seal-icon {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.badge-text {
    font-size: 0.9rem;
    color: #4a3e3d;
    line-height: 1.3;
}

.badge-text strong {
    color: #800000;
    font-size: 0.95rem;
}

/* --- Rigorous Mobile Breakpoints --- */

/* Tablets Devices (Landscape & Portrait bounds) */
@media (max-width: 991.98px) {
    .royal-about-area {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
    .royal-image-container {
        max-width: 550px;
        margin: 0 auto 2.5rem auto; /* Centers the image perfectly on mobile columns */
    }
}

/* Small Smartphone Panels */
@media (max-width: 575.98px) {
    .frame-accent-border {
        top: -8px;
        right: -8px;
        bottom: 8px;
        left: 8px; /* Tighten border bounds to fit tiny display edges */
    }
    .royal-floating-badge {
        position: relative;
        bottom: unset;
        left: unset;
        margin-top: 15px;
        width: 100%; /* Converts to stacked bar block so layout doesn't break overflow boundaries */
        background: #ffffff;
    }
    .premium-lead {
        font-size: 1.1rem;
    }
    .about-description {
        font-size: 0.98rem;
    }
}

/* --- Section Global Foundations --- */
.royal-highlights-section {
    position: relative;
    background-color: #fcfbfa; /* Matches your premium warm paper look */
    overflow: hidden;
}

.highlights-bg-pattern {
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(128, 0, 0, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.z-index-2 {
    position: relative;
    z-index: 2;
}

/* --- Section Header Custom Styles --- */
.royal-display-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.85rem, 3.5vw, 2.35rem);
    font-weight: 700;
    color: #2c2523 !important;
    letter-spacing: 0.5px;
}

.title-underline-premium {
    width: 60px;
    height: 3px;
    background-color: #800000; /* Institutional Maroon color */
    margin-top: 12px;
    border-radius: 2px;
}

/* --- Premium Interactive Cards --- */
.premium-highlight-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

/* Elevate-on-hover effect with solid visual feedback shadow */
.premium-highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(128, 0, 0, 0.06);
    border-color: rgba(128, 0, 0, 0.1);
}

/* Icon Box Design */
.highlight-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.premium-highlight-card:hover .highlight-icon-box {
    transform: scale(1.08) rotate(3deg);
}

/* Icon Theming Variants */
.highlight-icon-box.maroon-theme {
    background-color: rgba(128, 0, 0, 0.06);
    color: #800000;
}

.highlight-icon-box.gold-theme {
    background-color: rgba(184, 144, 40, 0.08);
    color: #b89028;
}

/* Card Content Styling */
.card-heading-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #2c2523;
    margin-bottom: 0.85rem;
}

.card-description-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #615554;
    margin-bottom: 2rem;
}

/* --- Dynamic Link Action Elements --- */
.premium-interactive-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #800000;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

/* Slide arrow out when parent container or link is engaged */
.premium-highlight-card:hover .link-arrow-icon {
    transform: translateX(5px);
}

.premium-interactive-link:hover {
    color: #b89028; /* Gold color shift on precise text interaction */
}

/* --- Responsive Device Handling Matrix --- */

/* Mid-Tier Breakpoint Adjustments (Tablets / Portables) */
@media (max-width: 991.98px) {
    .premium-highlight-card {
        padding: 1.75rem;
    }
    .card-description-text {
        margin-bottom: 1.5rem;
    }
}

/* Mini Phone Breakpoint Bounds */
@media (max-width: 575.98px) {
    .royal-highlights-section {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
    .premium-highlight-card {
        padding: 1.5rem;
    }
    .highlight-icon-box {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }
}

/* --- Global Section & Texture Elements --- */
.royal-speakers-area {
    position: relative;
    background-color: #fdfdfd;
    overflow: hidden;
}

.royal-bg-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    background-image: linear-gradient(45deg, #800000 25%, transparent 25%), 
                      linear-gradient(-45deg, #800000 25%, transparent 25%);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

.z-index-2 {
    position: relative;
    z-index: 2;
}

/* --- Section Title Typographic Elements --- */
.speakers-tag-label {
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    color: #b89028 !important; /* Gold accent tone */
}

.royal-display-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.85rem, 3.5vw, 2.35rem);
    font-weight: 700;
    color: #2c2523 !important;
}

.title-underline-premium {
    width: 60px;
    height: 3px;
    background-color: #800000; /* Institutional Maroon */
    border-radius: 2px;
}

/* --- The Main Pavilion Shield Box --- */
.speakers-pavilion {
    background: #ffffff;
    border: 1px solid rgba(234, 230, 223, 0.7);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.015);
}

/* --- Academic Speaker Profile Cards --- */
.speaker-premium-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.speaker-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.speaker-portrait {
    width: 100%;
    aspect-ratio: 4 / 5; /* Forces identical visual bounding ratios */
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Zoom Logic */
.speaker-premium-card:hover .speaker-portrait {
    transform: scale(1.04);
}

/* --- Premium Reveal Interaction Overlay --- */
.speaker-interactive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(128, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.speaker-premium-card:hover .speaker-interactive-overlay {
    opacity: 1;
}

.speaker-social-links {
    display: flex;
    gap: 15px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.speaker-premium-card:hover .speaker-social-links {
    transform: translateY(0);
}

.social-circle-btn {
    width: 45px;
    height: 45px;
    background: #ffffff;
    color: #800000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.social-circle-btn:hover {
    background: #b89028;
    color: #ffffff;
    transform: translateY(-3px);
}

/* --- Speaker Text Metadata Blocks --- */
.speaker-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c2523;
}

.speaker-designation {
    font-size: 0.92rem;
    font-weight: 500;
    color: #615554;
    display: block;
    margin-top: 4px;
}

.gold-separator {
    width: 35px;
    height: 2px;
    background-color: #b89028;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.speaker-premium-card:hover .gold-separator {
    width: 60px; /* Separator grows elegantly on active speaker cards */
}

/* --- Institutional Footer Ribbon --- */
.pavilion-footer-footnote {
    border-top: 1px dashed #eae6df;
}

.footnote-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7c6e6d;
    letter-spacing: 0.5px;
}

.text-gold { color: #b89028; }

/* --- Advanced Micro Device Viewport Handling Matrix --- */

/* Medium-Tier Breakpoints (Tablets Landscape & Portrait bounds) */
@media (max-width: 991.98px) {
    .speakers-pavilion {
        padding: 2rem !important;
    }
}

/* Compact Smartphones Layout */
@media (max-width: 575.98px) {
    .royal-speakers-area {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
    .speakers-pavilion {
        padding: 1.5rem 1rem !important;
        border-radius: 16px;
    }
    .speaker-name {
        font-size: 1.25rem;
    }
    .speaker-designation {
        font-size: 0.88rem;
    }
    .footnote-text {
        font-size: 0.82rem;
        line-height: 1.4;
    }
}

/* --- Core Marquee Settings --- */
.royal-sponsor-marquee {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.tracking-widest {
    letter-spacing: 2.5px;
    font-size: 0.8rem;
    color: #8a7a78 !important; /* Elegant slate-muted variant color */
}

/* --- Viewport Shield Wrapper with Elegant Fade Effect --- */
.marquee-viewport-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    /* Softly blends edges into the white background canvas layout */
    mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

/* --- Hardware Accelerated Scrolling Animation Track --- */
.marquee-scroller-track {
    display: flex;
    width: max-content; /* Dynamically calculates real size boundaries */
    gap: 4.5rem; /* Generous breathing room gap spacing between elements */
    padding: 0.5rem 0;
    /* Uses hardware acceleration layer flags */
    transform: translate3d(0, 0, 0);
    animation: infiniteMarqueeLoop 22s linear infinite;
}

/* Pauses movement smoothly when a user hovers a mouse onto it */
.marquee-viewport-container:hover .marquee-scroller-track {
    animation-play-state: paused;
}

/* --- Individual Brand Image Nodes --- */
.marquee-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px; /* Constrains boundaries evenly */
    height: 75px; 
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Grayscale setup for neutral academic visual uniformity */
    filter: grayscale(100%) opacity(0.65);
    mix-blend-mode: multiply; /* Drops out bad white bounding boxes hidden inside logos */
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Brings logo vividly back to life on exact hover focus tracking states */
.marquee-logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* --- Infinite Keyframe Linear Pipeline Calculations --- */
@keyframes infiniteMarqueeLoop {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        /* Loops exactly halfway through the total track width (the duplicated node line) */
        transform: translate3d(-50%, 0, 0);
    }
}

/* --- Advanced Device Breakpoints --- */

/* Tablet & Smaller Screen Sizes */
@media (max-width: 991.98px) {
    .marquee-scroller-track {
        gap: 3.5rem;
        animation-duration: 18s; /* Speeds up tracking slightly on small screens */
    }
    .marquee-logo-item {
        width: 130px;
        height: 65px;
    }
}

/* Compact Smart Mobile Phone Boundaries */
@media (max-width: 575.98px) {
    .royal-sponsor-marquee {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .marquee-scroller-track {
        gap: 2.25rem;
    }
    .marquee-logo-item {
        width: 105px;
        height: 55px;
    }
    .tracking-widest {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }
}

/*footer css*/
/* --- Global Institutional Footer Design --- */
.royal-footer {
    background-color: #dfd3d0; /* Deep charcoal warm-black foundation canvas */
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Brand Box Elements */
.footer-brand-logo {
    height: 90px; /* Constrains left-side logo to sit gracefully within text line bounds */
    width: auto;
    object-fit: contain;
    filter: brightness(1) contrast(1.05); /* Keeps color vibrant over charcoal background */
}

.footer-brand-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #000;
    letter-spacing: 1px;
}
.text-secondary{
    color: #000 !important;
}
.footer-brand-subtitle {
    letter-spacing: 1.5px;
    color: #b89028 !important; /* Premium academic gold accent highlight */
    margin-top: 2px;
}

.footer-brand-text {
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Widget Heading Elements */
.footer-widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #000;
    position: relative;
    padding-bottom: 8px;
}

/* Subtle underlying marker for visual balance */
.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #800000; /* Institutional Maroon tag */
}

/* Navigational Anchor Elements */
.footer-links-list li {
    margin-bottom: 10px;
}

.footer-links-list a {
    color: #000;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links-list a i {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.25s ease;
}

.footer-links-list a:hover {
    color: #b89028; /* Slides slightly out and flashes gold on hover focus tracking */
}

.footer-links-list a:hover i {
    transform: translateX(4px);
}

/* Contact List Layout Elements */
.footer-contact-list li {
    font-size: 0.92rem;
    line-height: 1.5;
}

.contact-icon-shell {
    color: #800000; /* Clear maroon accents on icon blocks */
    font-size: 1rem;
    display: inline-block;
    margin-top: 2px;
}

/* Social Media Pill Containers */
.social-icon-pill {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #adb5bd;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon-pill:hover {
    background-color: #800000; /* Shifts seamlessly to deep maroon accent theme */
    border-color: #800000;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Bottom Legal Banner Area */
.footer-bottom-ribbon {
    background-color: transparent;
}

.copyright-text {
    font-size: 0.85rem;
    color: #867e7d !important;
}

/* --- Advanced Cross-Device Media Overrides Matrix --- */

/* Mid-Tier Breakpoint Adjustments (Tablets / Portables) */
@media (max-width: 991.98px) {
    .royal-footer {
        padding-top: 3.5rem !important;
    }
    .footer-widget-title {
        margin-top: 1rem;
    }
}

/* Compact Smartphones Display Bounds */
@media (max-width: 575.98px) {
    .royal-footer {
        padding-top: 2.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .footer-brand-box, 
    .footer-nav-box, 
    .footer-contact-box, 
    .footer-social-box {
        text-align: left; /* Maintains neat left alignment on grid columns stacking on mobile screen viewports */
    }
    .footer-links-list li {
        margin-bottom: 8px;
    }
    .copyright-text {
        font-size: 0.8rem;
        line-height: 1.4;
        text-align: center;
    }
}
/* --- Premium Scroll to Top Action Button --- */
.royal-scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: #800000; /* Institutional Maroon */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 9999; /* Ensures it sits over sliders, badges, and headers */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    /* Hidden by default state values */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Internal Arrow Micro-Interaction */
.royal-scroll-top-btn i {
    transition: transform 0.3s ease;
}

/* Active Class controlled by JavaScript scroll listener */
.royal-scroll-top-btn.revealed {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Interactive Hover States */
.royal-scroll-top-btn:hover {
    background-color: #b89028; /* Shakes smoothly into academic gold */
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(184, 144, 40, 0.3);
}

.royal-scroll-top-btn:hover i {
    transform: translateY(-4px); /* Arrow subtly points upward on hover */
}

/* --- Responsive Device Boundaries --- */

/* Small Smartphones and Tablets portrait windows */
@media (max-width: 575.98px) {
    .royal-scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem; /* Marginally scaled down to protect active mobile viewport space */
    }
}

/*footercss*/

/* --- Internal Page Banner Element --- */
.royal-internal-banner {
    position: relative;
    background: linear-gradient(rgb(227 227 227 / 85%), rgb(241 241 241 / 85%)), url('http://aioc.universityofpatanjali.com/images/overview-B.webp') center center / cover no-repeat fixed;
    min-height: 180px;
}

.banner-breadcrumbs {
    font-size: 0.85rem;
    color: rgb(99 14 16);
    font-weight: 500;
}

.banner-breadcrumbs a {
    color: rgb(99 14 16);
    text-decoration: none;
    transition: color 0.3s ease;
}



.banner-main-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* --- Core Page Profile Section Settings --- */
.royal-about-profile {
    background-color: #faf9f6; /* Premium warm bone-white background */
}

.profile-bg-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    background-image: radial-gradient(#800000 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

.z-index-2 {
    position: relative;
    z-index: 2;
}

/* Typography elements */
.profile-tag-label {
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    color: #b89028 !important;
}

.profile-display-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: #2c2523 !important;
    line-height: 1.3;
    font-style: italic;
}

.title-underline-premium {
    width: 60px;
    height: 3px;
    background-color: #800000;
    border-radius: 2px;
}

.premium-lead-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: #4a3e3d;
    line-height: 1.6;
}

.profile-description-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #615554;
    text-align: justify;
}

/* --- Native Video Wrapper Shield --- */
.video-frame-wrapper {
    background: #ffffff;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease;
}

.video-frame-wrapper iframe {
    border-radius: 10px;
}

.video-frame-wrapper:hover {
    transform: translateY(-4px);
}

/* --- Academic Feature Layout Cards --- */
.culture-feature-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
    transition: all 0.3s ease;
}

.culture-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(128, 0, 0, 0.04);
}

.card-icon-shell {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* Variant Accents spacing paths */
.culture-feature-card.maroon-accent { border-top: 4px solid #800000; }
.culture-feature-card.maroon-accent .card-icon-shell { background: rgba(128,0,0,0.06); color: #800000; }

.culture-feature-card.gold-accent { border-top: 4px solid #b89028; }
.culture-feature-card.gold-accent .card-icon-shell { background: rgba(184,144,40,0.08); color: #b89028; }

.card-feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c2523;
    margin-bottom: 0.75rem;
}

.card-feature-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #615554;
    text-align: justify;
}

/* --- Content Block Layout Elements --- */
.profile-info-block .block-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #2c2523;
}

.profile-info-block .block-desc-text {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #615554;
    text-align: justify;
}


/* --- Advanced Device Breakpoints --- */

/* Tablets Screens (Portrait/Landscape bounds) */
@media (max-width: 991.98px) {
    .royal-about-profile {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
    .profile-description-text, .card-feature-desc, .profile-info-block .block-desc-text {
        text-align: left; /* Softens alignment on mid-tier viewports */
    }
}

/* Smartphone Mobile Displays */
@media (max-width: 575.98px) {
    .royal-internal-banner {
        min-height: 140px;
    }
    .culture-feature-card {
        padding: 1.5rem;
    }
    .profile-info-block {
        padding: 1.5rem !important;
    }
    .card-icon-shell {
        margin-bottom: 1rem;
    }
}


/* --- Internal Page Banner Element --- */




.banner-breadcrumbs a:hover {
    color: #b89028;
}

.banner-main-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* --- Core Page Settings --- */
.royal-about-profile {
    background-color: #faf9f6; 
}

.profile-bg-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    background-image: radial-gradient(#800000 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

.z-index-2 {
    position: relative;
    z-index: 2;
}

/* Typography Elements */
.profile-tag-label {
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    color: #b89028 !important;
}

.profile-display-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: #2c2523 !important;
    line-height: 1.3;
}

.title-underline-premium {
    width: 60px;
    height: 3px;
    background-color: #800000;
    border-radius: 2px;
}

/* --- Premium Custom Responsive Table Architecture --- */
.theme-table-card {
    border-color: rgba(0, 0, 0, 0.06) !important;
}

/* Forces table wrapper block overflow scrolling parameters cleanly */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.royal-custom-table {
    border-collapse: separate;
}

/* Header Cells styling rules */
.royal-custom-table thead th {
    background-color: #800000 !important; /* Premium Institutional Maroon */
    color: #ffffff !important;
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 1.1rem 1rem;
    border: none;
    letter-spacing: 0.5px;
}

/* Data Body Cells styling rules */
.royal-custom-table tbody td {
    padding: 1.1rem 1rem;
    font-size: 0.98rem;
    color: #4a3e3d;
    border-bottom: 1px solid #f1eeea;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

/* Alternate row striping loop configuration */
.royal-custom-table tbody tr:nth-child(even) td {
    background-color: #fdfdfc;
}

/* Highlight rows on active mouse focus */
.royal-custom-table tbody tr:hover td {
    background-color: rgba(184, 144, 40, 0.03) !important; /* Soft gold tint */
}

.text-maroon { color: #800000 !important; }
.text-gold { color: #b89028 !important; }

/* --- Advanced Micro Device Viewport Handling --- */
@media (max-width: 768px) {
    .royal-custom-table tbody td {
        padding: 0.9rem 0.75rem;
        font-size: 0.92rem; /* Compact layout settings on smaller screens */
    }
    
    /* Prevents title text blocks from wrapping into tiny broken layout letters */
    .royal-custom-table tbody td span {
        white-space: normal;
        min-width: 200px;
        display: inline-block;
    }
}

@media (max-width: 575.98px) {
    .theme-table-card {
        padding: 0.75rem !important; /* Shrinks card padding edges on mobile screens */
    }
}

/* --- Informative Status Alert Blocks --- */
.royal-deadline-alert {
    background-color: #ffffff;
    border: 1px dashed rgba(128, 0, 0, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.92rem;
    color: #4a3e3d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.royal-context-callout {
    background-color: #ffffff;
    border-color: #b89028 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

/* Elegant Section Break Strip */
.royal-section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.06) 20%, rgba(0, 0, 0, 0.06) 80%, transparent);
}

/* --- Premium Architectural Pricing Cards --- */
.royal-price-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.royal-price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(128, 0, 0, 0.05);
    border-color: rgba(128, 0, 0, 0.1);
}

/* Icon Shell Containers */
.price-icon-wrapper {
    font-size: 1.8rem;
    color: #800000; /* Institutional Maroon default */
}

.price-tier-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c2523;
}

/* Numeric Typography Metric Wrappers */
.royal-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c2523;
    letter-spacing: -0.5px;
    line-height: 1;
}

.price-currency {
    font-size: 1.6rem;
    font-weight: 600;
    margin-right: 4px;
    vertical-align: super;
}

.price-suffix {
    font-size: 1.5rem;
    font-weight: 400;
    color: #adb5bd;
}

/* --- Special Featured Card Overrides (Life Membership Box) --- */
.royal-price-card.featured-gold-card {
    border: 2px solid #b89028 !important; /* Locks thick gold framing line */
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(135deg, #b89028, #f3e5ab) border-box;
}

.royal-price-card.featured-gold-card:hover {
    box-shadow: 0 18px 40px rgba(184, 144, 40, 0.12);
}

/* Top Right Accent Corner Ribbon Badge */
.featured-badge-ribbon {
    position: absolute;
    top: 32px;
    right: -32px;
    background-color: #b89028;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 35px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.text-maroon { color: #800000 !important; }
.text-gold { color: #b89028 !important; }

/* --- Advanced Cross-Device Adaptation Queries --- */

/* Tablets Screens (Portrait/Landscape bounds) */
@media (max-width: 991.98px) {
    .royal-about-profile {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
}

/* Compact Smartphones Devices viewports */
@media (max-width: 575.98px) {
    
    .royal-deadline-alert {
        border-radius: 12px; /* Unwraps capsule layout on tight narrow phone widths */
        display: flex;
        width: 100%;
    }
    .royal-price-amount {
        font-size: 2.2rem;
    }
    .price-currency {
        font-size: 1.4rem;
    }
    .price-tier-title {
        font-size: 1.2rem;
    }
}

/* --- Unique Content & Sidebar Layout System --- */
.parishat-subheading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.small-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.text-mini {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Card Badge Accents */
.bg-maroon-light { background-color: rgba(128, 0, 0, 0.06); }
.bg-gold-light { background-color: rgba(184, 144, 40, 0.08); }

.time-slot-card {
    background-color: #ffffff;
    border-color: rgba(0,0,0,0.06) !important;
    transition: transform 0.3s ease;
}
.time-slot-card:hover {
    transform: translateY(-3px);
}

/* Topic Node Badges */
.topic-pill-node {
    background-color: #fdfdfc;
    border: 1px solid rgba(0,0,0,0.04);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #4a3e3d;
}

/* --- Premium Interactive Sidebar Components --- */
.sidebar-action-panel {
    background: linear-gradient(135deg, #800000 0%, #590000 100%);
    border: 1px solid rgba(128,0,0,0.1);
}

.rgba-white-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.btn-gold-action {
    background-color: #b89028;
    color: #ffffff;
    padding: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.btn-gold-action:hover {
    background-color: #ffffff;
    color: #800000;
}

/* Timeline Components */
.sidebar-widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c2523;
    border-bottom: 1px solid #f1eeea;
    padding-bottom: 10px;
}

.border-left-timeline::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 6px;
    bottom: -6px;
    width: 2px;
    background-color: #eae6df;
}

.timeline-node-item::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #b89028;
    border: 2px solid #ffffff;
    z-index: 2;
}

.timeline-clock {
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}
.timeline-title {
    font-size: 0.92rem;
    line-height: 1.4;
    display: block;
}

/* Chair Profile Rows */
.border-bottom-dashed {
    border-bottom: 1px dashed #eae6df;
}

.sidebar-avatar-circle {
    width: 40px;
    height: 40px;
    background-color: rgba(128,0,0,0.05);
    color: #800000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* --- Related Links Action Strip --- */
.premium-interactive-link {
    display: inline-flex;
    align-items: center;
    color: #800000;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}
.premium-interactive-link:hover {
    color: #b89028;
}

/* --- Device-Specific Overrides --- */
@media (max-width: 991.98px) {
    .sticky-sidebar-wrapper {
        margin-top: 1.5rem;
    }
}

/* --- Unique Abstract Submission Timeline Component Elements --- */
.timeline-deadline-card {
    background-color: #fdfdfc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-deadline-card:hover {
    transform: translateY(-3px);
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.timeline-date-metric {
    font-size: 1.1rem;
    letter-spacing: -0.2px;
    display: block;
}

/* Red Alarm Accent Border for Critical Closing Dates */
.timeline-deadline-card.critical-deadline {
    border-left: 3px solid #800000;
    background-color: rgba(128, 0, 0, 0.01);
}

/* Gold Highlight Accent for Event Session Host Duration Frame */
.timeline-deadline-card.featured-gold-slot {
    border: 1px solid #b89028;
    background-color: rgba(184, 144, 40, 0.02);
}

/* --- Interactive Download Resource Deck Elements --- */
.download-links-deck a {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.05) !important;
    transition: all 0.25s ease-in-out;
}

.download-links-deck a:hover {
    border-color: #b89028 !important;
    background-color: rgba(184, 144, 40, 0.02);
    color: #800000 !important;
}

/* Accordion FAQ Node Spacing elements */
.faq-node-block {
    padding-bottom: 12px;
    border-bottom: 1px dashed #eae6df;
}
.faq-node-block:last-of-type {
    border-bottom: none;
}

/* --- Mobile Specific Optimization Adjustments --- */
@media (max-width: 575.98px) {
    .timeline-date-metric {
        font-size: 0.95rem; /* Tightens text space down slightly on smartphone views */
    }
}
/* --- Unique Accordion Structure Adjustments --- */
.royal-custom-accordion {
    border-radius: 12px;
}

.royal-custom-accordion .accordion-item {
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

/* Custom styling for open state indicator icon rotations */
.royal-custom-accordion .accordion-button:not(.collapsed) {
    color: #800000 !important; /* Changes heading text to active institutional maroon */
    background-color: rgba(128, 0, 0, 0.02) !important;
}

.royal-custom-accordion .accordion-button::after {
    transition: transform 0.2s ease-in-out;
}

/* Text Element Modifiers */
.text-mini {
    font-size: 0.88rem;
    font-weight: 500;
}
/* --- Unique Poster Layout Overrides --- */
.butch {
    font-size: 0.9rem;
}
/* --- Unique Full Paper Style Elements --- */
.timeline-deadline-card.featured-gold-slot {
    border: 1px solid #b89028;
    background-color: rgba(184, 144, 40, 0.02);
}
/* --- Unique How To Reach Component Layout Styles --- */
.text-nowrap {
    white-space: nowrap;
}
/* --- Unique Grievance Form UI Adaptations --- */
.royal-custom-form-deck label {
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

/* Custom modifier layout path rule for textareas */
textarea.table-search-input {
    min-height: 120px;
    resize: vertical; /* Permits users to scale text box boundaries downwards cleanly */
    border-radius: 12px !important;
}
/* --- Unique Homepage Tracker Section Elements --- */
.royal-quick-tracker {
    background-color: #f6f5f2; /* Smooth background offset */
}

/* Glass Countdown Panel Box */
.countdown-glass-panel {
    background: linear-gradient(135deg, #800000 0%, #4a0000 100%);
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.15);
}

.countdown-digit-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    min-width: 70px;
}

/* Micro Metrics Cards */
.metric-micro-card {
    border-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s ease;
}

.metric-micro-card:hover {
    transform: translateY(-4px);
    border-color: rgba(128, 0, 0, 0.1) !important;
}

.metric-icon-bubble {
    width: 40px;
    height: 40px;
    background-color: rgba(184, 144, 40, 0.08);
    color: #b89028;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
/* --- Unique Abstract Real-Time Word Counter Styles --- */
.abstract-word-counter {
    font-size: 0.82rem;
    letter-spacing: 0.3px;
}

/* State warning override class */
.word-limit-exceeded {
    color: #800000 !important; /* Changes text to institutional maroon alert */
    animation: simpleShake 0.3s ease-in-out;
}

@keyframes simpleShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* ---------- PREVIOUS BADGE CSS STAYS THE SAME ---------- */
.theme-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px 0;
}
.theme-badge {
    background-color: #f8f9fa;
    border: 1px solid #dcdcdc;
    color: #4a4a4a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.theme-badge:hover {
    background-color: #800000;
    color: #ffffff;
    border-color: #800000;
    box-shadow: 0 3px 6px rgba(128,0,0,0.2);
    transform: translateY(-1px);
}

/* ---------- NEW MOBILE RESPONSIVE CSS ---------- */
@media screen and (max-width: 768px) {
    /* Force table to stack rather than display as a grid */
    .responsive-table, 
    .responsive-table thead, 
    .responsive-table tbody, 
    .responsive-table th, 
    .responsive-table td, 
    .responsive-table tr { 
        display: block; 
    }
    
    /* Hide standard table headers visually, but keep for screen readers */
    .responsive-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    /* Style each row as a card */
    .responsive-table tr { 
        border: 1px solid #e0e0e0; 
        border-radius: 8px;
        margin-bottom: 20px;
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        overflow: hidden; /* Keeps rounded corners clean */
    }
    
    /* Style the individual cells */
    .responsive-table td { 
        border: none;
        border-bottom: 1px solid #f0f0f0; 
        position: relative;
        padding: 15px 15px 15px 40% !important; /* Make room for the labels */
        text-align: left;
        min-height: 50px;
    }
    
    .responsive-table td:last-child {
        border-bottom: 0;
    }
    
    /* Inject the column names on the left side of the card */
    .responsive-table td::before { 
        content: attr(data-label);
        position: absolute;
        top: 2px;
        left: 15px;
        width: 35%; 
        padding-right: 10px; 
        white-space: nowrap;
        font-size: 0.9em;
        font-weight: 700;
        color: #800000; /* Institutional Maroon */
    }
}

  /* Premium Clickable Title Styling */
    .clickable-theme-title {
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        padding: 5px 8px;
        border-radius: 6px;
    }
    .clickable-theme-title:hover {
        background-color: rgba(128, 0, 0, 0.05);
        color: #b89028 !important;
        transform: translateX(4px);
    }
    /* Stylish Badges for the Modal */
   .modal-theme-badge {
        display: block; /* Changed from inline-block to block */
        width: 100%;    /* Makes them fill the container width */
        padding: 0.8rem 1.2rem;
        background-color: #f8f9fa;
        border: 1px solid #e2e8f0;
        border-left: 4px solid #800000; /* Thicker left border for style */
        border-radius: 6px;
        font-size: 0.95rem;
        color: #2d3748;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        transition: background-color 0.2s ease;
    }
    .modal-theme-badge:hover {
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    /* Premium Sectional Head & Email Styling */
.head-name {
    font-size: 0.95rem;
    color: #2d3748;
}
.head-affiliation {
    font-size: 0.8rem;
    color: #718096;
    display: block;
    margin-top: 2px;
    line-height: 1.3;
}
.theme-email-link {
    color: #800000;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.theme-email-link:hover {
    color: #b89028;
    text-decoration: underline;
}
.map-container-premium {
        position: relative;
        overflow: hidden;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        min-height: 280px;
        height: 100%;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .map-container-premium:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
    .map-container-premium iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }
    .royal-address-card {
        background-color: #f8f9fa;
        border-left: 4px solid #800000 !important;
        border-radius: 16px;
    }
    .contact-info-wrapper {
    background-color: #f8f9fa;
    border-left: 4px solid #800000;
}

.contact-icon-box {
    width: 40px;
    height: 40px;
    background-color: rgba(128, 0, 0, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #800000;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.aioc-submit-btn {
    background-color: #800000;
    color: #ffffff;
    padding: 12px 30px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.aioc-submit-btn:hover {
    background-color: #b89028;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 144, 40, 0.2);
}

.custom-input-aioc {
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-input-aioc:focus {
    border-color: #b89028;
    box-shadow: 0 0 0 0.25rem rgba(184, 144, 40, 0.15);
}
/* AIOC Premium Single Image Showcase */
.premium-image-frame {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-image-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.single-image-container {
    /* Ensures the image doesn't break out of the rounded corners during hover zoom */
    border-radius: 12px; 
    overflow: hidden;
}

.aioc-showcase-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    object-position: center; /* Ensures the focus is always the middle of the image */
}

/* Subtle zoom effect on hover */
.premium-image-frame:hover .aioc-showcase-img {
    transform: scale(1.04);
}

.image-caption-overlay {
    /* Smooth dark gradient fading up from the bottom */
    background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    transition: padding-bottom 0.3s ease;
}

/* Optional: Slight upward nudge of text on hover for a dynamic feel */
.premium-image-frame:hover .image-caption-overlay {
    padding-bottom: 3.5rem !important; 
}
/* Sleek Horizontal Ribbon */
.compact-tracker-ribbon {
    border-radius: 16px; /* Rounded corners for mobile */
}
@media (min-width: 768px) {
    .compact-tracker-ribbon {
        border-radius: 50px; /* Perfect pill shape for desktop */
    }
}

/* Icon next to the title */
/* BASE STYLES (From previous step) */
.compact-tracker-ribbon {
    border-radius: 16px;
}
@media (min-width: 992px) {
    .compact-tracker-ribbon {
        border-radius: 50px; 
    }
}
.ribbon-icon {
    width: 45px; height: 45px;
    background-color: rgba(128, 0, 0, 0.08);
    color: #800000;
    border-radius: 50%;
    align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.mini-digit-box {
    background: #f8f9fa;
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.text-mini { font-size: 0.75rem; }

.metric-micro-card {
    border-bottom: 4px solid transparent !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.metric-micro-card:hover {
    transform: translateY(-5px);
    border-bottom-color: #800000 !important;
    box-shadow: 0 15px 30px rgba(128, 0, 0, 0.08) !important;
}
.metric-icon-bubble {
    width: 65px; height: 65px;
    background: rgba(128, 0, 0, 0.05);
    color: #800000;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}
.metric-micro-card:hover .metric-icon-bubble {
    background: #800000; color: #ffffff;
    transform: scale(1.1);
}
.metric-number { font-size: 2.2rem; color: #2d3748; line-height: 1.2; }


/* ========================================== */
/* NEW RESPONSIVE MOBILE FIXES                */
/* ========================================== */

@media (max-width: 576px) {
    /* Shrink the digit boxes slightly on phones */
    .mini-digit-box {
        padding: 6px 10px;
        min-width: 68px; /* Ensures they all stay the same width */
        flex-direction: column; /* Stacks the number and text vertically on tiny screens */
        align-items: center;
    }
    
    /* Remove margin between number and text since they are stacked */
    .mini-digit-box .text-mini {
        margin-left: 0 !important;
        margin-top: 2px;
        font-size: 0.65rem;
    }
    
    /* Adjust font size */
    .digit-val {
        font-size: 1.15rem !important;
    }
}
/* Quick Hover Effect for Metric Boxes */
/* Dashboard Premium Enhancements */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-row {
    transition: background-color 0.2s ease;
}
.transition-row:hover {
    background-color: #f8f9fa !important;
}

/* Ensure buttons in table stay perfectly circular */
.action-container .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Premium Welcome Banner Styling */
.workspace-welcome-banner {
    /* Rich, royal gradient background */
    background: linear-gradient(135deg, #4a0000 0%, #800000 100%);
    /* Soft, colored shadow for depth */
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.15);
}

/* Adds a massive, faint academic icon to the right side as a watermark */
.workspace-welcome-banner::after {
    content: '\f19d'; /* FontAwesome Graduation Cap icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: -2%;
    bottom: -35%;
    font-size: 16rem;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    z-index: 1;
    transform: rotate(-10deg);
}

/* Glassmorphism effect for the badge */
.badge-premium {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Custom CSS for Book Fair Grid */

.text-shadow-sm {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bg-maroon-soft {
    background-color: #fcebeb !important; /* Soft red background for icon circles */
}

.text-maroon {
    color: #800000 !important;
}

.btn-maroon {
    background-color: #800000;
    color: #ffffff;
    border: none;
}

.btn-maroon:hover {
    background-color: #5c0000;
    color: #ffffff;
}

.btn-outline-maroon {
    color: #800000;
    border-color: #800000;
}

.btn-outline-maroon:hover {
    background-color: #800000;
    color: #ffffff;
}

/* Card Hover Animations */
.exhibitor-card {
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease;
}

.exhibitor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(128, 0, 0, 0.1) !important;
    border-color: rgba(128, 0, 0, 0.2) !important;
}

.icon-circle {
    transition: all 0.3s ease;
}

/* Make the icon circle fill in with solid maroon on hover */
.exhibitor-card:hover .icon-circle {
    background-color: #800000 !important;
}

.exhibitor-card:hover .icon-circle i {
    color: #ffffff !important;
}
/* ========================================= */
/* Responsive Perfection for Book Fair Page  */
/* ========================================= */

/* Mobile Phones (Screens smaller than 768px) */
@media (max-width: 767.98px) {
    
    /* 1. Scale down the giant background watermark */
    .card .fa-book-reader.position-absolute {
        font-size: 9rem !important;
        right: -10% !important;
        bottom: -10% !important;
        opacity: 0.08 !important; /* Make it slightly fainter on small screens */
    }
    
    /* 2. Adjust hero text size to prevent line-wrapping awkwardness */
    h1.font-playfair.fs-1 {
        font-size: 2.2rem !important; 
    }
    
    /* 3. Reduce padding slightly so content fits better */
    .main-content .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .card-body.p-4 {
        padding: 1.25rem !important;
    }
    
    /* 4. Ensure the mobile CTA button spans the full width neatly */
    .d-md-none .btn-maroon {
        width: 100%;
        font-size: 1rem;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
}

/* Tablets (Screens between 768px and 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    
    /* Scale the watermark for tablets */
    .card .fa-book-reader.position-absolute {
        font-size: 12rem !important;
        right: -5% !important;
    }
    
    /* Ensure the title and buttons align well side-by-side */
    .d-flex.align-items-center.justify-content-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .d-flex.align-items-center.justify-content-between .d-none.d-md-block {
        display: block !important;
        width: 100%;
    }
}
/* Custom CSS for Book Releases Page */

.text-shadow-sm {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bg-maroon-soft {
    background-color: #fcebeb !important;
}

.text-maroon {
    color: #800000 !important;
}

.bg-maroon {
    background-color: #800000 !important;
}

/* Language Badges Hover */
.badge.bg-maroon-soft {
    border-color: rgba(128, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}
.badge.bg-maroon-soft:hover {
    background-color: #800000 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}
.badge.bg-maroon-soft:hover i {
    opacity: 1 !important;
}

/* Subject Card Hover Animations */
.subject-card {
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.4s ease;
}

.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(128, 0, 0, 0.1) !important;
    border-color: rgba(128, 0, 0, 0.15) !important;
}

.icon-circle-lg {
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.subject-card:hover .icon-circle-lg {
    background-color: #800000 !important;
    color: #ffffff !important;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.2) !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .card .fa-book-open.position-absolute {
        font-size: 10rem !important;
        right: -10% !important;
        opacity: 0.08 !important;
    }
    
    h1.font-playfair.fs-1 {
        font-size: 2.2rem !important; 
    }
}
/* Custom CSS for Organisers Page */

.text-shadow-sm {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bg-maroon {
    background-color: #800000 !important;
}

.bg-maroon-soft {
    background-color: #fcebeb !important;
}

.text-maroon {
    color: #800000 !important;
}

/* Card Hover Animations */
.profile-card {
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(128, 0, 0, 0.1) !important;
    border-color: rgba(128, 0, 0, 0.15) !important;
}

/* Icon Animations */
.icon-circle, .icon-circle-xl {
    transition: all 0.3s ease;
}

/* On hover, flip the soft background to solid maroon */
.profile-card:hover .bg-maroon-soft {
    background-color: #800000 !important;
    color: #ffffff !important;
}

/* On hover, slightly enlarge the solid maroon convenor icons */
.profile-card:hover .icon-circle-xl {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3) !important;
}

/* Mobile Responsiveness for Hero Banner */
@media (max-width: 767.98px) {
    .card .fa-users.position-absolute {
        font-size: 10rem !important;
        right: -10% !important;
        bottom: -20% !important;
        opacity: 0.08 !important;
    }
    
    h1.font-playfair.fs-1 {
        font-size: 2.2rem !important; 
    }
}