/* ==========================================================
   GLOBAL RESET
========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #ffffff;
    overflow-x: hidden;
}

/* ==========================================================
   ANNOUNCEMENT BANNER POSITIONING
========================================================== */
.announcement-section {
    width: 100%;
    position: relative;
    top: 90px !important;
    z-index: 9999;
}

/* ==========================================================
   BASE BANNER STYLING
========================================================== */
.system-banner {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: white;
}

.system-banner marquee {
    font-size: 15px;
    font-weight: 600;
}

/* ==========================================================
   COLOR STATES
========================================================== */

/* OPEN (GREEN) */
.system-banner.open {
    background: #0A8A23;
    color: white;
}

/* CLOSED (RED) */
.system-banner.closed {
    background: #C40000;
    color: white;
}

/* OPENING SOON (YELLOW) */
.system-banner.opening-soon {
    background: #F1C400;
    color: black;
}

/* CLOSING SOON (ORANGE) */
.system-banner.closing-soon {
    background: #FF7A00;
    color: white;
}

/* MAINTENANCE (GOLD) */
.system-banner.maintenance {
    background: #C8A200;
    color: black;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 768px) {
    .announcement-section {
        top: 65px !important;
    }
    .system-banner {
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    .announcement-section {
        top: 75px !important;
    }
    .system-banner {
        padding: 14px 0;
    }
    .system-banner marquee {
        font-size: 14px;
    }
}

.announcement-section {
    position: relative;
    top: 70px !important; /* sits under navbar */
    z-index: 8000 !important;
}

/* When mobile menu drops, push banner downward */
.mobile-menu.show + .announcement-section {
    top: 390px !important;   /* adjust if menu height changes */
}



/* =====================================
   HERO SLIDER (Professional Version)
===================================== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 78vh;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-slider .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-slider .content {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 650px;
}

.hero-slider h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero-slider p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-btn {
    background: gold;
    padding: 14px 35px;
    border-radius: 35px;
    color: #000;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    transition: 0.3s;
}

.hero-btn:hover {
    background: #ffdd55;
}

/* =====================================
   ARROWS
===================================== */
.hero-slider .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,215,0,0.85);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 10;
}

.hero-slider .arrow:hover {
    background: #ffe680;
}

.arrow.left { left: 20px; }
.arrow.right { right: 20px; }

/* =====================================
   DOTS (Slider Indicators)
===================================== */
.dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background: white;
    opacity: 0.5;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: gold;
    opacity: 1;
    transform: scale(1.2);
}

/* =====================================
   RESPONSIVE DESIGN — IMPROVED
===================================== */

/* Tablets */
@media (max-width: 900px) {

    /* Reduce height */
    .hero-slider {
        height: 60vh;
    }

    /* Text */
    .hero-slider h1 {
        font-size: 28px;
    }

    .hero-slider p {
        font-size: 14px;
        margin-bottom: 18px;
    }

    /* Button */
    .hero-btn {
        padding: 10px 26px;
        font-size: 14px;
    }

    /* Arrows smaller */
    .hero-slider .arrow {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .arrow.left { left: 12px; }
    .arrow.right { right: 12px; }
}


/* Phones */
@media (max-width: 600px) {

    /* Shorter section */
    .hero-slider {
        height: 48vh;
    }

    /* Better cropping for small screens */
    .hero-slider .slide {
        background-size: cover;
        background-position: top center;
    }

    /* Text scaling */
    .hero-slider h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .hero-slider p {
        font-size: 13px;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    /* Button */
    .hero-btn {
        padding: 9px 22px;
        font-size: 13px;
    }

    /* Arrows smallest */
    .hero-slider .arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .arrow.left { left: 10px; }
    .arrow.right { right: 10px; }

    /* Dots closer + smaller */
    .dots {
        bottom: 12px;
    }

    .dot {
        width: 9px;
        height: 9px;
        margin: 0 3px;
    }
}


/* Very Small Phones (iPhone SE / 360px width) */
@media (max-width: 380px) {

    .hero-slider {
        height: 42vh;
    }

    .hero-slider h1 {
        font-size: 20px;
    }

    .hero-slider p {
        font-size: 12px;
    }

    .hero-btn {
        padding: 8px 20px;
        font-size: 12px;
    }

    .hero-slider .arrow {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}




/* =====================================
   CLEQUA 360 FEATURE BAR
===================================== */

.clequa360-feature-bar {
    width: 100%;
    padding: 50px 0;
    display: flex;
    justify-content: center;
}

.feature-wrapper {
    width: 90%;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    text-align: center;
}

/* Feature Items */
.feature-item {
    grid-column: span 1;
    padding: 10px;
}

.feature-icon {
    font-size: 34px;
    color: #134f5c;
    margin-bottom: 10px;
}

.feature-item h4 {
    font-size: 17px;
    font-weight: 700;
    color: #134f5c;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* Vertical Divider */
.feature-divider {
    width: 1px;
    height: 60px;
    background: #d8d8d8;
    margin: auto;
}

/* =====================================
   RESPONSIVE – TABLETS (2 PER ROW)
===================================== */

@media (max-width: 900px) {
    .feature-wrapper {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 20px;
        column-gap: 10px;
        padding: 25px;
    }

    .feature-divider {
        display: none;
    }
}

/* =====================================
   RESPONSIVE – SMALL MOBILE (2 PER ROW)
===================================== */

@media (max-width: 600px) {
    .feature-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px 15px;
    }

    .feature-item {
        padding: 12px 5px;
    }

    .feature-item h4 {
        font-size: 16px;
    }

    .feature-icon {
        font-size: 30px;
    }

    .feature-divider {
        display: none;
    }
}

/* =====================================
   VERY SMALL DEVICES
===================================== */

@media (max-width: 400px) {
    .feature-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-item p {
        font-size: 13px;
    }
}


/* =====================================
   CATEGORY SECTION — PREMIUM UI
===================================== */

.category-section {
    width: 100%;
    padding: 70px 0;
    background: #fff;
}

.category-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #000;
}

.category-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 15px;
}

/* GRID — 4 PER ROW */
.category-grid {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* CATEGORY CARD */
.category-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #eee;
    transition: 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

/* IMAGE */
.category-img-box {
    width: 100%;
    height: 170px;
}

.category-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTENT */
.category-info {
    padding: 18px 15px 22px;
    text-align: center;
}

.category-info h3 {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

/* INLINE BADGE + BUTTON */
.cat-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

/* BADGES */
.cat-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* GREEN BADGE — IN STOCK */
.in-stock {
    background: #d8ffe3;
    color: #089635;
    border: 1px solid #a3efbc;
}

/* RED BADGE — OUT OF STOCK */
.out-of-stock {
    background: #ffe1e1;
    color: #c93535;
    border: 1px solid #f2b4b4;
}

/* BUY BUTTON */
.cat-btn {
    padding: 6px 14px;
    background: gold;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #000;
    white-space: nowrap;
    transition: 0.2s ease;
}

.cat-btn:hover {
    background: #ffdb52;
}

/* INACTIVE CARD */
.category-inactive {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =====================================
   RESPONSIVE — ALWAYS 2 PER ROW ON MOBILE
===================================== */

/* Tablets & Mobile */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .category-img-box {
        height: 150px;
    }
}

/* Phones */
@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 94%;
        margin: auto;
        gap: 18px;
    }

    .category-card {
        border-radius: 14px;
    }

    .category-img-box {
        height: 130px;
    }
}

/* Extra Small Phones */
@media (max-width: 400px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .category-img-box {
        height: 120px;
    }

    .category-info h3 {
        font-size: 14px;
    }

    .cat-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* =====================================
   HOW TO BUY DATA — NEW DESIGN
===================================== */

.howto-section {
    width: 100%;
    padding: 90px 0;
    background: #fafafa;
    text-align: center;
}

.howto-title {
    font-size: 32px;
    font-weight: 800;
    color: #000;
}

.howto-subtitle {
    max-width: 600px;
    margin: 10px auto 60px;
    color: #666;
    font-size: 15px;
}

.howto-grid {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* NEW CARD DESIGN */
.howto-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 22px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s cubic-bezier(.25,.8,.25,1);
}

.howto-icon {
    width: 75px;
    height: 75px;
    background: gold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(255,194,0,0.4);
}

.howto-icon i {
    font-size: 28px;
    color: #000;
}

.howto-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.howto-card p {
    font-size: 14px;
    color: #555;
}



/* =====================================
   ANIMATION STATES
===================================== */

.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Slide from left */
.animate-left {
    transform: translateX(-80px);
}

/* Slide from right */
.animate-right {
    transform: translateX(80px);
}

/* Slide from bottom */
.animate-bottom {
    transform: translateY(80px);
}

/* Fade */
.animate-fade {
    opacity: 0;
}



/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 900px) {
    .howto-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 600px) {
    .howto-grid {
        grid-template-columns: 1fr;
        width: 92%;
    }
}
