/* -------------- CSS Variables & General Styles -------------- */
:root {
    --primary-color: #800000;
    /* Deep Maroon/Royal Red */
    --accent-color: #D4AF37;
    /* Royal Gold */
    --dark-maroon: #400000;
    --royal-bg: #2b0000;
    --light-bg: #f8f9fa;
    --text-color: #ffffff;
    /* White text for dark background */
    --gold-text: #FFD700;
    --white: #ffffff;
    --border-color: #D4AF37;
    /* Gold borders */
}

html,
body {
    background-color: white;
    font-family: 'Mukta', sans-serif;
    color: #1a0000;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

.custom-container {
    max-width: 1400px;
    margin: 0 auto;
    /* background: var(--dark-maroon); */
    box-shadow: 0 5px 50px rgba(0, 0, 0, 0.5);
    border-left: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    overflow: hidden;
}

/* Typography & Helpers */
a {
    transition: all 0.3s ease-in-out;
}

.see-more-link {
    font-size: 13px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.see-more-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.header-section {
    background: url('../images/design1.webp') no-repeat center center;
    background-size: cover;
    padding: 0 0;
    border-bottom: 4px solid #b8860b;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 15px;
}

/* center part */
.header-center {
    text-align: center;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 35px;
    background: transparent;
}

/* title */
.header-center h1 {
    font-family: 'Mukta', 'Cinzel', serif;
    font-size: 35px;
    font-weight: 800;
    margin: 0;
    color: #ffd700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 5px;
}

/* motto */
.motto {
    font-family: 'Mukta', 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    margin-bottom: 2px;
}

/* scrolling bar - elliptical shape to match wireframe exactly */
.scroll-bar {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #fde48d;
    padding: 0 60px;
    /* space to avoid clipping text in the elliptical edges */
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50%;
    /* This creates the perfect thin ellipse shape! */
    height: 35px;
    line-height: 35px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.5), 0 3px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.scroll-bar marquee {
    width: 100%;
    line-height: 40px;
    white-space: nowrap;
}

/* Custom CSS Marquee */
.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-anim 40s linear infinite;
    min-width: 0;
}

.scrolling-strip .ticker-content {
    animation-duration: 45s;
}

@keyframes ticker-anim {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* logos wrapper and inner circle */
.logo {
    width: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.logo-inner {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 6px;
    /* spacing for the golden border */
    background: radial-gradient(circle, #fde48d 0%, #b8860b 80%, #ffd700 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.7);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Red dotted inner circle inside the gold frame */
.logo-inner::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px dotted var(--primary-color);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

/* Circular logo image */
.logo-inner img.royal-icon {
    /* width: 100%; */
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    /* background: #fff; */
    z-index: 1;
    position: relative;
    left: 18px;
    /* border: 1px solid var(--primary-color); */
}

.left-logo {
    background: transparent;
}

.right-logo {
    background: transparent;
}

/* -------------- Scrolling Strips -------------- */
.scrolling-strip {
    background: var(--primary-color);
    /* Back to Navy */
    color: #fff;
    padding: 8px 0;
    font-weight: 500;
    font-size: 15px;
    margin-top: 5px;
    margin-bottom: 5px;
}


.scrolling-strip.marquee-orange {
    background: var(--accent-color);
}

/* -------------- Navigation -------------- */
.custom-nav {
    background: var(--primary-color);
    border-bottom: 4px solid var(--accent-color);
    margin-top: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.nav-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 35px;
}

.nav-row a {
    color: var(--white);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.nav-row a:hover {
    background: var(--accent-color);
    color: var(--dark-maroon);
    font-weight: 700;
}

.nav-row-secondary {
    background: var(--secondary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-row-secondary a {
    font-size: 14px;
    padding: 10px 15px;
}

/* -------------- Ad Strips -------------- */
.ad-strip {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-text);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 600;
    border: 1px solid var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ad-strip.banner-ad {
    margin: 0;
    border-radius: 0;
    border: none;
    background: #e9ecef;
    max-height: 180px;
    /* Forced height reduction as requested */
    overflow: hidden;
}

.ad-strip.banner-ad img {
    height: 110px;
    width: 100%;
    object-fit: cover;
    /* Keeps image looking good while cropped */
}


/* -------------- Main Layout -------------- */
.main-content-row {
    padding: 20px;
}

/* -------------- Sidebars -------------- */
.sidebar-action-btn {
    display: inline-block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color), #B8860B);
    color: var(--dark-maroon);
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 16px;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #FFD700;
}

.sidebar-action-btn:hover {
    background: linear-gradient(135deg, #FFD700, var(--accent-color));
    color: #400000 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.sidebar-action-btn.btn-blue {
    background: linear-gradient(135deg, #2b0000, #400000);
    color: var(--accent-color);
}

.sidebar-action-btn.btn-blue:hover {
    background: linear-gradient(135deg, #400000, #600000);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.sidebar-action-btn.btn-dark-blue {
    background: #2a3d66;
    color: var(--accent-color);
}

.sidebar-action-btn.btn-dark-blue:hover {
    background: #364b7a;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 61, 102, 0.4);
}

.sidebar-box {
    background: var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    border: 1px solid var(--accent-color);
    overflow: hidden;
}

.box-header {
    background: var(--dark-maroon);
    color: var(--accent-color);
    padding: 15px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 18px;
    border-bottom: 2px solid var(--accent-color);
    text-transform: uppercase;
}

.box-content {
    padding: 20px;
    color: var(--white);
}

/* Quick Links inside Sidebar */
.quick-link-item {
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
    display: flex;
    align-items: center;
}

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

.quick-link-item i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 15px;
    text-align: center;
}

.quick-link-item a {
    color: #F5E6BE;
    text-decoration: none;
    flex-grow: 1;
}

.quick-link-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Polls */
.poll-question {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--primary-color);
}

.poll-option {
    margin-bottom: 10px;
    font-size: 14px;
}

/* -------------- Center Banners & Slider -------------- */
.center-banner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.center-banner img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.center-banner:hover img {
    transform: scale(1.02);
}

.center-banner .banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    padding: 30px 20px 15px;
    font-size: 17px;
    font-weight: 500;
    z-index: 2;
}

.banner-read-more {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-read-more:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--accent-color);
}

.banner-see-more-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(12, 35, 64, 0.85);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    z-index: 10;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.banner-see-more-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 20px;
    background-size: 50% 50%;
}

/* Full Width Blocks Wrapper */
.full-width-blocks-wrapper {
    background-color: var(--royal-bg);
    border-top: 1px solid var(--border-color);
}

/* -------------- Horizontal Blocks (Mudde, etc.) -------------- */
.horizontal-block {
    margin-bottom: 35px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.horizontal-block:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.block-title {
    background: linear-gradient(to right, #400000, #800000);
    padding: 18px 25px;
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--accent-color);
    border-left: 10px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Card inside block */
.content-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* For mobile, remove right border and add bottom border */
@media (max-width: 768px) {
    .content-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

.content-card:last-child {
    border-right: none;
    border-bottom: none;
}

.horizontal-block .col-md-4:last-child .content-card {
    border-right: none;
}

.content-card img {
    width: 100%;
    height: 220px;
    /* Increased height for full-width layout */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content-card:hover img {
    transform: scale(1.03);
}

.content-card h5 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent-color);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.content-card:hover h5 {
    color: var(--white);
}

.content-card p {
    font-size: 14.5px;
    color: #F5E6BE;
    line-height: 1.6;
    flex-grow: 1;
}

.text-only-card {
    background: linear-gradient(135deg, #400000 0%, #600000 100%);
    padding: 30px;
    border-left: 5px solid var(--accent-color);
}

.text-only-card p {
    font-size: 14px;
}

/* Video specific */
.video-card-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-card-img img {
    margin-bottom: 0;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(247, 148, 29, 0.9);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.video-card-img:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* -------------- Footer Grids -------------- */
.footer-grid-section {
    background: var(--white);
    margin: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.footer-grid-title {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 12px 15px;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.footery-cell {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.footery-cell:last-child {
    border-right: none;
    /* Might need adjustment based on columns */
}

.footery-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Images will now fill the entire box */
    opacity: 1;
    transition: transform 0.3s;
    filter: none;
}

.footery-cell:hover img {
    transform: scale(1.1);
}

/* -------------- Final Main Footer -------------- */
.final-footer {
    background: #1a0000;
    color: #F5E6BE;
    padding: 60px 20px 30px;
    border-top: 5px solid var(--accent-color);
}

.final-footer h5 {
    font-family: 'Cinzel', serif;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links a {
    color: #F5E6BE;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 8px;
    text-decoration: underline;
}

/* Social Icons */
.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Newsletter */
.newsletter-form .input-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 2px;
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: var(--white);
}

.newsletter-form .form-control:focus {
    box-shadow: none;
}

.newsletter-form .form-control::placeholder {
    color: #888;
}

.newsletter-form .btn {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
}

.newsletter-form .btn:hover {
    background: #e0861a;
}

/* -------------- Mobile Responsive Styles -------------- */
@media (max-width: 991.98px) {

    /* Navbar Collapse Styles */
    .nav-row {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .nav-row a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-row a:last-child {
        border-bottom: none;
    }

    .mobile-nav-dropdown .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .menu-toggle-no-caret::after {
        display: none !important;
    }

    .nav-row-secondary {
        border-top: none;
        background: rgba(0, 0, 0, 0.2) !important;
    }
}

@media (max-width: 767.98px) {
    .header-container {
        flex-direction: column;
        padding: 0px 5px;
    }

    .header-center {
        padding: 0;
        width: 100%;
    }

    .scroll-bar {
        padding: 0 15px;
        font-size: 13px;
        height: 22px;
        line-height: 21px;
    }

    .scroll-bar marquee {
        line-height: 32px;
    }

    .center-banner .banner-caption {
        padding: 15px 10px 10px;
        font-size: 13px;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    }

    .banner-read-more {
        font-size: 11px;
        margin-top: 5px;
    }

    .banner-see-more-btn {
        padding: 4px 10px;
        font-size: 10px;
        top: 10px;
        right: 10px;
    }

    .block-title {
        font-size: 16px;
        padding: 12px 15px;
    }

    .content-card h5 {
        font-size: 16px;
    }

    .content-card p {
        font-size: 13px;
    }

    .sidebar-action-btn {
        padding: 10px;
        font-size: 14px;
    }

    .box-header {
        font-size: 15px;
    }

    .quick-link-item {
        font-size: 13px;
    }

    .ad-strip {
        padding: 10px;
        font-size: 12px;
    }

    .header-section {
        background-size: 100% 100%;
        background-position: center top;
        background-color: var(--primary-color);
    }

    .main-content-row {
        padding: 5px;
        margin-left: 0;
        margin-right: 0;
    }

    .main-content-row>[class^="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* -------------- Custom Menu Styles -------------- */
.navbar-toggler[aria-expanded="true"] .menu-arrow {
    transform: rotate(180deg);
}

.collapsing {
    transition: height 0.4s ease-in-out;
}

/* Menu Toggle No Caret Generic */
.menu-toggle-no-caret::after {
    display: none !important;
}

/* -------------- Custom Marquee / Slider Animation -------------- */
.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-anim 40s linear infinite;
    min-width: 0;
}

.scrolling-strip .ticker-content {
    animation-duration: 45s;
}

@keyframes ticker-anim {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* -------------- Desktop Hover Dropdown -------------- */
@media (min-width: 992px) {
    .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInDropdown 0.2s ease-in-out;
    }
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* ========================================================================= */
/* ROYAL SCROLL LOADER ANIMATION */
/* ========================================================================= */
#royal-scroll-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, #2a0000 0%, #000000 100%);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}

.scroll-wrapper {
    position: relative;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roller {
    width: 108%;
    height: 35px;
    background: linear-gradient(180deg, #d4af37, #b8860b, #daa520, #5c4300);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), inset 0 2px 5px rgba(255, 255, 255, 0.4);
    z-index: 5;
    position: relative;
}

.roller::before,
.roller::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 45px;
    background: linear-gradient(90deg, #fcebbb, #8b6508);
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.roller::before {
    left: -8px;
}

.roller::after {
    right: -8px;
}

.scroll-paper {
    width: 100%;
    background: url('../images/scroll_bg.png') center/cover no-repeat, #ffe1a0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.8);
    border-left: 3px solid #6b4c00;
    border-right: 3px solid #6b4c00;
    animation: unrollScroll 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
    height: 0;
    /* Starts rolled up */
    padding: 0 20px;
}

.scroll-logo-anim {
    width: 120px;
    margin-bottom: 15px;
    opacity: 0;
    transform: scale(0.5) translateY(-20px);
    animation: revealScrollContent 0.8s ease 1.5s forwards;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

.scroll-title-anim {
    color: #500000;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
    animation: revealScrollContent 0.8s ease 1.7s forwards;
}

.scroll-subtitle-anim {
    color: #8b3a00;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: revealScrollContent 0.5s ease 1.9s forwards;
}

@keyframes unrollScroll {
    0% {
        height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    100% {
        height: 350px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

@keyframes revealScrollContent {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* -------------- Form Styles -------------- */
.complaint-card {
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.complaint-title {
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.form-label-bold {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--dark-maroon);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    display: block;
}

.btn-royal {
    background: var(--primary-color);
    color: white;
    border: none;
    transition: all 0.3s;
}

.btn-royal:hover {
    background: var(--dark-maroon);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
}

.form-control-royal {
    padding: 0.75rem 1rem;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

.form-control-royal:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1) !important;
}

/* -------------- Membership Form Styles -------------- */
.membership-card {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin: 1.5rem 0;
}

.membership-section-title {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 700;
    display: inline-block;
    font-size: 1.1rem;
    font-family: 'Mukta', sans-serif;
}

.membership-note {
    background: rgba(212, 175, 55, 0.1);
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .membership-card {
        padding: 1.25rem 1rem;
        margin: 0.5rem 0;
        border-radius: 1rem;
    }
    .membership-section-title {
        width: 100%;
        text-align: center;
        font-size: 1rem;
        margin: 1.5rem 0 1rem 0;
        padding: 0.6rem 0.5rem;
    }
    .form-header h1 {
        font-size: 1.4rem;
    }
    .form-header h3 {
        font-size: 1rem;
    }
    .card.bg-light.p-3 {
        padding: 1rem !important;
    }
}

.membership-card .form-check-label {
    color: #333 !important;
    font-weight: 500;
    line-height: 1.6;
}

.membership-card .form-check-input {
    border: 1px solid #999;
}

/* Read More Logic for Mobile */
@media (max-width: 768px) {
    .mobile-read-more .content-text {
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Show 3 lines then truncate */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .mobile-read-more.expanded .content-text {
        display: block;
        max-height: none;
        overflow: visible;
        -webkit-line-clamp: unset;
    }
    .mobile-read-more.expanded .read-more-btn {
        display: none !important;
    }
}

.read-more-btn {
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--primary-color);
}


