/* ============================================
   DAILY GISTS - MODERN DESIGN
   Clean, minimal, professional news portal
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d32f2f;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --text: #333;
    --text-light: #666;
    --border: #ddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fff;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 95;
    animation: fadeIn 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: var(--dark);
    color: white;
    padding: 15px 0;
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    flex: 1;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.tagline {
    font-size: 0.85rem;
    margin: 3px 0 0 27px;
    color: #aaa;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.95rem;
    position: relative;
}

.nav-item:hover {
    color: var(--primary);
}

/* Dropdown Menu - Hide on Mobile */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle::after {
    content: '';
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: 5px;
    transition: transform 0.3s;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(-135deg);
}

.dropdown-menu {
    background: linear-gradient(135deg, var(--dark) 0%, #222 100%);
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    top: 100%;
    left: 0;
    display: none;
    position: absolute;
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--primary);
    padding-left: 25px;
}

.btn-subscribe, .btn-advertise {
    background: var(--primary) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 5px;
    font-size: 0.9rem !important;
    transition: all 0.3s;
}

.btn-subscribe:hover {
    background: #b71c1c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-advertise {
    background: linear-gradient(135deg, #d32f2f, #ff6f00) !important;
}

.btn-advertise:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

/* Mobile Menu Button Styles */
@media (max-width: 768px) {
    .nav-item.btn-subscribe {
        background: linear-gradient(135deg, var(--primary) 0%, #b71c1c 100%) !important;
        margin-top: 10px;
        border-radius: 8px;
        padding: 12px 16px !important;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .nav-item.btn-advertise {
        background: linear-gradient(135deg, #d32f2f 0%, #ff6f00 100%) !important;
        border-radius: 8px;
        padding: 12px 16px !important;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
    }

    .nav-item.search-btn {
        background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
        border: 2px solid var(--primary);
        border-radius: 8px;
        padding: 12px 16px !important;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
    }

    .nav-item.btn-subscribe:hover,
    .nav-item.btn-advertise:hover,
    .nav-item.search-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
    }
}

.btn-advertise:hover {
    background: linear-gradient(135deg, #b71c1c, #e65100) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.search-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
    padding: 8px;
    margin: 0;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   BREAKING NEWS TICKER
   ============================================ */

.breaking-news-ticker {
    background: linear-gradient(90deg, var(--primary) 0%, #b71c1c 100%);
    color: white;
    padding: 12px 0;
    display: flex;
    align-items: center;
    height: 50px;
    overflow: hidden;
}

.ticker-label {
    background: rgba(0,0,0,0.2);
    padding: 8px 15px;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-label i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-scroll {
    display: flex;
    gap: 40px;
    animation: scroll-left 30s linear infinite;
    will-change: transform;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ticker-item {
    color: white;
    text-decoration: none;
    white-space: nowrap;
    padding: 0 15px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.ticker-item:hover {
    opacity: 0.8;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: var(--light);
    padding: 30px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.hero-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-lg);
}

.hero-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: white;
}

.category-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-read {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s, transform 0.3s;
}

.btn-read:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    height: 120px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hero-card .card-image {
    width: 120px;
    height: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.hero-card .card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cat-badge {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

.hero-card h4 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 5px 0;
    font-weight: 700;
    flex-grow: 1;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.link:hover {
    color: #b71c1c;
}

/* ============================================
   TRENDING SECTION
   ============================================ */

.trending-section {
    padding: 25px 0;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trending-box {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid var(--primary);
}

.trending-box h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    text-decoration: none;
    color: var(--text);
    border-radius: 6px;
    transition: background 0.3s, transform 0.3s;
}

.trending-item:hover {
    background: rgba(211, 47, 47, 0.05);
    transform: translateX(5px);
}

.trend-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    min-width: 40px;
    text-align: center;
}

.trend-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trend-cat {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-item h5 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
}

.trend-views {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   CATEGORY SECTIONS
   ============================================ */

.category-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.category-section:nth-child(odd) {
    background: var(--light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    text-transform: capitalize;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.view-all:hover {
    color: #b71c1c;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.main-content {
    display: flex;
    flex-direction: column;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content:center;
    width:100%;
    height:350px;
    
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    width: 80%;
    height: 300px;
    background-size: cover;
    background-position: contain;
    position: relative;
}

.cat-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.article-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--dark);
    width:400px;
}

.article-body p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.article-footer {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.article-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: #b71c1c;
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */

.section-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.widget-title i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Editor's Pick Widget */
.widget-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-article {
    display: flex;
    flex-direction: column;
}

.widget-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    margin-bottom: 12px;
}

.widget-article h5 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 700;
}

.widget-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.widget-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.widget-link:hover {
    color: #b71c1c;
}

/* Widget List */
.widget-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.widget-list-item:last-child {
    border-bottom: none;
}

.widget-list-item:hover {
    color: var(--primary);
    padding-left: 5px;
}

.item-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    flex-grow: 1;
}

.item-date {
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-top-color: var(--primary);
}

.widget-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #b71c1c;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-section p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #b71c1c;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   BRANDED MODALS
   ============================================ */

.modal-branded {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header-branded {
    background: linear-gradient(135deg, var(--primary) 0%, #b71c1c 100%);
    color: white;
    border: none;
    padding: 25px;
}

.modal-header-branded .modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header-branded .modal-title i {
    font-size: 1.5rem;
}

.modal-body {
    padding: 30px;
}

.subscribe-intro, .advertise-intro {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.subscribe-form .form-label, .advertise-form .form-label {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.subscribe-form .form-control, .advertise-form .form-control {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.subscribe-form .form-control:focus, .advertise-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
    outline: none;
}

.category-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-check-label {
    margin-left: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.btn-subscribe-submit {
    background: linear-gradient(135deg, var(--primary) 0%, #ff5252 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-subscribe-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

/* Advertise Modal */
.modal-header-advertise {
    background: linear-gradient(135deg, #d32f2f 0%, #ff6f00 100%);
    color: white;
    border: none;
    padding: 25px;
}

.advertise-modal {
    border-top: 5px solid #ff6f00;
}

.advertise-benefits {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text);
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.btn-advertise-submit {
    background: linear-gradient(135deg, #d32f2f 0%, #ff6f00 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-advertise-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 111, 0, 0.3);
}

/* Search Modal */
.modal-header-search {
    background: linear-gradient(135deg, #1a1a1a 0%, var(--primary) 100%);
    color: white;
    border: none;
    padding: 25px;
}

.search-modal {
    border-top: 5px solid var(--primary);
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
    outline: none;
}

.btn-search-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-search-submit:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.search-help {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    /* Mobile Menu Toggle */
    .menu-toggle {
        display: flex;
        padding: 8px 12px;
        margin-right: 10px;
    }

    .container {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        width: 100%;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100vw;
        flex-direction: column;
        background: var(--dark);
        border-top: 3px solid var(--primary);
        padding: 20px;
        gap: 0;
        display: none;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 100;
        box-sizing: border-box;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-item {
        font-size: 1rem;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
    }

    .nav-item i {
        font-size: 1.2rem;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        transition: all 0.3s;
    }

    .nav-item span {
        flex: 1;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-item:hover {
        background: rgba(211, 47, 47, 0.1);
        padding-left: 20px;
    }

    .nav-item:hover i {
        transform: scale(1.2);
        color: #ff9800;
    }

    .dropdown-menu {
        background: var(--dark);
        border: 1px solid rgba(211, 47, 47, 0.3);
        padding: 10px 0;
        margin: 0;
        position: static;
        display: none;
        text-align: left;
        list-style: none;
    }

    .dropdown-item {
        color: white;
        padding: 10px 20px;
        border-left: 3px solid transparent;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        text-align: left;
    }

    .dropdown-item i {
        font-size: 1rem;
        color: var(--primary);
        width: 20px;
    }

    .dropdown-item:hover {
        background: rgba(211, 47, 47, 0.1);
        border-left-color: var(--primary);
        padding-left: 25px;
    }

    .search-btn {
        width: 35px;
        height: 35px;
    }

    .breaking-news-ticker {
        height: auto;
        flex-wrap: wrap;
    }

    .ticker-scroll {
        animation: none;
        gap: 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        height: 300px;
    }

    .hero-image {
        height: 100%;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-side {
        flex-direction: row;
        gap: 15px;
    }

    .hero-card {
        flex-direction: column;
        height: auto;
    }

    .hero-card .card-image {
        width: 100%;
        height: 120px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-content {
        grid-template-columns: 1fr;
    }

    .section-sidebar {
        flex-direction: row;
        gap: 15px;
    }

    .sidebar-widget {
        flex: 1;
        min-width: 200px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .trending-item {
        flex-direction: column;
    }

    .trend-number {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    /* Ensure menu is fixed and scrollable on small screens */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100vw;
        max-height: calc(100vh - 60px);
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .nav-item {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .article-card {
        height: auto;
        width:100%;
    }
    
    .article-image{
    width: 80%;
    height: 200px;
    background-size: cover;
    background-position: contain;
    position: relative;
    }

    /* Mobile sticky share widget */
    .sticky-share {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        background: white;
        border-top: 2px solid var(--primary);
        padding: 12px;
        display: flex;
        gap: 10px;
        z-index: 90;
        box-sizing: border-box;
    }

    .sticky-share a {
        flex: 1;
        padding: 8px;
        font-size: 0.8rem;
        text-align: center;
    }
}
/* ============================================
   UNIQUE CATEGORY STYLING
   ============================================ */

/* Entertainment - Purple/Pink */
.category-section[data-category="entertainment"] .section-header h2::before {
    content: "🎬 ";
}

.category-section[data-category="entertainment"] .section-header h2 {
    color: #9c27b0;
}

.category-section[data-category="entertainment"] .section-header {
    border-left: 5px solid #9c27b0;
    padding-left: 15px;
}

.category-section[data-category="entertainment"] .view-all {
    color: #9c27b0;
}

.category-section[data-category="entertainment"] .view-all:hover {
    color: #7b1fa2;
}

/* Politics - Blue */
.category-section[data-category="politics"] .section-header h2::before {
    content: "🏛️ ";
}

.category-section[data-category="politics"] .section-header h2 {
    color: #1976d2;
}

.category-section[data-category="politics"] .section-header {
    border-left: 5px solid #1976d2;
    padding-left: 15px;
}

.category-section[data-category="politics"] .view-all {
    color: #1976d2;
}

.category-section[data-category="politics"] .view-all:hover {
    color: #1565c0;
}

/* Sports - Green */
.category-section[data-category="sports"] .section-header h2::before {
    content: "⚽ ";
}

.category-section[data-category="sports"] .section-header h2 {
    color: #388e3c;
}

.category-section[data-category="sports"] .section-header {
    border-left: 5px solid #388e3c;
    padding-left: 15px;
}

.category-section[data-category="sports"] .view-all {
    color: #388e3c;
}

.category-section[data-category="sports"] .view-all:hover {
    color: #2e7d32;
}

/* Business - Teal */
.category-section[data-category="business"] .section-header h2::before {
    content: "💼 ";
}

.category-section[data-category="business"] .section-header h2 {
    color: #00796b;
}

.category-section[data-category="business"] .section-header {
    border-left: 5px solid #00796b;
    padding-left: 15px;
}

.category-section[data-category="business"] .view-all {
    color: #00796b;
}

.category-section[data-category="business"] .view-all:hover {
    color: #004d40;
}

/* Technology - Orange */
.category-section[data-category="technology"] .section-header h2::before {
    content: "💻 ";
}

.category-section[data-category="technology"] .section-header h2 {
    color: #f57c00;
}

.category-section[data-category="technology"] .section-header {
    border-left: 5px solid #f57c00;
    padding-left: 15px;
}

.category-section[data-category="technology"] .view-all {
    color: #f57c00;
}

.category-section[data-category="technology"] .view-all:hover {
    color: #e65100;
}

/* Lifestyle - Pink */
.category-section[data-category="lifestyle"] .section-header h2::before {
    content: "💖 ";
}

.category-section[data-category="lifestyle"] .section-header h2 {
    color: #c2185b;
}

.category-section[data-category="lifestyle"] .section-header {
    border-left: 5px solid #c2185b;
    padding-left: 15px;
}

.category-section[data-category="lifestyle"] .view-all {
    color: #c2185b;
}

.category-section[data-category="lifestyle"] .view-all:hover {
    color: #a0134f;
}

/* Category Background Colors */
.category-section[data-category="entertainment"] {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.05) 0%, rgba(156, 39, 176, 0.02) 100%);
}

.category-section[data-category="politics"] {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05) 0%, rgba(25, 118, 210, 0.02) 100%);
}

.category-section[data-category="sports"] {
    background: linear-gradient(135deg, rgba(56, 142, 60, 0.05) 0%, rgba(56, 142, 60, 0.02) 100%);
}

.category-section[data-category="business"] {
    background: linear-gradient(135deg, rgba(0, 121, 107, 0.05) 0%, rgba(0, 121, 107, 0.02) 100%);
}

.category-section[data-category="technology"] {
    background: linear-gradient(135deg, rgba(245, 124, 0, 0.05) 0%, rgba(245, 124, 0, 0.02) 100%);
}

.category-section[data-category="lifestyle"] {
    background: linear-gradient(135deg, rgba(194, 24, 91, 0.05) 0%, rgba(194, 24, 91, 0.02) 100%);
}