/* ==========================================
   SAJID RIAZ BLOG
   ========================================== */

:root {

    --navy: #0b1120;
    --royal: #1d4ed8;
    --cyan: #22d3ee;
    --gold: #f59e0b;

    --white: #ffffff;
    --light: #f8fafc;

    --text: #111827;
    --muted: #64748b;

    --border: #e2e8f0;

    --shadow-sm:
        0 10px 20px rgba(0, 0, 0, .05);

    --shadow-md:
        0 20px 40px rgba(0, 0, 0, .08);

    --shadow-lg:
        0 30px 60px rgba(0, 0, 0, .12);

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;

    --transition: .3s ease;

}

/* ==========================================
   RESET
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: "Inter", sans-serif;

    background: var(--light);
    color: var(--text);

    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2 {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;

}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {

    width: min(1200px, 92%);
    margin: auto;

}

/* ==========================================
   PROGRESS BAR
   ========================================== */

#progress-bar {

    position: fixed;
    top: 0;
    left: 0;

    height: 4px;

    width: 0%;

    z-index: 999999;

    background:
        linear-gradient(90deg,
            var(--royal),
            var(--cyan));

}

/* ==========================================
   HEADER
   ========================================== */

header {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 9999;

    background:
        rgba(255, 255, 255, .9);

    backdrop-filter: blur(20px);

    border-bottom:
        1px solid rgba(0, 0, 0, .05);

}

.nav-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding: 10px 0;

}

.logo img {
    height: 80px;
}

nav {

    display: flex;
    gap: 28px;

}

nav a {

    color: var(--text);

    font-weight: 600;

    transition: var(--transition);

}

nav a:hover,
nav a.active {

    color: var(--royal);

}

nav a[href="/blog/blog.html"] {
    color: var(--royal);
    font-weight: 800;
}

.blog-link {
    color: var(--royal);
    font-weight: 800;
    position: relative;
}

.blog-link::after {
    content: "NEW";
    position: absolute;
    top: -12px;
    right: -28px;
    background: var(--gold);
    color: white;
    font-size: .65rem;
    padding: 3px 6px;
    border-radius: 999px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all .7s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 15px 32px;

    border-radius: 999px;

    font-weight: 700;

    transition: var(--transition);

}

.btn-primary {

    color: white;

    background:
        linear-gradient(135deg,
            var(--royal),
            var(--cyan));

    box-shadow:
        0 15px 30px rgba(29, 78, 216, .25);

}

.btn-primary:hover {

    transform: translateY(-3px);

}

.btn-cookie-secondary {

    border: 1px solid rgba(255, 255, 255, .2);

    background: transparent;

    color: white;

    padding: 15px 26px;

    border-radius: 999px;

    cursor: pointer;

    font-weight: 700;

}

/* ==========================================
   HERO
   ========================================== */

.blog-hero {

    padding: 4rem 0 3rem;

    background:
        linear-gradient(135deg,
            #0b1120 0%,
            #102a5c 50%,
            #0ea5e9 100%);

    color: white;

    text-align: center;

}

.blog-hero .container {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 1.5rem;
}

.hero-badge {

    display: inline-block;

    padding: 0.75rem 1rem;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .12);

    border:
        1px solid rgba(255, 255, 255, .2);

    line-height: 1.4;
    margin-top: 1rem;

    font-weight: 600;

    letter-spacing: .5px;



}


.blog-hero h1 {

    font-size:
        clamp(3rem, 6vw, 5.8rem);

    max-width: 1000px;

    margin: 0 auto 1rem;
    line-height: 1.1;



}

.blog-hero .hero-text {
    margin: 0 auto;
    max-width: 700px;
}

.hero-text {

    max-width: 850px;

    margin: 0 auto;

    font-size: 1.2rem;

    opacity: .92;

}

/* ==========================================
   SECTION HEADERS
   ========================================== */

section {
    padding: 4rem 0;
}

.section-header {

    text-align: center;

    margin-bottom: 2rem;

}

.section-label {

    display: inline-block;

    font-size: .9rem;

    color: var(--royal);

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 12px;

}

.section-header h2 {

    font-size:
        clamp(2rem, 4vw, 3.4rem);

    margin-bottom: 15px;

}

.section-header p {

    max-width: 700px;

    margin: auto;

    color: var(--muted);

}

/* ==========================================
   FEATURED ARTICLE
   ========================================== */

.featured-article {

    padding: 2.5rem 0;

}

.featured-grid {

    display: grid;

    grid-template-columns:
        1.2fr 1fr;

    gap: 60px;

    align-items: center;

}

.featured-image img {

    width: 100%;

    height: 550px;

    object-fit: cover;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);

}

.article-tag {

    display: inline-block;

    background:
        rgba(29, 78, 216, .12);

    color: var(--royal);

    padding: 10px 18px;

    border-radius: 999px;

    margin-bottom: 20px;

    font-weight: 700;

}

.featured-content h2 {

    font-size:
        clamp(2rem, 4vw, 3.2rem);

    line-height: 1.15;

    margin-bottom: 20px;

}

.featured-content p {

    color: var(--muted);

    margin-bottom: 30px;

}

/* ==========================================
   PILLAR GRID
   ========================================== */

.blog-pillars {

    padding: 3rem 0;

}

.pillar-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;

}

.pillar-grid a {

    background: white;

    padding: 32px;

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);

    color: inherit;

}

.pillar-grid a:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow-md);

}

.pillar-grid h3 {

    font-size: 1.3rem;

    margin-bottom: 15px;

}

.pillar-grid p {

    color: var(--muted);

}

/* ==========================================
   LATEST ARTICLES
   ========================================== */

.latest-articles {

    padding: 100px 0;

}

.articles-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;

}

.blog-card {

    background: white;

    border-radius: var(--radius-md);

    padding: 30px;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);

}

.blog-card:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow-md);

}

.card-category {

    display: inline-block;

    color: var(--royal);

    font-size: .85rem;

    font-weight: 700;

    margin-bottom: 15px;

}

.blog-card h3 {

    margin-bottom: 15px;

    line-height: 1.3;

}

.blog-card p {

    color: var(--muted);

    margin-bottom: 20px;

}

.blog-card a {

    color: var(--royal);

    font-weight: 700;

}

/* ==========================================
   POPULAR TOPICS
========================================== */

.popular-topics {

    padding: 100px 0;

    background: white;

}

.topics-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

}

.topic-card {

    background: var(--light);

    padding: 35px;

    border-radius: var(--radius-md);

    border: 1px solid var(--border);

    transition: var(--transition);

}

.topic-card:hover {

    transform: translateY(-6px);

    box-shadow: var(--shadow-md);

}

.topic-card h3 {

    margin-bottom: 20px;

    color: var(--navy);

    font-size: 1.3rem;

}

.topic-card ul {

    display: flex;

    flex-direction: column;

    gap: 12px;

}

.topic-card li {

    color: var(--muted);

    position: relative;

    padding-left: 18px;

}

.topic-card li::before {

    content: "";

    width: 8px;
    height: 8px;

    background: var(--royal);

    border-radius: 50%;

    position: absolute;

    left: 0;
    top: 12px;

}

.coming-soon {
    padding: 3rem 0;
}

/* ==========================================
   CONNECT WITH SAJID
========================================== */

.connect-section {

    padding: 2.5rem 0;

}

.connect-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;

}

.connect-image img {

    width: 100%;

    height: 650px;

    object-fit: cover;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);

}

.connect-content h2 {

    font-size: clamp(2rem, 4vw, 3.5rem);

    line-height: 1.15;

    margin-bottom: 25px;

}

.connect-content p {

    color: var(--muted);

    margin-bottom: 20px;

}

.connect-content .btn {

    margin-top: 15px;

}

/* ==========================================
   NEWSLETTER
========================================== */

.newsletter-section {

    padding: 100px 0;

}

.newsletter-card {

    background:
        linear-gradient(135deg,
            #0b1120,
            #102a5c,
            #0ea5e9);

    color: white;

    border-radius: 40px;

    text-align: center;

    padding: 80px 50px;

}

.newsletter-label {

    display: inline-block;

    margin-bottom: 20px;

    padding: 10px 20px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .12);

    border:
        1px solid rgba(255, 255, 255, .15);

    font-size: .85rem;

    font-weight: 700;

}

.newsletter-card h2 {

    font-size: clamp(2rem, 4vw, 3.5rem);

    margin-bottom: 20px;

}

.newsletter-card p {

    opacity: .9;

    max-width: 650px;

    margin: auto auto 35px;

}

.newsletter-form {

    display: flex;

    gap: 15px;

    justify-content: center;

    flex-wrap: wrap;

}

.newsletter-form input {

    width: 380px;

    max-width: 100%;

    padding: 16px 22px;

    border-radius: 999px;

    border: none;

    outline: none;

    font-size: 1rem;

}

.newsletter-form button {

    background: white;

    color: var(--navy);

    border: none;

    border-radius: 999px;

    padding: 16px 30px;

    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);

}

.newsletter-form button:hover {

    transform: translateY(-3px);

}

/* ==========================================
   TRUST SECTION
========================================== */

.trust-section {

    padding: 100px 0;

    background: white;

}

.trust-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;

}

.trust-card {

    background: var(--light);

    padding: 35px 25px;

    text-align: center;

    border-radius: var(--radius-md);

    transition: var(--transition);

}

.trust-card:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow-md);

}

.trust-icon {

    width: 70px;
    height: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    background:
        linear-gradient(135deg,
            var(--royal),
            var(--cyan));

    color: white;

    font-size: 1.8rem;

}

.trust-card h3 {

    margin-bottom: 15px;

}

.trust-card p {

    color: var(--muted);

}

/* ==========================================
   FOOTER
========================================== */

footer {

    background: #08101d;

    color: white;

    padding-top: 3rem;

}

.footer-top {

    display: grid;

    grid-template-columns: 1.2fr 2fr;

    gap: 60px;

}

.footer-brand img {

    height: 90px;

    margin-bottom: 20px;

}

.footer-brand p {

    color: rgba(255, 255, 255, .75);

}

.footer-links {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 40px;

}

.footer-column h4 {

    margin-bottom: 20px;

    color: white;

}

.footer-column a {

    display: block;

    margin-bottom: 12px;

    color: rgba(255, 255, 255, .7);

    transition: var(--transition);

}

.footer-column a:hover {

    color: var(--cyan);

}

.footer-pill-row {

    margin: 50px 0;

    display: flex;

    flex-wrap: wrap;

    gap: 15px;

}

.footer-pill-row span {

    padding: 12px 18px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .08);

}

.footer-divider {

    width: 100%;
    height: 1px;

    background:
        rgba(255, 255, 255, .1);

    margin-bottom: 25px;

}

.footer-bottom {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    flex-wrap: wrap;

    color:
        rgba(255, 255, 255, .55);

}

/* ==========================================
   COOKIE BANNER
========================================== */

.cookie-banner {

    position: fixed;

    bottom: 20px;

    left: 20px;

    right: 20px;

    max-width: 1100px;

    margin: auto;

    display: none;

    align-items: center;

    gap: 20px;

    padding: 25px;

    border-radius: 24px;

    background:
        rgba(11, 17, 32, .97);

    backdrop-filter: blur(20px);

    color: white;

    z-index: 999999;

    box-shadow:
        0 30px 70px rgba(0, 0, 0, .4);

}

.cookie-icon {

    font-size: 2rem;

    flex-shrink: 0;

}

.cookie-text {

    flex: 1;

}

.cookie-text h4 {

    margin-bottom: 8px;

}

.cookie-text p {

    color:
        rgba(255, 255, 255, .85);

    font-size: .95rem;

}

.cookie-text a {

    color: var(--cyan);

}

.cookie-actions {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

}

/* ==========================================
   BACK TO TOP
========================================== */

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(135deg,
            var(--royal),
            var(--cyan));
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 15px 35px rgba(29, 78, 216, 0.35);

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease;

    z-index: 9999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}


/* ===================================
   MOBILE BURGER MENU
=================================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--navy);
    cursor: pointer;
    padding: 10px;
    line-height: 1;
}

.mobile-nav {
    position: fixed;
    top: 85px;
    /* match header height */
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

    display: flex;
    flex-direction: column;

    max-height: 0;
    overflow: hidden;

    transition: max-height .3s ease;
    z-index: 998;
}

.mobile-nav.open {
    max-height: 100vh;
}

.mobile-nav a {
    padding: 18px 24px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav a:hover {
    background: #f8fafc;
}

.mobile-blog {
    color: var(--royal) !important;
    font-weight: 800 !important;
}


/* ==========================================
   MOBILE OPTIMISATION
========================================== */
@media (max-width: 992px) {
    nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-container>.btn {
        display: none;
    }

    .logo img {
        height: 60px;
    }
}

@media (max-width: 768px) {

    .container {
        width: 92%;
        max-width: 100%;
    }

    .logo img {
        height: 60px;
    }

    .blog-hero {
        padding: 120px 0 40px;
    }

    .blog-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-text {
        font-size: 1rem;
    }

    nav {
        display: none;
    }



    .nav-container .btn-primary {
        display: none;
    }

    .featured-grid,
    .connect-grid,
    .pillar-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid {
        gap: 2rem;
    }

    .featured-content,
    .connect-content {
        text-align: center;
    }

    .featured-image img {
        height: 280px;
    }

    .connect-image img {
        height: 320px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand img {
        height: 70px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: .75rem;
    }

    .footer-pill-row {
        justify-content: center;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-actions button {
        width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}