:root {
    --bg-color: #f8f9fa;
    /* Light mode background */
    --text-color: #050505;
    /* Blue from logo */
    --accent-blue: #427AA1;
    /* Green from logo */
    --accent-yellow: #eb962d;
    /* Yellow from logo */
    --font-serif: 'Zain', serif;
    /* Arabic font */
    --font-sans: 'Zain', sans-serif;
    /* Arabic font */
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    display: block;
    direction: rtl;
    /* RTL support */
    padding: 0;
    /* Remove padding */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* Removed borders, radius, padding, box-shadow as requested */
    background-color: transparent;
    overflow: visible;
    /* Allow content to flow */
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 10px 20px 20px 20px;
    /* Keep some padding for content spacing */
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    z-index: 13;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo {
    display: none;
}

.logo-symbol {
    height: 50px;
    width: auto;
}

.logo-text {
    height: 35px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-color);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 150px;
    position: relative;
    /* Ensure absolute positioning works for arrow */
    min-height: 550px;
    /* Ensure enough height for arrow positioning */
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 60px;
    padding-left: 20px;
    position: relative;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.flower-green {
    color: var(--accent-blue);
}

.flower-icon {
    display: inline-block;
    font-size: 0.8em;
    vertical-align: middle;
    margin: 0 5px;
    color: #ddd;
    /* Or specific color if needed */
}

.subtext {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 400px;
}

.cta-button {
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    width: fit-content;
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    z-index: 11;
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: var(--accent-yellow);
}

.scroll-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    /* Left position works for RTL */
    font-size: 4.5rem;
    font-weight: 300;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    /* Ensure it appears above other elements */
}

.scroll-indicator:hover {
    transform: translateY(5px);
    opacity: 0.7;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background-color: var(--accent-blue);
    /* Fallback color */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    /* Increased height as requested */
}

.image-container {
    width: 100%;
    height: 550px;
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    /* Helps integrate the illustration if it has a white bg, though we generated full color */
    /* Since we generated a full illustration, we might not need multiply, let's see */
    mix-blend-mode: normal;
}

/* Add some texture to the image container if needed */
.hero-visual::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
}


/* --- Section 2: Trusted By --- */
.trusted-by {
    margin-top: 80px;
    margin-bottom: 80px;
    text-align: center;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    padding: 40px 0;
}

.trusted-by p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.logos span {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #444;
    font-weight: 900;
}

/* --- Section 3: Curated Topics --- */
.topics-section {
    margin-bottom: 100px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Fixed alignment */
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
}

.view-all {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.view-all:hover {
    border-color: var(--accent-blue);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.topic-card {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 180px;
    /* Fixed height for alignment */
}

.product-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.topic-card:hover {
    transform: translateY(-5px);
    border-color: #333;
}

.topic-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.topic-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: var(--font-serif);
    color: #fff;
    /* Fixed contrast */
    flex-grow: 1;
    /* Push quote count to bottom */
}

.topic-card p {
    color: #ccc;
    /* Fixed contrast */
    font-size: 0.9rem;
    margin-top: auto;
    /* Align to bottom */
}

/* Details Button in Product Cards */
.details-btn {
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin: 15px auto 0 auto;
    transition: all 0.3s ease;
    width: fit-content;
    display: block;
}

.details-btn:hover {
    background-color: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 122, 161, 0.3);
}

/* Topic Colors */
.topic-card.purple .topic-icon {
    color: var(--accent-blue);
}

.topic-card.green .topic-icon {
    color: var(--accent-blue);
}

.topic-card.yellow .topic-icon {
    color: var(--accent-yellow);
}

.topic-card.pink .topic-icon {
    color: #ff8fa3;
}

/* --- Section 4: Trending Quotes --- */
.trending-section {
    margin-bottom: 100px;
}

.controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #000;
    /* Fixed border color */
    background: transparent;
    color: #000;
    /* Fixed icon color */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

.control-btn:hover {
    background: #000;
    color: #fff;
}

.trending-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
    /* Firefox */
}

.trending-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.quote-card {
    min-width: 350px;
    background-color: #151515;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 30px;
    color: #eee;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    color: #888;
}

.quote-author span {
    font-size: 0.9rem;
    color: #aaa;
}

/* --- Section 5: Author Spotlight --- */
.author-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 120px;
    align-items: center;
    background-color: var(--card-bg);
    /* Light mode card bg */
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.spotlight-content {
    display: flex;
    flex-direction: column;
}

.tag {
    background-color: #f0f0f0;
    /* Light mode tag */
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 900;
    width: fit-content;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spotlight-content h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--text-color);
}

.bio {
    color: #555;
    /* Darker text for light mode */
    line-height: 1.6;
    margin-bottom: 30px;
}

.top-quotes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.mini-quote {
    border-right: 3px solid var(--accent-blue);
    padding-right: 15px;
    font-style: italic;
    color: #333;
    /* Darker text */
}

.cta-button.outline {
    background-color: transparent;
    border: 1px solid #000;
    /* Dark border */
    color: #000;
}

.cta-button.outline:hover {
    background-color: #000;
    color: #fff;
}

.spotlight-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background-color: var(--accent-blue);

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.spotlight-logo {
    width: 250px;
    height: auto;
    filter: brightness(0) invert(1);
    /* Make logo white */
    opacity: 0.9;
}

/* --- Section 6: Daily Inspiration --- */
.daily-inspiration {
    position: relative;
    padding: 100px 40px;
    text-align: center;
    margin-bottom: 120px;
    border-radius: 30px;
    overflow: hidden;
    background-color: #fff;
    /* Light mode */
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.inspiration-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.inspiration-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flower-icon.large {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.iso-badge {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.massive-quote {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
    max-width: 900px;
    color: var(--text-color);
}

.quote-source {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

/* --- Section 7: Membership --- */
.membership-section {
    margin-bottom: 120px;
}

.section-header.center {
    display: block;
    /* Fix for centering */
    text-align: center;
    margin-bottom: 60px;
}

.section-header.center p {
    color: #666;
    margin-top: 10px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background-color: #fff;
    /* Light mode */
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pricing-card.pro {
    background-color: #fff;
    border-color: var(--accent-blue);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(191, 166, 255, 0.2);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-blue);
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 900;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.price {
    font-size: 3rem;
    font-family: var(--font-serif);
    margin-bottom: 30px;
    color: var(--text-color);
}

.price span {
    font-size: 1rem;
    color: #666;
    font-family: var(--font-sans);
}

.features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.features li {
    margin-bottom: 15px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-button.secondary {
    background-color: #f0f0f0;
    color: #000;
}

.cta-button.secondary:hover {
    background-color: #e0e0e0;
}

/* --- Section 8: Collections --- */
.collections-section {
    margin-bottom: 120px;
}

.collections-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.collection-item {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    background-color: #111;
    border-radius: 20px;
    border: 1px solid #222;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.collection-item:hover {
    background-color: #1a1a1a;
    transform: translateX(10px);
}

.collection-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: #666;
    /* Fixed contrast */
    margin-left: 30px;
    font-weight: 900;
}

.collection-info {
    flex-grow: 1;
}

.collection-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #fff;
    /* Fixed contrast */
}

.collection-info p {
    color: #ccc;
    /* Fixed contrast */
    font-size: 0.9rem;
}

.arrow-icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

/* --- Section 9: Quote of the Day --- */
.quote-day-section {
    margin-bottom: 120px;
    background-color: var(--accent-yellow);
    border-radius: 30px;
    padding: 80px 40px;
    text-align: center;
    color: #000;
    position: relative;
    overflow: hidden;
    border: 1px solid #000;
}

.quote-day-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-day-content .flower-icon {
    font-size: 6rem;
    /* Larger on desktop */
    color: var(--accent-blue);
    /* Green color */
    margin-bottom: 0;
}

.quote-day-content h2 {
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 900;
}

.quote-day-content blockquote {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 30px;
}

.quote-day-content cite {
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 900;
    margin-bottom: 40px;
}

.cta-button.outline-dark {
    background-color: transparent;
    border: 1px solid #000;
    color: #000;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button.outline-dark:hover {
    background-color: #000;
    color: #fff;
}

/* --- Section 10: Latest Articles --- */
.articles-section {
    margin-bottom: 120px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    height: 200px;
    width: 100%;
    background-color: #e0e0e0;
    /* Placeholder color */
}

.article-content {
    padding: 25px;
}

.article-tag {
    color: var(--accent-blue);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 10px;
    display: block;
}

.article-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--text-color);
}

.article-content a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2px;
    transition: border-color 0.3s;
}

.article-content a:hover {
    border-color: #000;
}

/* --- Section 11: Footer --- */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
    /* Removed padding-bottom */
}

.newsletter-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.newsletter-container h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.newsletter-container p {
    color: #666;
    margin-bottom: 30px;
}

.contact-us {
    display: flex;
    gap: 10px;
}



.contact-us a {
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    font-family: var(--font-sans);
    margin: auto;
    text-decoration: none;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    padding: 0 40px;
}

.footer-col h4 {
    color: #000;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0 15px 0;
    /* Reduced bottom padding */
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* --- Hamburger Menu (Hidden on Desktop) --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 100;
}

.hamburger-menu span {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

/* ============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   All breakpoints consolidated here
   ============================================ */

/* Tablet and Mobile (max-width: 900px) */
@media (max-width: 900px) {

    /* Layout */
    .container {
        height: auto;
        aspect-ratio: auto;
        padding: 10px 20px 20px 20px;
    }

    /* Hero Section */
    .hero {
        grid-template-columns: 1fr;
        gap: 60px;
        margin-bottom: 100px;
        min-height: 400px;
    }

    .subtext {
        margin-bottom: 20px;
    }


    .hero-visual {
        min-height: 400px !important;
        margin-top: -75px;

    }

    .image-container {
        height: 400px;
    }


    .hero-content h1 {
        font-size: 3.5rem;
    }

    /* Mobile Menu */
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease, transform 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 90;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .sidebar-logo {
        display: block;
        margin-bottom: 40px;
        padding-bottom: 30px;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-logo img {
        width: 100px;
        height: auto;
    }

    /* Hero - Scroll indicator same row as CTA on mobile */
    .hero-content {
        position: relative;
        padding-top: 0;
        padding-left: 0;
    }

    .scroll-indicator {
        position: absolute;
        bottom: 440px;
        left: 0;
        text-align: left;
        font-size: 50px;
    }

    .cta-button {
        margin-bottom: 60px;
    }

    /* Author Spotlight & Sections */
    .author-spotlight {
        background-color: transparent;
        padding: 0;
        border-radius: 0;
        border: none;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .spotlight-image {
        order: -1;
    }

    /* Daily Inspiration */
    .daily-inspiration {
        background-color: transparent;
        padding: 0 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .massive-quote {
        font-size: 2.5rem;
    }

    /* Pricing */
    .pricing-card.pro {
        margin-top: 30px;
        transform: scale(1);
    }

    .popular-tag {
        top: 10px;
    }

    /* Quote of Day */
    .quote-day-section {
        padding: 40px 20px;
    }

    /* Horizontal Carousels */
    .topics-grid,
    .pricing-grid,
    .articles-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        scrollbar-width: none;
    }

    .topics-grid::-webkit-scrollbar,
    .pricing-grid::-webkit-scrollbar,
    .articles-grid::-webkit-scrollbar {
        display: none;
    }

    .topic-card,
    .pricing-card,
    .article-card {
        min-width: 280px;
        scroll-snap-align: center;
    }

    /* Typography */
    .section-header h2 {
        font-size: 2rem;
    }
}

/* --- Preloader --- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.modern-loader {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--accent-blue);
    width: 100%;
    height: 100%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.circle:nth-child(2) {
    width: 70%;
    height: 70%;
    border-top-color: var(--accent-green);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.circle:nth-child(3) {
    width: 40%;
    height: 40%;
    border-top-color: var(--accent-yellow);
    animation-duration: 0.9s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Product Modal --- */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    margin: auto;
    z-index: 10001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.product-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: var(--accent-blue);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 30px;
    text-align: center;
}

.modal-header h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-color);
    margin: 0;
}

.modal-body h3 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

.sizes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sizes-list li {
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.sizes-list li:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateX(-5px);
}

.sizes-list li::before {
    content: '✓';
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.sizes-list li:hover::before {
    color: white;
}

/* Mobile Modal Styles */
@media (max-width: 900px) {
    .product-modal {
        align-items: flex-end;
    }

    .modal-content {
        margin: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 80vh;
        overflow-y: auto;
        transform: translateY(100%);
        padding: 30px 20px;
    }

    .product-modal.active .modal-content {
        transform: translateY(0);
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .modal-content::before {
        content: '';
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
    }

    .modal-close {
        top: 30px;
        left: 20px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
        margin-top: 20px;
    }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .spotlight-content h2 {
        font-size: 2.5rem;
    }

    .contact-us {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

/* Small Mobile (max-width: 450px) */
@media (max-width: 450px) {

    /* Hero */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    /* Section Headings */
    .section-header h2 {
        font-size: 1.5rem;
    }

    .topic-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    /* About Company */
    .spotlight-content h2 {
        font-size: 2rem;
    }

    /* Quote of Day */
    .quote-day-section blockquote {
        font-size: 1.8rem;
    }

    /* Footer */
    .newsletter-container h2 {
        font-size: 2rem;
    }

    .massive-quote {
        font-size: 1.8rem;
    }
}

/* --- New Section: Why Choose Us --- */
.why-choose-us {
    margin-bottom: 120px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background-color: #f0f8ff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Modal Carousel Styles --- */
.carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

/* Material Info Paragraph */
.material-info {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #555;
    text-align: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-radius: 12px;
    border-right: 4px solid var(--accent-blue);
    margin: 20px 0;
    line-height: 1.6;
    font-weight: 500;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    /* Adjust height as needed */
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.carousel-track-container {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.3s ease-in-out;
    display: flex;
    /* Align images horizontally */
}

.carousel-slide {
    position: relative;
    /* Changed from absolute to relative for flex layout */
    top: 0;
    bottom: 0;
    width: 100%;
    flex-shrink: 0;
    /* Prevent shrinking */
    height: 100%;
    /* Ensure full height */
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Keep aspect ratio */
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-button--left {
    left: 10px;
}

.carousel-button--right {
    right: 10px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    width: 100%;
    gap: 10px;
}

.carousel-indicator {
    border: 0;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.carousel-indicator:hover {
    background: #bbb;
}

.carousel-indicator.current-slide {
    background: var(--accent-blue);
    transform: scale(1.2);
}

/* Widescreen Modal Enhancements */
@media (min-width: 900px) {
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
        /* Custom Scrollbar for modal */
        scrollbar-width: thin;
        scrollbar-color: var(--accent-blue) #f0f0f0;
    }

    .modal-content::-webkit-scrollbar {
        width: 8px;
    }

    .modal-content::-webkit-scrollbar-track {
        background: #f0f0f0;
    }

    .modal-content::-webkit-scrollbar-thumb {
        background-color: var(--accent-blue);
        border-radius: 20px;
    }

    .carousel-container {
        height: 400px;
        /* Larger height for desktop */
    }
}