/* =========================================
   1. Root Variables & Global Styles
   ========================================= */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
}

/* =========================================
   2. Header & Hero Section
   ========================================= */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* =========================================
   8. Search Box (Header)
   ========================================= */
.search-card {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.search-card input:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Live Search Result Dropdown */
#show-list {
    position: absolute;
    width: 100%;
    /* Search box ki chaudai ke barabar */
    z-index: 999;
    /* Sabse upar dikhe */
    background-color: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
}

.list-group-item {
    cursor: pointer;
    padding: 12px 20px;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-weight: 600;
}

.news-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2b2871, #2b2871);
    z-index: -1;
}

.hero-title-large {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* Icons in background */
.news-hero-bg i {
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* Wave Separator (Bottom of Header) */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: #f8f9fa;
    /* Matches bg-light */
}

/* =========================================
   3. News Cards (List Page)
   ========================================= */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: #fff;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.news-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.1);
}

.date-badge {
    z-index: 10;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* =========================================
   4. Article Detail Page
   ========================================= */
.news-detail-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Styling content from CKEditor */
.news-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.news-content h2,
.news-content h3,
.news-content h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    font-weight: 600;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.news-content ul,
.news-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

/* =========================================
   5. Sidebar & Ticker Widget
   ========================================= */
.sidebar-widget a {
    transition: color 0.2s;
}

.sidebar-widget a:hover {
    color: var(--primary-color) !important;
}

.news-ticker-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.news-ticker-container::-webkit-scrollbar {
    width: 4px;
}

.news-ticker-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* =========================================
   From article.php
   ========================================= */
.gallery-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s ease;
    cursor: pointer;
    border: 1px solid #dee2e6;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    z-index: 1056;
    transition: background 0.3s;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.auth-header {
    background: #0d6efd;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

.auth-modal .modal-content {
    border-radius: 10px;
    border: none;
    overflow: hidden;
}

/* Reply System Styles */
.reply-box {
    margin-left: 50px;
    border-left: 3px solid #e9ecef;
    padding-left: 15px;
    margin-top: 10px;
}

.reply-form {
    display: none;
    margin-top: 10px;
}