/*
Theme Name: Tsedar Theme
Theme URI: http://localhost/tsedar
Author: Your Name
Author URI: http://yourwebsite.com
Description: Custom HTML to WordPress Theme based on Tsedar project
Version: 1.0
*/

/* ========================================
   BASE STYLES
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    padding-top: 0 !important;
    overflow-x: hidden;
}

/* ========================================
   RTL SUPPORT
   ======================================== */
[dir="rtl"] #tsedar-logo {
    transform: scaleX(-1) !important;
}

#tsedar-logo {
    transform: scaleX(1);
}

[dir="rtl"] .product-image-style {
    left: 0;
    right: unset;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
    position: absolute;
}

/* Swiper RTL Fixes */
.swiper {
    direction: ltr !important;
}

.swiper-wrapper {
    flex-direction: row !important;
}

.swiper-slide {
    float: left !important;
}

[dir="rtl"] .swiper {
    direction: ltr !important;
    margin-right: unset !important;
    margin-left: auto !important;
}

[dir="rtl"] .swiper-slide {
    direction: rtl !important;
}

[dir="rtl"] .swiper-pagination {
    direction: ltr;
    margin: 0 0 10px 0;
}

[dir="rtl"] .medicine-img-style {
    right: unset;
    left: -5px;
}

[dir="rtl"] .nuts-img-style {
    right: unset;
    left: 20px;
}

/* ========================================
   SWIPER PAGINATION
   ======================================== */
.swiper .swiper-pagination .swiper-pagination-bullet-active {
    background: #999999 !important;
    width: 10px !important;
    height: 10px !important;
}

.swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
}

/* ========================================
   ARTICLE HOVER EFFECTS
   ======================================== */
article .cover-img-style {
    transition: transform 0.3s ease;
}

article:hover .cover-img-style {
    transform: scale(1.12);
}

/* ========================================
   AGE BUTTON
   ======================================== */
.age-button {
    max-width: 332px;
    position: relative;
    border-radius: 42px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--token-f7fc081e-abbb-4eb2-8fd1-f4fbb9d57124, #56aef3) 0%, var(--token-b08a4a3b-d7fa-4d7b-b52f-4a9bcb96bc00, rgb(74, 205, 206)) 100%);
}

.age-button button {
    position: relative;
    width: fit-content;
    font-weight: 500;
    color: #FFFFFF;
    white-space: nowrap;
}

/* ========================================
   MEDICINE CARDS
   ======================================== */
.medicine-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.medicine-card-one {
    position: relative;
    overflow: hidden;
    background: radial-gradient(42.3954% 42.3954% at 50% 50%, rgb(130, 206, 223) 0%, rgb(30, 147, 193) 100%);
}

.medicine-card-one>* {
    position: relative;
    z-index: 1;
}

.medicine-card-two {
    position: relative;
    overflow: hidden;
    background: radial-gradient(76.8061% 76.8061% at 50% 50%, rgb(146, 200, 223) 0%, rgb(91, 163, 207) 100%);
}

.medicine-card-two>* {
    position: relative;
    z-index: 1;
}

/* Medicine Card Animation */
@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.medicine-img-style img,
.nuts-img-style img {
    animation: zoomInOut 4s ease-in-out infinite;
}

/* ========================================
   HERO SECTION RESPONSIVE
   ======================================== */
#hero-section {
    min-height: auto;
}

.hero-content-wrapper {
    padding: 0 1rem;
}

.hero-bg-container::before {
    background-size: 180px auto;
}

/* ========================================
   PRODUCTS SECTION RESPONSIVE
   ======================================== */
#products-section {
    padding: 0;
}

/* ========================================
   ABOUT SECTION RESPONSIVE
   ======================================== */
#about-section {
    min-height: auto;
}

/* ========================================
   BLOG SECTION - FEATURED BLOG RESPONSIVE
   ======================================== */

.blog-section {
    padding: 60px 15px;
    overflow: visible !important;
}

.blog-section>.container {
    overflow: visible !important;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-blog-wrapper {
    display: flex;
    align-items: flex-start !important;
    gap: 40px;
    margin-bottom: 80px;
    overflow: visible !important;
    position: relative;
}

.featured-image-container {
    position: relative;
    width: 60%;
    height: 870px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    /* This one can stay hidden for the image */
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a1628 100%);
}

.featured-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transform-origin: center;
    transition: transform 1.4s ease-out;
}

/* STICKY CONTENT - Desktop only (min-width: 992px) */
@media (min-width: 992px) {
    .featured-blog-content-wrapper {
        flex: 1;
        padding: 20px 0;
        padding-top: 100px;
        /* Sticky positioning */
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 120px !important;
        align-self: flex-start !important;
        height: fit-content;
        /* Remove any transforms that break sticky */
        transform: none !important;
        -webkit-transform: none !important;
    }

    /* Override animation transforms completely for sticky to work */
    .featured-blog-content-wrapper[data-animate],
    .featured-blog-content-wrapper[data-animate].is-inview {
        transform: none !important;
        -webkit-transform: none !important;
        opacity: 1;
    }
}

/* Mobile/Tablet - No sticky */
@media (max-width: 991px) {
    .featured-blog-content-wrapper {
        flex: 1;
        padding: 20px 0;
        padding-top: 20px;
        position: static !important;
    }
}

.featured-blog-content-wrapper h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-blog-content-wrapper p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #2faeb0;
}

.read-more-btn .icon-circle {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #2faeb0, #00d4aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.read-more-btn:hover .icon-circle {
    transform: scale(1.1);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* ========================================
   SCROLL ANIMATIONS FOR BLOG SECTION
   ======================================== */

/* Default: All elements visible (fallback if JS doesn't load) */
.section-header.animate-on-scroll,
.featured-image-container.animate-on-scroll,
.blog-content-animate-wrapper,
.featured-blog-content-wrapper.animate-children h3,
.featured-blog-content-wrapper.animate-children p,
.featured-blog-content-wrapper.animate-children .read-more-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Animation for section header - fade up */
.section-header.animate-on-scroll {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Only hide elements if JavaScript has loaded */
.js-enabled .section-header.animate-on-scroll:not(.is-visible) {
    opacity: 1;
    transform: translateY(60px);
}

.section-header.animate-on-scroll.is-visible {
    opacity: 0;
    transform: translateY(0);
}

/* Animation for featured image container - fade up from left */
.featured-image-container.animate-on-scroll {
    transition: opacity 1s ease-out, transform 1s ease-out;
    transition-delay: 0.2s;
}

.js-enabled .featured-image-container.animate-on-scroll:not(.is-visible) {
    opacity: 1;
    transform: translateY(80px);
}

.featured-image-container.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Animation for blog content - fade up from right */
/* Note: We use a wrapper to avoid transform on sticky element */
.blog-content-animate-wrapper {
    transition: opacity 1s ease-out, transform 1s ease-out;
    transition-delay: 0.4s;
}

.js-enabled .blog-content-animate-wrapper:not(.is-visible) {
    opacity: 0;
    transform: translateY(80px);
}

.blog-content-animate-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alternative: If not using wrapper, animate children instead */
.featured-blog-content-wrapper.animate-children h3,
.featured-blog-content-wrapper.animate-children p,
.featured-blog-content-wrapper.animate-children .read-more-btn {
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js-enabled .featured-blog-content-wrapper.animate-children:not(.is-visible) h3,
.js-enabled .featured-blog-content-wrapper.animate-children:not(.is-visible) p,
.js-enabled .featured-blog-content-wrapper.animate-children:not(.is-visible) .read-more-btn {
    opacity: 1;
    transform: translateY(40px);
}

.featured-blog-content-wrapper.animate-children.is-visible h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.featured-blog-content-wrapper.animate-children.is-visible p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.featured-blog-content-wrapper.animate-children.is-visible .read-more-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

/* ========================================
   ROTATING ICONS ANIMATION
   ======================================== */
.breathing-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: breathe 6s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    pointer-events: none;
}

@keyframes breathe {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.06);
    }
}

.rotating-icons-container {
    width: 450px;
    height: 450px;
    animation: rotateIcons 40s linear infinite;
    pointer-events: none;
}

@keyframes rotateIcons {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.orbit-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-icon svg {
    width: 28px;
    height: 28px;
    fill: #00d4ff;
}

.orbit-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Orbit icon positions - Desktop (300px radius) */
.orbit-icon:nth-child(1) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg) translateY(-300px) rotate(0deg);
}

.orbit-icon:nth-child(2) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(36deg) translateY(-300px) rotate(-36deg);
}

.orbit-icon:nth-child(3) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(72deg) translateY(-300px) rotate(-72deg);
}

.orbit-icon:nth-child(4) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(108deg) translateY(-300px) rotate(-108deg);
}

.orbit-icon:nth-child(5) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(144deg) translateY(-300px) rotate(-144deg);
}

.orbit-icon:nth-child(6) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg) translateY(-300px) rotate(-180deg);
}

.orbit-icon:nth-child(7) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(216deg) translateY(-300px) rotate(-216deg);
}

.orbit-icon:nth-child(8) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(252deg) translateY(-300px) rotate(-252deg);
}

.orbit-icon:nth-child(9) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(288deg) translateY(-300px) rotate(-288deg);
}

.orbit-icon:nth-child(10) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(324deg) translateY(-300px) rotate(-324deg);
}

/* ========================================
   BACKGROUND IMAGE BOTTOM SECTION
   ======================================== */
#background-image-bottom {
    height: 100vh;
    min-height: 500px;
}

#background-image-bottom p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
:root {
    --anim-duration: 1.1s;
    --anim-ease: cubic-bezier(0.19, 1, 0.22, 1);
}

[data-animate] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity var(--anim-duration) var(--anim-ease),
        transform var(--anim-duration) var(--anim-ease);
    transition-delay: var(--anim-delay, 0s);
    will-change: opacity, transform;
}

[data-animate="fade-up"] {
    transform: translate3d(0, 32px, 0);
}

[data-animate="fade-left"] {
    transform: translate3d(-48px, 0, 0);
}

[data-animate="fade-right"] {
    transform: translate3d(48px, 0, 0);
}

[data-animate="fade-up-right"] {
    transform: translate3d(40px, 40px, 0);
}

[data-animate].is-inview {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .rotating-icons-container {
        animation: none !important;
    }

    .featured-main-image,
    .blog-section .blog-card-image img {
        transition: none !important;
    }

    .medicine-img-style img,
    .nuts-img-style img {
        animation: none !important;
    }
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Extra Large screens (1400px and above) */
@media (min-width: 1400px) {
    .featured-image-container {
        height: 870px;
    }

    .rotating-icons-container {
        width: 450px;
        height: 450px;
    }

    .orbit-icon img {
        width: 100px;
        height: 100px;
    }
}

/* Large screens - Desktop (992px to 1399px) */
@media (min-width: 992px) and (max-width: 1399px) {
    .featured-blog-wrapper {
        gap: 30px;
    }

    .featured-image-container {
        width: 55%;
        height: 700px;
    }

    .rotating-icons-container {
        width: 400px;
        height: 400px;
    }

    .orbit-icon img {
        width: 80px;
        height: 80px;
    }

    /* Orbit positions - 250px radius */
    .orbit-icon:nth-child(1) {
        transform: translate(-50%, -50%) rotate(0deg) translateY(-250px) rotate(0deg) !important;
    }

    .orbit-icon:nth-child(2) {
        transform: translate(-50%, -50%) rotate(36deg) translateY(-220px) rotate(-36deg) !important;
    }

    .orbit-icon:nth-child(3) {
        transform: translate(-50%, -50%) rotate(72deg) translateY(-250px) rotate(-72deg) !important;
    }

    .orbit-icon:nth-child(4) {
        transform: translate(-50%, -50%) rotate(108deg) translateY(-250px) rotate(-108deg) !important;
    }

    .orbit-icon:nth-child(5) {
        transform: translate(-50%, -50%) rotate(144deg) translateY(-250px) rotate(-144deg) !important;
    }

    .orbit-icon:nth-child(6) {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-250px) rotate(-180deg) !important;
    }

    .orbit-icon:nth-child(7) {
        transform: translate(-50%, -50%) rotate(216deg) translateY(-250px) rotate(-216deg) !important;
    }

    .orbit-icon:nth-child(8) {
        transform: translate(-50%, -50%) rotate(252deg) translateY(-250px) rotate(-252deg) !important;
    }

    .orbit-icon:nth-child(9) {
        transform: translate(-50%, -50%) rotate(288deg) translateY(-250px) rotate(-288deg) !important;
    }

    .orbit-icon:nth-child(10) {
        transform: translate(-50%, -50%) rotate(324deg) translateY(-250px) rotate(-324deg) !important;
    }

    .featured-blog-content-wrapper {
        padding-top: 60px;
        top: 100px !important;
    }

    .featured-blog-content-wrapper h3 {
        font-size: 28px;
    }

    .featured-blog-content-wrapper p {
        font-size: 14px;
    }
}

/* Medium screens - Tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .blog-section {
        padding: 50px 15px;
    }

    .featured-blog-wrapper {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .featured-image-container {
        width: 100%;
        height: 500px;
    }

    .rotating-icons-container {
        width: 350px;
        height: 350px;
    }

    .orbit-icon img {
        width: 70px;
        height: 70px;
    }

    /* Orbit positions - 175px radius */
    .orbit-icon:nth-child(1) {
        transform: translate(-50%, -50%) rotate(0deg) translateY(-175px) rotate(0deg);
    }

    .orbit-icon:nth-child(2) {
        transform: translate(-50%, -50%) rotate(36deg) translateY(-175px) rotate(-36deg);
    }

    .orbit-icon:nth-child(3) {
        transform: translate(-50%, -50%) rotate(72deg) translateY(-175px) rotate(-72deg);
    }

    .orbit-icon:nth-child(4) {
        transform: translate(-50%, -50%) rotate(108deg) translateY(-175px) rotate(-108deg);
    }

    .orbit-icon:nth-child(5) {
        transform: translate(-50%, -50%) rotate(144deg) translateY(-175px) rotate(-144deg);
    }

    .orbit-icon:nth-child(6) {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-175px) rotate(-180deg);
    }

    .orbit-icon:nth-child(7) {
        transform: translate(-50%, -50%) rotate(216deg) translateY(-175px) rotate(-216deg);
    }

    .orbit-icon:nth-child(8) {
        transform: translate(-50%, -50%) rotate(252deg) translateY(-175px) rotate(-252deg);
    }

    .orbit-icon:nth-child(9) {
        transform: translate(-50%, -50%) rotate(288deg) translateY(-175px) rotate(-288deg);
    }

    .orbit-icon:nth-child(10) {
        transform: translate(-50%, -50%) rotate(324deg) translateY(-175px) rotate(-324deg);
    }

    .featured-blog-content-wrapper {
        padding-top: 20px;
        position: static;
    }

    .featured-blog-content-wrapper h3 {
        font-size: 26px;
    }

    .featured-blog-content-wrapper p {
        font-size: 14px;
        line-height: 1.7;
    }

    .section-header h2 {
        font-size: 28px;
    }

    /* About Section */
    #about-section .flex.gap-10 {
        flex-direction: column;
    }

    #about-section .w-1\/2 {
        width: 100%;
    }

    /* Background Bottom Section */
    #background-image-bottom {
        height: 70vh;
        min-height: 400px;
    }

    #background-image-bottom p {
        font-size: 2.5rem !important;
    }
}

/* Small screens - Large phones (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    header nav {
        padding: 12px 12px !important;
        gap: 12px !important;
    }

    /* Logo */
    header a[aria-label="Tsedar Home"] {
        font-size: 0.95rem !important;
        letter-spacing: 2px !important;
        gap: 8px !important;
    }

    header a[aria-label="Tsedar Home"] img {
        width: 32px !important;
        height: auto !important;
    }

    /* Hamburger Icon */
    #hamburger {
        width: 36px !important;
        height: 36px !important;
        padding: 6px !important;
    }

    #hamburger svg {
        width: 28px !important;
        height: 28px !important;
    }

    /* Mobile Menu */
    #mobile-menu {
        padding: 12px 0 !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
    }

    #mobile-menu ul {
        padding-left: 16px !important;
        padding-right: 16px !important;
        gap: 8px !important;
    }

    #mobile-menu li a {
        font-size: 15px !important;
        padding: 12px 12px !important;
        line-height: 1.6;
        display: block;
    }

    #mobile-menu li button {
        font-size: 15px !important;
        padding: 12px 12px !important;
        line-height: 1.6;
    }

    /* Close Menu Icon */
    #close-menu {
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
    }

    #close-menu svg {
        width: 28px !important;
        height: 28px !important;
    }

    .blog-section {
        padding: 40px 12px;
    }

    .products-card-wrapper {
        padding: 0 10px !important;
    }

    .featured-blog-wrapper {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 50px;
    }

    .featured-image-container {
        width: 100%;
        height: 420px;
    }

    .rotating-icons-container {
        width: 300px;
        height: 300px;
    }

    .orbit-icon img {
        width: 55px;
        height: 55px;
    }

    /* Orbit positions - 150px radius */
    .orbit-icon:nth-child(1) {
        transform: translate(-50%, -50%) rotate(0deg) translateY(-150px) rotate(0deg);
    }

    .orbit-icon:nth-child(2) {
        transform: translate(-50%, -50%) rotate(36deg) translateY(-150px) rotate(-36deg);
    }

    .orbit-icon:nth-child(3) {
        transform: translate(-50%, -50%) rotate(72deg) translateY(-150px) rotate(-72deg);
    }

    .orbit-icon:nth-child(4) {
        transform: translate(-50%, -50%) rotate(108deg) translateY(-150px) rotate(-108deg);
    }

    .orbit-icon:nth-child(5) {
        transform: translate(-50%, -50%) rotate(144deg) translateY(-150px) rotate(-144deg);
    }

    .orbit-icon:nth-child(6) {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-150px) rotate(-180deg);
    }

    .orbit-icon:nth-child(7) {
        transform: translate(-50%, -50%) rotate(216deg) translateY(-150px) rotate(-216deg);
    }

    .orbit-icon:nth-child(8) {
        transform: translate(-50%, -50%) rotate(252deg) translateY(-150px) rotate(-252deg);
    }

    .orbit-icon:nth-child(9) {
        transform: translate(-50%, -50%) rotate(288deg) translateY(-150px) rotate(-288deg);
    }

    .orbit-icon:nth-child(10) {
        transform: translate(-50%, -50%) rotate(324deg) translateY(-150px) rotate(-324deg);
    }

    .featured-blog-content-wrapper {
        padding-top: 15px;
        position: static;
    }

    .featured-blog-content-wrapper h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .featured-blog-content-wrapper p {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Hero Section */
    #hero-section {
        height: auto !important;
        min-height: calc(100vh - 120px);
        padding-bottom: 30px;
    }

    .hero-content-wrapper h1 {
        font-size: 1.5rem !important;
    }

    .hero-bg-container::before {
        background-size: 160px auto;
    }

    /* Age Button */
    .age-button {
        max-width: 280px;
    }

    .age-button button {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    /* About Section */
    #about-section {
        padding: 0 15px !important;
    }

    #about-section .flex.gap-10 {
        flex-direction: column;
        gap: 20px;
    }

    #about-section .w-1\/2 {
        width: 100%;
    }

    #about-section .w-\[322px\] {
        width: 280px;
        height: 400px;
    }

    #about-section h2 {
        font-size: 1.5rem !important;
    }

    /* Background Bottom Section */
    #background-image-bottom {
        height: 60vh;
        min-height: 350px;
    }

    #background-image-bottom p {
        font-size: 2rem !important;
        line-height: 1.3;
    }
}

/* Extra small screens - Mobile phones (up to 575px) */
/* ========================================
   REPLACEMENT FOR EXISTING 575px MEDIA QUERY
   Copy this to replace the existing @media (max-width: 575px) section
   ======================================== */

@media (max-width: 575px) {

    /* ---- HEADER & NAVIGATION ---- */
    header nav {
        padding: 12px 12px !important;
        gap: 12px !important;
    }

    /* Logo */
    header a[aria-label="Tsedar Home"] {
        font-size: 0.95rem !important;
        letter-spacing: 2px !important;
        gap: 8px !important;
    }

    header a[aria-label="Tsedar Home"] img {
        width: 32px !important;
        height: auto !important;
    }

    /* Hamburger Icon */
    #hamburger {
        width: 36px !important;
        height: 36px !important;
        padding: 6px !important;
    }

    #hamburger svg {
        width: 28px !important;
        height: 28px !important;
    }

    /* Mobile Menu */
    #mobile-menu {
        padding: 12px 0 !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
    }

    #mobile-menu ul {
        padding-left: 16px !important;
        padding-right: 16px !important;
        gap: 8px !important;
    }

    #mobile-menu li a {
        font-size: 15px !important;
        padding: 12px 12px !important;
        line-height: 1.6;
        display: block;
    }

    #mobile-menu li button {
        font-size: 15px !important;
        padding: 12px 12px !important;
        line-height: 1.6;
    }

    /* Close Menu Icon */
    #close-menu {
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
    }

    #close-menu svg {
        width: 28px !important;
        height: 28px !important;
    }

    /* ---- EXISTING MOBILE STYLES BELOW ---- */

    .blog-section {
        padding: 30px 10px;
    }

    .featured-blog-wrapper {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    .featured-image-container {
        width: 100%;
        height: 350px;
        border-radius: 12px;
    }

    .featured-main-image {
        border-radius: 12px;
    }

    .rotating-icons-container {
        width: 240px;
        height: 240px;
    }

    .orbit-icon img {
        width: 42px;
        height: 42px;
    }

    /* Orbit positions - 120px radius */
    .orbit-icon:nth-child(1) {
        transform: translate(-50%, -50%) rotate(0deg) translateY(-120px) rotate(0deg);
    }

    .orbit-icon:nth-child(2) {
        transform: translate(-50%, -50%) rotate(36deg) translateY(-120px) rotate(-36deg);
    }

    .orbit-icon:nth-child(3) {
        transform: translate(-50%, -50%) rotate(72deg) translateY(-120px) rotate(-72deg);
    }

    .orbit-icon:nth-child(4) {
        transform: translate(-50%, -50%) rotate(108deg) translateY(-120px) rotate(-108deg);
    }

    .orbit-icon:nth-child(5) {
        transform: translate(-50%, -50%) rotate(144deg) translateY(-120px) rotate(-144deg);
    }

    .orbit-icon:nth-child(6) {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-120px) rotate(-180deg);
    }

    .orbit-icon:nth-child(7) {
        transform: translate(-50%, -50%) rotate(216deg) translateY(-120px) rotate(-216deg);
    }

    .orbit-icon:nth-child(8) {
        transform: translate(-50%, -50%) rotate(252deg) translateY(-120px) rotate(-252deg);
    }

    .orbit-icon:nth-child(9) {
        transform: translate(-50%, -50%) rotate(288deg) translateY(-120px) rotate(-288deg);
    }

    .orbit-icon:nth-child(10) {
        transform: translate(-50%, -50%) rotate(324deg) translateY(-120px) rotate(-324deg);
    }

    .featured-blog-content-wrapper {
        padding: 15px 5px 0;
        position: static;
    }

    .featured-blog-content-wrapper h3 {
        font-size: 20px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .featured-blog-content-wrapper p {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .read-more-btn {
        font-size: 14px;
        gap: 10px;
    }

    .read-more-btn .icon-circle {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 22px;
        padding: 0 10px;
    }

    /* Hero Section */
    #hero-section {
        height: auto !important;
        min-height: auto;
        padding-bottom: 20px;
        margin-top: 80px !important;
        margin-right: 7px;
        width: calc(100% - 7px) !important;
    }

    .hero-content-wrapper {
        width: 100% !important;
        height: auto !important;
        padding: 0 10px;
        gap: 20px;
        min-height: 350px !important;
    }

    .hero-content-wrapper h1 {
        line-height: 1.4;
    }

    .hero-content-wrapper p {
        font-size: 14px !important;
        line-height: 1.6;
    }

    .hero-bg-container {
        height: auto !important;
        padding-bottom: 20px;
    }

    .hero-bg-container::before {
        background-size: 140px auto;
        bottom: 0;
    }

    .age-button button {
        padding: 10px 16px !important;
        font-size: 13px !important;
        padding-bottom: 14px !important;
    }

    /* Products Section */
    #products-section {
        margin-top: 40px !important;
        padding: 0 10px !important;
    }

    #products-section .flex.flex-wrap.gap-3 article {
        width: 100% !important;
        min-width: 100% !important;
    }

    #products-section .flex.flex-col.lg\:flex-row {
        gap: 15px !important;
        padding: 0 !important;
    }

    .medicine-card {
        width: 100% !important;
        min-height: 180px;
    }

    .medicine-card h2 {
        font-size: 12px !important;
    }

    .medicine-card p {
        font-size: 16px !important;
    }

    .medicine-img-style,
    .nuts-img-style {
        width: 100px !important;
    }

    /* About Section */
    #about-section {
        margin-top: 30px !important;
        padding: 0 10px !important;
        min-height: auto !important;
    }

    #about-section .overflow-hidden {
        padding: 20px 10px !important;
    }

    #about-section .flex.gap-10 {
        flex-direction: column;
        gap: 20px;
    }

    #about-section .w-1\/2 {
        width: 100%;
    }

    #about-section .w-\[322px\] {
        width: 100%;
        max-width: 280px;
        height: 380px;
        margin: 0 auto;
    }

    #about-section h1.text-\[16px\] {
        font-size: 14px !important;
    }

    #about-section h2 {
        font-size: 1.25rem !important;
        line-height: 1.4;
    }

    #about-section .gap-2\.5.self-stretch.mt-16 {
        margin-top: 20px !important;
    }

    #about-section .gap-2\.5.self-stretch.mt-16 p {
        font-size: 13px !important;
        line-height: 1.6;
    }

    /* Background Bottom Section */
    #background-image-bottom {
        height: 50vh;
        min-height: 300px;
    }

    #background-image-bottom>div:first-child {
        padding: 0 15px;
    }

    #background-image-bottom p {
        font-size: 1.5rem !important;
        line-height: 1.4;
    }
}

/* Very small screens (up to 375px) */
@media (max-width: 375px) {
    .featured-image-container {
        height: 300px;
    }

    .rotating-icons-container {
        width: 200px;
        height: 200px;
    }

    .orbit-icon img {
        width: 35px;
        height: 35px;
    }

    /* Orbit positions - 100px radius */
    .orbit-icon:nth-child(1) {
        transform: translate(-50%, -50%) rotate(0deg) translateY(-100px) rotate(0deg);
    }

    .orbit-icon:nth-child(2) {
        transform: translate(-50%, -50%) rotate(36deg) translateY(-100px) rotate(-36deg);
    }

    .orbit-icon:nth-child(3) {
        transform: translate(-50%, -50%) rotate(72deg) translateY(-100px) rotate(-72deg);
    }

    .orbit-icon:nth-child(4) {
        transform: translate(-50%, -50%) rotate(108deg) translateY(-100px) rotate(-108deg);
    }

    .orbit-icon:nth-child(5) {
        transform: translate(-50%, -50%) rotate(144deg) translateY(-100px) rotate(-144deg);
    }

    .orbit-icon:nth-child(6) {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-100px) rotate(-180deg);
    }

    .orbit-icon:nth-child(7) {
        transform: translate(-50%, -50%) rotate(216deg) translateY(-100px) rotate(-216deg);
    }

    .orbit-icon:nth-child(8) {
        transform: translate(-50%, -50%) rotate(252deg) translateY(-100px) rotate(-252deg);
    }

    .orbit-icon:nth-child(9) {
        transform: translate(-50%, -50%) rotate(288deg) translateY(-100px) rotate(-288deg);
    }

    .orbit-icon:nth-child(10) {
        transform: translate(-50%, -50%) rotate(324deg) translateY(-100px) rotate(-324deg);
    }

    .featured-blog-content-wrapper h3 {
        font-size: 18px;
    }

    .featured-blog-content-wrapper p {
        font-size: 12px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    #hero-section {
        margin-top: 70px !important;
        margin-right: 7px;
        width: calc(100% - 7px) !important;
    }

    .hero-content-wrapper h1 {
        font-size: 1.1rem !important;
    }

    .age-button {
        max-width: 240px;
    }

    .age-button button {
        font-size: 12px !important;
    }

    #about-section h2 {
        font-size: 1.1rem !important;
    }

    #background-image-bottom p {
        font-size: 1.25rem !important;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    #hero-section {
        min-height: auto;
        margin-right: 7px;
        width: calc(100% - 7px) !important;
    }

    .featured-image-container {
        height: 350px;
    }

    #background-image-bottom {
        height: 100vh;
        min-height: 280px;
    }
}

/* ========================================
   UTILITY CLASSES FOR MOBILE
   ======================================== */
@media (max-width: 767px) {

    /* Fix overflow issues */
    .overflow-hidden {
        overflow-x: hidden;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Fix flex containers */
    .flex {
        flex-wrap: wrap;
    }

    /* Ensure proper padding on mobile */
    .px-11,
    .px-7 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .md\:mx-7 {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

    .rotating-icons-container,
    .breathing-wrapper {
        display: none;
    }

    .featured-blog-wrapper {
        flex-direction: column;
    }

    .featured-image-container {
        height: auto;
        page-break-inside: avoid;
    }
}

/* ========================================
   HERO SECTION MOBILE LAYOUT FIX (below 1024px)
   ======================================== */

@media (max-width: 1023px) {
    header nav {
        padding: 12px 12px !important;
        gap: 12px !important;
    }

    /* Logo */
    header a[aria-label="Tsedar Home"] {
        font-size: 22px !important;
        letter-spacing: 2px !important;
        gap: 8px !important;
    }

    header a[aria-label="Tsedar Home"] img {
        width: 38px !important;
        height: auto !important;
    }

    /* Hamburger Icon */
    #hamburger {
        width: 50px !important;
        height: 50px !important;
    }

    #hamburger svg {
        width: 40px !important;
        height: 40px !important;
    }

    /* Mobile Menu */
    #mobile-menu {
        padding: 12px 0 !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
    }

    #mobile-menu ul {
        padding-left: 16px !important;
        padding-right: 16px !important;
        gap: 8px !important;
    }

    #mobile-menu li a {
        font-size: 18px !important;
        padding: 12px 12px !important;
        line-height: 1.6;
        display: block;
    }

    #mobile-menu li button {
        font-size: 18px !important;
        padding: 12px 12px !important;
        line-height: 1.6;
    }

    /* Close Menu Icon */
    #close-menu {
        width: 42px !important;
        height: 42px !important;
        padding: 8px !important;
    }

    #close-menu svg {
        width: 34px !important;
        height: 34px !important;
    }

    #hero-section {
        height: auto !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-content-wrapper {
        padding-top: 0px !important;
        align-items: center !important;
    }

    .hero-bg-container {
        min-height: 310px;
        justify-content: center !important;
        margin: 0 auto;
        max-width: 650px;
        text-align: center;
    }

    .hero-bg-container h1 {
        font-size: 36px !important;
    }

    /* Hide desktop logo background */
    #tsedar-logo {
        display: none !important;
    }

    /* Show mobile logo at TOP */
    #tsedar-logo-mobile {
        display: block;
        width: 100%;
        height: 300px;
        flex-shrink: 0;
        order: -1;
    }

    @media (min-width: 576px) and (max-width: 1023px) {
        #tsedar-logo-mobile {
            height: 400px;
        }
    }

    /* Content appears below logo */
    .hero-content-wrapper {
        width: 100%;
        height: auto;
        padding: 2rem 1rem;
        position: static;
        top: auto;
    }

    .hero-bg-container {
        height: auto;
        padding-bottom: 1rem;
    }

    .hero-bg-container h1 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .hero-bg-container p {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .age-button {
        max-width: 260px;
        margin: -30px 0 0 0 !important;
    }

    .age-button button {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
    }
}

/* ========================================
   DISABLE ALL ANIMATIONS ON MOBILE (below 1024px)
   ======================================== */

@media (max-width: 1023px) {

    /* Hero logo - show immediately, no animation */
    #tsedar-logo,
    #tsedar-logo-mobile,
    .hero-bg-container h1,
    .hero-bg-container p,
    .age-button {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Remove animation classes */
    #tsedar-logo.animate-in,
    .hero-bg-container h1.animate-up,
    .hero-bg-container p.animate-up,
    .age-button.animate-up {
        animation: none !important;
    }

    /* Products section - show immediately */
    #products-section article {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    #products-section article.animate-in {
        animation: none !important;
    }
}

/* ========================================
   KEEP ANIMATIONS ON DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {

    /* Animations work as before on desktop */
    #tsedar-logo {
        opacity: 0;
        transform: translateX(150px);
    }

    .hero-bg-container h1,
    .hero-bg-container p,
    .age-button {
        opacity: 0;
        transform: translateY(50px);
    }
}