/* ══════════════════════════════════════════════════════════
   NDA Keralam — Frontend Custom Styles
   Works on top of public/theme/css/style.css (Archive theme)
══════════════════════════════════════════════════════════ */

/* ─── SHARED: Page banner (inner pages) ─────────────────── */
.page-banner-section {
    background: linear-gradient(135deg, #0a1628, #1a0a2e);
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}
.page-banner-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(230,57,70,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.inner-banner-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.inner-banner-breadcrumb a { color: #aaa; text-decoration: none; }
.inner-banner-breadcrumb a:hover { color: #fff; }
.inner-banner-breadcrumb span { color: #777; }
.inner-banner-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}
.inner-banner-title span {
    background: linear-gradient(90deg, #e63946, #f4a261);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─── SHARED: Video banner (mathiyayi / maattam) ────────── */
.page-banner-section.video-banner {
    background: none;
    min-height: 1000px;
    display: flex;
    align-items: center;
    padding: 0;
}
@media only screen and (max-width: 1199px) {
    .page-banner-section.video-banner { min-height: 520px; }
}
@media only screen and (max-width: 991px) {
    .page-banner-section.video-banner { min-height: 450px; }
}
@media only screen and (max-width: 767px) {
    .page-banner-section.video-banner { min-height: 360px; }
}
.video-el {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}
.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 100px 0 60px;
}
#soundToggleBtn {
    position: absolute;
    top: 100px; right: 20px;
    z-index: 10;
    background: rgba(0,0,0,0.45);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.15s;
}
#soundToggleBtn:hover { background: rgba(0,0,0,0.65); transform: scale(1.08); }

/* ─── SHARED: Section chips & dividers ──────────────────── */
.section-chip {
    display: inline-block;
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 12px;
    background: rgba(230,57,70,0.15);
    color: #e63946;
    border: 1px solid rgba(230,57,70,0.3);
}
.count-chip {
    display: inline-block;
    background: rgba(230,57,70,0.15);
    color: #e63946;
    border: 1px solid rgba(230,57,70,0.3);
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* ─── SHARED: Share buttons ─────────────────────────────── */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}
.share-btn:hover { transform: translateY(-2px); }
.sb-fb { background: #1877f2; color: #fff; }
.sb-wa { background: #25d366; color: #fff; }
.sb-tw { background: #1da1f2; color: #fff; }
.sb-tg { background: #2aabee; color: #fff; }

/* ─── HOME: Hero ─────────────────────────────────────────── */
.hero-section-wrapper { position: relative; width: 100%; overflow: hidden; }
#heroBgVideo {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}
.video-mute-btn {
    position: absolute;
    top: 100px; right: 32px;
    z-index: 999;
    background: rgba(0,0,0,0.5);
    border: 1.5px solid rgba(255,255,255,0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff !important;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45);
    transition: background 0.3s, transform 0.2s;
}
.video-mute-btn:hover { background: rgba(0,0,0,0.75); transform: scale(1.1); }
@media (max-width: 768px) {
    .video-mute-btn { top: 80px; right: 16px; width: 34px; height: 34px; font-size: 12px; }
}
.hero-content-carousel { position: relative; z-index: 2; }
.hero-content-carousel .carousel-item {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 55px 20px 80px;
}
.hero-slide-title {
    font-family: 'Anek Malayalam', sans-serif;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.6);
    margin-bottom: 0;
}
.title-underline {
    display: block;
    width: 64px; height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #e63946, #f4a261);
    margin: 18px auto 0;
}
.hero-slide-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 36px;
}
.hero-slide-btns a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 200px !important;
    height: 58px !important;
    padding: 0 24px !important;
    font-size: 1.15rem !important;
    font-family: 'Anek Malayalam', sans-serif !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    white-space: nowrap !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.hero-slide-btns a.btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.4) !important;
}
.red-btn  { background: #cc1111; color: #fff !important; border: none; }
.red-btn:hover  { background: #e01313; }
.green-btn { background: #0a7a1e; color: #fff !important; border: none; }
.green-btn:hover { background: #0c8f23; }
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-slide-title, .title-underline, .hero-slide-btns {
    opacity: 0;
    transform: translateY(40px);
}
.carousel-item.active .hero-slide-title {
    animation: slideUpFade 0.75s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}
.carousel-item.active .title-underline {
    animation: slideUpFade 0.75s cubic-bezier(0.22,1,0.36,1) 0.3s forwards;
}
.carousel-item.active .hero-slide-btns {
    animation: slideUpFade 0.75s cubic-bezier(0.22,1,0.36,1) 0.5s forwards;
}
#heroCarousel .carousel-indicators { bottom: 30px; }
#heroCarousel .carousel-indicators button {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    transition: background 0.3s, transform 0.3s;
}
#heroCarousel .carousel-indicators button.active { background: #fff; transform: scale(1.3); }

/* ─── HOME: Campaign pillars ─────────────────────────────── */
.pillars-section { background: #0a1628; padding: 120px 0 80px; }
.pillars-section h2 { color: #fff; font-family: 'Outfit', sans-serif; font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 700; margin-bottom: 8px; }
.pillars-section h2 span { background: linear-gradient(90deg, #e63946, #f4a261); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.pillars-divider { width: 60px; height: 3px; background: linear-gradient(90deg, #e63946, #f4a261); border-radius: 2px; margin: 16px 0 40px; }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 24px; }
.pillar-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 28px 24px; transition: transform 0.3s, border-color 0.3s; }
.pillar-card:hover { transform: translateY(-4px); border-color: rgba(230,57,70,0.4); }
.pillar-icon { font-size: 2rem; margin-bottom: 12px; }
.pillar-title { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.pillar-ml { color: #e63946; font-family: 'Anek Malayalam', sans-serif; font-size: 0.9rem; display: block; margin-bottom: 8px; }
.pillar-desc { color: #bbb; font-size: 0.875rem; line-height: 1.6; margin: 0; }

/* ─── HOME: Campaign teasers ─────────────────────────────── */
.teaser-section { padding: 80px 0; }
.teaser-section.teaser-mathiyayi { background: #12070a; }
.teaser-section.teaser-maattam { background: #060d1a; }
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 991px) { .teaser-grid { grid-template-columns: 1fr; gap: 32px; } }
.teaser-chip { display: inline-block; border-radius: 50px; padding: 5px 16px; font-size: 0.75rem; letter-spacing: 2px; font-weight: 700; margin-bottom: 12px; }
.teaser-chip.red { background: rgba(204,17,17,0.2); color: #ff4444; border: 1px solid rgba(204,17,17,0.3); }
.teaser-chip.blue { background: rgba(0,51,170,0.2); color: #4488ff; border: 1px solid rgba(0,51,170,0.3); }
.teaser-word { font-family: 'Outfit', sans-serif; font-size: clamp(2rem,4vw,3rem); font-weight: 800; color: #fff; line-height: 1.1; }
.teaser-word.red { color: #ff4444; }
.teaser-word.blue { color: #4488ff; }
.teaser-word-ml { font-family: 'Anek Malayalam', sans-serif; color: #aaa; font-size: 1.1rem; margin: 6px 0 16px; display: block; }
.teaser-desc { color: #bbb; line-height: 1.7; max-width: 480px; }
.teaser-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 12px 28px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: transform 0.2s; }
.teaser-cta:hover { transform: translateY(-2px); }
.teaser-cta.red { background: #cc1111; color: #fff; }
.teaser-cta.blue { background: #0033aa; color: #fff; }
.teaser-video { position: relative; border-radius: 16px; overflow: hidden; background: #1a1a1a; aspect-ratio: 16/9; }
.teaser-video iframe, .teaser-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.teaser-video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.teaser-play { width: 64px; height: 64px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; cursor: pointer; }
.teaser-play.red { background: #cc1111; }
.teaser-play.blue { background: #0033aa; }

/* ─── MATHIYAYI: Hero content ────────────────────────────── */
.mathiyayi-inner { background: #0a1628; padding: 70px 0; }
.m-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 991px) { .m-hero-grid { grid-template-columns: 1fr; } }
.m-campaign-chip {
    display: inline-block;
    background: rgba(230,57,70,0.15);
    color: #e63946;
    border: 1px solid rgba(230,57,70,0.3);
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 12px;
}
.m-hero-title { font-family: 'Outfit', sans-serif; font-size: clamp(2.5rem,5vw,4rem); font-weight: 800; color: #e63946; line-height: 1.1; }
.m-hero-ml { font-family: 'Anek Malayalam', sans-serif; color: #aaa; font-size: 1.1rem; margin: 6px 0 16px; display: block; }
.m-hero-desc { color: #ccc; line-height: 1.7; margin-bottom: 24px; }
.btn-red { background: #cc1111; color: #fff; padding: 12px 28px; border-radius: 50px; font-weight: 700; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.2s; }
.btn-red:hover { transform: translateY(-2px); color: #fff; }
.btn-outline { background: transparent; color: #aaa; padding: 12px 28px; border-radius: 50px; border: 1.5px solid rgba(255,255,255,0.3); font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.btn-outline:hover { border-color: #fff; color: #fff; }
.video-thumb-box { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; background: #111; cursor: pointer; }
.video-thumb-box img { width: 100%; height: 100%; object-fit: cover; }
.play-circle { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play-circle button { width: 64px; height: 64px; border-radius: 50%; background: #cc1111; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; transition: transform 0.2s; }
.play-circle button:hover { transform: scale(1.1); }
.share-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ─── MATHIYAYI: Sections ────────────────────────────────── */
.m-section { padding: 70px 0; }
.m-section.dark { background: #0a1628; }
.m-section.light { background: #0f1e35; }
.m-section h2 { font-family: 'Outfit', sans-serif; font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 700; color: #fff; margin-bottom: 8px; }
.m-section h2 span { color: #e63946; }
.m-divider { width: 50px; height: 3px; background: #e63946; border-radius: 2px; margin: 12px 0 36px; }
.issues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 20px; }
.issue-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 24px; transition: transform 0.3s, border-color 0.3s; }
.issue-card:hover { transform: translateY(-3px); border-color: rgba(230,57,70,0.4); }
.issue-icon { font-size: 1.8rem; margin-bottom: 10px; }
.issue-title { color: #fff; font-weight: 700; margin-bottom: 6px; }
.issue-desc { color: #bbb; font-size: 0.875rem; line-height: 1.6; margin: 0; }
.m-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.m-video-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #111; cursor: pointer; }
.m-video-card img { width: 100%; height: 100%; object-fit: cover; }
.m-video-card .play-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(0,0,0,0.4); }
.m-video-card .play-overlay button { width: 52px; height: 52px; border-radius: 50%; background: #cc1111; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }
.m-video-card p { color: #eee; font-size: 0.8rem; font-family: 'Anek Malayalam', sans-serif; margin: 0; text-align: center; padding: 0 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; }
.gallery-item { aspect-ratio: 1; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: rgba(255,255,255,0.05); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.download-list { display: flex; flex-direction: column; gap: 12px; }
.download-item { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 16px 20px; text-decoration: none; color: #fff; transition: border-color 0.2s; }
.download-item:hover { border-color: #e63946; color: #fff; }
.download-arrow { margin-left: auto; color: #e63946; font-size: 1.2rem; }

/* ─── MATHIYAYI: Video modal ─────────────────────────────── */
.vid-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; align-items: center; justify-content: center; }
.vid-modal-overlay.open { display: flex; }
.vid-modal-box { background: #111; border-radius: 16px; width: 90%; max-width: 860px; overflow: hidden; }
.vid-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.vid-modal-head h3 { color: #fff; margin: 0; font-size: 1rem; }
.vid-modal-close { background: none; border: none; color: #aaa; font-size: 1.5rem; cursor: pointer; }
.vid-modal-close:hover { color: #fff; }
.vid-modal-body { position: relative; padding-bottom: 56.25%; }
.vid-modal-body iframe, .vid-modal-body video { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ─── MAATTAM: Hero content ──────────────────────────────── */
.maattam-inner { background: #060d1a; padding: 70px 0; }
.maattam-hero-grid { display: grid; grid-template-columns: 1fr 400px; gap: 60px; align-items: start; }
@media (max-width: 1100px) { .maattam-hero-grid { grid-template-columns: 1fr; } }
.blue-chip { display: inline-block; background: rgba(13,110,253,0.15); color: #4488ff; border: 1px solid rgba(13,110,253,0.3); border-radius: 50px; padding: 5px 16px; font-size: 0.75rem; letter-spacing: 2px; font-weight: 700; margin-bottom: 12px; }
.k-hero-title { font-family: 'Outfit', sans-serif; font-size: clamp(2.5rem,5vw,4rem); font-weight: 800; color: #4488ff; line-height: 1.1; }
.k-hero-ml { font-family: 'Anek Malayalam', sans-serif; color: #aaa; font-size: 1.1rem; margin: 6px 0 16px; display: block; }
.k-hero-desc { color: #ccc; line-height: 1.7; margin-bottom: 24px; }
.k-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.k-stat { text-align: center; }
.k-stat-val { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 800; color: #4488ff; display: block; }
.k-stat-lbl { font-size: 0.72rem; color: #aaa; display: block; }
.k-stat-sep { width: 1px; background: rgba(255,255,255,0.15); }
.volunteer-form { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 32px; }
.volunteer-form h3 { color: #fff; font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.volunteer-form .sub { color: #aaa; font-family: 'Anek Malayalam', sans-serif; font-size: 0.9rem; margin-bottom: 20px; display: block; }
.vform-group { margin-bottom: 14px; }
.vform-group label { display: block; color: #ccc; font-size: 0.82rem; margin-bottom: 5px; }
.vform-group input,
.vform-group select,
.vform-group textarea { width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 10px 14px; color: #fff; font-size: 0.9rem; outline: none; transition: border-color 0.2s; }
.vform-group input:focus,
.vform-group select:focus,
.vform-group textarea:focus { border-color: #4488ff; }
.vform-group select option { background: #0a1628; }
.vform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit { width: 100%; padding: 14px; background: #0033aa; color: #fff; border: none; border-radius: 50px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background 0.2s, transform 0.2s; margin-top: 8px; }
.form-submit:hover { background: #0044cc; transform: translateY(-2px); }

/* ─── MAATTAM: Sections ──────────────────────────────────── */
.k-section { padding: 70px 0; }
.k-section.dark { background: #060d1a; }
.k-section.light { background: #0a1628; }
.k-chip { display: inline-block; background: rgba(13,110,253,0.15); color: #4488ff; border: 1px solid rgba(13,110,253,0.3); border-radius: 50px; padding: 5px 16px; font-size: 0.75rem; letter-spacing: 2px; font-weight: 700; margin-bottom: 12px; }
.k-section h2 { font-family: 'Outfit', sans-serif; font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 700; color: #fff; margin-bottom: 8px; }
.k-section h2 span { color: #4488ff; }
.k-divider { width: 50px; height: 3px; background: #0033aa; border-radius: 2px; margin: 12px 0 36px; }
.vision-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 20px; }
.vision-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 24px; transition: transform 0.3s, border-color 0.3s; }
.vision-card:hover { transform: translateY(-3px); border-color: rgba(68,136,255,0.4); }
.vision-icon { font-size: 2rem; background: rgba(13,110,253,0.1); width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.vision-title { color: #fff; font-weight: 700; margin-bottom: 6px; }
.vision-desc { color: #bbb; font-size: 0.875rem; line-height: 1.6; margin: 0; }
.promise-item { margin-bottom: 20px; }
.promise-label { display: flex; justify-content: space-between; margin-bottom: 8px; color: #ccc; font-size: 0.875rem; font-family: 'Anek Malayalam', sans-serif; }
.progress-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #0033aa, #4488ff); border-radius: 3px; }
.promises-videos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 991px) { .promises-videos-grid { grid-template-columns: 1fr; gap: 40px; } }
.vid-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; margin-bottom: 14px; }
.vid-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }
.news-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.2s, border-color 0.2s; display: block; }
.news-card:hover { transform: translateY(-3px); border-color: rgba(68,136,255,0.4); color: inherit; }
.news-img { height: 160px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 2rem; position: relative; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 16px; }
.news-date { color: #777; font-size: 0.75rem; margin-bottom: 6px; }
.news-title { color: #fff; font-family: 'Anek Malayalam', sans-serif; font-size: 0.9rem; line-height: 1.5; }
.news-more { color: #4488ff; font-size: 0.8rem; margin-top: 8px; }

/* ─── NEWS INDEX: Featured layout ───────────────────────── */
.news-featured-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 991px) { .news-featured-grid { grid-template-columns: 1fr; } }
.news-featured-card { display: block; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); text-decoration: none; color: inherit; transition: transform 0.2s, border-color 0.2s; }
.news-featured-card:hover { transform: translateY(-3px); border-color: rgba(68,136,255,0.4); color: inherit; }
.news-featured-img { position: relative; height: 320px; overflow: hidden; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.news-featured-body { padding: 24px; }
.news-featured-body h2 { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0 0 10px; line-height: 1.4; }
.news-featured-body p { font-family: 'Anek Malayalam', sans-serif; color: #aaa; font-size: 0.9rem; margin: 0 0 16px; line-height: 1.6; }
.news-feat-tag { position: absolute; top: 16px; left: 16px; background: rgba(13,110,253,0.85); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; padding: 4px 12px; border-radius: 50px; backdrop-filter: blur(6px); }
.news-feat-badge { position: absolute; top: 16px; right: 16px; background: rgba(230,57,70,0.9); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; }
.news-sidebar-list { display: flex; flex-direction: column; gap: 10px; }
.news-sidebar-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #555; margin: 0 0 6px; }
.news-side-item { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 14px; text-decoration: none; color: inherit; transition: border-color 0.2s, background 0.2s; }
.news-side-item:hover { border-color: rgba(68,136,255,0.35); background: rgba(255,255,255,0.07); color: inherit; }
.nsi-thumb { width: 72px; height: 60px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.nsi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nsi-info { flex: 1; min-width: 0; }
.nsi-title { font-family: 'Anek Malayalam', sans-serif; color: #ddd; font-size: 0.85rem; line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nsi-meta { color: #666; font-size: 0.72rem; }
.nsi-meta span { color: #4488ff; }

/* ─── CONSTITUENCIES: Search & filter ────────────────────── */
.const-search-wrap { position: relative; margin-top: 20px; max-width: 480px; }
.const-search-wrap input { width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 50px; padding: 12px 20px 12px 48px; color: #fff; font-size: 0.95rem; outline: none; transition: border-color 0.2s; }
.const-search-wrap input::placeholder { color: #777; }
.const-search-wrap input:focus { border-color: rgba(230,57,70,0.5); }
.const-search-wrap .search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 1rem; }
.const-body { background: #0a1628; padding: 50px 0 80px; }
.dist-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.dist-filter-btn { padding: 7px 18px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.15); background: transparent; color: #aaa; font-size: 0.8rem; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.dist-filter-btn:hover { border-color: rgba(230,57,70,0.5); color: #e63946; }
.dist-filter-btn.active { background: #e63946; border-color: #e63946; color: #fff; }
.const-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 12px; }
.const-index-card { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 16px 20px; text-decoration: none; color: inherit; transition: transform 0.2s, border-color 0.2s; }
.const-index-card:hover { transform: translateY(-2px); border-color: rgba(230,57,70,0.4); color: inherit; }
.ci-num { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 800; color: #e63946; min-width: 48px; }
.ci-info { flex: 1; }
.ci-ml { font-family: 'Anek Malayalam', sans-serif; color: #fff; font-size: 0.95rem; font-weight: 600; }
.ci-en { color: #aaa; font-size: 0.75rem; margin-top: 2px; }
.ci-arrow { color: #555; font-size: 1.2rem; }
.const-index-card:hover .ci-arrow { color: #e63946; }

/* ─── CONSTITUENCY DETAIL: Layout ────────────────────────── */
.const-badge { display: inline-block; background: linear-gradient(90deg, #e63946, #f4a261); color: #fff; font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 800; border-radius: 12px; padding: 8px 20px; margin-bottom: 14px; }
.const-title-ml { font-family: 'Anek Malayalam', sans-serif; font-size: clamp(2rem,4vw,3rem); font-weight: 800; color: #fff; margin: 0 0 4px; }
.const-title-en { font-family: 'Outfit', sans-serif; font-size: 1.2rem; color: #aaa; margin: 0 0 8px; }
.const-dist-tag { display: inline-block; background: rgba(255,255,255,0.1); color: #ccc; border-radius: 50px; padding: 4px 14px; font-size: 0.8rem; }
.const-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
@media (max-width: 991px) { .const-layout { grid-template-columns: 1fr; } }
.const-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.const-card-head { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.const-card-head h3 { color: #fff; font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; margin: 0; }
.const-card-body { padding: 20px; }
.video-embed { position: relative; padding-bottom: 56.25%; overflow: hidden; border-radius: 8px; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { display: flex; align-items: center; justify-content: center; height: 200px; color: #aaa; font-family: 'Anek Malayalam', sans-serif; }
.candidate-row { display: flex; align-items: center; gap: 14px; }
.cand-avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(230,57,70,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.cand-name { color: #fff; font-weight: 700; }
.cand-party { color: #aaa; font-size: 0.8rem; display: block; margin-top: 2px; }
.tabs-header { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab-btn { padding: 7px 16px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.15); background: transparent; color: #aaa; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
.tab-btn.active, .tab-btn:hover { background: #e63946; border-color: #e63946; color: #fff; }
.tab-body { display: none; }
.tab-body.active { display: block; }
.docs-grid { display: flex; flex-direction: column; gap: 10px; }
.doc-item { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: inherit; transition: border-color 0.2s; }
.doc-item:hover { border-color: rgba(230,57,70,0.4); color: inherit; }
.doc-ico { font-size: 1.5rem; }
.doc-meta h5 { color: #fff; font-size: 0.875rem; font-weight: 600; margin: 0 0 2px; }
.doc-meta span { color: #aaa; font-size: 0.75rem; }
.side-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.side-card h4 { color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 14px; }
.share-btns { display: flex; flex-direction: column; gap: 8px; }
.share-btns .share-btn { border-radius: 8px; }
.nearby-list { display: flex; flex-direction: column; gap: 4px; }
.nearby-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: #ccc; transition: background 0.2s; }
.nearby-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nearby-num { font-family: 'Outfit', sans-serif; font-weight: 700; color: #e63946; font-size: 0.85rem; min-width: 28px; }
.nearby-ml { font-family: 'Anek Malayalam', sans-serif; font-size: 0.85rem; }

/* ─── CDP: Constituency Detail Page (new design) ─────────── */
.cdp { background: #0a1628; min-height: 60vh; }

.cdp-breadcrumb { background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.07); padding: 10px 0; font-size: 0.8rem; }
.cdp-breadcrumb a { color: #aaa; text-decoration: none; }
.cdp-breadcrumb a:hover { color: #fff; }
.cdp-breadcrumb .sep { color: #555; margin: 0 6px; }
.cdp-breadcrumb .cur { color: #ccc; }

.cdp-hero { background: linear-gradient(135deg,#0d1f3c,#1a0a2e); padding: 36px 0 28px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.cdp-back-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; flex-shrink: 0; margin-top: 4px; transition: background 0.2s; }
.cdp-back-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }
.cdp-badge { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; background: linear-gradient(90deg,#e63946,#f4a261); color: #fff; border-radius: 10px; padding: 6px 16px; min-width: 72px; text-align: center; flex-shrink: 0; }
.cdp-ml { font-family: 'Anek Malayalam', sans-serif; font-size: clamp(1.6rem,3.5vw,2.4rem); font-weight: 800; color: #fff; margin: 0 0 4px; line-height: 1.2; }
.cdp-en { font-family: 'Outfit', sans-serif; font-size: 1rem; color: #aaa; margin-bottom: 8px; }
.cdp-dtag { display: inline-block; background: rgba(255,255,255,0.1); color: #ccc; border-radius: 50px; padding: 3px 12px; font-size: 0.78rem; }

.gap-col { display: flex; flex-direction: column; gap: 20px; }

.cdp-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; overflow: hidden; }
.cdp-card-hdr { padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,0.07); font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #ccc; }

/* Video – uploaded */
.cdp-video-wrap { position: relative; background: #000; border-radius: 0; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; }
.cdp-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cdp-video-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(0,0,0,0.35); transition: background 0.2s; }
.cdp-video-wrap.playing .cdp-video-overlay { display: none; }
.cdp-play-ring { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,183,0,0.15); border: 2px solid rgba(255,183,0,0.5); display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.cdp-video-wrap:hover .cdp-play-ring { transform: scale(1.1); }
.cdp-vlabel { color: #fff; font-size: 0.8rem; letter-spacing: 1px; opacity: 0.85; }

/* Video – YouTube embed */
.cdp-embed-wrap { position: relative; padding-bottom: 56.25%; overflow: hidden; background: #000; }
.cdp-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cdp-yt-share { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f7f7f7; border-top: 1px solid #e5e5e5; }
.cdp-yt-link { display: inline-flex; align-items: center; gap: 6px; color: #cc0000; font-size: 13px; font-weight: 600; text-decoration: none; }
.cdp-yt-link:hover { text-decoration: underline; }
.cdp-copy-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border: 1px solid #ccc; border-radius: 6px; background: #fff; font-size: 12px; color: #444; cursor: pointer; transition: background .15s, border-color .15s; }
.cdp-copy-btn:hover { background: #f0f0f0; border-color: #aaa; }

/* Document tabs */
.cdp-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 0 16px; overflow-x: auto; }
.cdp-tab { padding: 10px 16px; font-size: 0.82rem; font-weight: 600; color: #888; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.cdp-tab.active { color: #e63946; border-bottom-color: #e63946; }
.cdp-tab:hover { color: #fff; }

.cdp-cat-panel { display: none; padding: 16px; }
.cdp-cat-panel.active { display: block; }

.cdp-no-data { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 36px 20px; color: rgba(255,255,255,0.25); font-size: 0.85rem; }
.cdp-no-data i { font-size: 2rem; }
.cdp-pdf-list { display: flex; flex-direction: column; gap: 10px; }
.cdp-pdf-item { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 12px 14px; transition: border-color 0.2s; }
.cdp-pdf-item:hover { border-color: rgba(230,57,70,0.3); }
.cdp-pdf-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(230,57,70,0.12); display: flex; align-items: center; justify-content: center; color: #e63946; font-size: 1rem; flex-shrink: 0; }
.cdp-pdf-info { flex: 1; min-width: 0; }
.cdp-pdf-name { color: #fff; font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdp-pdf-meta { color: #777; font-size: 0.75rem; margin-top: 2px; }
.cdp-pdf-dl { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: #aaa; text-decoration: none; flex-shrink: 0; transition: background 0.2s, color 0.2s; }
.cdp-pdf-dl:hover { background: #e63946; color: #fff; }
.cdp-pdf-view { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.06); border: none; display: flex; align-items: center; justify-content: center; color: #aaa; cursor: pointer; flex-shrink: 0; transition: background 0.2s, color 0.2s; padding: 0; }
.cdp-pdf-view:hover { background: #2563eb; color: #fff; }

.cdp-img-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 10px; }
.cdp-img-thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; background: rgba(255,255,255,0.05); }
.cdp-img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.cdp-img-thumb:hover img { transform: scale(1.05); }
.cdp-img-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; opacity: 0; transition: opacity 0.2s; }
.cdp-img-thumb:hover .cdp-img-overlay { opacity: 1; }

/* Share buttons */
.cdp-share-list { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.cdp-sbtn { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; text-decoration: none; color: #fff; transition: opacity 0.2s, transform 0.15s; }
.cdp-sbtn:hover { opacity: 0.9; transform: translateX(2px); color: #fff; }
.cdp-sbtn.fb { background: #1877f2; }
.cdp-sbtn.wa { background: #25d366; }
.cdp-sbtn.xb { background: #111; border: 1px solid rgba(255,255,255,0.15); }
.cdp-sicon { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* QR card */
.cdp-qr-body { padding: 16px; display: flex; flex-direction: column; align-items: center; }
.cdp-qr-frame { background: #fff; border-radius: 10px; padding: 10px; display: flex; align-items: center; justify-content: center; }
.cdp-qr-frame svg { display: block; width: 160px; height: 160px; }
.cdp-qr-dl { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; border-radius: 50px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #ccc; font-size: 0.82rem; text-decoration: none; transition: background 0.2s, color 0.2s; }
.cdp-qr-dl:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Nearby */
.cdp-nearby-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: #ccc; font-family: 'Anek Malayalam', sans-serif; font-size: 0.88rem; text-decoration: none; transition: background 0.15s, color 0.15s; }
.cdp-nearby-item:hover { background: rgba(255,255,255,0.05); color: #fff; border-radius: 8px; }
.cdp-nnum { font-family: 'Outfit', sans-serif; font-weight: 700; color: #e63946; font-size: 0.82rem; min-width: 32px; }

/* Lightbox */
.cdp-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; align-items: center; justify-content: center; }
.cdp-lightbox.open { display: flex; }
.cdp-lb-inner { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.cdp-lb-inner img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 8px; display: block; }
.cdp-lb-caption { color: #ccc; font-size: 0.85rem; margin-top: 10px; text-align: center; }
.cdp-lb-close { position: absolute; top: -44px; right: 0; background: rgba(255,255,255,0.1); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.cdp-lb-prev, .cdp-lb-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.cdp-lb-prev { left: 16px; }
.cdp-lb-next { right: 16px; }
.cdp-lb-prev:hover, .cdp-lb-next:hover { background: rgba(255,255,255,0.25); }

/* PDF Book Viewer */
.pdf-bv-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(5,8,18,0.96); display: none; flex-direction: column; align-items: center; }
.pdf-bv-modal.open { display: flex; }
.pdf-bv-bar { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(0,0,0,0.5); border-bottom: 1px solid rgba(255,255,255,0.07); flex-shrink: 0; }
.pdf-bv-title { flex: 1; color: #ddd; font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-bv-nav { display: flex; align-items: center; gap: 6px; }
.pdf-bv-nav-btn { width: 30px; height: 30px; border-radius: 7px; background: rgba(255,255,255,0.08); border: none; color: #ccc; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: background 0.2s, color 0.2s; }
.pdf-bv-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.18); color: #fff; }
.pdf-bv-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.pdf-bv-pginfo { color: #888; font-size: 0.78rem; min-width: 90px; text-align: center; }
.pdf-bv-close-btn { width: 30px; height: 30px; border-radius: 7px; background: rgba(255,255,255,0.08); border: none; color: #ccc; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; flex-shrink: 0; }
.pdf-bv-close-btn:hover { background: #e63946; color: #fff; }
.pdf-bv-stage { flex: 1; display: flex; align-items: flex-start; justify-content: center; gap: 12px; width: 100%; padding: 20px 16px; overflow-y: auto; overflow-x: hidden; }
@media (max-width: 639px) { .pdf-bv-arrow { display: none; } .pdf-bv-stage { padding: 10px 4px; } }
.pdf-bv-arrow { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.07); border: none; color: #aaa; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; position: sticky; top: 50%; transition: background 0.2s, color 0.2s; }
.pdf-bv-arrow:hover:not(:disabled) { background: rgba(255,255,255,0.18); color: #fff; }
.pdf-bv-arrow:disabled { opacity: 0.2; cursor: not-allowed; }
.pdf-bv-book { display: flex; align-items: flex-start; box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.04); border-radius: 3px; overflow: visible; }
.pdf-bv-leaf { background: #fff; display: block; overflow: visible; }
.pdf-bv-leaf canvas { display: block; }
.pdf-bv-leaf.left { box-shadow: inset -8px 0 20px rgba(0,0,0,0.1); }
.pdf-bv-leaf.right { box-shadow: inset 8px 0 20px rgba(0,0,0,0.1); }
.pdf-bv-spine { width: 14px; background: linear-gradient(to right, #9a8070 0%, #5c4a38 40%, #5c4a38 60%, #9a8070 100%); flex-shrink: 0; box-shadow: 0 0 12px rgba(0,0,0,0.6); }
.pdf-bv-hint { color: #444; font-size: 0.7rem; padding: 6px; text-align: center; flex-shrink: 0; }
/* Flip animations */
@keyframes pdfFlipOut  { from { transform: perspective(1400px) rotateY(0)     translateX(0);    opacity: 1; } to { transform: perspective(1400px) rotateY(-22deg) translateX(-18px); opacity: 0; } }
@keyframes pdfFlipIn   { from { transform: perspective(1400px) rotateY(22deg)  translateX(18px);  opacity: 0; } to { transform: perspective(1400px) rotateY(0)     translateX(0);    opacity: 1; } }
@keyframes pdfFlipOutR { from { transform: perspective(1400px) rotateY(0)     translateX(0);    opacity: 1; } to { transform: perspective(1400px) rotateY(22deg)  translateX(18px);  opacity: 0; } }
@keyframes pdfFlipInR  { from { transform: perspective(1400px) rotateY(-22deg) translateX(-18px); opacity: 0; } to { transform: perspective(1400px) rotateY(0)     translateX(0);    opacity: 1; } }
.pdf-bv-book.flip-next    { animation: pdfFlipOut  0.22s ease forwards; }
.pdf-bv-book.flip-next-in { animation: pdfFlipIn   0.22s ease forwards; }
.pdf-bv-book.flip-prev    { animation: pdfFlipOutR 0.22s ease forwards; }
.pdf-bv-book.flip-prev-in { animation: pdfFlipInR  0.22s ease forwards; }
.pdf-bv-leaf.left, .pdf-bv-spine { display: none; }

/* kla-const-card as link */
a.kla-const-card { text-decoration: none; cursor: pointer; }


/* ── URL video custom player (constituency page) ── */
.cdp-player-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 0 0 8px 8px; overflow: hidden; cursor: pointer; }
.cdp-player-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cdp-player-wrap.cdp-portrait { aspect-ratio: unset; max-height: 72vh; width: auto; max-width: 360px; margin: 0 auto; }
.cdp-player-wrap.cdp-portrait video { width: 100%; height: 100%; object-fit: contain; }
.cdp-player-wrap .cdp-video-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,.35); transition: opacity .25s; z-index: 10; }
.cdp-player-wrap .cdp-video-overlay.cdp-hidden { opacity: 0; pointer-events: none; }
.cdp-player-wrap .cdp-play-ring { width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255,183,0,.8); background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s; }
.cdp-player-wrap .cdp-play-ring:hover { transform: scale(1.1); background: rgba(255,183,0,.15); }
.cdp-player-wrap .cdp-vlabel { margin-top: 10px; color: #fff; font-family: sans-serif; font-size: 13px; letter-spacing: .06em; opacity: .85; }
.cdp-controls { position: absolute; bottom: 0; left: 0; right: 0; z-index: 20; padding: 10px 14px 12px; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 100%); display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.cdp-player-wrap:hover .cdp-controls, .cdp-player-wrap.cdp-playing .cdp-controls { opacity: 1; transform: translateY(0); }
.cdp-progress-wrap { width: 100%; height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; cursor: pointer; position: relative; }
.cdp-progress-fill { height: 100%; width: 0%; background: #ffb700; border-radius: 2px; transition: width .1s linear; pointer-events: none; }
.cdp-progress-wrap:hover .cdp-progress-fill { background: #ffd040; }
.cdp-btn-row { display: flex; align-items: center; gap: 6px; }
.cdp-btn { background: none; border: none; padding: 6px; cursor: pointer; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; transition: background .15s, transform .1s; flex-shrink: 0; }
.cdp-btn:hover { background: rgba(255,255,255,.15); transform: scale(1.08); }
.cdp-btn:active { transform: scale(.94); }
.cdp-btn svg { display: block; }
.cdp-time { font-family: monospace; font-size: 12px; color: rgba(255,255,255,.8); margin-left: 4px; white-space: nowrap; }
.cdp-spacer { flex: 1; }
.cdp-player-wrap:-webkit-full-screen { width: 100vw; height: 100vh; max-width: unset; border-radius: 0; }
.cdp-player-wrap:-moz-full-screen    { width: 100vw; height: 100vh; max-width: unset; border-radius: 0; }
.cdp-player-wrap:fullscreen          { width: 100vw; height: 100vh; max-width: unset; border-radius: 0; }

/* seek range input overlay */
.cdp-progress-wrap { position: relative; }
.cdp-seek { position: absolute; inset: -6px 0; width: 100%; height: calc(100% + 12px); opacity: 0; cursor: pointer; margin: 0; padding: 0; }

/* ── Maattam page ── */
.mattam-video-card { background: #0d1c35; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.mattam-video-thumb { position: relative; }
.mattam-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); transition: background .2s; }
.mattam-video-thumb:hover .mattam-play-overlay { background: rgba(0,0,0,.45); }
.mattam-video-title { padding: .6rem 1rem; color: #fff; font-size: .9rem; font-weight: 600; }
.mattam-pdf-download-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; min-width: 42px; padding: 0; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; transition: background .2s, border-color .2s, transform .15s; text-decoration: none; flex-shrink: 0; }
.mattam-pdf-download-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); color: #fff; transform: translateY(-2px); text-decoration: none; }
