/* Import Google Fonts for Hind and Rajdhani Typography */
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-red: #c00000;
    --dark-accent: #111111;
    --slate-gray: #4a5568;
    --light-bg: #f7fafc;
    --border-color: #e2e8f0;
    --font-heading: 'Rajdhani', 'Hind', sans-serif;
    --font-body: 'Hind', 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: #ffffff;
    color: #2d3748;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, .newspaper-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-accent);
}

/* TOP TICKER & HEADER */
.top-header-bar {
    background-color: var(--dark-accent);
    color: #ffffff;
    font-size: 14px;
    padding: 8px 0;
}

.breaking-ticker-wrap {
    background-color: var(--primary-red);
    color: #ffffff;
    padding: 8px 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    border-radius: 4px;
}

.ticker-label {
    background-color: #ffffff;
    color: var(--primary-red);
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    font-size: 12px;
    margin-right: 12px;
    flex-shrink: 0;
}

.ticker-content {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.ticker-text-scroll {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-anim 25s linear infinite;
}

.ticker-text-scroll:hover {
    animation-play-state: paused;
}

@keyframes ticker-anim {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* BRAND LOGO */
.portal-brand-logo {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-red);
    letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.portal-brand-logo:hover {
    color: var(--dark-accent);
    text-decoration: none;
}

/* NAVIGATION */
.main-nav-bar {
    border-top: 3px double var(--primary-red);
    border-bottom: 1px solid var(--border-color);
    background-color: #ffffff;
}

.main-nav-bar .nav-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-accent) !important;
    padding: 10px 15px !important;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

.main-nav-bar .nav-link:hover, .main-nav-bar .nav-link.active {
    color: var(--primary-red) !important;
    border-bottom: 2px solid var(--primary-red);
    background-color: var(--light-bg);
}

/* HERO SLIDER */
.carousel-item img {
    height: 480px;
    object-fit: cover;
    border-radius: 6px;
}

.carousel-caption-custom {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
    padding: 40px 20px 20px;
    border-radius: 0 0 6px 6px;
}

/* CARDS DESIGN */
.news-card {
    border: none;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 24px;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.news-card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.news-card:hover .news-card-img {
    transform: scale(1.06);
}

.badge-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-red);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.badge-city {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--dark-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

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

.news-card-title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 10px;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card-desc {
    font-size: 14px;
    color: var(--slate-gray);
    line-height: 1.5;
    margin-bottom: 12px;
    height: 63px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-card-meta {
    font-size: 12px;
    color: #a0aec0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* SECTION SEPARATORS */
.section-title-wrap {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
    padding-bottom: 8px;
    position: relative;
}

.section-title-wrap::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-red);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

/* VIDEO GRID */
.video-card {
    background-color: var(--dark-accent);
    color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ADS PLACEMENT */
.header-ad-banner {
    max-width: 728px;
    max-height: 90px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sidebar-ad-card {
    border: 1px solid var(--border-color);
    padding: 10px;
    background-color: var(--light-bg);
    margin-bottom: 24px;
    text-align: center;
}

/* SOCIAL SHARING */
.social-share-btn {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #ffffff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    font-size: 18px;
    transition: opacity 0.2s;
}

.social-share-btn:hover {
    opacity: 0.9;
    color: #ffffff;
}

.share-wa { background-color: #25d366; }
.share-fb { background-color: #1877f2; }
.share-tw { background-color: #1da1f2; }
.share-tg { background-color: #0088cc; }

/* PAGINATION */
.pagination-custom .page-item.active .page-link {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #ffffff;
}

.pagination-custom .page-link {
    color: var(--dark-accent);
    font-weight: 600;
}

/* MOBILE BOTTOM NAV */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: #ffffff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        border-top: 1px solid var(--border-color);
    }
    .mobile-bottom-nav a {
        color: var(--dark-accent);
        font-size: 12px;
        text-align: center;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .mobile-bottom-nav a.active, .mobile-bottom-nav a:hover {
        color: var(--primary-red);
    }
    .mobile-bottom-nav i {
        font-size: 20px;
        margin-bottom: 2px;
    }
    body {
        padding-bottom: 60px; /* offset mobile nav */
    }
    .carousel-item img {
        height: 250px;
    }
}

/* ADMIN PANEL CUSTOM STYLE */
.admin-sidebar {
    background-color: #1a202c;
    color: #a0aec0;
    min-height: calc(100vh - 56px);
}

.admin-sidebar .nav-link {
    color: #a0aec0;
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 4px;
    padding: 10px 15px;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: #ffffff;
    background-color: #2d3748;
}

.admin-dashboard-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.admin-dashboard-card:hover {
    transform: translateY(-2px);
}
