/* ===============================================
   Website Prodi - Frontend CSS
   Modern, Professional, Dark/Light Mode Ready
   =============================================== */

:root {
    /* Identitas Resmi LP2M UIN Ar-Raniry Banda Aceh */
    --primary: #087443;
    --primary-dark: #064e35;
    --primary-light: #15945a;
    --secondary: #68736c;
    --gold: #c9a227; /* Kuning Emas UIN */
    --gold-light: #f0c84a;
    --gold-dark: #9c7b18;
    --p-dark: #064e35;
    --dark-bg: #0c1219;
    --dark-surface: #152230;
    --dark-border: #1e3347;
    --dark-text: #f1f5f9;
    --bs-primary: #087443;
    --bs-primary-rgb: 8, 116, 67;
    --bs-link-color: #087443;
    --bs-link-hover-color: #064e35;
    --transition: all 0.3s ease;
    --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --border-radius: 0.75rem;
    --shadow: 0 4px 6px -1px rgba(10, 61, 39, .08), 0 2px 4px -1px rgba(10, 61, 39, .04);
    --shadow-lg: 0 20px 25px -5px rgba(10, 61, 39, .1), 0 10px 10px -5px rgba(10, 61, 39, .04);
}

/* Global Overrides Warna Institusi UIN Ar-Raniry (Anti Warna Biru Default) */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
    color: #ffffff !important;
}
.text-primary {
    color: var(--primary) !important;
}
.bg-primary {
    background-color: var(--primary) !important;
}
.border-primary {
    border-color: var(--primary) !important;
}
.badge.bg-primary {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}
a:hover {
    color: var(--primary-dark);
}

/* ========= BASE ========= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.frontend-body {
    font-family: var(--font-body);
    color: #202923;
    background: #f7faf8;
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ========= DARK MODE ========= */
html.dark body.frontend-body {
    background: var(--dark-bg);
    color: var(--dark-text);
}

html.dark .navbar {
    background: var(--dark-surface) ;
    border-bottom: 1px solid var(--dark-border);
}

html.dark .navbar-brand,
html.dark .nav-link {
    color: var(--dark-text) ;
}

html.dark .navbar-toggler-icon {
    filter: invert(1);
}

html.dark .card {
    background: var(--dark-surface) ;
    border-color: var(--dark-border) ;
}

html.dark .card .card-title,
html.dark .card h5,
html.dark .card h6 {
    color: var(--dark-text) ;
}

html.dark .bg-light {
    background: var(--dark-surface) ;
}

html.dark .text-dark {
    color: var(--dark-text) ;
}

html.dark .dropdown-menu {
    background: var(--dark-surface);
    border-color: var(--dark-border);
}

html.dark .dropdown-item {
    color: var(--dark-text);
}

html.dark .dropdown-item:hover {
    background: var(--dark-border);
}

html.dark footer {
    background: #020617 ;
}

html.dark .bg-white {
    background: var(--dark-surface) ;
}

html.dark .text-muted {
    color: #94a3b8 ;
}

/* ========= NAVBAR ========= */
#main-navbar {
    transition: var(--transition);
    z-index: 1040 ;
    padding: .75rem 0;
    overflow: visible ;
}

.nav-link {
    transition: color .2s;
    font-size: .9rem;
}

.nav-link:hover {
    color: var(--primary) ;
}

#main-navbar .navbar-brand {
    min-width: 0;
}

#main-navbar .logo-container {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

#main-navbar .site-logo-main,
#main-navbar .site-logo-white {
    width: auto;
    height: auto;
    max-width: 125px;
    max-height: 52px;
    object-fit: contain;
}

#main-navbar .site-logo-main {
    mix-blend-mode: multiply;
}

#main-navbar .navbar-toggler:focus-visible,
#main-navbar a:focus-visible,
#main-navbar button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

@media (max-width: 1199.98px) {
    #main-navbar .navbar-collapse.show {
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }

    #main-navbar .navbar-nav {
        align-items: stretch;
        gap: .15rem;
        padding: .75rem 0;
    }

    #main-navbar .navbar-nav > .nav-item,
    #main-navbar .navbar-nav > .nav-item > .nav-link {
        width: 100%;
    }

    #main-navbar .navbar-nav > .nav-item > .nav-link {
        padding: .65rem 1rem;
        border-radius: .5rem;
    }

    #main-navbar .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: calc(100% - 1rem);
        margin-inline-start: 1rem;
        box-shadow: none;
    }

    #main-navbar .navbar-nav > .nav-item.ms-3 {
        margin-inline-start: 0 ;
        padding: .5rem 1rem;
    }
}

@media (max-width: 575.98px) {
    #main-navbar > .container {
        flex-wrap: nowrap;
    }

    #main-navbar .navbar-brand {
        gap: .5rem ;
        margin-right: .25rem;
    }

    #main-navbar .site-logo-main,
    #main-navbar .site-logo-white {
        max-width: 95px;
        max-height: 42px;
    }

    #main-navbar .elegant-brand-title {
        font-size: .95rem ;
    }

    #main-navbar .elegant-brand-subtitle {
        font-size: .72rem ;
    }

    #main-navbar .navbar-toggler {
        flex: 0 0 auto;
        padding: .35rem;
    }
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    overflow: visible ;
    z-index: 9999 ;
}

.dropdown-item {
    padding: .6rem 1.25rem;
    font-size: .875rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: #e8f5ed;
    color: var(--primary);
}

/* ========= HERO ========= */
.hero-section {
    position: relative;
}

.hero-swiper,
.default-hero {
    height: 85vh;
    min-height: 500px;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    height: 85vh;
    min-height: 500px;
}

.hero-content {
    max-width: 680px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: .9;
    margin-top: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.default-hero {
    background: var(--p-dark, #0f172a);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(var(--gold-rgb, 201, 162, 39), 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(var(--gold-rgb, 201, 162, 39), 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--p-dark, #0f172a) 0%, var(--p-emerald, #1e293b) 100%);
    position: relative;
    z-index: 1;
}

.hero-divider-premium {
    width: 80px;
    height: 4px;
    background: var(--gold, #c9a227);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    animation: blob-float 20s infinite alternate;
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--gold, #c9a227);
    top: -100px;
    right: -100px;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: #7c3aed;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.hero-blob-3 {
    width: 300px;
    height: 300px;
    background: #10b981;
    top: 50%;
    left: 40%;
    animation-delay: -10s;
}

.floating-icon {
    position: absolute;
    color: rgba(255,255,255,0.05);
    font-size: 5rem;
    z-index: 0;
    pointer-events: none;
    animation: icon-float 15s infinite ease-in-out;
}

.floating-icon.icon-1 { top: 15%; left: 10%; animation-delay: 0s; }
.floating-icon.icon-2 { bottom: 20%; right: 15%; animation-delay: -3s; font-size: 4rem; }
.floating-icon.icon-3 { top: 30%; right: 10%; animation-delay: -7s; font-size: 3rem; }

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.1); }
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

[data-aos="stretch-width"] {
    width: 0;
    transition-property: width;
}
[data-aos="stretch-width"].aos-animate {
    width: 80px;
}

/* Hero Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: white ;
}

.swiper-pagination-bullet-active {
    background: white ;
}

/* ========= STATS BAR ========= */
.stats-bar {
    padding: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #312e81 0%, #3730a3 50%, #581c87 100%) ;
}

.stats-bar-decorative {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.stats-bar-blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(40px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.stats-bar-blob-1 {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background-color: #6366f1;
}

.stats-bar-blob-2 {
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background-color: #a855f7;
}

.stats-bar .container {
    position: relative;
    z-index: 10;
}

.stat-item {
    padding: 1rem;
    border-right: 1px solid rgba(255, 255, 255, .2);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.stat-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .85;
}

/* ========= SECTION COMMON ========= */
.section-badge {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #312e81 0%, #3730a3 50%, #581c87 100%) ;
}

.section-cta-decorative {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.section-cta-blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(40px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.section-cta-blob-1 {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background-color: #6366f1;
}

.section-cta-blob-2 {
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background-color: #a855f7;
}

/* ========= ANNOUNCEMENT TICKER ========= */
.announcement-ticker {
    max-width: 100%;
}

.ticker-track {
    animation: ticker-scroll 20s linear infinite;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========= CARDS ========= */
.news-card {
    transition: transform .3s, box-shadow .3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) ;
}

.news-img-wrap img {
    transition: transform .5s;
}

.news-card:hover .news-img-wrap img {
    transform: scale(1.1) rotate(1deg);
}

.header-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(0, 86, 179, 0.3) 100%);
    border-radius: 10px;
}

.btn-elegant-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.btn-elegant-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.btn-elegant-link:hover {
    color: var(--primary);
    letter-spacing: 3px;
}

.btn-elegant-link:hover::after {
    width: 100%;
}

.btn-elegant-link .transition-transform {
    transition: transform 0.3s ease;
}

.btn-elegant-link:hover .transition-transform {
    transform: translateX(10px);
}

.news-card {
    border-radius: 1.5rem ;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff ;
}

.news-card:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08) ;
    transform: translateY(-8px) scale(1.01);
}

.news-card .card-title {
    line-height: 1.4;
    letter-spacing: -0.02em;
}

/* Glassmorphism Refinement for Badges */
.news-badge {
    background: rgba(255, 255, 255, 0.15) ;
    backdrop-filter: blur(8px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3) ;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) ;
    color: #fff ;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Elegant News Overlays */
.news-category-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

/* Ultimate Unified News Card */
.news-ultimate-card {
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    background: #fff;
}

.news-ultimate-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 45px 100px rgba(0, 0, 0, 0.1) ;
}

.image-zoom-effect {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-ultimate-card:hover .image-zoom-effect {
    transform: scale(1.1);
}

.news-cat-badge-wrap {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.news-cat-badge {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.shadow-premium {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) ;
}

/* Immersive Cinematic News Grid */
.header-accent-line {
    width: 30px;
    height: 2px;
}

.bg-theme-accent { background-color: var(--gold) ; }
.text-theme-accent { color: var(--gold); }
.bg-theme-dark { background-color: var(--p-dark) ; }

.badge-theme-pill {
    padding: 6px 16px;
    background: var(--gold);
    color: #fff;
    border-radius: 50px;
    font-size: 0.65rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.badge-theme-pill:hover {
    transform: scale(1.08);
    background: #fff;
    color: var(--gold) ;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.news-immersive-card {
    min-height: 245px;
    border-radius: var(--border-radius);
}

.news-immersive-card .news-bg-image-box {
    position: absolute;
    inset: 0;
}

.post-image-frame {
    height: 200px;
    overflow: hidden;
    background: #e8f5ed;
}

.post-image-frame--featured {
    height: auto;
    min-height: 100%;
    aspect-ratio: 16 / 9;
}

.post-image-frame--related {
    height: 120px;
}

.post-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 245px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem;
    background: linear-gradient(145deg, #064e35, #087443);
    color: #fff;
    text-align: center;
}

.post-image-placeholder i {
    font-size: 2rem;
    opacity: .8;
}

.post-image-placeholder span {
    font-size: .8rem;
    font-weight: 600;
}

.post-image-placeholder--featured {
    min-height: 400px;
}

.post-image-placeholder--card {
    min-height: 250px;
}

.post-image-placeholder--immersive {
    min-height: 100%;
}

.post-image-placeholder--compact {
    min-height: 0;
    padding: 0;
    border-radius: .5rem;
    font-size: .7rem;
}

.post-image-placeholder--compact i {
    font-size: 1.1rem;
}

.post-image-thumbnail,
.post-image-frame--related .post-image-placeholder {
    width: 70px;
    height: 70px;
    min-height: 70px;
    flex: 0 0 70px;
}

.article-header--no-image {
    background: linear-gradient(135deg, #064e35, #087443);
}

.news-immersion-grad {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    z-index: 2;
    transition: all 0.5s ease;
}

.news-immersive-card:hover .news-immersion-grad {
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 100%);
}

.news-immersion-content {
    z-index: 5;
}

.immersion-img {
    transform: scale(1);
}

.news-immersive-card:hover .immersion-img {
    transform: scale(1.1);
}

.meta-dot {
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
}

.news-footer-arrow {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-immersive-card:hover .news-footer-arrow {
    background: #fff;
    color: #000 ;
    transform: translateX(5px);
}

.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }
.tracking-widest { letter-spacing: 0.15em; }

.news-immersive-title a {
    transition: opacity 0.3s;
}

.news-immersive-card:hover .news-immersive-title a {
    opacity: 0.9;
}

.read-more-link {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateX(-10px);
    font-weight: 700;
}

.news-card:hover .read-more-link {
    opacity: 1;
    transform: translateX(0);
}

.hover-primary:hover {
    color: var(--primary) ;
}

.text-primary-light {
    color: var(--primary);
    opacity: 0.6;
}

.news-card .card-body {
    transition: var(--transition);
}

.news-card:hover {
    background: #fff ;
}

html.dark .news-card:hover {
    background: var(--dark-surface) ;
}

.event-card {
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) ;
}

.lecturer-card {
    transition: var(--transition);
}

.lecturer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) ;
}

.lecturer-card img {
    transition: transform .3s;
}

.ratio-custom-featured {
    position: relative;
    width: 100%;
}

.ratio-custom-featured::before {
    display: block;
    content: "";
    padding-top: 40%; /* Cinematic wide ratio for 3/4 column */
}

.ratio-custom-featured > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 991px) {
    .ratio-custom-featured::before {
        padding-top: 56.25%; /* Back to 16:9 on tablets/mobile */
    }
}

/* ========= TESTIMONIAL SWIPER ========= */
.testimonial-swiper .swiper-wrapper {
    padding-bottom: 20px;
}

/* ========= PARTNERS MARQUEE ========= */
.partners-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 1rem 0;
}

/* Fade masks on left & right */
.partners-marquee-wrapper::before,
.partners-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}

.partners-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}

html.dark .partners-marquee-wrapper::before {
    background: linear-gradient(to right, var(--dark-surface), transparent);
}

html.dark .partners-marquee-wrapper::after {
    background: linear-gradient(to left, var(--dark-surface), transparent);
}

.partners-marquee-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.partners-marquee-wrapper:hover .partners-marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.partners-marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-marquee-item img {
    max-height: 64px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    filter: grayscale(80%) opacity(0.65);
    transition: filter .3s ease, transform .3s ease;
}

.partners-marquee-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

.partners-marquee-item a {
    display: flex;
    align-items: center;
}

.partner-name-text {
    font-weight: 600;
    font-size: .9rem;
    color: var(--secondary);
    white-space: nowrap;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

html.dark .partners-marquee-wrapper::before {
    background: linear-gradient(to right, var(--dark-bg), transparent);
}

html.dark .partners-marquee-wrapper::after {
    background: linear-gradient(to left, var(--dark-bg), transparent);
}

.dark .site-logo-main { display: none ; }
.dark .site-logo-white { display: block ; }

/* ========= UTILITIES ========= */
/* ========= FOOTER ========= */
footer {
    background: #0f172a;
    color: #94a3b8;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color .2s;
}

footer a:hover {
    color: white;
}

footer .footer-heading {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .8rem;
    margin-bottom: 1rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, .1);
}

.social-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white ;
}

/* ========= SCROLL TO TOP ========= */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ========= CHATBOT WIDGET ========= */
.chatbot-toggle {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    width: 52px;
    height: 52px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    box-shadow: var(--shadow-lg);
    font-size: 1.2rem;
    transition: var(--transition);
}

.chatbot-toggle:hover {
    background: #6d28d9;
    transform: scale(1.1);
}

.chatbot-window {
    position: fixed;
    bottom: 9.5rem;
    right: 2rem;
    width: 320px;
    height: 420px;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 997;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

html.dark .chatbot-window {
    background: var(--dark-surface);
}

.chatbot-window.open {
    display: flex;
    animation: slideInUp .3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: #7c3aed;
    color: white;
    padding: .75rem 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-size: .85rem;
}

.chat-bubble {
    max-width: 85%;
    padding: .5rem .8rem;
    border-radius: 1rem;
    line-height: 1.5;
}

.chat-bubble.bot {
    background: #eff6ff;
    color: #1e293b;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-bubble.user {
    background: #7c3aed;
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

html.dark .chat-bubble.bot {
    background: var(--dark-border);
    color: var(--dark-text);
}

.chatbot-input {
    padding: .75rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: .5rem;
}

html.dark .chatbot-input {
    border-color: var(--dark-border);
}

.chatbot-input input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: .4rem .8rem;
    font-size: .85rem;
    outline: none;
    background: transparent;
    color: inherit;
}

.chatbot-input button {
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {

    .hero-slide,
    .hero-swiper,
    .default-hero {
        height: 70vh;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .2);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .chatbot-window {
        width: calc(100vw - 2rem);
        right: 1rem;
    }

    .scroll-top-btn,
    .chatbot-toggle {
        right: 1rem;
    }
}

/* ========= ACCESSIBILITY UTILITIES ========= */
.accessibility-grayscale {
    filter: grayscale(100%) !important;
}

.accessibility-high-contrast {
    background: #000 !important;
    color: #fff !important;
}

.accessibility-high-contrast *:not(.acc-btn) {
    background-color: #000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
}

.accessibility-high-contrast a {
    color: #00ffff !important;
    text-decoration: underline !important;
}

.accessibility-font-plus {
    font-size: 1.25rem !important;
}

.accessibility-font-plus h1 {
    font-size: 3.5rem !important;
}

.accessibility-font-plus .stat-number {
    font-size: 2.5rem !important;
}

.accessibility-link-highlight a {
    text-decoration: underline !important;
    font-weight: 800 !important;
    background-color: yellow !important;
    color: black !important;
}

.accessibility-legible-font * {
    font-family: 'Arial', 'Helvetica', sans-serif !important;
}

/* Accessibility Widget Styles */
.acc-widget {
    position: fixed;
    bottom: 9.5rem;
    right: 2rem;
    z-index: 1050;
    font-family: var(--font-body);
}

.acc-toggle {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: none;
    font-size: 1.4rem;
}

.acc-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.acc-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: .75rem;
    animation: slideInUp .3s ease;
}

html.dark .acc-menu {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
}

.acc-menu.open {
    display: flex;
}

.acc-header {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--primary);
}

html.dark .acc-header {
    color: #60a5fa;
}

.acc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.acc-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: .5rem;
    padding: .6rem .4rem;
    font-size: .75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    transition: var(--transition);
    color: #1e293b;
    text-align: center;
    line-height: 1.2;
}

html.dark .acc-btn {
    background: var(--dark-border);
    border-color: #475569;
    color: white;
}

.acc-btn:hover {
    background: #e2e8f0;
    border-color: var(--primary);
}

html.dark .acc-btn:hover {
    background: #334155;
}

.acc-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.acc-btn i {
    font-size: 1.1rem;
}

.acc-reset {
    margin-top: .5rem;
    width: 100%;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: .5rem;
    padding: .5rem;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.acc-reset:hover {
    background: #dc2626;
}

@media (max-width: 768px) {
    .acc-widget {
        right: 1rem;
        bottom: 9.5rem;
    }

    .acc-menu {
        width: calc(100vw - 2rem);
    }

    .chatbot-toggle {
        bottom: 10rem;
    }

    .acc-widget {
        bottom: 5.5rem;
    }

    .scroll-top-btn {
        bottom: 2rem;
    }
}

@media (max-width: 576px) {

    .hero-slide,
    .hero-swiper,
    .default-hero {
        height: 60vh;
    }

    .hero-title {
        font-size: 1.5rem;
    }

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

/* ========= PREMIUM PAGE HEADER ========= */
.page-header-premium {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1a56a0 100%) ;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.page-header-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm1 1h38v38H1V1z' fill='%23ffffff' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.page-header-logo {
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    opacity: 0.08;
    pointer-events: none;
    transform: rotate(-15deg);
    z-index: 0;
}

.page-header-logo img {
    height: 280px;
    width: auto;
    filter: brightness(0) invert(1) ;
}

html {
    overflow-x: clip !important;
}

@media (max-width: 767.98px) {
    body.frontend-body [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 575.98px) {
    .page-header-logo {
        right: -0.5rem;
        bottom: -1rem;
    }

    .page-header-logo img {
        height: 9rem;
        max-width: 50vw;
    }
}

.footer-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.footer-brand-logo {
    width: auto;
    height: auto;
    max-height: 48px;
    max-width: 125px;
    object-fit: contain;
    display: block;
}

.rotate-n-15 {
    transform: rotate(-15deg);
}

.hero-logo-premium {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    animation: heroLogoFloat 6s ease-in-out infinite;
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========= ACCESSIBILITY WIDGET ========= */
.acc-widget {
    position: fixed;
    right: 2rem;
    bottom: 5.5rem;
    z-index: 1000;
}

.acc-toggle {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: none;
    font-size: 1.4rem;
}

.acc-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.acc-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: .75rem;
    animation: slideInUp .3s ease;
}

html.dark .acc-menu {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
}

.acc-menu.open {
    display: flex;
}

.acc-header {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--primary);
}

html.dark .acc-header {
    color: #60a5fa;
}

.acc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.acc-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: .5rem;
    padding: .6rem .4rem;
    font-size: .75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    transition: var(--transition);
    color: #1e293b;
    text-align: center;
    line-height: 1.2;
}

html.dark .acc-btn {
    background: var(--dark-border);
    border-color: #475569;
    color: white;
}

.acc-btn:hover {
    background: #e2e8f0;
    border-color: var(--primary);
}

html.dark .acc-btn:hover {
    background: #334155;
}

.acc-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.acc-btn i {
    font-size: 1.1rem;
}

.acc-reset {
    margin-top: .5rem;
    width: 100%;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: .5rem;
    padding: .5rem;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.acc-reset:hover {
    background: #dc2626;
}

/* ========= AURORA GLOBAL SECTIONS (FALLBACKS) ========= */
.aurora-greeting-section {
    background: #ffffff ;
}

.aurora-tagline {
    font-size: 0.75rem ;
    letter-spacing: 2px ;
    text-transform: uppercase ;
    font-weight: 700 ;
    color: var(--primary, #087443) ;
    margin-bottom: 1rem ;
    display: block ;
}

.aurora-greet-title {
    font-size: 2.2rem ;
    font-weight: 800 ;
    color: #1e293b ;
    margin-bottom: 1.5rem ;
}

.aurora-quote-box {
    position: relative ;
}

.aurora-quote-icon {
    font-size: 3rem ;
    color: var(--primary, #087443) ;
    opacity: 0.1 ;
    position: absolute ;
    left: -1rem ;
    top: -1rem ;
}

.aurora-quote-text {
    font-size: 1.1rem ;
    color: #475569 ;
    line-height: 1.8 ;
}

.aurora-btn-link {
    color: var(--primary, #087443) ;
    font-weight: 700 ;
    text-decoration: none ;
    display: inline-flex ;
    align-items: center ;
    gap: 0.5rem ;
    transition: all 0.3s ease ;
}

.aurora-btn-link:hover {
    gap: 0.8rem ;
}

.aurora-video-frame {
    border-radius: 1.5rem ;
    overflow: hidden ;
    box-shadow: var(--shadow-lg) ;
}

.aurora-cta-section {
    background: #08281a;
    background: linear-gradient(135deg, #08281a 0%, #0d4a2f 50%, #155734 100%);
    padding: 80px 0;
}

.aurora-cta-title {
    font-size: 2.5rem ;
    font-weight: 800 ;
    color: #ffffff ;
    margin-bottom: 1rem ;
}

.aurora-cta-subtitle {
    color: rgba(255, 255, 255, 0.9) ;
    font-size: 1.1rem ;
    margin-bottom: 2.5rem ;
}

.aurora-btn-premium {
    display: inline-flex ;
    align-items: center ;
    justify-content: center ;
    background: linear-gradient(135deg, #c9a227, #f0c84a) ;
    color: #08281a ;
    padding: 0.8rem 2.2rem ;
    border-radius: 50px ;
    font-weight: 700 ;
    text-decoration: none ;
    transition: all 0.3s ease ;
    border: 2px solid #c9a227 ;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35) ;
}

.aurora-btn-premium:hover {
    background: transparent ;
    color: #f0c84a ;
    border-color: #f0c84a ;
    transform: translateY(-5px) ;
}

.aurora-btn-outline {
    display: inline-flex ;
    align-items: center ;
    justify-content: center ;
    background: rgba(255, 255, 255, 0.08) ;
    color: #ffffff ;
    border: 1px solid rgba(255, 255, 255, 0.4) ;
    padding: 0.8rem 2.2rem ;
    border-radius: 50px ;
    font-weight: 600 ;
    text-decoration: none ;
    transition: all 0.3s ease ;
    backdrop-filter: blur(5px) ;
}

.aurora-btn-outline:hover {
    background: rgba(201, 162, 39, 0.25) ;
    border-color: #c9a227 ;
    color: #f0c84a ;
    transform: translateY(-5px) ;
}

/* Aurora CTA Section Pointer Fixes & Z-Index Layering */
.aurora-cta-section .container {
    position: relative;
    z-index: 10 ;
}
.aurora-cta-bg-glow,
.aurora-cta-pattern,
.aurora-cta-blob {
    pointer-events: none ;
}

/* ========================================================
   CHATBOT & ACCESSIBILITY WIDGET STYLING FOR OXFORD THEMES
   Matches: oxford-premium and all oxford-luxury variants
   ======================================================== */

/* Theme variables mapping */
.theme-oxford-premium-balakutak,
.theme-oxford-luxury-balakutak,
.theme-oxford-luxury-navygold-balakutak {
    --oxford-primary: #002147;
    --oxford-primary-rgb: 0, 33, 71;
    --oxford-accent: #c69214;
    --oxford-accent-rgb: 198, 146, 20;
}

.theme-oxford-luxury-blackgold-balakutak {
    --oxford-primary: #1a1a1a;
    --oxford-primary-rgb: 26, 26, 26;
    --oxford-accent: #c69214;
    --oxford-accent-rgb: 198, 146, 20;
}

.theme-oxford-luxury-redgold-balakutak {
    --oxford-primary: #800000;
    --oxford-primary-rgb: 128, 0, 0;
    --oxford-accent: #c69214;
    --oxford-accent-rgb: 198, 146, 20;
}

.theme-oxford-luxury-greengold-balakutak {
    --oxford-primary: #004d40;
    --oxford-primary-rgb: 0, 77, 64;
    --oxford-accent: #c69214;
    --oxford-accent-rgb: 198, 146, 20;
}

.theme-oxford-luxury-browngold-balakutak {
    --oxford-primary: #5d4037;
    --oxford-primary-rgb: 93, 64, 55;
    --oxford-accent: #c69214;
    --oxford-accent-rgb: 198, 146, 20;
}

[class*="theme-oxford"] .chatbot-toggle,
[class*="theme-oxford"] .acc-toggle {
    background: var(--oxford-primary, #002147) !important;
    border: 2px solid var(--oxford-accent, #c69214) !important;
    color: var(--oxford-accent, #c69214) !important;
    display: flex !important; /* Force render */
    z-index: 9999 !important; /* Top-most layer overlay */
    box-shadow: 0 10px 25px rgba(var(--oxford-primary-rgb, 0, 33, 71), 0.25) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

[class*="theme-oxford"] .chatbot-toggle:hover,
[class*="theme-oxford"] .acc-toggle:hover {
    background: var(--oxford-accent, #c69214) !important;
    color: #ffffff !important;
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 15px 35px rgba(var(--oxford-accent-rgb, 198, 146, 20), 0.4) !important;
}

[class*="theme-oxford"] .acc-toggle:hover {
    transform: scale(1.1) !important; /* Avoid rotation for accessibility gear icon */
}

[class*="theme-oxford"] .acc-widget {
    position: fixed !important;
    bottom: 9.5rem !important;
    right: 2rem !important;
    z-index: 9997 !important;
}

[class*="theme-oxford"] .chatbot-window {
    position: fixed ;
    bottom: 9.5rem ;
    right: 2rem ;
    width: 320px ;
    height: 420px ;
    border: 1px solid rgba(var(--oxford-accent-rgb, 198, 146, 20), 0.3) ;
    box-shadow: 0 15px 40px rgba(var(--oxford-primary-rgb, 0, 33, 71), 0.25) ;
    z-index: 9998 ;
    border-radius: 16px ;
    display: none;
    flex-direction: column ;
    overflow: hidden ;
}

[class*="theme-oxford"] .chatbot-window.open {
    display: flex ;
}

[class*="theme-oxford"] .chatbot-header {
    background: var(--oxford-primary, #002147) ;
    border-bottom: 2px solid var(--oxford-accent, #c69214) ;
    padding: 0.9rem 1.2rem ;
}

[class*="theme-oxford"] .chatbot-input button,
[class*="theme-oxford"] .chat-bubble.user {
    background: var(--oxford-primary, #002147) ;
    color: #ffffff ;
}

[class*="theme-oxford"] .chat-bubble.bot {
    background: rgba(var(--oxford-primary-rgb, 0, 33, 71), 0.05) ;
    color: var(--oxford-primary, #002147) ;
    border: 1px solid rgba(var(--oxford-primary-rgb, 0, 33, 71), 0.08) ;
}

/* Accessibility menu popup styling for Oxford themes */
[class*="theme-oxford"] .acc-menu {
    border: 1px solid rgba(var(--oxford-accent-rgb, 198, 146, 20), 0.3) !important;
    box-shadow: 0 15px 40px rgba(var(--oxford-primary-rgb, 0, 33, 71), 0.25) !important;
    z-index: 9998 !important;
    border-radius: 16px !important;
}

[class*="theme-oxford"] .acc-header {
    color: var(--oxford-primary, #002147) !important;
    font-weight: 700 !important;
}

[class*="theme-oxford"] .acc-btn.active {
    background: var(--oxford-primary, #002147) !important;
    border-color: var(--oxford-primary, #002147) !important;
    color: #ffffff !important;
}

[class*="theme-oxford"] .acc-btn:hover:not(.active) {
    border-color: var(--oxford-accent, #c69214) !important;
    background: rgba(var(--oxford-accent-rgb, 198, 146, 20), 0.05) !important;
}

/* Dark mode overrides for floating widgets in Oxford themes */
html.dark [class*="theme-oxford"] .chatbot-window,
html.dark [class*="theme-oxford"] .acc-menu {
    background: #1e293b !important;
    border-color: rgba(198, 146, 20, 0.4) !important;
}

html.dark [class*="theme-oxford"] .chat-bubble.bot {
    background: rgba(255, 255, 255, 0.05) ;
    color: #f1f5f9 ;
    border-color: rgba(255, 255, 255, 0.1) ;
}

html.dark [class*="theme-oxford"] .acc-header {
    color: var(--lux-gold, #c69214) !important;
}

html.dark [class*="theme-oxford"] .acc-btn {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

html.dark [class*="theme-oxford"] .acc-btn.active {
    background: var(--lux-gold, #c69214) !important;
    border-color: var(--lux-gold, #c69214) !important;
    color: #1a1a1a !important;
}

/* Mobile responsive adjustments for Oxford theme widgets */
@media (max-width: 768px) {
    [class*="theme-oxford"] .acc-widget {
        bottom: 5.5rem !important;
        right: 1rem !important;
    }
    [class*="theme-oxford"] .chatbot-toggle {
        bottom: 9.5rem ;
        right: 1rem ;
    }
    [class*="theme-oxford"] .chatbot-window {
        bottom: 13.5rem ;
        right: 1rem ;
        width: calc(100vw - 2rem) ;
    }
}