/* ================================================================
   ABISY - COMPLETE RESPONSIVE CSS
   Akhil Bhartiya Itihas Sankalan Yojana
   ================================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --header-gradient: linear-gradient(to right, #d4b45c, #a45a1a, #5a2a00);
    --navbar-gradient: linear-gradient(135deg, #2e0b03, #6b1414, #d97706);
    --footer-gradient: linear-gradient(135deg, #1a0702, #3b1a05, #8b5a20);
    --bg-gradient: linear-gradient(to bottom, #f2d6a0, #d4aa6a, #b07c3a);
    --card-bg: linear-gradient(145deg, #f3e0c3, #d4b07a);
    --text-dark: #1a0b05;
    --text-light: #fdf3e7;
    --saffron: #d97706;
    --gold: #b8860b;
    --deep-brown: #2e0b03;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-deep: 0 8px 30px rgba(0,0,0,0.25);
    --border-radius: 10px;
    --navbar-height: 56px;
}

/* ===== GLOBAL RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Noto Sans Devanagari', Arial, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ================================================================
   HEADER
   ================================================================ */
.top-header {
    background: var(--header-gradient);
    padding: 10px 0;
    position: relative;
    z-index: 100;
}

.main-logo {
    max-height: 85px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
    transition: var(--transition);
}

.main-logo:hover {
    transform: scale(1.03);
}

.right-logos-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.right-logos-wrapper img {
    max-height: 60px;
    width: auto;
    border-radius: 6px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.right-logos-wrapper img:hover {
    transform: scale(1.05);
}

/* Header responsive */
@media (max-width: 991px) {
    .right-logos-wrapper {
        justify-content: center;
        margin-top: 8px;
    }
    .top-header .col-lg-6:first-child {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .main-logo {
        max-height: 60px;
    }
    .right-logos-wrapper img {
        max-height: 45px;
    }
    .right-logos-wrapper {
        gap: 8px;
    }
}

/* ================================================================
   NAVBAR - FULLY RESPONSIVE
   ================================================================ */
.navbar {
    background: var(--navbar-gradient) !important;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 15px rgba(0,0,0,0.4);
    padding: 0 !important;
    min-height: var(--navbar-height);
}

.navbar-container {
    width: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    min-height: var(--navbar-height);
}

/* ===== NAV LINKS ===== */
.navbar .nav-link {
    color: var(--text-light) !important;
    font-weight: 600;
    font-size: 13.5px;
    padding: 16px 10px !important;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.2px;
    transition: var(--transition);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: calc(100% - 20px);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--gold) !important;
}

.navbar .nav-link.active {
    color: var(--gold) !important;
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu {
    background: linear-gradient(145deg, #fef9f0, #f3e0c3);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-deep);
    padding: 8px 0;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 18px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: var(--navbar-gradient);
    color: var(--text-light) !important;
    border-left-color: var(--gold);
    padding-left: 22px;
}

/* ===== SUBMENU ===== */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 2px;
    border-radius: var(--border-radius);
}

.dropdown-submenu > a::after {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    content: "›";
    font-size: 16px;
    font-weight: bold;
}

/* ===== MEGA MENU ===== */
.mega-dropdown .dropdown-menu {
    width: 600px;
    padding: 20px;
    left: 50%;
    transform: translateX(-30%);
}

.mega-menu h6 {
    color: var(--saffron);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== HAMBURGER BUTTON - Custom Animated ===== */
.navbar-toggler {
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    padding: 7px 9px;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    transition: var(--transition);
    width: 44px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    box-shadow: none !important;
    outline: none !important;
}

.navbar-toggler:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--gold);
}

.navbar-toggler-bar {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.35s ease;
    display: block;
}

.navbar-toggler[aria-expanded="true"] .bar1 {
    transform: translateY(8px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .bar2 {
    opacity: 0;
    transform: scaleX(0);
}
.navbar-toggler[aria-expanded="true"] .bar3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== MOBILE LOGO IN NAVBAR ===== */
.navbar-brand {
    display: none;
}

/* ===== CART ICON ===== */
.cart-item {
    padding: 0;
}
.cart-link {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    padding: 14px 12px !important;
}
.cart-link i {
    font-size: 18px;
    color: var(--text-light);
}
.cart-count {
    position: absolute;
    top: 6px;
    right: 2px;
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 50%;
    min-width: 16px;
    text-align: center;
    line-height: 1.4;
    font-weight: 700;
}

/* ===== DESKTOP HOVER DROPDOWNS ===== */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
    .navbar .navbar-nav {
        width: 100%;
        justify-content: space-evenly;
    }
}

/* ===== MOBILE NAVBAR ===== */
@media (max-width: 991px) {
    .navbar-brand {
        display: flex;
        align-items: center;
    }
    .navbar-brand img {
        height: 38px;
        filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
    }
    .navbar-container {
        justify-content: space-between;
    }
    .navbar-collapse {
        background: linear-gradient(180deg, #3d0f05, #1a0702);
        border-radius: 0 0 12px 12px;
        padding: 10px 5px 15px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.5);
        max-height: 80vh;
        overflow-y: auto;
    }
    .navbar .nav-link {
        font-size: 15px;
        padding: 12px 16px !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        border-radius: 6px;
        margin: 2px 0;
    }
    .navbar .nav-link::after {
        display: none;
    }
    .navbar .nav-link:hover {
        background: rgba(255,255,255,0.1);
    }
    .dropdown-menu {
        background: rgba(255,255,255,0.07);
        border: none;
        border-radius: 8px;
        box-shadow: none;
        padding: 4px;
        animation: none;
    }
    .dropdown-item {
        color: var(--text-light) !important;
        padding: 10px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        border-radius: 6px;
        font-size: 14px;
    }
    .dropdown-item:hover {
        background: rgba(255,255,255,0.15);
        color: var(--gold) !important;
        border-left: none;
        padding-left: 20px;
    }
    .mega-dropdown .dropdown-menu {
        width: 100%;
        transform: none;
        padding: 10px;
    }
    .mega-menu h6 {
        color: var(--gold);
        font-size: 12px;
    }
    .dropdown-submenu > .dropdown-menu {
        left: 0;
        top: auto;
        position: static;
        margin-left: 15px;
        border-radius: 6px;
    }
    .dropdown-submenu > a::after {
        content: "▾";
        font-size: 12px;
    }
    .cart-link {
        padding: 12px 16px !important;
    }
}

/* ================================================================
   HERO / CAROUSEL
   ================================================================ */
.hero-section {
    height: auto;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #1a0500 0%, #4a1800 35%, #8b3a00 65%, #2e0c00 100%);
    z-index: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(245,158,11,0.15),
        rgba(217,119,6,0.08),
        rgba(0,0,0,0.25));
}

#particles-js {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#hero-particles-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

#carouselExampleCaptions {
    position: relative;
    z-index: 4;
    height: auto;
    padding: 20px;
}

.carousel-inner {
    height: 500px;
    background: linear-gradient(135deg, #3b1a05, #6b2a00);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
}

.carousel-item {
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(26,11,5,0.7);
    border-radius: 50%;
    padding: 20px;
}

.carousel-indicators button {
    background-color: var(--saffron);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    border: 2px solid var(--gold);
}

.carousel-indicators button.active {
    background-color: var(--gold);
}

/* Hero responsive */
@media (min-width: 1400px) {
    .hero-section { height: auto; }
    .carousel-inner { height: 560px; }
}
@media (max-width: 1199px) {
    .hero-section { height: auto; }
    .carousel-inner { height: 420px; }
}
@media (max-width: 991px) {
    .hero-section { height: auto; }
    .carousel-inner { height: 340px; }
    #carouselExampleCaptions { padding: 14px; }
}
@media (max-width: 767px) {
    .hero-section { height: auto; }
    .carousel-inner { height: 260px; }
    #carouselExampleCaptions { padding: 10px; }
}
@media (max-width: 576px) {
    .hero-section { height: auto; }
    .carousel-inner { height: 200px; }
    #carouselExampleCaptions { padding: 6px; }
}

/* ================================================================
   NOTICE BAR
   ================================================================ */
.notice-bar {
    background: linear-gradient(to right, #1a0500, #5a1a00, #a04000, #5a1a00, #1a0500);
    color: #ffffff;
    font-size: 14px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 2px solid #f59e0b;
    border-bottom: 2px solid #f59e0b;
}

.notice-title {
    color: #fbbf24;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    text-shadow: 0 0 10px rgba(251,191,36,0.8);
    letter-spacing: .03em;
}

.notice-scroll-wrap {
    flex: 1;
    overflow: hidden;
}
.notice-scroll-text {
    display: inline-block;
    white-space: nowrap;
    animation: noticeScroll 30s linear infinite;
}
.notice-scroll-text:hover { animation-play-state: paused; }
@keyframes noticeScroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ================================================================
   SOCIAL MEDIA BAR
   ================================================================ */
.social-bar {
    position: fixed;
    top: 35%;
    left: 0;
    z-index: 9999;
}

.social-bar a {
    display: flex;
    align-items: center;
    width: 38px;
    height: 44px;
    margin: 4px 0;
    color: var(--text-light);
    font-size: 16px;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
    transition: width 0.35s ease, background 0.3s;
    padding-left: 10px;
    background: var(--navbar-gradient);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.social-bar i {
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.social-bar span {
    font-size: 13px;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.social-bar a:hover {
    width: 155px;
    background: var(--saffron);
    color: #fff;
}

.social-bar a:hover span {
    opacity: 1;
}

/* Hide on very small screens */
@media (max-width: 480px) {
    .social-bar {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        background: var(--deep-brown);
        padding: 4px 0;
    }
    .social-bar a {
        width: auto;
        height: 40px;
        border-radius: 8px;
        padding: 0 10px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        margin: 0;
    }
    .social-bar span { display: none; }
    .social-bar a:hover { width: auto; }
    body { padding-bottom: 50px; }
}

/* ================================================================
   BABASAHEBAPTE / LEADERSHIP SECTION
   ================================================================ */
.main-section {
    display: flex;
    padding: 30px;
    align-items: stretch;
    gap: 25px;
    background: var(--bg-gradient);
}

/* Left static gallery */
.left-img {
    width: 28%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.left-slider {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.left-slider h2 {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 360px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--text-light);
    font-size: 13px;
    text-align: center;
    font-weight: 600;
}

/* Right swiper */
.right-slider {
    width: 72%;
    display: flex;
    align-items: center;
}

.swiper {
    width: 100%;
    height: 360px;
}

/* Profile Card */
.swiper-slide .card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 16px 12px;
    height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(180,134,11,0.3);
    color: var(--text-dark);
    cursor: pointer;
}

.swiper-slide .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-deep);
}

.swiper-slide .card img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

.swiper-slide .card h3 {
    font-size: 14px;
    color: var(--saffron);
    font-weight: 700;
    text-align: center;
    margin: 4px 0;
}

.swiper-slide .card p {
    font-size: 13px;
    text-align: center;
    color: var(--text-dark);
    margin: 0;
}

.swiper-button-next,
.swiper-button-prev {
    width: 32px;
    height: 32px;
    background: var(--gold);
    border-radius: 6px;
    top: 50%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 13px;
    color: #fff;
    font-weight: 900;
}

/* Leadership section responsive */
@media (max-width: 991px) {
    .main-section {
        flex-direction: column;
        padding: 20px;
    }
    .left-img, .right-slider {
        width: 100%;
    }
    .left-slider {
        max-width: 100%;
    }
    .gallery-card {
        height: 280px;
    }
    .swiper {
        height: 320px;
    }
}

@media (max-width: 576px) {
    .main-section { padding: 15px; }
    .gallery-card { height: 240px; }
    .swiper-slide .card { height: 300px; }
    .swiper-slide .card img { height: 160px; }
}

/* ================================================================
   NOTICES / SUCHANA SECTION
   ================================================================ */
.notices-section {
    background: var(--bg-gradient);
    padding: 25px 0;
}

.notice-box {
    background: var(--card-bg);
    border: 2px solid var(--saffron);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.notice-box:hover {
    box-shadow: var(--shadow-deep);
    transform: translateY(-3px);
}

.notice-heading {
    background: var(--saffron);
    color: var(--text-light);
    font-weight: 700;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 17px;
    letter-spacing: 0.3px;
}

.notice-content {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.7;
    text-align: justify;
}

/* ================================================================
   PK2: PRAKASHAN & GALLERY SECTION
   ================================================================ */

.pk2-outer {
    display: flex;
    gap: 18px;
    padding: 24px 20px;
    background: var(--bg-gradient);
    align-items: stretch;
}

/* ---- Shared panel base ---- */
.pk2-pub-panel,
.pk2-gal-panel {
    border-radius: 14px;
    background: #fff8ee;
    box-shadow: 0 6px 28px rgba(90,42,0,.14);
    padding: 18px;
    display: flex;
    flex-direction: column;
}
.pk2-pub-panel { width: 70%; }
.pk2-gal-panel { width: 30%; }

/* ---- Panel header row ---- */
.pk2-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 2px solid #f0d9a8;
}
.pk2-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pk2-hicon {
    color: var(--saffron);
    font-size: 19px;
}
.pk2-htitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    border-left: 4px solid var(--saffron);
    padding-left: 10px;
    margin: 0;
    line-height: 1.2;
}

/* ---- Prev / Next arrow buttons ---- */
.pk2-pub-arrows { display: flex; gap: 8px; }
.pk2-arr {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--saffron);
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.pk2-arr:hover { background: #b45309; transform: scale(1.12); }

/* ---- Publication track ---- */
.pk2-pub-viewport {
    overflow: hidden;
    flex: 1;
}
.pk2-pub-track {
    display: flex;
    gap: 16px;
    transition: transform .52s cubic-bezier(.4,0,.2,1);
}

/* ---- Book card (3 visible on desktop) ---- */
.pk2-book {
    flex: 0 0 calc((100% - 32px) / 3);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0,0,0,.09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .28s ease, box-shadow .28s ease;
}
.pk2-book:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(90,42,0,.2);
}

.pk2-book-img {
    display: block;
    position: relative;
    overflow: hidden;
    background: #fdf3e3;
    aspect-ratio: 5/7;
}
.pk2-book-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fdf3e3;
    display: block;
    transition: transform .4s ease;
}
.pk2-book:hover .pk2-book-img img { transform: scale(1.04); }

.pk2-book-veil {
    position: absolute;
    inset: 0;
    background: rgba(90,42,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
    color: #fff;
    font-size: 22px;
}
.pk2-book:hover .pk2-book-veil { opacity: 1; }

.pk2-book-body {
    padding: 10px 12px 13px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.pk2-book-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.45;
    margin-bottom: 8px;
}
.pk2-book-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.pk2-book-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--saffron);
}
.pk2-book-buy {
    background: var(--navbar-gradient);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s;
}
.pk2-book-buy:hover { opacity: .82; color: #fff; }

/* ---- Publication footer ---- */
.pk2-pub-footer { text-align: center; margin-top: 16px; }
.pk2-store-btn {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    transition: var(--transition);
}
.pk2-store-btn:hover { background: linear-gradient(135deg, #b45309, #7c2d12); transform: translateY(-2px); color: #fff; }

/* ================================================================
   GALLERY SLIDESHOW
   ================================================================ */

.pk2-gal-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
    min-height: 260px;
    background: #1a0b05;
}

.pk2-gal-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .65s ease;
    pointer-events: none;
}
.pk2-gal-slide.active { opacity: 1; pointer-events: auto; }
.pk2-gal-slide a { display: block; height: 100%; }
.pk2-gal-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pk2-gal-cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 26px 12px 10px;
    background: linear-gradient(to top, rgba(26,11,5,.88), transparent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    letter-spacing: .4px;
}

/* Arrows inside gallery */
.pk2-gal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.42);
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .2s;
    line-height: 1;
}
.pk2-gal-arrow:hover { background: rgba(0,0,0,.72); }
.pk2-gal-prev-btn { left: 7px; }
.pk2-gal-next-btn { right: 7px; }

/* Dot indicators */
.pk2-gal-dots {
    position: absolute;
    bottom: 36px; left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 2;
}
.pk2-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    display: inline-block;
    transition: background .3s, transform .3s;
}
.pk2-dot.active { background: var(--saffron); transform: scale(1.35); }

/* Category pills */
.pk2-gal-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin: 10px 0 8px;
}
.pk2-cat {
    font-size: 10.5px;
    padding: 4px 9px;
    border-radius: 20px;
    background: #f0d9a8;
    color: #5a2a00;
    cursor: pointer;
    font-weight: 600;
    border: 1.5px solid transparent;
    transition: var(--transition);
}
.pk2-cat:hover,
.pk2-cat.active { background: var(--saffron); color: #fff; border-color: #b45309; }

/* Gallery footer */
.pk2-gal-footer { text-align: center; margin-top: 6px; }
.pk2-gallery-btn {
    display: inline-block;
    padding: 9px 24px;
    background: linear-gradient(135deg, #6b1414, #d97706);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    transition: var(--transition);
}
.pk2-gallery-btn:hover { background: linear-gradient(135deg, #5a2a00, #b45309); transform: translateY(-2px); color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .pk2-outer { flex-direction: column; }
    .pk2-pub-panel, .pk2-gal-panel { width: 100%; }
    .pk2-book { flex: 0 0 calc((100% - 16px) / 2); }
    .pk2-gal-box { min-height: 320px; }
}

@media (max-width: 767px) {
    .pk2-outer { padding: 14px; gap: 14px; }
    .pk2-book { flex: 0 0 100%; }
    .pk2-gal-box { min-height: 260px; }
    .pk2-pub-arrows { justify-content: center; }
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
    background: var(--footer-gradient);
    color: var(--text-light);
    padding-top: 50px;
}

footer h5 {
    font-weight: 700;
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 18px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    text-align: center;
}

.footer-link {
    color: #ddd;
    font-size: 14px;
    display: block;
    padding: 4px 0;
    transition: var(--transition);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--gold);
    padding-left: 6px;
}

/* Map column */
footer .col-lg-4:nth-child(2) h5,
footer .col-lg-4:nth-child(2) {
    text-align: center;
}

/* Contact column */
footer .col-lg-4:last-child {
    text-align: left;
}

footer .col-lg-4:last-child h5 {
    text-align: left;
}

footer .col-lg-4:last-child h5::after {
    left: 0;
    transform: none;
}

footer .col-lg-4:last-child p {
    text-align: left;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 6px;
    color: #e0d5c7;
}

.policy-link {
    color: var(--text-light);
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.policy-link:hover {
    color: var(--gold);
    text-decoration: underline;
}

footer hr {
    border-color: rgba(255,255,255,0.15);
}

.footer-bottom {
    text-align: center;
    padding-bottom: 20px;
    font-size: 13px;
    color: #aaa;
}

.footer-bottom u {
    color: var(--gold);
}

/* Footer responsive */
@media (max-width: 767px) {
    footer .col-lg-4:last-child,
    footer .col-lg-4:last-child h5,
    footer .col-lg-4:last-child p {
        text-align: center !important;
    }
    footer .col-lg-4:last-child h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ================================================================
   PAGE BANNER (inner pages)
   ================================================================ */
.banner {
    width: 100%;
    min-height: 100px;
    background: var(--header-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.2), transparent);
}

.header__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    line-height: 1.4;
}

@media (max-width: 767px) {
    .header__title { font-size: 16px; }
    .banner { min-height: 70px; padding: 14px; }
}

/* ================================================================
   INNER PAGE CONTENT STYLES
   ================================================================ */

/* Info Box */
.info-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: 100%;
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.8;
    border-left: 4px solid var(--saffron);
    position: relative;
    overflow: hidden;
}

.info-box.has-img {
    padding-top: 16px;
}

.corner-img {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: var(--shadow);
}

.corner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-title {
    text-align: center;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 16px;
    padding: 10px 20px;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid var(--saffron);
    border-right: 4px solid var(--saffron);
}

ol, ul.content-list {
    padding-left: 24px;
    line-height: 2;
    font-size: 15px;
}

ol li, ul.content-list li {
    padding: 4px 0;
    color: var(--text-dark);
}

/* Profile Page */
.profile-page {
    max-width: 1100px;
    margin: 0 auto;
}

.profile-img-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    background: var(--card-bg);
    padding: 14px;
    text-align: center;
}

.profile-img-card img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 12px;
}

.profile-designation {
    font-size: 14px;
    color: var(--saffron);
    font-weight: 600;
    margin-top: 4px;
}

.profile-info-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: 100%;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Committee Members */
.committee-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-bottom: 3px solid var(--saffron);
}

.committee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

.committee-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.committee-card h5 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.committee-card .role {
    font-size: 13px;
    color: var(--saffron);
    font-weight: 600;
}

/* Table styles */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 14px;
}

.styled-table thead {
    background: var(--navbar-gradient);
    color: var(--text-light);
}

.styled-table thead th {
    padding: 14px 16px;
    font-weight: 600;
    text-align: left;
}

.styled-table tbody tr {
    border-bottom: 1px solid #e8d5b7;
    transition: var(--transition);
}

.styled-table tbody tr:nth-child(even) {
    background: rgba(243,224,195,0.5);
}

.styled-table tbody tr:hover {
    background: rgba(217,119,6,0.15);
}

.styled-table td {
    padding: 12px 16px;
}

/* Chitra Dirgha / Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* Modal */
#imageModal .modal-content {
    background: #000;
    border: none;
}

#imageModal .modal-body {
    padding: 0;
}

#imageModal img {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

/* Section Heading Style */
.section-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--saffron);
    position: relative;
}

/* Prant Table */
.prant-table-wrapper {
    overflow-x: auto;
}

/* Shop / Books */
.book-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

.book-card img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 10px;
}

.book-card h5 {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.5;
}

.book-card .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--saffron);
}

/* Add to cart button */
.btn-cart {
    display: inline-block;
    padding: 8px 20px;
    background: var(--saffron);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-cart:hover {
    background: var(--gold);
    color: #fff;
}

/* ================================================================
   NEWS CUTTING PAGE
   ================================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ================================================================
   PLAN SONG PAGE
   ================================================================ */
.song-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-deep);
    text-align: center;
}

.song-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--saffron);
    margin-bottom: 20px;
}

.song-verse {
    font-size: 18px;
    line-height: 2.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* ================================================================
   INSIGNIA PAGE
   ================================================================ */
.insignia-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.insignia-img {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: var(--shadow-deep);
    margin-bottom: 20px;
}

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0e8d8;
}

::-webkit-scrollbar-thumb {
    background: var(--saffron);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ================================================================
   UTILITY
   ================================================================ */
.text-saffron { color: var(--saffron); }
.text-gold { color: var(--gold); }
.bg-theme { background: var(--bg-gradient); }
.shadow-card { box-shadow: var(--shadow); }
.rounded-card { border-radius: var(--border-radius); }

/* Print */
@media print {
    .navbar, .social-bar, footer, .notice-bar { display: none; }
}

/* ================================================================
   PROFILE PAGE (Secretary, President, etc.)
   ================================================================ */
.profile-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
}

.profile-img-wrap {
    background: rgba(0,0,0,0.05);
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    max-width: 230px;
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.profile-title {
    color: var(--saffron);
    font-weight: 700;
    font-size: 22px;
}

.profile-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 18px;
}

/* Bootstrap Nav Tabs custom */
.custom-tabs .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.custom-tabs .nav-link.active {
    background: var(--navbar-gradient);
    color: #fff;
    border: none;
}

.tab-text {
    background: rgba(255,255,255,0.7);
    padding: 15px;
    border-radius: 10px;
    line-height: 1.8;
    font-size: 15px;
}

.resume-wrapper {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.15);
}

.resume-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .resume-wrapper { height: 380px; }
}

/* ================================================================
   PDF / OLD EDITIONS PAGE
   ================================================================ */
.pdf-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 12px;
    position: relative;
    height: 100%;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 5px solid var(--saffron);
    min-height: 70px;
    display: flex;
    align-items: center;
}

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

.pdf-title {
    color: #c0392b;
    font-weight: 600;
    font-size: 15px;
}

.pdf-icon {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 34px;
    color: rgba(255,0,0,0.15);
}

/* PDF Popup */
#pdfPopup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

#pdfPopup.show { display: flex; }

#pdfPopup .popup-box {
    width: 90%;
    max-width: 1200px;
    height: 90%;
    background: #000;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
}

.pdf-topbar {
    background: #111;
    color: #fff;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

#popupTitle {
    font-size: 14px;
    font-weight: 600;
    color: #ffcc00;
}

#closePdf {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

#pdfPopup iframe {
    flex: 1;
    width: 100%;
    border: none;
}

@media (max-width: 768px) {
    #pdfPopup .popup-box { width: 100%; height: 100%; border-radius: 0; }
}

/* ================================================================
   SHOP / PRODUCTS PAGE
   ================================================================ */
.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid var(--saffron);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #fff;
}

/* ================================================================
   SUCHANA — NEW NOTICE BOXES V2
   ================================================================ */
.section-title-main {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--deep-brown);
    letter-spacing: .3px;
}
.title-decorator { color: var(--saffron); margin: 0 8px; }
.title-underline {
    width: 80px; height: 4px;
    background: var(--navbar-gradient);
    margin: 10px auto 0;
    border-radius: 4px;
}

.notice-box-v2 {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
    border-top: 4px solid var(--saffron);
}
.notice-box-v2:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.notice-box-v2--gold { border-top-color: var(--gold); }
.notice-box-v2--dark { border-top-color: var(--deep-brown); }

.notice-box-v2__icon {
    width: 52px; height: 52px;
    background: var(--navbar-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin: 22px auto 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.notice-box-v2__heading {
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--deep-brown);
    margin: 14px 0 6px;
    padding: 0 16px;
}

.notice-box-v2__content {
    padding: 12px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notice-list {
    list-style: none;
    padding: 0; margin: 0;
    flex: 1;
}
.notice-list li {
    padding: 7px 0;
    border-bottom: 1px dashed #f0e0c0;
    font-size: .9rem;
    color: var(--text-dark);
    line-height: 1.5;
    padding-left: 18px;
    position: relative;
}
.notice-list li::before {
    content: '›';
    position: absolute; left: 0;
    color: var(--saffron); font-weight: 900; font-size: 1.1rem;
}

/* NEW badge — blinking */
.naya-badge {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
    letter-spacing: .04em;
    animation: naya-blink 1.2s step-start infinite;
}
@keyframes naya-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.history-list {
    list-style: none; padding: 0; margin: 0; flex: 1;
}
.history-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0e0c0;
    font-size: .88rem;
    line-height: 1.5;
    display: flex; align-items: flex-start; gap: 8px;
}
.year-badge {
    background: var(--navbar-gradient);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-box-v2__btn {
    display: inline-block;
    margin-top: 14px;
    background: var(--navbar-gradient);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: opacity .2s;
    align-self: flex-start;
}
.notice-box-v2__btn:hover { opacity: .85; }

.suvichar-quote {
    font-size: .95rem;
    font-style: italic;
    color: var(--deep-brown);
    border-left: 3px solid var(--saffron);
    padding-left: 12px;
    margin: 0;
    line-height: 1.7;
}
.suvichar-author {
    font-size: .8rem;
    font-weight: 700;
    color: var(--gold);
    text-align: right;
    margin: 6px 0 0;
}

/* ── Stats Bar ── */
.stats-bar {
    background: var(--navbar-gradient);
    padding: 28px 0;
    margin: 0;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }
.stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.stat-label {
    font-size: .82rem;
    color: rgba(255,255,255,.8);
    font-weight: 600;
    text-align: center;
}

/* pk2-book-buy handles the buy button (see PK2 section above) */

@media (max-width: 768px) {
    .stat-num { font-size: 1.5rem; }
    .section-title-main { font-size: 1.35rem; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
    .stat-item:last-child { border-bottom: none; }
}

.product-card .card-body {
    padding: 14px;
}

/* ================================================================
   NEWS CUTTING / IMAGE GALLERY PAGE
   ================================================================ */
.container-background {
    background: linear-gradient(rgba(255,255,255,0.15), rgba(255,255,255,0.15)),
                var(--bg-gradient);
    min-height: 100vh;
    padding: 30px 15px;
}

.image-card {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.image-card:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-deep);
}

.image-card img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    display: block;
}

#previewImage {
    max-height: 85vh;
    object-fit: contain;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    border: none;
    font-size: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
}

/* ================================================================
   INSIGNIA / THEME CARD
   ================================================================ */
.site-bg {
    background: var(--bg-gradient);
}

.theme-card {
    background: var(--card-bg);
    border: 1px solid rgba(90,42,0,0.2);
    border-radius: 18px;
    box-shadow: var(--shadow-deep);
    overflow: hidden;
    padding: 24px;
}

.content-text {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.8;
    word-wrap: break-word;
}

.highlight-quote {
    background: linear-gradient(90deg, #fff3cd, #ffe8a1);
    border-left: 5px solid var(--saffron);
    padding: 15px 20px;
    font-weight: 600;
    color: #8b3a00;
    border-radius: 10px;
    margin: 16px 0;
    word-wrap: break-word;
}

/* ================================================================
   PLAN SONG / ABISY CARD
   ================================================================ */
.abisy-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    width: 100%;
}

.poetry-text {
    text-align: left;
}

.poetry-text p,
.poetry-text li {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
}

.section-image {
    max-width: 65%;
    border-radius: 18px;
    box-shadow: var(--shadow-deep);
}

@media (max-width: 991px) {
    .section-image { max-width: 85%; margin-top: 16px; }
}

/* ================================================================
   INTRODUCTION PAGE — DETAILED STYLES
   ================================================================ */
.info-box p {
    text-align: justify;
    text-align-last: left;
    line-height: 1.9;
    word-spacing: 0.05em;
}

.has-img p {
    padding-left: 85px;
}

@media (max-width: 576px) {
    .info-box { padding-top: 80px; }
    .corner-img {
        left: 50%;
        transform: translateX(-50%);
    }
    .has-img p {
        padding-left: 0;
        margin-top: 80px;
        text-align: center;
    }
}

/* ================================================================
   PRANT TABLE LINK PAGE
   ================================================================ */
.main-heading {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #7a3000;
    border-bottom: 2px solid var(--saffron);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.province-list {
    background: #fff;
    padding: 14px 20px 20px;
    border-radius: 12px;
    border: 1px solid var(--saffron);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.province-list h3 {
    text-align: center;
    margin-bottom: 14px;
    font-size: 18px;
    color: var(--text-dark);
}

.province-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.province-buttons label {
    padding: 7px 14px;
    border-radius: 25px;
    border: 1.5px solid var(--saffron);
    background: white;
    color: var(--saffron);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.province-buttons label:hover {
    background: var(--saffron);
    color: white;
    transform: scale(1.04);
}

.table-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border-left: 6px solid var(--saffron);
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   NATIONAL WORKING COMMITTEE / KARYASAMITI
   ================================================================ */
.karyasamiti-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border-bottom: 3px solid var(--gold);
}

.karyasamiti-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

.karyasamiti-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.karyasamiti-card .card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.karyasamiti-card .card-role {
    font-size: 12px;
    color: var(--saffron);
}

/* ================================================================
   MAHADIVESHAN / CHITRA GALLERY
   ================================================================ */
.chitra-category-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 8px 16px;
    background: var(--header-gradient);
    color: var(--text-light);
    border-radius: 8px;
    margin: 20px 0 12px;
}

/* ================================================================
   GENERAL COUNCIL PAGES (Senior, Youth, Women Historians etc.)
   ================================================================ */
.council-section {
    background: var(--bg-gradient);
    padding: 30px 0;
}

.council-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid var(--saffron);
}

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

.council-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--saffron);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 8px;
}

/* ================================================================
   PROFILE BIOGRAPHY PAGES (moropant, baba-saheb-apte, thakur-ram-singh, etc.)
   ================================================================ */
.profile-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    border-left: 4px solid var(--saffron);
    padding-left: 14px;
}

@media (max-width: 576px) {
    .profile-heading { font-size: 18px; }
}

.quote-box {
    background: linear-gradient(135deg, #fff8ee, #fef0d8);
    border-left: 5px solid var(--saffron);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 24px 0;
    font-size: 15px;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.books-list .list-group-item {
    background: var(--card-bg);
    border-color: rgba(180,134,11,0.2);
    color: var(--text-dark);
    font-size: 14.5px;
    padding: 10px 16px;
}

.books-list .list-group-item i {
    color: var(--saffron);
}

.year-badge {
    background: var(--navbar-gradient);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 12px;
    white-space: nowrap;
}

.warning-badge {
    background: #fff3cd;
    color: #856404;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
}

.poem {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 18px 20px;
    font-size: 14.5px;
    line-height: 2;
    color: var(--text-dark);
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow);
}

.bio-bottom-text {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-align: justify;
}

.bio-section {
    background: var(--bg-gradient);
    padding: 30px 0;
}

.bio-image-box {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    background: var(--card-bg);
    padding: 12px;
    text-align: center;
}

.bio-image-box img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
}

.bio-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--saffron);
    margin-bottom: 14px;
    border-left: 4px solid var(--gold);
    padding-left: 12px;
}

.bio-title .arrow {
    display: none;
}

@media (max-width: 576px) {
    .bio-title { font-size: 18px; }
    .bio-image-box { margin-bottom: 16px; }
}

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb {
    background: transparent;
    padding: 8px 0;
}

.breadcrumb-item a {
    color: var(--saffron);
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

