/* ==========================================================================
   RDS (Rural Development Sangstha) - Master Style Sheet
   Based on creed2 navigation architecture & Royal Addons for Elementor
   ========================================================================== */

:root {
    --rds-forest: #0b4d26;
    --rds-deep: #073b1c;
    --rds-dark: #052913;
    --rds-light-green: #15803d;
    --rds-accent-green: #22c55e;
    --rds-mint: #e8f5e9;
    --rds-gold: #c9a24a;
    --rds-gold-light: #fef3c7;
    --rds-gold-hover: #b88d37;
    --rds-ink: #14261b;
    --rds-text-dark: #1e293b;
    --rds-muted: #5c6e63;
    --rds-mist: #f1f5f2;
    --rds-line: rgba(11, 77, 38, .12);
    --rds-ease: cubic-bezier(.2, .7, .2, 1);
    --rds-nav-h: 76px;
    --rds-shadow-sm: 0 4px 14px 0 rgba(0, 0, 0, 0.06);
    --rds-shadow-md: 0 10px 30px -10px rgba(7, 59, 28, 0.18);
    --rds-shadow-lg: 0 20px 40px -15px rgba(7, 59, 28, 0.25);
}

/* Base & Typography */
html {
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Figtree', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: var(--rds-ink);
    overflow-x: hidden;
    line-height: 1.6;
}

body.up-lock {
    overflow: hidden;
}

a {
    color: var(--rds-forest);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--rds-gold);
    outline-offset: 2px;
    border-radius: 6px;
}

/* =========================================================
   1. TOP BAR
   ========================================================= */
.up-top {
    background: var(--rds-deep);
    color: #ffffff;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.up-top .container {
    min-height: 40px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.up-top a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.92;
    transition: opacity 0.2s, color 0.2s;
}

.up-top a:hover {
    opacity: 1;
    color: var(--rds-gold);
}

.up-top i.gold {
    color: var(--rds-gold);
}

.up-top .top-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    transition: all 0.2s ease;
}

.up-top .top-social a:hover {
    background: var(--rds-gold);
    color: #073b1c;
    transform: translateY(-2px);
}

/* Top bar search box */
.top-search-form {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.top-search-form input {
    height: 28px;
    width: 140px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 2px 30px 2px 12px;
    font-size: 11.5px;
    color: #ffffff;
    outline: none;
    transition: width 0.3s ease, background 0.3s ease;
}

.top-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.top-search-form input:focus {
    width: 190px;
    background: rgba(255, 255, 255, 0.22);
    border-color: var(--rds-gold);
}

.top-search-form button {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-lang-switch {
    font-size: 12px;
    font-weight: 600;
}

.top-lang-switch a {
    padding: 2px 4px;
}

.top-lang-switch a.active {
    color: var(--rds-gold);
    font-weight: 700;
}

/* =========================================================
   2. HEADER & URGENT NOTICE TICKER
   ========================================================= */
.up-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #ffffff;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.up-header.is-scrolled {
    box-shadow: 0 12px 30px -12px rgba(7, 59, 28, 0.35);
}

.up-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    pointer-events: none;
    background: rgba(11, 77, 38, 0.08);
}

.up-progress span {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--rds-forest), #34c76b, var(--rds-gold));
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Notice Ticker */
.up-ticker {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(90deg, #052913 0%, #0b4d26 50%, #052913 100%);
    border-bottom: 1px solid rgba(201, 162, 74, 0.35);
}

.up-ticker::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -30%;
    width: 22%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    animation: tkShine 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tkShine {
    0%, 55% { left: -30%; }
    100% { left: 130%; }
}

.up-ticker .container {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    position: relative;
    z-index: 1;
}

.tk-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.78rem;
    white-space: nowrap;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
    animation: tkPulse 2.2s ease-out infinite;
}

.tk-label .tk-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    animation: tkBlink 1.1s ease-in-out infinite;
}

@keyframes tkPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes tkBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.tk-view {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.tk-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
}

.up-ticker.is-ready .tk-track {
    animation: tkLoop var(--tk-dur, 26s) linear infinite;
}

.up-ticker.is-paused .tk-track,
.tk-view:hover .tk-track,
.tk-view.is-touch .tk-track {
    animation-play-state: paused;
}

@keyframes tkLoop {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.tk-group {
    display: inline-flex;
    align-items: center;
}

.tk-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

.tk-item:hover {
    color: var(--rds-gold);
}

.tk-badge {
    background: rgba(201, 162, 74, 0.25);
    color: var(--rds-gold);
    border: 1px solid var(--rds-gold);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tk-tools {
    flex: 0 0 auto;
}

.tk-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.tk-btn:hover {
    background: var(--rds-gold);
    color: #073b1c;
    border-color: var(--rds-gold);
}

.tk-all {
    color: var(--rds-gold);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.tk-all:hover {
    background: rgba(201, 162, 74, 0.15);
    color: #ffffff;
}

/* =========================================================
   3. BRAND BAR & GREEN NAVIGATION MENU (Reference Mockup Style)
   ========================================================= */
.up-brand-bar {
    background: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid rgba(11, 77, 38, 0.08);
    position: relative;
    z-index: 1020;
}

.up-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.up-brand img.rds-orig-logo {
    height: 56px;
    width: auto;
    max-width: min(460px, 75vw);
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.up-brand:hover img.rds-orig-logo {
    transform: scale(1.02);
}

.helpline-chip {
    background: rgba(11, 77, 38, 0.05);
    border: 1px solid rgba(11, 77, 38, 0.12);
}

/* Green Navigation Bar (Full Width Bar Matching Reference Mockup) */
.up-nav {
    background: #0b4d26 !important;
    background: linear-gradient(90deg, #073b1c 0%, #0b4d26 50%, #073b1c 100%) !important;
    min-height: 52px !important;
    border-bottom: 3px solid var(--up-gold, #c9a24a) !important;
    position: relative;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(7, 59, 28, 0.22);
}

.up-nav .container {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.up-menu {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    gap: 0;
}

@media (min-width: 992px) {
    .up-menu {
        display: flex;
    }
}

.up-menu > li.up-nav-item,
.up-menu > li {
    display: flex;
    align-items: stretch;
    height: 52px;
    position: relative;
}

.up-menu > li > a,
.up-menu > li.up-nav-item > a,
.up-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    height: 100%;
    color: #ffffff !important;
    font-family: 'Figtree', 'Hind Siliguri', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}

@media (min-width: 992px) and (max-width: 1280px) {
    .up-menu > li > a,
    .up-menu > li.up-nav-item > a,
    .up-link {
        padding: 0 9px !important;
        font-size: 0.85rem !important;
        gap: 3px !important;
    }
}

.up-menu > li:hover > a,
.up-menu > li.active > a,
.up-menu > li > a.is-active,
.up-link.is-active {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffd54a !important;
}

.up-menu > li > a::after,
.up-link::after {
    display: none !important; /* Remove bottom underline that conflicts with bar */
}

.up-nav-search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.up-nav-search-btn:hover {
    background: var(--up-gold, #c9a24a);
    color: #073b1c;
    transform: scale(1.08);
}

/* Dropdowns from Green Nav Bar */
.up-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #ffffff !important;
    border-top: 3px solid var(--up-gold, #c9a24a) !important;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 20px 45px -10px rgba(7, 59, 28, 0.35);
    padding: 10px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1040;
}

.up-menu > li:hover > .up-dropdown,
.up-menu > li:focus-within > .up-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.up-dropdown li a {
    display: block;
    padding: 9px 20px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #334155 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.up-dropdown li a:hover {
    color: var(--up-forest, #0b4d26) !important;
    background: rgba(11, 77, 38, 0.06);
    padding-left: 24px;
}

/* Mega Menu from Green Nav Bar */
.up-mega {
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(var(--w, 800px), 94vw);
    background: #ffffff !important;
    border-top: 3px solid var(--up-gold, #c9a24a) !important;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 24px 50px -10px rgba(7, 59, 28, 0.35);
    padding: 24px 28px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1040;
}

.up-menu > li:hover > .up-mega,
.up-menu > li:focus-within > .up-mega {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.up-gtitle {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--up-forest, #0b4d26);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(11, 77, 38, 0.12);
}

.up-glinks li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #334155 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.up-glinks li a:hover {
    color: var(--up-forest, #0b4d26) !important;
    transform: translateX(4px);
    font-weight: 600;
}

/* =========================================================
   4. ROYAL ELEMENTOR SEARCH OVERLAY (#searchoverly)
   ========================================================= */
#searchoverly {
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    z-index: 999999999;
    top: 0;
    left: 0;
    background-color: rgba(7, 59, 28, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn .25s ease;
}
#searchoverly.is-open {
    display: block;
}
.searchoverlycontent {
    position: relative;
    height: 100vh;
    width: 100vw;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.searchoverlycontent form {
    width: min(650px, 92vw);
    display: flex;
    justify-content: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    border-radius: 50px;
    overflow: hidden;
    background: #ffffff;
}
#searchoverly .closebtn {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 50px;
    cursor: pointer;
    color: #ffffff;
    z-index: 1000;
    line-height: 1;
    transition: color .2s, transform .2s;
}
#searchoverly .closebtn:hover {
    color: var(--rds-gold);
    transform: rotate(90deg);
}
#searchoverly input.searchbox {
    padding: 16px 26px;
    font-size: 1.15rem;
    border: none;
    outline: none;
    flex: 1 1 auto;
    background: #ffffff;
    height: 60px;
    font-family: inherit;
}
#searchoverly button {
    width: 80px;
    padding: 0;
    background: var(--rds-green);
    color: #ffffff;
    font-size: 1.3rem;
    border: none;
    cursor: pointer;
    height: 60px;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
#searchoverly button:hover {
    background: var(--rds-dark-green);
}

/* =========================================================
   5. FOOTER
   ========================================================= */
.rds-footer {
    background: var(--rds-deep);
    color: #ffffff;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
}

.rds-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rds-forest), #34c76b, var(--rds-gold));
}

.rds-foot-col {
    margin-bottom: 30px;
}

.rds-foot-logo {
    display: inline-block;
    margin-bottom: 16px;
    transition: transform 0.25s ease;
}

.rds-foot-logo:hover {
    transform: translateY(-2px);
}

.rds-foot-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.rds-foot-regs {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.reg-item {
    margin-bottom: 4px;
}

.rds-foot-title {
    font-family: 'Figtree', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 9px;
    letter-spacing: 0.3px;
}

.rds-foot-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 2.5px;
    background: var(--rds-gold, #c9a24a);
    border-radius: 2px;
}

.rds-foot-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rds-foot-links li {
    margin-bottom: 8px;
}

.rds-foot-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rds-foot-links a:hover {
    color: var(--rds-gold);
    transform: translateX(4px);
}

.rds-foot-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rds-foot-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.rds-foot-contact i {
    color: var(--rds-gold);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.rds-foot-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.rds-foot-contact a:hover {
    color: var(--rds-gold);
}

/* Social Media Circular Buttons */
.foot-soc-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.foot-soc-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.foot-soc-btn.foot-fb:hover {
    background: #1877f2 !important;
    color: #ffffff !important;
}

.foot-soc-btn.foot-yt:hover {
    background: #ff0000 !important;
    color: #ffffff !important;
}

.foot-soc-btn.foot-li:hover {
    background: #0a66c2 !important;
    color: #ffffff !important;
}

/* Follow & Map Silhouette Group */
.rds-follow-wrapper {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.rds-follow-wrapper:hover {
    border-color: rgba(201, 162, 74, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rds-foot-map-card {
    flex-shrink: 0;
    padding: 2px 4px;
}

.foot-bd-silhouette {
    height: 60px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(52, 211, 153, 0.35));
    transition: transform 0.3s ease;
}

.rds-foot-map-card:hover .foot-bd-silhouette {
    transform: scale(1.08);
}

.foot-motto {
    font-family: 'Caveat', cursive, Georgia, serif;
    font-size: 0.96rem;
    font-weight: 700;
    color: #a7f3d0;
    line-height: 1.15;
    white-space: nowrap;
    display: block;
}

/* Emergency Helpline Box */
.foot-helpline-box {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.foot-helpline-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(7, 59, 28, 0.4);
}

.helpline-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--rds-gold, #c9a24a);
    color: #2b2108;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Footer Bottom Bar */
.rds-foot-bottom {
    background: var(--rds-dark, #041a0d);
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.rds-foot-bottom a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.rds-foot-bottom a:hover {
    color: var(--rds-gold);
}

.rds-foot-bottom .foot-legal a {
    margin-left: 16px;
}

/* Back to top button */
.up-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rds-forest);
    color: #ffffff;
    border: 2px solid var(--rds-gold);
    box-shadow: 0 8px 24px rgba(7, 59, 28, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.up-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.up-to-top:hover {
    background: var(--rds-gold);
    color: var(--rds-deep);
    transform: translateY(-4px);
}
