/* ============================================
   Pighalta Himalay - Common Stylesheet
   Blue Himalaya Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Devanagari:wght@300;400;500;600;700;900&family=Noto+Sans+Devanagari:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary: #1a4a7a;
    --primary-dark: #0d2f50;
    --primary-light: #2563a8;
    --accent: #c8a84b;
    --accent-light: #e8c97a;
    --snow: #f0f5ff;
    --ice: #dce9f8;
    --mist: #8ba9c8;
    --text-dark: #1a2840;
    --text-mid: #3a5270;
    --text-light: #6a8aaa;
    --white: #ffffff;
    --border: #c5d8ee;
    --shadow: 0 4px 20px rgba(26,74,122,0.15);
    --shadow-lg: 0 12px 40px rgba(26,74,122,0.25);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font-heading: 'Noto Serif Devanagari', 'Playfair Display', serif;
    --font-body: 'Noto Sans Devanagari', 'Noto Serif Devanagari', sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--snow);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

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

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.3;
}

/* ============================================
   Header & Hero Band
   ============================================ */
.site-header {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/himalaya-bg.jpg') center/cover no-repeat;
    opacity: 0.18;
    z-index: 0;
}

/* Himalaya SVG silhouette layer */
.mountain-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    opacity: 0.25;
    pointer-events: none;
}

.header-top-bar {
    position: relative;
    z-index: 2;
    background: rgba(13,47,80,0.85);
    padding: 6px 0;
    border-bottom: 1px solid rgba(200,168,75,0.4);
}

.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--ice);
}

.header-top-bar a { color: var(--accent-light); }
.header-top-bar a:hover { color: var(--white); }

.header-brand {
    position: relative;
    z-index: 2;
    padding: 20px 0 28px;
    text-align: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.brand-logo img {
    height: 80px;
    width: auto;
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    line-height: 1.1;
}

.brand-text .tagline {
    font-size: 0.9rem;
    color: var(--accent-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
}

.header-meta {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 8px 0 12px;
    font-size: 0.82rem;
    color: var(--ice);
    border-top: 1px solid rgba(255,255,255,0.15);
}

.header-meta a { color: var(--accent-light); }

/* ============================================
   Navigation
   ============================================ */
.main-nav {
    position: relative;
    z-index: 10;
    background: var(--primary-dark);
    border-top: 2px solid var(--accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-inner a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ice);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 13px 20px;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.nav-inner a:hover,
.nav-inner a.active {
    color: var(--accent-light);
    border-bottom-color: var(--accent);
    background: rgba(255,255,255,0.06);
}

.nav-inner a svg { flex-shrink: 0; }

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 12px 16px;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding: 36px 0;
}

.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* Full width variant */
.page-wrapper.full-width { grid-template-columns: 1fr; }

/* ============================================
   Page Title Band
   ============================================ */
.page-title-band {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: var(--white);
    padding: 28px 0;
    position: relative;
    overflow: hidden;
}

.page-title-band::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 300px; height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100'%3E%3Cpolygon points='300,0 150,100 300,100' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") no-repeat right/cover;
}

.page-title-band h2 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
}

.page-title-band p {
    color: var(--accent-light);
    margin-top: 4px;
    font-size: 0.9rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

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

.card-body { padding: 20px; }

.card-category {
    display: inline-block;
    background: var(--ice);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-excerpt {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-light);
    border-top: 1px solid var(--ice);
    padding-top: 12px;
    margin-top: 12px;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   News Grid
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.news-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border: 1px solid var(--border);
}

.news-featured .featured-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.news-featured .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-featured:hover .featured-image img { transform: scale(1.05); }

.news-featured .featured-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-featured .featured-body .card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.news-featured .featured-body .card-excerpt {
    -webkit-line-clamp: 5;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ice);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    position: relative;
    padding-left: 16px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--primary-light));
    border-radius: 3px;
}

.section-header a {
    font-size: 0.82rem;
    color: var(--primary-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   ePaper Section
   ============================================ */
.epaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.epaper-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.epaper-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.epaper-card .epaper-cover {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--ice), var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
}

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

.epaper-card .epaper-info {
    padding: 10px 12px;
}

.epaper-card .epaper-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.epaper-card .epaper-label {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 2px;
}

.epaper-card a.download-btn {
    display: block;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 7px;
    margin-top: 4px;
    border-radius: 0 0 var(--radius) var(--radius);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.epaper-card a.download-btn:hover { background: var(--accent); color: var(--white); }

/* ============================================
   Sidebar
   ============================================ */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.widget-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 14px 18px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-body { padding: 16px; }

.widget-news-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ice);
}

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

.widget-news-item .wni-date {
    flex-shrink: 0;
    background: var(--ice);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    height: fit-content;
    line-height: 1.3;
}

.widget-news-item .wni-title {
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.5;
    font-weight: 500;
}

.widget-news-item .wni-title:hover { color: var(--primary); }

/* ============================================
   Sangeet Page
   ============================================ */
.sangeet-about {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.sangeet-about::before {
    content: '🎵';
    position: absolute;
    right: 30px; top: 20px;
    font-size: 6rem;
    opacity: 0.1;
}

.sangeet-about h3 {
    color: var(--accent-light);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.sangeet-about p { color: var(--ice); line-height: 1.8; }

.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.audio-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.audio-card .audio-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--white);
}

.audio-card h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.audio-card .audio-artist {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.audio-card audio {
    width: 100%;
    accent-color: var(--primary);
}

/* ============================================
   Books Page
   ============================================ */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.book-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.book-card .book-cover {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

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

.book-card .book-body { padding: 16px; }

.book-card .book-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.book-card .book-author {
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.book-card .book-desc {
    font-size: 0.8rem;
    color: var(--text-mid);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.book-card .book-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   Video Page
   ============================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.video-card .video-thumb {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: var(--primary-dark);
    cursor: pointer;
}

.video-card .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.05); }

.video-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: rgba(26,74,122,0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    border: 3px solid rgba(255,255,255,0.6);
    transition: var(--transition);
}

.video-card:hover .video-play-btn {
    background: var(--accent);
    border-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card .video-body { padding: 16px; }

.video-card .video-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

/* ============================================
   Parichay Page
   ============================================ */
.parichay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.parichay-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.parichay-card .parichay-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    background: linear-gradient(135deg, var(--ice), var(--border));
}

.parichay-card .parichay-photo-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.3);
}

.parichay-card .parichay-body { padding: 20px; }

.parichay-card .parichay-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.parichay-card .parichay-role {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.parichay-card .parichay-bio {
    font-size: 0.86rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.3px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: #a8882a;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-sm { padding: 6px 14px; font-size: 0.78rem; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--primary-dark);
    color: var(--ice);
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/himalaya-bg.jpg') center/cover no-repeat;
    opacity: 0.07;
    z-index: 0;
}

.footer-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 50px 0 36px;
}

.footer-brand img {
    height: 60px;
    width: auto;
    filter: brightness(1.2);
    margin-bottom: 14px;
}

.footer-brand h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--mist);
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--accent-light);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--mist);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--accent-light); padding-left: 4px; }

.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--mist);
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================
   Alert / Notice Banner
   ============================================ */
.ticker-bar {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 8px 0;
    overflow: hidden;
}

.ticker-bar .ticker-label {
    background: var(--primary-dark);
    color: var(--accent-light);
    padding: 0 14px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.ticker-bar .ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
}

.ticker-content {
    display: inline-flex;
    animation: ticker-scroll 40s linear infinite;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 60px;
}

@keyframes ticker-scroll {
    from { transform: translateX(100vw); }
    to { transform: translateX(-100%); }
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    padding: 10px 0;
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--primary-light); }
.breadcrumb span { color: var(--text-light); }

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 12px;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============================================
   Forms
   ============================================ */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37,99,168,0.12);
}

textarea.form-control { resize: vertical; min-height: 120px; }

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.alert-success { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; }
.alert-error { background: #ffebee; border-color: #f44336; color: #c62828; }
.alert-info { background: var(--ice); border-color: var(--primary-light); color: var(--primary-dark); }

/* ============================================
   Loading Spinner
   ============================================ */
.spinner {
    display: inline-block;
    width: 40px; height: 40px;
    border: 4px solid var(--ice);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   Mountain Decoration
   ============================================ */
.mountain-divider {
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpolygon points='0,60 100,20 200,45 350,5 500,35 600,10 700,40 850,0 950,30 1100,8 1200,25 1200,60' fill='%231a4a7a' opacity='0.12'/%3E%3C/svg%3E") center/cover no-repeat;
    margin: 20px 0;
}

/* ============================================
   Admin Panel Styles
   ============================================ */
.admin-body {
    background: #f0f4f8;
    min-height: 100vh;
    font-family: var(--font-body);
}

.admin-sidebar {
    width: 260px;
    background: var(--primary-dark);
    min-height: 100vh;
    position: fixed;
    left: 0; top: 0;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
}

.admin-sidebar .sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-align: center;
}

.admin-sidebar .sidebar-brand h2 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.15rem;
}

.admin-sidebar .sidebar-brand p {
    color: var(--accent-light);
    font-size: 0.75rem;
    margin-top: 2px;
}

.admin-sidebar .sidebar-nav {
    padding: 16px 0;
}

.admin-sidebar .nav-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mist);
    padding: 12px 20px 6px;
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: var(--ice);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: var(--accent-light);
    border-left-color: var(--accent);
}

.admin-main {
    margin-left: 260px;
    min-height: 100vh;
}

.admin-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow);
}

.admin-topbar h1 {
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.admin-content { padding: 28px 30px; }

.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.admin-card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 700;
}

.admin-card-body { padding: 20px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card .stat-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 2px;
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
}

.data-table thead th {
    background: var(--ice);
    color: var(--primary-dark);
    padding: 11px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border);
}

.data-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ice);
    color: var(--text-mid);
    vertical-align: middle;
}

.data-table tbody tr:hover { background: var(--snow); }

.data-table .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-danger { background: #ffebee; color: #c62828; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .page-wrapper { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .news-featured { grid-template-columns: 1fr; }
    .news-featured .featured-image { height: 220px; }
}

@media (max-width: 768px) {
    .brand-text h1 { font-size: 1.8rem; }
    .nav-toggle { display: flex; }
    .nav-inner { display: none; flex-direction: column; width: 100%; }
    .nav-inner.open { display: flex; }
    .nav-inner a { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); border-left: 3px solid transparent; padding: 12px 20px; }
    .nav-inner a.active, .nav-inner a:hover { border-left-color: var(--accent); border-bottom-color: rgba(255,255,255,0.1); }
    .footer-main { grid-template-columns: 1fr; gap: 24px; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .brand-logo { flex-direction: column; gap: 10px; }
    .brand-text h1 { font-size: 1.5rem; }
    .news-grid { grid-template-columns: 1fr; }
    .books-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .admin-content { padding: 16px; }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .main-nav, .site-footer, .sidebar, .ticker-bar { display: none; }
    .page-wrapper { grid-template-columns: 1fr; }
    body { font-size: 12pt; }
}
