/*
|--------------------------------------------------------------------------
| GLOBAL, NAVBAR, AND FOOTER STYLES
|--------------------------------------------------------------------------
*/

/* ---------------------------------------------------- */
/* 1. ROOT VARIABLES */
/* ---------------------------------------------------- */
:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-gradient: linear-gradient(135deg, #e63946 0%, #ff5e6c 50%, #ff9f1c 100%);
    --bg-dark: #0b0f19;
    /* Deeper, richer dark blue/black */
    --bg-card: #141b2d;
    --text-light: #ffffff;
    --text-gray-light: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
}


/* Body Defaults */
html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

main {
    padding-top: 0;
}

/* ---------------------------------------------------- */
/* 2. NAVBAR */
/* ---------------------------------------------------- */
.custom-navbar {
    background: var(--secondary-color);
    height: 80px;
    transition: all 0.3s ease-in-out;
    z-index: 1030;
}

.custom-navbar.scrolled {
    background: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    width: 45px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

/* Mobile Toggle */
.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    padding: 0.4rem 0.6rem;
    margin-left: auto;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Nav Links */
.navbar .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary-color);
    transition: 0.3s;
}

.navbar .nav-link:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown-menu {
    background: var(--secondary-color) !important;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

.nav-item:hover .dropdown-menu,
.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.dropdown-item i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    padding-left: 1.6rem;
    box-shadow: inset 4px 0 0 var(--primary-color);
}

.dropdown-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Subscribe Button */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), #ff5e6c, #ff1493);
    background-size: 300% 300%;
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.btn-gradient:hover {
    background-position: right center;
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.5);
}

.btn-gradient i {
    transition: transform 0.4s ease;
}

.btn-gradient:hover i {
    transform: rotate(-10deg) scale(1.2);
}

/* ---------------------------------------------------- */
/* 2B. MOBILE NAVBAR FIXES */
/* ---------------------------------------------------- */
@media (max-width: 991px) {
    .custom-navbar {
        height: auto;
        padding: 0.6rem 1rem;

    }

    .navbar-brand img {
        width: 115px;
        height: 100px;
        margin-right: 10px;
        filter: brightness(0) invert(1);
    }

    .text-center {
        text-align: center !important;
        margin-top: 60px;
    }

    .navbar-collapse {
        background: var(--secondary-color);
        padding: 0.8rem 1rem;
        border-radius: 8px;
        margin-top: 0.6rem;
    }

    .navbar-nav .nav-link {
        display: block;
        padding: 0.6rem 0.8rem;
        border-radius: 6px;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: var(--primary-color) !important;
    }

    .dropdown-menu {
        width: 100%;
        margin: 0;
        border-radius: 6px;
        box-shadow: none;
        padding: 0.4rem 0;
        transform: none;
    }

    .dropdown-menu.show {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .dropdown-item {
        padding: 0.6rem 1rem;
    }

    .btn-gradient {
        display: block;
        width: 100%;
        margin-top: 0.8rem;
        text-align: center;
    }
}

/* ---------------------------------------------------- */
/* 3. FOOTER */
/* ---------------------------------------------------- */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-size: 1rem;
    user-select: none;
    font-family: 'Poppins', sans-serif;
}

.text-primary-accent {
    color: var(--primary-color);
}

.text-gray-light {
    color: var(--text-gray-light);
}

.footer-logo {
    width: 70px;
    filter: brightness(0) invert(1);
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 0 15px var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--primary-color);
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    width: fit-content;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.footer-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(6px);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-social {
    color: var(--text-light);
    margin-right: 16px;
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-social:hover {
    color: var(--primary-color);
    transform: scale(1.3) rotate(5deg);
    text-shadow: 0 0 10px var(--primary-color);
}

hr.border-secondary {
    border-color: rgba(241, 250, 238, 0.1) !important;
    opacity: 0.5;
}

/* Footer Responsive Fixes */
@media (max-width: 767px) {
    .footer .row {
        text-align: center;
    }

    .footer .col-md-4:first-child {
        justify-content: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        margin: 0 0 1.2rem 0;
    }

    .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* ---------------------------------------------------- */
/* 4. MAGAZINE & HERO STYLES (FROM MAIN.HTML) */
/* ---------------------------------------------------- */

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
    background-color: var(--bg-dark);
    background-image: url('assets/images/m40.png') !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    z-index: 1;
}

.hero-bg-overlay {
    display: none !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Removed ::before as background is now on parent */

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 60px;
}

.text-gradient {
    background: linear-gradient(135deg, #FF9F1C 0%, #FF5E6C 100%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(255, 94, 108, 0.3));
    font-weight: 800;
    /* Ensure it's thick enough to see */
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content .lead {
    font-size: 1.35rem;
    max-width: 650px;
    margin: 0 0 2.5rem;
    opacity: 0.9;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    padding: 10px 20px;
    border-left: 5px solid #fff;
    color: #000000;
    border-radius: 0 10px 10px 0;
    backdrop-filter: blur(5px);
}

.btn-primary-custom {
    background: var(--primary-color);
    background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
    border: none;
    padding: 14px 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    /* Modern pill shape */
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.5);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #ff5e6c 0%, #ff1493 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6);
    color: #fff;
}

.btn-outline-light {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.2);
    /* Slight darkening for readability */
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.stats-container {
    background: transparent;
    padding: 0;
    margin-top: -60px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

.stats-glass-wrapper {
    background: rgba(29, 53, 87, 0.85);
    /* Fallback */
    background: linear-gradient(90deg, rgba(29, 53, 87, 0.9), rgba(11, 15, 25, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 40px 20px;
}

.stat-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h2 {
    font-size: 3rem;
    background: linear-gradient(to bottom, #fff, #bbb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item:last-child {
    border-right: none;
}

.highlights-section {
    padding: 100px 20px;
    background: var(--bg-dark);
    position: relative;
}

.highlight-card {
    background: var(--bg-card);
    padding: 45px 35px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
}

.highlight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    border-radius: 24px;
}

.highlight-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--neon-shadow);
    border-color: transparent;
}

.highlight-card:hover::before {
    opacity: 0.1;
    /* Subtle color wash */
}

.highlight-card i {
    font-size: 3.5rem;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    display: inline-block;
}

.latest-issue {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #101626 100%);
    position: relative;
}

.edition-card {
    background: rgba(20, 27, 45, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.5s ease;
    overflow: hidden;
}

.edition-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.3);
}

.edition-card img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.edition-card h3 {
    margin-top: 10px;
    font-weight: 700;
    color: #fff;
}

.edition-card p {
    color: var(--text-gray-light);
    font-size: 0.95rem;
}

.edition-card ul {
    list-style: none;
    padding-left: 0;
    color: #ddd;
    margin: 20px 0;
}

.edition-card ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.edition-card .badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.75rem;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
    z-index: 5;
}

.subscription-section {
    background: #0b0f19;
    padding: 120px 20px;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

/* Decorative Glow behind subscription */
.subscription-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(29, 53, 87, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.subscription-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.4s ease;
    color: var(--text-light);
    position: relative;
    margin-bottom: 20px;
    height: 100%;
    z-index: 1;
}

.subscription-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.subscription-card h3 {
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.subscription-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.best-value {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.5);
    white-space: nowrap;
}

/* Specific highlight for premium layout if needed */
.subscription-card.premium-plan {
    border: 1px solid rgba(230, 57, 70, 0.5);
    background: rgba(230, 57, 70, 0.05);
    transform: scale(1.05);
    z-index: 2;
}

.subscription-card.premium-plan:hover {
    transform: scale(1.08) translateY(-10px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0d1a2b 100%);
    text-align: center;
    color: #fff;
}

@media (max-width:992px) {
    .edition-card {
        margin-bottom: 20px;
    }
}

@media (max-width:768px) {
    .hero-section {
        min-height: 80vh;
        height: auto;
        padding: 100px 20px 60px;
    }

    .hero-section::before {
        background-attachment: scroll !important;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .btn-primary-custom,
    .btn-outline-light {
        width: 100%;
        margin-bottom: 10px;
    }

    .stat-item {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}