/* =====================================================
   ROOT VARIABLES – LIGHT & DARK MODE
===================================================== */
:root {
    /* Base colors */
    --bg: #f4f4f7;
    --surface: #ffffff;
    --card-bg: #ffffffdd;
    --glass-bg: rgba(255,255,255,0.6);
    --text: #111111;
    --muted: #6b7280;
    --muted-2: #9ca3af;

    /* Accents */
    --accent: #c90000;
    --accent-hover: #a80000;
    --accent-light: #ffecec;
    --accent-dark: #7a0000;
    --link: #0ea5e9;
    --link-hover: #0284c7;

    /* Borders & shadows */
    --border: #e5e5e5;
    --card-border: #e9e9ee;
    --glass-border: rgba(255,255,255,0.45);
    --shadow-soft: 0 6px 18px rgba(16,24,40,0.06);
    --shadow-medium: 0 8px 24px rgba(16,24,40,0.09);
    --shadow-strong: 0 12px 36px rgba(16,24,40,0.12);

    /* Semantic colors */
    --success: #16a34a;
    --danger: #ef4444;
    --info: #0ea5e9;

    /* Radii & layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --container-max: 1200px;

    /* Glass effect */
    --glass-backdrop: rgba(255,255,255,0.2);
}

body.dark {
    --bg: #08080a;
    --surface: #0f1113;
    --card-bg: rgba(18,20,22,0.85);
    --glass-bg: rgba(255,255,255,0.03);
    --text: #e6e6e6;
    --muted: #9aa3ad;
    --muted-2: #b6bdc6;

    --accent: #ff1a1a;
    --accent-hover: #ff3838;
    --accent-light: rgba(255,26,26,0.12);
    --accent-dark: #8b0000;
    --link: #60c6ff;
    --link-hover: #38a6e6;

    --border: #222428;
    --card-border: #1a1e22;
    --glass-border: rgba(255,255,255,0.04);
    --shadow-soft: 0 6px 18px rgba(0,0,0,0.6);
    --shadow-medium: 0 8px 24px rgba(0,0,0,0.65);
    --shadow-strong: 0 12px 36px rgba(0,0,0,0.7);

    --success: #16a34a;
    --danger: #ff6b6b;
    --info: #60c6ff;
}

/* =====================================================
   GLOBAL
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

header {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;        /* horizontal center */
    align-items: center;            /* vertical center */
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    color: #fff;
    box-shadow: var(--shadow-medium);
    position: relative;
}

.header-content {
    width: 100%;
    max-width: var(--container-max);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px; /* <-- add this line */
}

/* Logo */
.logo img {
    height: 50px;
    width: auto;
}

/* Nav */
.spa-nav {
    flex: 1;
    display: flex;
    justify-content: center;        /* nav items horizontally in middle */
    align-items: center;
}

.spa-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.spa-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: 0.25s ease;
}

.spa-nav ul li a:hover,
.spa-nav ul li a.active {
    background: rgba(255,255,255,0.15);
}

/* Buttons */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hamburger */
.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: 0.25s ease;
}

.hamburger:hover {
    color: var(--accent-light);
}

/* Theme toggle */
.theme-toggle {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(6px);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.25s ease;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.35);
}

/* Responsive */
/* Responsive – Hamburger Menu Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .spa-nav ul {
        display: none;
        flex-direction: column;
        gap: 20px;
        background: var(--accent);
        padding: 50px 30px;
        border-radius: var(--radius-md);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: flex-start; /* text start alignment */
        z-index: 999;
        box-shadow: var(--shadow-strong);
        transform: scale(0.95);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        overflow-y: auto;
    }

    .spa-nav ul.show {
        display: flex;
        transform: scale(1);
        opacity: 1;
        animation: fadeInMenu 0.35s ease forwards;
    }

    @keyframes fadeInMenu {
        from { transform: scale(0.95); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }

    /* Menu links styling */
    .spa-nav ul li a {
        font-size: 1.3rem;
        padding: 12px 20px;
        color: #fff;
        text-align: start; /* align text to start */
        width: 100%;
        max-width: 300px;
        border-radius: var(--radius-md);
        position: relative;
        overflow: hidden;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    /* Animated line under each link on hover */
    .spa-nav ul li a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: 0%;
        background: rgba(255,255,255,0.8);
        transition: width 0.3s ease;
    }

    .spa-nav ul li a:hover::after,
    .spa-nav ul li a.active::after {
        width: 100%;
    }

    .spa-nav ul li a:hover,
    .spa-nav ul li a.active {
        background: rgba(255,255,255,0.1);
        transform: translateX(5px);
    }
}




/* =====================================================
   FOOTER
===================================================== */
/* =====================================================
   FOOTER
===================================================== */
footer {
    background: var(--card-bg);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text);
}

footer .footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 0;
}

footer .footer-links ul li a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: 0.25s ease;
}

footer .footer-links ul li a:hover {
    text-decoration: underline;
}

/* Social media icons */
footer .social-media {
    margin-bottom: 15px;
}

footer .social-media a {
    color: var(--accent);
    margin: 0 10px;
    font-size: 1.2rem;
    transition: 0.25s ease;
}

footer .social-media a:hover {
    color: var(--accent-hover);
}

/* Copyright text */
footer p {
    font-size: 0.9rem;
    color: var(--text);
    margin-top: 5px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
/* =====================================================
   FOOTER MEDIA QUERY - 768px
===================================================== */
@media (max-width: 768px) {
    footer {
        padding: 20px 15px;
        text-align: center;
    }

    footer .footer-links ul {
        flex-direction: row;
        gap: 12px;
        margin-bottom: 10px;
    }

    footer .footer-links ul li a {
        font-size: 0.95rem;
    }

    footer .social-media {
        margin-bottom: 10px;
    }

    footer .social-media a {
        margin: 0 8px;
        font-size: 1.1rem;
    }

    footer p {
        font-size: 0.85rem;
        margin-top: 8px;
    }
}





/* =====================================================
   MAIN
===================================================== */
main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}





.hidden {
    display: none;
}

.visible {
    display: block;
}




main {
    padding-top: 0;  /* override any padding that affects hero */
}

/* MAIN */
main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0;                /* remove padding-top to avoid gap */
    flex: 1;
}

/* Header flush with content */
header {
    margin-bottom: 0;       /* remove default spacing */
    padding-bottom: 0;      /* optional */
}

/* Main / Hero Section */
main, .home-section, .hero-section {
    margin-top: 0;          /* remove default top spacing */
    padding-top: 0;         /* ensure hero touches header */
}






/* =====================================================
   HERO SECTION
===================================================== */

.hero-section {
    position: relative;
    width: 100vw;                 /* full viewport width */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    /* PUSH HERO BELOW HEADER */
    margin-top: 0;            /* header height */
    
    height: 60vh;                 /* adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 0;
}


/* Background Image */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) contrast(1.1);
    transition: transform 0.5s ease;
}

.hero-bg img:hover {
    transform: scale(1.05);
}

/* Overlay for content */
/* Hero Overlay */
.hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    width: 100%;
    /* Removed max-width so hero runs full width */
    color: #fff;
}

/* Learn More Button spacing */
.hero-content .btn-primary {
    margin-bottom: 15px; /* Add space below button before tabs */
}

/* Hero Content */
.hero-content {
    flex: 1 1 500px;
    max-width: 600px;
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 18px;
    line-height: 1.2;
    text-shadow: 0 3px 15px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Hero Tabs */
.hero-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 5px 9px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.35);
}

.tab-btn.active {
    background: #fff;
    color: var(--accent);
}

/* Hero Tab Contents */
.hero-tab-contents {
    margin-top: 15px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

/* Featured Items inside Hero */
.featured-item {
    background: rgba(0,0,0,0.45);
    padding: 18px 22px;
    border-radius: 14px;
    margin-bottom: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.featured-item .tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.featured-item h3 {
    margin: 6px 0;
    font-size: 1.3rem;
}

.featured-item p {
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.featured-item a.btn-primary {
    font-size: 0.95rem;
    padding: 8px 16px;
}

/* Hero Image */
/* Hero Image – resized to fit */
.hero-image {
    flex: 1 1 300px;   /* slightly smaller */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 45vh;  /* fit within hero section height */
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    transition: transform 0.4s ease;
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
/* =====================================================
   HERO SECTION MEDIA QUERY - 768px
===================================================== */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 40px 20px;
    }

    .hero-overlay {
        flex-direction: column;
        align-items: center;
        padding: 30px 15px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 25px;
    }

    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-tabs {
        justify-content: center;
        gap: 10px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .featured-item {
        padding: 14px 18px;
        margin-bottom: 12px;
    }

    .featured-item h3 {
        font-size: 1.1rem;
    }

    .featured-item p {
        font-size: 0.9rem;
    }

    .featured-item a.btn-primary {
        font-size: 0.9rem;
        padding: 6px 14px;
    }

    .hero-image {
        flex: 1 1 100%;
        margin-top: 20px;
    }

    .hero-image img {
        max-height: 35vh;
    }
}





/* =====================================================
   CATEGORY SECTIONS
===================================================== */
.category-section {
    margin: 20px auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.category-section h2 {
    margin-bottom: 15px;
    font-size: 1.7rem;
    color: var(--accent);
    text-shadow: 0 0 6px var(--accent);
    text-align: center;
}

/* =====================================================
   INFLUENCER LIST
===================================================== */
.influencer-list {
    display: flex;
    flex-wrap: wrap;           /* allow cards to wrap */
    gap: 20px;
    justify-content: center;   /* center cards */
    padding-bottom: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

/* =====================================================
   INFLUENCER CARD
===================================================== */
.influencer-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 3px 12px var(--shadow);
    transition: 0.25s ease;
    text-align: center;

    flex: 1 1 260px;           /* grow/shrink, base width 260px */
    max-width: 300px;          /* max size for large screens */
    min-width: 240px;          /* don’t shrink too small */
    box-sizing: border-box;
    overflow: hidden;
}

.influencer-card img.profile-pic {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid var(--accent);
}

.influencer-card p {
    margin: 6px 0;
    word-wrap: break-word;
}

/* Vote button */
.voteBtn {
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    max-width: 200px;
    transition: 0.25s ease;
    margin-top: 10px;
}

.voteBtn:hover {
    background: var(--accent-hover);
}

/* =====================================================
   LOAD MORE BUTTON
===================================================== */
.load-more-container {
    text-align: center;
    margin-top: 12px;
}

.load-more-btn {
    padding: 8px 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.25s ease;
}

.load-more-btn:hover {
    background: var(--accent-hover);
}

.inactive-load-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =====================================================
   MEDIA QUERY – 768px
===================================================== */
@media (max-width: 768px) {

    .category-section {
        width: 95%;
        margin: 15px auto;
        padding: 0 10px;
    }

    .category-section h2 {
        font-size: 1.4rem;
        text-align: center;
    }

    .influencer-list {
        gap: 15px;
        justify-content: center;
    }

    .influencer-card {
        flex: 1 1 200px;        /* base width for mobile */
        max-width: 240px;       /* max width on small screens */
        min-width: 180px;       /* prevents tiny cards */
        padding: 14px;
    }

    .influencer-card img.profile-pic {
        max-width: 140px;
        height: auto;
        margin-bottom: 10px;
    }

    .voteBtn {
        padding: 6px 12px;
        font-size: 0.95rem;
        max-width: 100%;
    }

    .load-more-btn {
        padding: 6px 14px;
        font-size: 0.95rem;
    }
}

/* =====================================================
   PAGINATION — RESPONSIVE
===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination .page-btn {
    padding: 8px 16px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-soft);
}

.pagination .page-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-medium);
}

.pagination .page-btn.active {
    background: var(--accent-dark);
    color: #fff;
    border-color: var(--accent-dark);
    font-weight: bold;
    box-shadow: var(--shadow-strong);
}

.pagination .dots {
    display: flex;
    align-items: center;
    padding: 0 5px;
    color: var(--muted);
    font-weight: bold;
}

@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        margin: 25px 0;
    }

    .pagination .page-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .pagination .dots {
        padding: 0 3px;
        font-size: 12px;
    }
}


/* =====================================================
   MODAL
===================================================== */
.modal {
    display: none; /* hidden by default */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(7px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 28px;
    border-radius: 16px;
    width: 95%;
    max-width: 500px;
    border: 1px solid var(--border);
    box-shadow: 0 0 25px var(--shadow-strong);
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    animation: popUp 0.25s ease;
}

@keyframes popUp {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Close button */
.close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 26px;
    cursor: pointer;
    color: var(--accent);
    transition: 0.25s;
}

.close:hover {
    color: var(--accent-hover);
}

/* Influencer Info */
.modal-influencer-info {
    margin-bottom: 20px;
    text-align: center;
}

.modal-influencer-info img.profile-pic-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 12px;
}

.modal-influencer-info p {
    margin: 4px 0;
    font-size: 0.95rem;
}

/* =====================================================
   TOTAL VOTES TABLE
/* ===================================================== */
/* Modal Total Votes Table */
#modalTotalVotes {
    width: 100%;
    margin: 12px 0 20px;
    overflow-x: auto;
}

#modalTotalVotes table {
    width: auto; /* allow table width to adjust based on content */
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

#modalTotalVotes th,
#modalTotalVotes td {
    padding: 8px 12px;
    border: 1px solid var(--border);
}

#modalTotalVotes th {
    background-color: var(--accent-light);
    color: var(--accent-dark);
    font-weight: 600;
}

#modalTotalVotes td:first-child {
    text-align: left; /* Category column */
    white-space: nowrap; /* prevent line breaks, adjust width automatically */
}

#modalTotalVotes td:last-child {
    text-align: right; /* Votes column */
    white-space: nowrap;
}

#modalTotalVotes tbody tr:hover {
    background: rgba(0,0,0,0.03);
}


/* =====================================================
   FORM ELEMENTS
===================================================== */
input[type="text"] {
    width: 100%;
    padding: 7px 9px;
    margin: 8px 0 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.92rem;
}

/* Category vote row */
/* Compact Category Votes Rows - Tightened Vertical Spacing */
#modalVotingCategories {
    margin-top: 2px;
    margin-bottom: 16px;
    padding: 0;
}

/* Permanent highlight for category rows */
/* Permanent highlight for category rows using theme */
/* Stronger permanent highlight for category rows */
.category-vote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin: 0 0 2px 0;
    line-height: 1;
    background: var(--accent-light); /* fallback */

    /* Use CSS variables to adapt to dark/light mode */
    background-color: rgba(201, 0, 0, 0.15); /* light mode highlight */
}

input[type="number"] {
    width: 80px !important;           /* increase width only */
    padding: 7px 9px;      /* keep existing padding */
    margin: 0;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.92rem;
    box-sizing: border-box; /* ensures border/padding are included */
}


body.dark .category-vote {
    background-color: rgba(255, 26, 26, 0.25); /* stronger dark mode highlight */
}

.category-vote label {
    cursor: pointer;
}

.category-vote input[type="checkbox"] {
    cursor: pointer;
}

.category-vote input[type="checkbox"] {
    margin-left: 20PX;
    width: 12px;   /* adjust as needed */
    height: 12px;  /* adjust as needed */
    cursor: pointer;
}

/* Optional: make it even bigger visually */
.category-vote input[type="checkbox"] {
    transform: scale(1.3);  /* scales the checkbox */
    cursor: pointer;
}



.category-vote label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;            /* small gap between checkbox and text */
    margin: 0;
    line-height: 1;
}

.categoryVoteInput {
    width: 50px !important;
    padding: 3px 5px;
    font-size: 0.88rem;
    margin: 0;
    line-height: 1;
}


/* Submit button */
button[type="submit"] {
    padding: 10px 18px;
    border: none;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
    margin-top: 12px;
}

button[type="submit"]:hover {
    background: var(--accent-hover);
}

/* =====================================================
   MEDIA QUERY - 768px
===================================================== */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        max-width: 350px;
        padding: 20px;
    }

    .modal-influencer-info img.profile-pic-large {
        width: 160px;
        height: 160px;
    }

    /* Keep category rows in row layout */
    .category-vote {
        flex-direction: row;   /* keep row layout */
        align-items: center;   /* vertical align nicely */
    }

    /* Inputs small but not full width */
    .categoryVoteInput {
        width: 60px !important;
        padding: 3px 5px;
    }

    input[type="text"],
    input[type="number"] {
        width: auto;   
        max-width: 100%; 
        font-size: 0.9rem;
        padding: 6px 8px;
    }

    button[type="submit"] {
        width: 100%;
        padding: 10px;
        font-size: 1rem;
    }

    .close {
        font-size: 22px;
    }

    #modalTotalVotes table th,
    #modalTotalVotes table td {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
}




/* Modal Scrollbar Styling */
.modal-content {
    scrollbar-width: thin;          /* Firefox: thinner scrollbar */
    scrollbar-color: var(--accent) rgba(0,0,0,0.1); /* Firefox: thumb and track */
}

/* WebKit Browsers */
.modal-content::-webkit-scrollbar {
    width: 8px;                     /* vertical scrollbar width */
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);   /* track color */
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--accent); /* scrollbar handle color */
    border-radius: 8px;
    border: 2px solid rgba(0,0,0,0.05); /* padding around thumb */
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-dark);
}





/* =====================================================
   NEW SECTIONS: PRICING, EXPERIENCES, NEWS
===================================================== */








/* =====================================================
   NEW SECTIONS: PRICING, EXPERIENCES, NEWS
===================================================== */
/* ==========================
   Info Section (What We Do)
========================== */
.info-section {
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease;
}

.info-section h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
    text-align: center;
}

.info-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: start;
    max-width: 900px;
    margin: 0 auto 35px auto;
}

.info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-bottom: 35px;
}

.info-card {
    flex: 1 1 250px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 3px 12px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.info-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent-hover);
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text);
}

.info-extra {
    max-width: 850px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.info-extra h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.info-extra p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--text);
}

.info-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.info-buttons .btn-primary {
    padding: 10px 22px;
    font-size: 1rem;
    border-radius: 8px;
}

/* Responsive */
/* =====================================================
   NEW SECTIONS MEDIA QUERY - 768px
===================================================== */
@media (max-width: 768px) {
    .info-section {
        padding: 40px 15px;
    }

    .info-section h2 {
        font-size: 1.7rem;
        text-align: center;
    }

    .info-section p {
        font-size: 1rem;
        max-width: 100%;
        text-align: center;
        margin-bottom: 25px;
    }

    .info-cards {
        flex-direction: column;
        gap: 18px;
    }

    .info-card {
        padding: 20px 15px;
    }

    .info-card i {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .info-card h3 {
        font-size: 1.15rem;
    }

    .info-card p {
        font-size: 0.9rem;
    }

    .info-extra h3 {
        font-size: 1.3rem;
    }

    .info-extra p {
        font-size: 0.95rem;
    }

    .info-buttons .btn-primary {
        width: 100%;
        padding: 10px 18px;
        font-size: 0.95rem;
    }
}



/* ==========================
   Help Center Section
========================== */
.help-section {
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 50px;
    animation: fadeIn 0.5s ease;
    text-align: center;
}

.help-section h2 {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.help-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text);
}

/* Help Cards */
.help-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-bottom: 40px;
}

.help-card {
    flex: 1 1 280px;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 30px 20px;
    text-align: left;
    box-shadow: 0 3px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.help-card i {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 18px;
}

.help-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--accent-hover);
}

.help-card p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.6;
}

/* Help Extra Section */
.help-extra {
    max-width: 900px;
    margin: 0 auto 50px auto;
    text-align: left;
}

.help-extra h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.help-extra p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 10px;
}

/* Info Buttons */
.info-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.info-buttons .btn-primary {
    padding: 12px 26px;
    font-size: 1rem;
    border-radius: 8px;
    transition: transform 0.2s ease, background 0.3s ease;
}

.info-buttons .btn-primary:hover {
    transform: scale(1.05);
}

/* Responsive Cards */

/* ==========================
   Help Contact Section
========================== */
.help-contact {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
    background: var(--bg);
    padding: 30px 25px;
    border-radius: 14px;
    box-shadow: 0 4px 20px var(--shadow);
}

.help-contact h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: var(--accent);
}

.help-contact p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text);
}

.help-contact ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.help-contact ul li {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text);
}

.help-contact ul li a {
    color: var(--accent-hover);
    text-decoration: none;
}

.help-contact ul li a:hover {
    text-decoration: underline;
}

.help-contact ul li i {
    margin-right: 8px;
    color: var(--accent);
}

/* Social Media Links */
.help-social {
    margin-top: 25px;
    text-align: center;
}

.help-social h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--accent-light);
    color: var(--accent-dark);
    border-radius: 50%;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: scale(1.15);
}

/* =====================================================
   HELP CENTER MEDIA QUERY - 768px
===================================================== */
@media (max-width: 768px) {
    .help-section {
        padding: 40px 15px;
        text-align: center;
    }

    .help-section h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .help-section p {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .help-cards {
        flex-direction: column;
        gap: 18px;
    }

    .help-card {
        padding: 25px 15px;
        text-align: center;
    }

    .help-card i {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .help-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .help-card p {
        font-size: 0.95rem;
    }

    .help-extra {
        text-align: center;
        padding: 0 10px;
    }

    .help-extra h3 {
        font-size: 1.4rem;
    }

    .help-extra p {
        font-size: 0.95rem;
    }

    .info-buttons .btn-primary {
        width: 100%;
        font-size: 0.95rem;
        padding: 10px 20px;
    }

    .help-contact {
        padding: 25px 15px;
        text-align: center;
    }

    .help-contact h3 {
        font-size: 1.4rem;
    }

    .help-contact p,
    .help-contact ul li {
        font-size: 0.95rem;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}







/* =====================================================
   NEW SECTIONS: PRICING, EXPERIENCES, NEWS
===================================================== */
/* ==========================
   Pricing Section
========================== */
.pricing-section {
    padding: 60px 20px;
    background: var(--bg);
    border-radius: 14px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 50px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.pricing-section h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.pricing-section p {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 35px auto;
    line-height: 1.6;
    color: var(--text);
}

/* Pricing Cards Grid */
.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-bottom: 35px;
}

.pricing-card {
    flex: 1 1 220px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 3px 12px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
    border: 2px solid var(--accent-hover);
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.pricing-card p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.5;
}

/* Highlight premium bundles */
.pricing-card:nth-child(3),
.pricing-card:nth-child(4) {
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #fff;
    border: none;
}

.pricing-card:nth-child(3) h3,
.pricing-card:nth-child(4) h3 {
    color: #fff;
}

.pricing-card:nth-child(3) p,
.pricing-card:nth-child(4) p {
    color: #fff;
}

/* Extra Pricing Info */
.pricing-extra {
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.pricing-extra h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.pricing-extra p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 15px;
}

.pricing-extra ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.pricing-extra ul li {
    font-size: 1rem;
    margin-bottom: 8px;
}

/* Buttons */
.info-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.info-buttons .btn-primary {
    padding: 10px 22px;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-buttons .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--shadow);
}

/* Responsive */
/* =====================================================
   PRICING SECTION MEDIA QUERY - 768px
===================================================== */
@media (max-width: 768px) {
    .pricing-section {
        padding: 40px 15px;
    }

    .pricing-section h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .pricing-section p {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 25px;
    }

    .pricing-cards {
        flex-direction: column;
        gap: 18px;
    }

    .pricing-card {
        flex: 1 1 100%;
        padding: 20px 15px;
    }

    .pricing-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .pricing-card p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .pricing-extra {
        text-align: center;
        padding: 0 10px;
    }

    .pricing-extra h3 {
        font-size: 1.3rem;
    }

    .pricing-extra p,
    .pricing-extra ul li {
        font-size: 0.95rem;
    }

    .info-buttons .btn-primary {
        width: 100%;
        font-size: 0.95rem;
        padding: 10px 18px;
    }
}





/* =====================================================
   EXPERIENCES GRID
===================================================== */
/* ==========================
   Experiences Section
========================== */
.experiences-section {
    padding: 60px 20px;
    background: var(--bg);
    border-radius: 14px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease;
    text-align: center;
}

.experiences-section h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.experiences-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 35px auto;
}

/* Grid for experience cards */
.experiences-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-bottom: 35px;
}

.experience-card {
    flex: 1 1 280px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 3px 12px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.experience-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.experience-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent-hover);
}

.experience-card p {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 10px;
}

.experience-card ul {
    list-style: disc inside;
    padding-left: 0;
    margin-top: 0;
    color: var(--text-muted);
}

.experience-card ul li {
    margin-bottom: 5px;
}

/* Card images */
.experience-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* Experiences Table */
.experiences-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 35px auto;
    border-collapse: collapse;
    box-shadow: 0 3px 12px var(--shadow);
}

.experiences-table thead {
    background: var(--accent);
    color: #fff;
}

.experiences-table th, .experiences-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.experiences-table tbody tr:hover {
    background: var(--accent-light);
}

.experiences-table a {
    color: var(--accent-hover);
    text-decoration: none;
}

.experiences-table a:hover {
    text-decoration: underline;
}

/* Experiences Benefits */
.experiences-benefits {
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.experiences-benefits h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.experiences-benefits ul {
    list-style: disc inside;
    color: var(--text);
    line-height: 1.6;
}

.experiences-benefits ul li {
    margin-bottom: 8px;
}

/* Buttons */
.info-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.info-buttons .btn-primary {
    padding: 10px 22px;
    font-size: 1rem;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.info-buttons .btn-primary:hover {
    transform: translateY(-2px);
}

/* Responsive */
/* =====================================================
   EXPERIENCES SECTION MEDIA QUERY - 768px
===================================================== */
@media (max-width: 768px) {
    /* Section container ALWAYS fits screen */
    .experiences-section {
        padding: 40px 15px;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden; /* HARD STOP — nothing escapes */
    }


    .experiences-section h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .experiences-section p {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 25px;
    }

    .experiences-grid {
        flex-direction: column;
        gap: 18px;
    }

    .experience-card {
        flex: 1 1 100%;
        padding: 18px 15px;
        text-align: center;
    }

    .experience-card i {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .experience-card h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .experience-card p {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .experience-card ul li {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .experience-img {
        height: auto;
        margin-bottom: 10px;
    }

    .experiences-table {
        width: 100%;
        font-size: 0.9rem;
        overflow-x: auto;
        display: block;
    }

    .experiences-table th, .experiences-table td {
        padding: 10px 8px;
    }

    .experiences-benefits {
        text-align: center;
        padding: 0 10px;
    }

    .experiences-benefits h3 {
        font-size: 1.3rem;
    }

    .experiences-benefits ul li {
        font-size: 0.95rem;
    }

    .info-buttons .btn-primary {
        width: 100%;
        font-size: 0.95rem;
        padding: 10px 18px;
    }
}




/* Modal Overlay */
.experience-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal Content */
.experience-modal-content {
    width: 90%;
    max-width: 450px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    position: relative;
    animation: fadeSlide 0.3s ease-in-out;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 26px;
    cursor: pointer;
    color: #444;
}

/* Form Style */
#experienceRegisterForm input, 
#experienceRegisterForm select {
    width: 100%;
    padding: 12px;
    margin: 6px 0 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

/* Countdown Box */
.countdown-box {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

#countdownTimer {
    color: #0ea5e9;
    font-size: 20px;
    font-weight: bold;
}

/* Animation */
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   EXPERIENCE MODAL MEDIA QUERY - 768px
===================================================== */
@media (max-width: 768px) {
    .experience-modal {
        padding: 20px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .experience-modal-content {
        width: 95%;
        max-width: 400px;
        padding: 20px;
    }

    .modal-close {
        font-size: 24px;
        right: 12px;
        top: 8px;
    }

    #experienceRegisterForm input,
    #experienceRegisterForm select {
        padding: 10px;
        font-size: 14px;
    }

    .countdown-box {
        padding: 10px;
        font-size: 0.95rem;
    }

    #countdownTimer {
        font-size: 18px;
    }
}





/* =====================================================
   NEWS / BLOG LIST
===================================================== */
/* =====================================================
   NEWS & EVENTS SECTION — THEMED
===================================================== */

/* Container */
.news-section {
    padding: 40px 20px;
    max-width: var(--container-max);
    margin: auto;
    color: var(--text);
}

/* Titles */
.news-section h2 {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text);
}

.news-section > p {
    text-align: center;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--muted);
}

/* =========================================================
   FEATURED STORY BANNER
========================================================= */
.featured-story {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    background: var(--card-bg);
    box-shadow: var(--shadow-medium);
}

.featured-story img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.featured-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 20px;
    background: rgba(0,0,0,0.45); /* Keep slight black overlay for readability */
    color: #fff;
    border-radius: var(--radius-md);
    max-width: 90%;
}

.featured-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 5px 0;
}

.featured-content p {
    font-size: 14px;
    margin-bottom: 10px;
}

/* Themed primary button */
.featured-content .btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    transition: 0.25s ease;
}

.featured-content .btn-primary:hover {
    background: var(--accent-hover);
}

/* Tag (small label) */
.tag {
    background: var(--accent);
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 8px;
}

/* =========================================================
   CATEGORY BUTTONS
========================================================= */
.news-categories {
    text-align: center;
    margin-bottom: 30px;
}

.news-categories .category {
    margin: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    transition: 0.25s;
}

.news-categories .category.active,
.news-categories .category:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* =========================================================
   GRID LAYOUT — MAIN + SIDEBAR
========================================================= */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* =========================================================
   BLOG LIST + CARDS
========================================================= */
.blog-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
    transition: 0.3s ease;
}



.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.blog-body {
    padding: 15px;
}

.blog-body h3 {
    font-size: 18px;
    margin: 10px 0;
    font-weight: 700;
    color: var(--text);
}

.blog-body p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

/* Author Section */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--muted-2);
}

.blog-meta .author-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Secondary button */
.btn-secondary {
    background: var(--accent-light);
    color: var(--accent);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    transition: 0.25s;
}

.btn-secondary:hover {
    background: var(--accent);
    color: #fff;
}

/* =========================================================
   SIDEBAR STYLES
========================================================= */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text);
}

/* Popular Posts */
.popular-list {
    list-style: none;
    padding: 0;
}

.popular-list li {
    margin: 8px 0;
}

.popular-list a {
    color: var(--link);
    text-decoration: none;
    font-size: 14px;
}

.popular-list a:hover {
    color: var(--link-hover);
}

/* Events Mini Table */
.events-table {
    width: 100%;
    font-size: 14px;
    color: var(--text);
}

.events-table td {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.events-table tr:last-child td {
    border-bottom: none;
}

/* Newsletter */
.newsletter-box p {
    font-size: 14px;
    color: var(--muted);
}

.newsletter-box input {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 14px;
    margin-bottom: 10px;
    background: var(--surface);
    color: var(--text);
}

.newsletter-box button {
    width: 100%;
}

/* Back button */
.news-section .back-btn {
    margin: 40px auto 0;
    display: block;
}

/* =========================================================
   RESPONSIVE
========================================================= */
/* =====================================================
   NEWS / BLOG MEDIA QUERY - 768px
===================================================== */
@media (max-width: 768px) {
    .news-section {
        padding: 30px 15px;
    }

    .news-section h2 {
        font-size: 1.8rem;
    }

    .news-section > p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .featured-story img {
        height: 220px;
    }

    .featured-content h3 {
        font-size: 1.5rem;
    }

    .featured-content p {
        font-size: 13px;
    }

    .news-categories .category {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* Grid layout becomes single column */
    .news-layout {
        display: block;
    }

    .blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card img {
        height: 160px;
    }

    .blog-body h3 {
        font-size: 16px;
    }

    .blog-body p {
        font-size: 13px;
    }

    .blog-meta {
        font-size: 12px;
    }

    .news-sidebar {
        margin-top: 30px;
    }

    .sidebar-card h3 {
        font-size: 16px;
    }

    .popular-list a,
    .events-table {
        font-size: 13px;
    }

    .newsletter-box p,
    .newsletter-box input {
        font-size: 13px;
    }

    .back-btn {
        margin: 30px auto 0;
    }
}


/* =====================================================
   GLOBAL BUTTONS — PRIMARY & SECONDARY
===================================================== */

/* Main Primary Button */
.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.25s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

/* Ensure full-width in newsletter */
.newsletter-box .btn-primary {
    width: 100%;
}

/* Back to Hero button centered */
.news-section .back-btn {
    margin: 40px auto 0;
    display: block;
    width: fit-content;
}


/* =====================================================
   BUTTONS MEDIA QUERY - 768px
===================================================== */
@media (max-width: 768px) {
    .btn-primary {
        padding: 9px 18px;
        font-size: 14px;
    }

    .newsletter-box .btn-primary {
        width: 100%;
        font-size: 14px;
        padding: 10px 16px;
    }

    .news-section .back-btn {
        margin: 30px auto 0;
        width: 100%;
        text-align: center;
    }
}


