:root {
    --primary: #198754;
    --primary-hover: #157347;
    --primary-dark: #0a3622;
    --primary-light: #e8f5e9;
    --primary-border: #c3e6cb;
    --accent: #ffc107;
    --accent-dark: #d39e00;
    --dark: #14221b;
    --body-bg: #f4f8f5;
    --card-bg: #ffffff;
    --text-color: #212529;
    --text-muted: #5c6c64;
    --border-color: #d1e7dd;
    --header-h: 64px;
}

body {
    font-family: 'Noto Sans Devanagari', 'Noto Sans', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Topbar in Deep Forest Green */
.hkp-topbar {
    background: linear-gradient(135deg, #0a3622 0%, #052215 100%);
    color: #e2f0e8;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 2px solid var(--accent);
}

.hkp-topbar a {
    color: #f1f8f4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hkp-topbar a:hover {
    color: var(--accent);
}

/* Breaking Ticker */
.breaking-badge-box {
    background: linear-gradient(135deg, #198754, #157347);
    color: #ffffff;
    font-size: clamp(11px, 2vw, 13px);
    font-weight: 800;
    padding: 0 clamp(10px, 2vw, 18px);
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    border-right: 2px solid var(--accent);
}

.breaking-ticker-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.breaking-track-top {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerMove 28s linear infinite;
}

.breaking-track-top:hover {
    animation-play-state: paused;
}

@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.breaking-headline-item {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: clamp(12px, 1.8vw, 13.5px);
    font-weight: 600;
    padding: 0 16px;
}

.ticker-dot {
    color: var(--accent);
    margin-left: 12px;
    font-size: 10px;
}

/* Header Branding */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.hkp-brand-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.15;
}

.hkp-brand-subtitle {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    color: var(--text-muted);
    font-weight: 500;
    margin: 4px 0 0 0;
}

.hkp-badge-epaper {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hkp-badge-epaper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 135, 84, 0.45);
    color: #ffffff;
}

/* Navbar */
.main-navbar {
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%) !important;
    border-bottom: 3px solid var(--accent);
}

.main-navbar .navbar-brand {
    font-weight: 800;
    color: #ffffff;
    font-size: 1.25rem;
}

.main-navbar .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 14px;
    transition: all 0.2s ease;
}

.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link.active {
    background-color: rgba(0, 0, 0, 0.25);
    color: var(--accent) !important;
    border-radius: 4px;
}

.main-navbar .security-link {
    background-color: var(--accent) !important;
    color: #000000 !important;
    border-radius: 4px;
    padding: 8px 14px !important;
    margin-left: 8px;
}

.main-navbar .security-link:hover {
    background-color: var(--accent-dark) !important;
    color: #000000 !important;
}

/* Hero Section */
.hkp-hero-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(10, 54, 34, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hkp-hero-card:hover {
    box-shadow: 0 12px 32px rgba(10, 54, 34, 0.12);
}

.hkp-hero-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hkp-hero-body {
    padding: 24px;
}

.hkp-preview-frame {
    width: 100%;
    height: 480px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #2b3a32;
}

/* Buttons */
.btn-green {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: #ffffff;
    border: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-green:hover {
    background: linear-gradient(135deg, #157347 0%, #0a3622 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

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

.btn-outline-green:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Archives Card */
.hkp-archive-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hkp-archive-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(25, 135, 84, 0.12);
    border-color: var(--primary);
}

.hkp-icon-box {
    background: linear-gradient(135deg, #198754, #0f5132);
    color: #ffffff;
    padding: 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Features Highlight Box */
.hkp-feature-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
    height: 100%;
}

.hkp-feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(25, 135, 84, 0.1);
}

.hkp-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

/* Footer */
.hkp-footer {
    background: #0d1a13;
    color: #a3b8ad;
    padding: 45px 0 20px;
    margin-top: 50px;
    border-top: 4px solid var(--primary);
}

.hkp-footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.hkp-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--accent);
}

.hkp-footer a {
    color: #c0d4ca;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hkp-footer a:hover {
    color: var(--accent);
}

.hkp-footer-bottom {
    border-top: 1px solid #1a2f24;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.88rem;
}
