/* ===================================
   Graphin8 - Landing Page Theme (2025 Refined)
   File: landingpage/assets/css/landingpage.css
   =================================== */

:root {
    --g8-navy: #060a20;
    --g8-navy-light: #0f1738;
    --g8-blue: #1F3C88;
    --g8-cyan: #5893D4;
    --g8-orange: #F7B633;
    --g8-orange-hover: #e69a2b;
    --g8-text-main: #e6eefb;
    --g8-text-muted: #94a3b8;
    --g8-border: rgba(255, 255, 255, 0.08);
    --g8-glass: rgba(15, 23, 56, 0.6);
    --g8-radius: 20px;
}

/* Base Resets */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--g8-navy);
    color: var(--g8-text-main);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.w-100 {
    width: 100%;
}

.g8-Section {
    padding: 100px 0;
    position: relative;
}

.g8-Section-Header {
    margin-bottom: 60px;
}

.g8-Subheading {
    color: var(--g8-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.g8-Heading {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.g8-Line {
    width: 60px;
    height: 4px;
    background: var(--g8-orange);
    margin: 0 auto;
    border-radius: 2px;
}

/* Grids */
.g8-Grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Buttons --- */
.g8-Btn-Primary {
    background: var(--g8-orange);
    color: var(--g8-navy);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--g8-orange);
}

.g8-Btn-Primary:hover {
    background: var(--g8-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(247, 182, 51, 0.2);
}

.g8-Btn-Glass {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: anchor-center;
}

.g8-Btn-Glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.g8-Btn-Outline-Sm {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--g8-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--g8-cyan);
    margin-top: auto;
}

.g8-Btn-Outline-Sm:hover {
    background: var(--g8-cyan);
    color: #fff;
}

/* ===========================
   1. HERO SECTION
   =========================== */
.g8-Hero-Section {
    position: relative;
    padding: 160px 0 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.g8-Hero-Glow {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(31, 60, 136, 0.4) 0%, transparent 70%);
    filter: blur(80px);
    animation: pulseGlow 8s infinite alternate;
    z-index: 0;
}

@keyframes pulseGlow {
    from {
        opacity: 0.5;
        transform: scale(1);
    }

    to {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.g8-Particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.g8-Hero-Content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.g8-Badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(88, 147, 212, 0.1);
    border: 1px solid rgba(88, 147, 212, 0.3);
    color: var(--g8-cyan);
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 25px;
}

.g8-Hero-Heading {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.g8-TextGradient {
    background: linear-gradient(90deg, var(--g8-cyan), #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    /* For Safari & Chrome */
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* For Safari */
    position: relative;
}

/* Blinking Cursor for Typewriter */
.g8-TextGradient::after {
    content: "|";
    color: var(--g8-orange);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.g8-Hero-Desc {
    font-size: 1.25rem;
    color: var(--g8-text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.g8-Hero-Desc strong {
    color: var(--g8-orange);
}

.g8-Hero-Actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===========================
   2. MARQUEE SECTION
   =========================== */
.g8-Marquee-Section {
    background: linear-gradient(90deg, var(--g8-navy) 0%, var(--g8-navy-light) 50%, var(--g8-navy) 100%);
    border-top: 1px solid var(--g8-border);
    border-bottom: 1px solid var(--g8-border);
    padding: 30px 0;
    overflow: hidden;
    user-select: none;
}

.g8-Marquee-Track {
    display: flex;
    width: fit-content;
    animation: scrollLeft 30s linear infinite;
}

.g8-Marquee-Content {
    display: flex;
    align-items: center;
    padding-right: 50px;
}

.mq-item {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.03);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    transition: 0.3s;
}

.mq-item:hover {
    color: var(--g8-cyan);
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 20px rgba(88, 147, 212, 0.5);
}

.mq-sep {
    margin: 0 50px;
    color: var(--g8-orange);
    display: flex;
}

.mq-sep svg {
    width: 32px;
    height: 32px;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===========================
   2.5 ABOUT SECTION
   =========================== */
.g8-About-Section {
    background: linear-gradient(180deg, var(--g8-navy) 0%, var(--g8-navy-light) 100%);
    overflow: hidden;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--g8-border);
}

.g8-About-Grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.g8-About-Desc {
    font-size: 1.1rem;
    color: var(--g8-text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 550px;
}

/* Stats Styling */
.g8-About-Stats {
    display: flex;
    gap: 50px;
    border-top: 1px solid var(--g8-border);
    padding-top: 30px;
    margin-bottom: 30px;
}

.g8-Stat-Item {
    display: flex;
    flex-direction: column;
}

.g8-Stat-Number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.g8-Stat-Label {
    font-size: 0.8rem;
    color: var(--g8-orange);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Visual Card (Glassmorphism Code Editor) */
.g8-About-Visual {
    position: relative;
    padding: 20px;
}

.g8-Visual-Card {
    background: rgba(15, 23, 56, 0.6);
    /* Semi-transparent navy */
    border: 1px solid var(--g8-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    backdrop-filter: blur(12px);
    /* 3D Tilt Effect */
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.g8-Visual-Card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Code Window Header */
.g8-Code-Header {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

/* Code Content */
.g8-Code-Body {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1.1rem;
    color: #a9b7c6;
    line-height: 1.6;
}

.code-line {
    display: block;
}

.indent {
    padding-left: 20px;
}

.double-indent {
    padding-left: 40px;
}

/* Syntax Highlighting Colors */
.c-purple {
    color: #cc7832;
    font-weight: bold;
}

/* Keywords */
.c-yellow {
    color: #ffc66d;
}

/* Class names */
.c-green {
    color: #6a8759;
}

/* Strings */
.c-blue {
    color: #9876aa;
}

/* Variables */

/* Floating Verified Badge */
.g8-Floating-Badge {
    position: absolute;
    bottom: -25px;
    right: -30px;
    background: var(--g8-orange);
    color: var(--g8-navy);
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(247, 182, 51, 0.3);
    border: 2px solid #fff;
    animation: floatBadge 4s ease-in-out infinite;
    z-index: 5;
}

.g8-Floating-Badge svg {
    width: 20px;
    height: 20px;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===========================
   3. FEATURES SECTION
   =========================== */
.g8-Features-Section {
    padding-top: 80px;
    background: linear-gradient(180deg,
            var(--g8-navy-light) 0%,
            #0b1130 100%);
}

.g8-Feature-Card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--g8-border);
    padding: 30px;
    border-radius: var(--g8-radius);
    transition: 0.3s;
    text-align: left;
}

.g8-Feature-Card:hover {
    transform: translateY(-10px);
    border-color: var(--g8-cyan);
    background: rgba(255, 255, 255, 0.05);
}

.g8-IconBox {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.color-1 {
    background: rgba(88, 147, 212, 0.15);
    color: var(--g8-cyan);
}

.color-2 {
    background: rgba(247, 182, 51, 0.15);
    color: var(--g8-orange);
}

.color-3 {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.g8-Feature-Card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.g8-Feature-Card p {
    color: var(--g8-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ===========================
   3.5 SERVICES SECTION
   =========================== */
.g8-Services-Section {
    background:
        radial-gradient(circle at top right,
            rgba(88, 147, 212, 0.12),
            transparent 40%),
        linear-gradient(180deg,
            #070b22 0%,
            var(--g8-navy) 100%);
    /* Seamless background */
    position: relative;
    /* Optional: Add a subtle separator if needed */
    /* border-top: 1px solid var(--g8-border); */
}

.g8-Services-Grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.g8-Service-Card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--g8-border);
    padding: 35px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.g8-Service-Card:hover {
    background: var(--g8-navy-light);
    border-color: var(--g8-orange);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.g8-Svc-Icon {
    width: 60px;
    height: 60px;
    background: rgba(88, 147, 212, 0.1);
    color: var(--g8-cyan);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.g8-Svc-Icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.g8-Service-Card:hover .g8-Svc-Icon {
    background: var(--g8-orange);
    color: var(--g8-navy);
    transform: scale(1.1) rotate(-5deg);
}

.g8-Service-Card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
}

.g8-Service-Card p {
    color: var(--g8-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   4. COURSES SECTION (Creative "Compiling" State)
   =========================== */
.g8-Courses-Section {
    background:
        linear-gradient(180deg,
            var(--g8-navy-light) 0%,
            rgba(15, 23, 56, 0.9) 100%);
}

/* The Container Box */
.g8-Course-Placeholder {
    background: rgba(15, 23, 56, 0.4);
    /* Subtle transparent dark */
    border: 1px dashed var(--g8-orange);
    /* dashed border looks like a blueprint */
    border-radius: 30px;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Glowing Background Effect */
.g8-Placeholder-Glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(247, 182, 51, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

/* Content Wrapper */
.g8-Placeholder-Content {
    position: relative;
    z-index: 2;
}

/* Pulsing Icon */
.g8-Icon-Pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(247, 182, 51, 0.1);
    border: 1px solid var(--g8-orange);
    color: var(--g8-orange);
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(247, 182, 51, 0.2);
    animation: pulseSoft 3s infinite;
}

.g8-Icon-Pulse svg {
    width: 40px;
    height: 40px;
}

@keyframes pulseSoft {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(247, 182, 51, 0.2);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 40px rgba(247, 182, 51, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(247, 182, 51, 0.2);
    }
}

/* Typography Overrides for this section */
.g8-Course-Placeholder h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 20px;
}

/* ===========================
   5. BLOG CARD (Square & Offset Style)
   =========================== */
.g8-Blog-Section {
    background: linear-gradient(180deg,
            #050817 0%,
            #0a102b 100%);
}

/* Card Container - Now acts as a transparent wrapper */
.g8-Blog-Card {
    background: transparent;
    /* Transparent so body width defines the look */
    border: none;
    border-radius: 0;
    overflow: visible;
    /* Changed to visible so shadow doesn't clip if we add one */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Hover State: Lift the whole wrapper */
.g8-Blog-Card:hover {
    transform: translateY(-10px);
    /* Background change moved to .g8-Card-Body */
}

/* Image Wrapper - Remains Full Width */
.g8-Blog-Img-Wrap {
    height: 240px;
    width: 100%;
    /* Image is full width */
    position: relative;
    overflow: hidden;
    /* Removed border-bottom so it looks seamless with the body */
}

.g8-Blog-Img-Wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Zoom Image on Hover */
.g8-Blog-Card:hover .g8-Blog-Img-Wrap img {
    transform: scale(1.1);
}

/* Card Body - The narrower, styled box */
.g8-Card-Body {
    width: 95%;
    /* This makes it smaller than the image */
    background: var(--g8-navy-light);
    border: 1px solid var(--g8-border);
    border-top: none;
    /* Connects visually to image, or keeps it clean */
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
    align-self: flex-start;
    /* Aligns the box to the left */
}

/* Date/Meta Section */
.g8-Blog-Meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--g8-text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.g8-Blog-Meta i,
.g8-Blog-Meta svg {
    width: 16px;
    height: 16px;
}

/* Title */
.g8-Blog-Title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 800;
}

.g8-Blog-Title a {
    color: #fff;
    transition: color 0.3s;
}

/* Read More Link */
.g8-Blog-Link {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s, color 0.3s;
}

/* --- HOVER EFFECTS (Targeting Card Body now) --- */

/* Change Body Background to Orange on Hover */
.g8-Blog-Card:hover .g8-Card-Body {
    background: var(--g8-orange);
    border-color: var(--g8-orange);
    box-shadow: 0 20px 40px rgba(247, 182, 51, 0.2);
}

/* Change Text Colors to Navy */
.g8-Blog-Card:hover .g8-Blog-Meta {
    color: rgba(6, 10, 32, 0.7);
}

.g8-Blog-Card:hover .g8-Blog-Title a {
    color: var(--g8-navy);
}

.g8-Blog-Card:hover .g8-Blog-Excerpt {
    color: var(--g8-navy);
}

.g8-Blog-Card:hover .g8-Blog-Link {
    color: var(--g8-navy);
    gap: 12px;
}

/* ===========================
   VIEW ALL ARTICLES BUTTON (Centered & Styled)
   =========================== */
.g8-Btn-ViewAll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    /* Fixes full width issue */
    min-width: 220px;
    background: transparent;
    border: 1px solid var(--g8-border);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.g8-Btn-ViewAll:hover {
    background: var(--g8-orange);
    border-color: var(--g8-orange);
    color: var(--g8-navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(247, 182, 51, 0.2);
}

/* ===========================
   6. TESTIMONIALS
   =========================== */
.g8-Testimonial-Section {
    background:
        radial-gradient(circle at center,
            rgba(247, 182, 51, 0.10),
            transparent 45%),
        linear-gradient(180deg,
            var(--g8-navy) 0%,
            var(--g8-navy-light) 100%);
}

.g8-Slider-Outer {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    display: flex;
    align-items: center;
}

.g8-Testimonial-Track-Wrapper {
    overflow: hidden;
    width: 100%;
}

.g8-Testimonial-Track {
    display: flex;
    transition: transform 0.5s ease;
}

.g8-Testimonial-Card {
    flex: 0 0 100%;
    padding: 40px;
    background: var(--g8-glass);
    border-radius: var(--g8-radius);
    border: 1px solid var(--g8-border);
    text-align: center;
}

.g8-Quote-Icon {
    color: var(--g8-orange);
    font-size: 2rem;
    margin-bottom: 20px;
}

.g8-Testimonial-Card p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.6;
}

.g8-Author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: left;
}

.g8-Avatar {
    width: 50px;
    height: 50px;
    background: var(--g8-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.g8-Slider-Nav {
    background: transparent;
    border: 1px solid var(--g8-border);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
    margin: 0 10px;
}

.g8-Slider-Nav:hover {
    background: var(--g8-orange);
    color: #000;
    border-color: var(--g8-orange);
}



/* ===========================
FAQ ACCORDION STYLES
=========================== */

/* Section Layout */
.g8-FAQ-Section {
    background: linear-gradient(180deg,
            #070b22 0%,
            #050817 100%);
    padding: 100px 0;
}

.g8-FAQ-Container {
    max-width: 850px;
    margin: 0 auto;
}

/* Individual FAQ Item */
.g8-FAQ-Item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--g8-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Hover State */
.g8-FAQ-Item:hover {
    border-color: rgba(255, 107, 1, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* Active/Opened State */
.g8-FAQ-Item.active {
    border-color: var(--g8-orange, #ff6b01);
    background: rgba(255, 107, 1, 0.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Header/Question Area */
.g8-FAQ-Header {
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.g8-FAQ-Header h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
    padding-right: 20px;
}

/* Icon Styling */
.g8-FAQ-Icon {
    width: 20px;
    height: 20px;
    color: var(--g8-text-muted, #a0a0a0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
    flex-shrink: 0;
}

/* Active Header Changes */
.g8-FAQ-Item.active .g8-FAQ-Header h3 {
    color: var(--g8-orange, #ff6b01);
}

.g8-FAQ-Item.active .g8-FAQ-Icon {
    transform: rotate(180deg);
    color: var(--g8-orange, #ff6b01);
}

/* Accordion Body (The magic part)  */
.g8-FAQ-Body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Content inside the body */
.g8-FAQ-Body p {
    padding: 0 30px 25px 30px;
    margin: 0;
    color: var(--g8-text-muted, #a0a0a0);
    line-height: 1.8;
    font-size: 1rem;
}




/* ===========================
   7. NEW FULL WIDTH NEWSLETTER (FlyWeb Style)
   =========================== */
.g8-FullWidth-Newsletter {
    position: relative;
    padding: 100px 0;
    background:
        radial-gradient(circle at top,
            rgba(31, 60, 136, 0.25),
            transparent 55%),
        linear-gradient(180deg,
            var(--g8-navy-light) 0%,
            var(--g8-navy) 100%);
    border-top: 1px solid var(--g8-border);
    overflow: hidden;
}

.g8-FW-Glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(31, 60, 136, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.g8-FW-Newsletter-Wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--g8-border);
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.g8-FW-Content {
    flex: 1;
    text-align: left;
}

.g8-FW-Content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.g8-FW-Content p {
    font-size: 1.1rem;
    color: var(--g8-text-muted);
    max-width: 500px;
}

.g8-FW-Form-Wrap {
    flex: 1.2;
}

.g8-Input-Group {
    display: flex;
    background: #0f1738;
    border: 1px solid var(--g8-border);
    border-radius: 50px;
    padding: 5px;
    align-items: center;
    transition: 0.3s;
}

.g8-Input-Group:focus-within {
    border-color: var(--g8-cyan);
    box-shadow: 0 0 15px rgba(88, 147, 212, 0.3);
}

.g8-Input-Icon {
    color: var(--g8-text-muted);
    margin-left: 20px;
}

.g8-Input-Wide {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 15px;
    font-size: 1rem;
    outline: none;
}

/* Scroll Animation Class */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .g8-Contact-Grid {
        grid-template-columns: 1fr;
    }

    .g8-Hero-Content {
        text-align: center;
        margin: 0 auto;
    }

    .g8-Hero-Actions {
        justify-content: center;
    }

    .g8-About-Grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: left;
    }

    .g8-Visual-Card {
        transform: none;
        margin-top: 20px;
    }

    .g8-About-Stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .g8-Floating-Badge {
        right: 0;
    }

    /* Newsletter Section Adjustments */
    .g8-FW-Newsletter-Wrapper {
        flex-direction: column;
        text-align: center;
        padding: 40px;
        gap: 30px;
    }

    .g8-FW-Content {
        text-align: center;
    }

    .g8-FW-Content p {
        max-width: 100%;
        /* Allows text to span the width */
        margin: 0 auto 15px;
    }

    .g8-FW-Form-Wrap {
        width: 100%;
        max-width: 600px;
    }

}

@media (max-width: 768px) {
    .mq-item {
        font-size: 2.5rem;
    }

    .g8-Heading {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .g8-FAQ-Header {
        padding: 18px 20px;
    }

    .g8-FAQ-Header h3 {
        font-size: 1rem;
    }

    .g8-FAQ-Body p {
        padding: 0 20px 20px 20px;
        font-size: 0.95rem;
    }

    /* Testimonials Section Adjustments */
    .g8-Slider-Outer {
        margin-top: 20px;
    }

    .g8-Testimonial-Card {
        padding: 30px 20px;
    }

    .g8-Testimonial-Card p {
        font-size: 1rem;
        /* Smaller text for mobile readability */
        margin-bottom: 20px;
    }

    .g8-Slider-Nav {
        display: none;
        /* Hide side arrows on mobile to save horizontal space */
    }

    /* Newsletter Section Adjustments */
    .g8-FW-Content h2 {
        font-size: 1.8rem;
    }

    .g8-FW-Newsletter-Wrapper {
        padding: 40px 20px;
        border-radius: 20px;
    }
}

/* Extra Small Devices (Small Phones - 480px) */
@media (max-width: 480px) {

    /* Stack the Newsletter Input and Button */
    .g8-Input-Group {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 15px;
        padding: 0;
    }

    .g8-Input-Wide {
        background: #0f1738;
        border: 1px solid var(--g8-border);
        border-radius: 30px;
        width: 100%;
        padding: 12px 20px;
        text-align: center;
    }

    .g8-Input-Icon {
        display: none;
        /* Hide icon on very small screens to simplify */
    }

    .g8-FW-Form-Wrap .g8-Btn-Primary {
        width: 100%;
        /* Full width button for easier tapping */
        justify-content: center;
    }

    /* Adjust Testimonial Author layout */
    .g8-Author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }


}