/* =========================================================
   GENERAL WEBSITE SETTINGS
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f6ff;
    color: #20233a;
    line-height: 1.6;
}


/* =========================================================
   COOKIE CONSENT MODAL
========================================================= */

.cookie-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.cookie-modal.hidden {
    display: none;
}

.cookie-modal-content {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 10px;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-content h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #20233a;
}

.cookie-modal-content p {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.essential-btn {
    background: rgba(240, 240, 240, 0.9);
    color: #333;
    border: 2px solid #ddd;
}

.essential-btn:hover {
    background: rgba(230, 230, 230, 0.95);
    border-color: #999;
}

.accept-all-btn {
    background: rgba(255, 204, 0, 0.9);
    color: #222;
}

.accept-all-btn:hover {
    background: rgba(255, 122, 0, 0.95);
    color: white;
    transform: translateY(-2px);
}

.deny-all-btn {
    background: rgba(255, 82, 82, 0.9);
    color: white;
}

.deny-all-btn:hover {
    background: rgba(255, 56, 56, 0.95);
    transform: translateY(-2px);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    min-height: 150px;
    padding: 30px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    background:
        linear-gradient(
            120deg,
            #fff8e7 0%,
            #ffe0eb 38%,
            #e9ddff 70%,
            #dff5e8 100%
        );

    color: #20233a;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}


/* LOGO */

.logo-area h1 {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #20204d;
}

.logo-area p {
    margin-top: 5px;
    font-size: 15px;
    color: #666;
}


/* SEARCH */

.search-area {
    display: flex;
    gap: 8px;
}

.search-area input {
    width: 250px;
    padding: 14px 16px;
    border: none;
    border-radius: 30px;
    outline: none;
    font-size: 14px;
}

.search-area button {
    padding: 14px 22px;
    border: none;
    border-radius: 30px;
    background: #ffcc00;
    color: #222;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.search-area button:hover {
    background: #ff7a00;
    color: white;
    transform: translateY(-2px);
}

.theme-toggle {
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 30px;
    background: #20204d;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.language-switcher {
    padding: 12px 14px;
    border: none;
    border-radius: 30px;
    background: #ffffff;
    color: #20233a;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.footer-language {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #f4f6fb;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
}

.footer-language .language-switcher {
    min-width: 120px;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: #20233a;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

.theme-toggle:hover {
    background: #ffcc00;
    color: #20233a;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    background: #171735;

    padding: 0 5%;

    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.main-navigation a {
    color: white;
    text-decoration: none;

    padding: 18px 20px;

    font-size: 14px;
    font-weight: bold;

    transition: 0.3s;
}

.main-navigation a:hover {
    background: #ff3d81;
    color: white;
}


/* =========================================================
   ADVERTISEMENT BOXES
========================================================= */

.advertisement {
    padding: 20px;
}

.ad-box {
    min-height: 140px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #fff0f6,
            #fff3d6
        );

    border: 2px dashed #7c4dff;

    color: #333;

    box-shadow:
        0 8px 25px rgba(65, 45, 120, 0.08);
}

.ad-box span {
    font-size: 12px;
    font-weight: bold;
    color: #7c4dff;
    letter-spacing: 2px;
}

.ad-box h2 {
    margin-top: 8px;
    color: #e91e63;
}

.ad-box p {
    color: #666;
}


/* TOP AD */

.top-ad {
    max-width: 1200px;
    margin: 25px auto;
}


/* =========================================================
   MAIN WEBSITE CONTAINER
========================================================= */

.website-container {
    width: 92%;
    max-width: 1400px;

    margin: 30px auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 30px;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {
    min-width: 0;
}


/* =========================================================
   HERO SECTION
========================================================= */

.hero-section {
    min-height: 390px;

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    overflow: hidden;

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f0edff
        );

    box-shadow:
        0 12px 35px rgba(38, 40, 90, 0.12);

    margin-bottom: 35px;
}

.hero-text {
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-label {
    color: #ff3d81;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
}

.hero-text h2 {
    margin: 12px 0;

    font-size: 46px;
    line-height: 1.1;

    color: #20204d;
}

.hero-text h2 span {
    color: #7c4dff;
}

.hero-text p {
    color: #666;
    max-width: 500px;
}


/* HERO IMAGE */

.hero-image {
    min-height: 390px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    padding: 45px;

    display: block;

    transition: 0.5s;
}

.hero-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-image:hover img {
    transform: scale(1.05);
}


/* HERO BUTTON */

.read-button {
    width: fit-content;

    margin-top: 25px;

    padding: 14px 28px;

    border: none;
    border-radius: 30px;

    background:
        linear-gradient(
            90deg,
            #ff3d81,
            #7c4dff
        );

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.read-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 20px rgba(124, 77, 255, 0.3);
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
    margin-bottom: 25px;
}

.section-heading span {
    color: #ff3d81;

    font-size: 13px;
    font-weight: bold;

    letter-spacing: 2px;
}

.section-heading h2 {
    margin-top: 5px;

    font-size: 32px;

    color: #20204d;
}

.section-heading p {
    color: #777;
}


/* =========================================================
   TRENDING / TRAFFIC
========================================================= */

.traffic-section {
    margin-bottom: 45px;
}

.traffic-items {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}

.traffic-item {
    padding: 20px;

    border-radius: 15px;

    background: white;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.07);

    border-top: 5px solid #7c4dff;

    transition: 0.3s;
}

.traffic-item:nth-child(2) {
    border-top-color: #ff3d81;
}

.traffic-item:nth-child(3) {
    border-top-color: #ff9800;
}

.traffic-item:nth-child(4) {
    border-top-color: #ff9800;
}

.traffic-item:hover {
    transform: translateY(-5px);
}

.traffic-item strong {
    display: block;

    font-size: 25px;

    color: #7c4dff;

    margin-bottom: 8px;
}


/* =========================================================
   3 × 3 IMAGE GALLERY
========================================================= */

.gallery-section {
    margin-bottom: 50px;
}


/* THIS CREATES THE 3 × 3 GRID */

.image-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}


/* INDIVIDUAL IMAGE CARD */

.image-card {
    overflow: hidden;

    background: white;

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.09);

    transition: 0.35s;

    border: 1px solid #eeeeee;
}

.image-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 35px rgba(67, 45, 120, 0.18);
}


/* IMAGE */

.image-card img {
    width: 100%;

    height: 210px;

    display: block;

    object-fit: cover;

    background:
        linear-gradient(
            135deg,
            #ddd6ff,
            #ffd6e7
        );

    transition: 0.5s;
}

.image-card:hover img {
    transform: scale(1.04);
}


/* IMAGE CAPTION */

.image-caption {
    padding: 18px;
}

.image-caption h3 {
    color: #28204f;

    margin-bottom: 5px;

    font-size: 19px;
}

.image-caption p {
    color: #777;

    font-size: 14px;
}


/* =========================================================
   BUTTONS UNDER IMAGE SPACES
========================================================= */

.image-caption::after {
    content: "VIEW STORY →";

    display: inline-block;

    margin-top: 15px;

    padding: 9px 16px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #7c4dff,
            #ff3d81
        );

    color: white;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 0.5px;

    cursor: pointer;

    transition: 0.3s;
}


/* DIFFERENT COLOURS FOR BUTTONS */

.image-card:nth-child(2) .image-caption::after {
    background: #ff3d81;
}

.image-card:nth-child(3) .image-caption::after {
    background: #ff9800;
}

.image-card:nth-child(4) .image-caption::after {
    background: #ff9800;
}

.image-card:nth-child(5) .image-caption::after {
    background: #00a878;
}

.image-card:nth-child(6) .image-caption::after {
    background: #7c4dff;
}

.image-card:nth-child(7) .image-caption::after {
    background: #e91e63;
}

.image-card:nth-child(8) .image-caption::after {
    background: #009688;
}

.image-card:nth-child(9) .image-caption::after {
    background: #ff5722;
}


/* =========================================================
   MIDDLE AD
========================================================= */

.middle-ad {
    margin: 40px 0;
}

.middle-ad .ad-box {
    min-height: 180px;

    background:
        linear-gradient(
            135deg,
            #fff5f8,
            #f0edff,
            #fff5d6
        );
}


/* =========================================================
   FEATURED STORIES
========================================================= */

.stories-section {
    margin-bottom: 45px;
}

.story-list {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.story-card {
    display: grid;

    grid-template-columns:
        280px
        1fr;

    overflow: hidden;

    border-radius: 18px;

    background: white;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.08);
}

.story-image {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.story-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    padding: 35px;
}

.story-content {
    padding: 28px;
}

.story-content span {
    color: #ff3d81;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;
}

.story-content h3 {
    margin: 8px 0;

    font-size: 25px;

    color: #25204c;
}

.story-content p {
    color: #777;
}

.story-content a {
    display: inline-block;

    margin-top: 15px;

    color: #7c4dff;

    font-weight: bold;

    text-decoration: none;
}

.story-content a:hover {
    color: #ff3d81;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    display: flex;

    flex-direction: column;

    gap: 25px;
}


/* SIDEBAR AD */

.sidebar-ad {
    padding: 0;
}

.sidebar-ad .ad-box {
    min-height: 250px;
}


/* =========================================================
   SIDEBAR BOX
========================================================= */

.sidebar-box {
    padding: 22px;

    background: white;

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.08);
}

.sidebar-title {
    padding-bottom: 15px;

    border-bottom: 2px solid #eeeeee;

    margin-bottom: 5px;
}

.sidebar-title h2 {
    color: #25204c;
}


/* POPULAR ITEMS */

.popular-item {
    display: grid;

    grid-template-columns:
        45px
        1fr;

    gap: 12px;

    padding: 17px 0;

    border-bottom: 1px solid #eeeeee;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-number {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #7c4dff,
            #ff3d81
        );

    color: white;

    font-weight: bold;
}

.popular-item h3 {
    font-size: 15px;

    color: #29244e;
}

.popular-item p {
    font-size: 12px;

    color: #999;
}


/* =========================================================
   NEWSLETTER
========================================================= */

.newsletter-box {
    padding: 28px;

    border-radius: 20px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #ff3d81,
            #7c4dff
        );

    box-shadow:
        0 10px 30px rgba(124,77,255,0.25);
}

.newsletter-box h2 {
    margin-bottom: 8px;
}

.newsletter-box p {
    font-size: 14px;

    opacity: 0.9;

    margin-bottom: 18px;
}

.newsletter-box input {
    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 10px;

    outline: none;

    margin-bottom: 10px;
}

.newsletter-box button {
    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 10px;

    background: #ffcc00;

    color: #222;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.newsletter-box button:hover {
    background: white;

    transform: translateY(-2px);
}


/* =========================================================
   LOWER ADVERTISEMENT
========================================================= */

.bottom-ad {
    margin: 40px 0;
}


/* =========================================================
   FULL WIDTH AD
========================================================= */

.full-width-ad {
    width: 92%;
    max-width: 1400px;

    margin: 40px auto;
}

.full-width-ad .ad-box {
    min-height: 200px;

    background:
        linear-gradient(
            120deg,
            #fff0f6,
            #eeeaff,
            #fff0d6,
            #fff7dd
        );
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    margin-top: 60px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #171735,
            #29205a,
            #151529
        );
}

.footer-content {
    width: 92%;
    max-width: 1400px;

    margin: auto;

    padding: 55px 0;

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr;

    gap: 40px;
}

.footer-column h2 {
    color: #ffcc00;

    margin-bottom: 10px;
}

.footer-column h3 {
    color: #ff3d81;

    margin-bottom: 15px;
}

.footer-column p {
    color: #c9c9d8;

    max-width: 400px;
}

.footer-column a {
    display: block;

    margin-bottom: 8px;

    color: #d8d8e8;

    text-decoration: none;

    transition: 0.3s;
}

.footer-column a:hover {
    color: #ffcc00;

    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    min-height: 38px;
    margin-bottom: 0;
    padding: 8px 12px;

    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;

    color: white;
    font-size: 13px;
    font-weight: bold;
}

.social-links a:hover {
    padding-left: 12px;
    border-color: #ffcc00;
    background: rgba(255,204,0,0.12);
}


/* FOOTER BOTTOM */

.footer-bottom {
    text-align: center;

    padding: 20px;

    border-top: 1px solid rgba(255,255,255,0.1);

    color: #aaa;

    font-size: 13px;
}


/* =========================================================
   RESPONSIVE DESIGN
========================================================= */


/* TABLETS */

@media (max-width: 1000px) {

    .website-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        align-items: start;
    }

    .traffic-items {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 300px;
    }

}


/* MOBILE */

@media (max-width: 700px) {

    .site-header {
        flex-direction: column;

        text-align: center;

        padding: 30px 20px;
    }

    .logo-area h1 {
        font-size: 32px;
    }

    .search-area {
        width: 100%;
    }

    .search-area input {
        width: 100%;
    }

    .main-navigation a {
        padding: 13px 10px;

        font-size: 12px;
    }

    .website-container {
        width: 94%;
    }

    .hero-text {
        padding: 35px 25px;
    }

    .hero-text h2 {
        font-size: 34px;
    }

    /*
       ON SMALL SCREENS THE 3 × 3
       GRID BECOMES 1 COLUMN
    */

    .image-grid {
        grid-template-columns: 1fr;
    }

    .image-card img {
        height: 240px;
    }

    .traffic-items {
        grid-template-columns: 1fr;
    }

    .story-card {
        grid-template-columns: 1fr;
    }

    .story-image {
        min-height: 220px;
    }

    .sidebar {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .footer-column p {
        margin: auto;
    }

}


/* VERY SMALL PHONES */

@media (max-width: 450px) {

    .search-area {
        flex-direction: column;
    }

    .search-area button {
        width: 100%;
    }

    .main-navigation a {
        padding: 10px 7px;
    }

    .hero-text h2 {
        font-size: 29px;
    }

    .theme-toggle {
        width: 100%;
    }

}


/* DARK THEME */

body.dark-theme {
    background: #10141c;
    color: #e8ebf2;
}

body.dark-theme .site-header {
    background: linear-gradient(135deg, #321b2a, #542638, #3b211c);
}

body.dark-theme .main-navigation {
    background: #0b0f15;
}

body.dark-theme .hero-section,
body.dark-theme .traffic-item,
body.dark-theme .image-card,
body.dark-theme .story-card,
body.dark-theme .sidebar-box {
    background: #1a202b;
}

body.dark-theme .hero-section {
    background: linear-gradient(135deg, #1a202b, #20283a);
}

body.dark-theme .hero-text h2,
body.dark-theme .section-heading h2,
body.dark-theme .image-caption h3,
body.dark-theme .story-content h3,
body.dark-theme .sidebar-title h2,
body.dark-theme .popular-item h3 {
    color: #f4f6fb;
}

body.dark-theme .hero-text p,
body.dark-theme .section-heading p,
body.dark-theme .image-caption p,
body.dark-theme .story-content p,
body.dark-theme .popular-item p {
    color: #b7c0ce;
}

body.dark-theme .ad-box {
    background: linear-gradient(135deg, #202532, #263344);
    border-color: #6f7cff;
    color: #e8ebf2;
}

body.dark-theme .ad-box p {
    color: #b7c0ce;
}

body.dark-theme .newsletter-box {
    background: linear-gradient(135deg, #253c4a, #3b2855);
}

body.dark-theme .image-card {
    border-color: #303a4b;
}

body.dark-theme .sidebar-title,
body.dark-theme .popular-item {
    border-color: #303a4b;
}

body.dark-theme .search-area input,
body.dark-theme .newsletter-box input {
    background: #f4f6fb;
    color: #20233a;
}