@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:wght@300;400;500;600&display=swap');

.hidden {
    display: none;
}

:root {
    --primary-green: #1a3c17;
    --accent-green: #65a30d;
    --earth-white: #fdfbf7;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--earth-white);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.serif {
    font-family: 'Playfair Display', serif;
}

.nav-link {
    position: relative;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #32CD32;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.8);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.hero-gradient {
    background: linear-gradient(rgba(26, 60, 23, 0.75), rgba(26, 60, 23, 0.75)), url('hero section image.jpg');
    background-size: cover;
    background-position: center;
}

.page-view {
    display: none;
}

.page-view.active {
    display: block;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Mobile Dropdown Styles */
.mobile-dropdown-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.mobile-dropdown-content.hidden {
    display: none;
}

.mobile-dropdown button .fa-chevron-down {
    transition: transform 0.3s ease;
}

/* Mobile Navbar Improvements */
@media (max-width: 1023px) {

    /* Ensure hamburger button is always visible on mobile */
    .lg\:hidden {
        display: flex !important;
    }

    /* Mobile menu link styling */
    .mobile-menu a,
    .mobile-menu button {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-radius: 8px;
        transition: background-color 0.2s ease;
        font-size: 14px !important;
        letter-spacing: 0.05em !important;
    }

    .mobile-menu a:hover,
    .mobile-menu a:active {
        background-color: #f0fdf4;
        color: #166534;
    }

    /* Mobile menu dropdown headers */
    .mobile-menu .text-\[10px\] {
        font-size: 12px !important;
        padding: 16px 16px 8px;
        margin-top: 8px;
    }

    /* Mobile menu scroll */
    .mobile-menu {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Book Appointment button in mobile menu */
    .mobile-menu button.bg-green-900 {
        padding: 14px 24px;
        font-size: 14px;
        font-weight: 600;
        width: 100%;
        margin-top: 16px;
        margin-bottom: 16px;
    }

    /* Ensure proper z-index for mobile menu */
    #mobile-sidebar {
        z-index: 9999 !important;
    }

    /* Backdrop overlay */
    #mobile-sidebar.hidden {
        display: none;
    }

    /* Fix for mobile sidebar positioning */
    #mobile-sidebar {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
    }

    /* Hamburger button styling */
    #mobile-sidebar+div .text-2xl,
    button[onclick="toggleMobileMenu()"] {
        font-size: 24px;
    }

    /* Ensure nav padding on mobile */
    nav.fixed {
        padding: 12px 0;
    }

    /* Logo sizing on mobile */
    nav .text-2xl {
        font-size: 20px !important;
    }

    nav .fa-leaf {
        font-size: 18px !important;
    }
}

/* Touch-friendly dropdown for mobile */
@media (max-width: 1023px) {
    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        padding-left: 16px !important;
        max-height: none !important;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.faq-item:hover {
    background-color: #90EE90;
    box-shadow: 0 0 20px rgba(144, 238, 144, 0.6);
}

/* Book Reader Styles */
#book-reader-overlay {
    display: none;
    backdrop-filter: blur(15px);
    z-index: 100;
}

.pdf-viewer-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    background: #333;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

#pdf-render-area {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

canvas {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--accent-green);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.block-wall {
    background: linear-gradient(to bottom, transparent, #1a1a1a 20%);
    padding: 80px 40px;
    text-align: center;
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.lang-btn {
    transition: all 0.3s ease;
}

.lang-btn:hover {
    transform: scale(1.05);
    background-color: #f1f5f9;
}

/* Form Styles */
input,
select,
textarea {
    border: 1px solid #d1d5db !important;
    /* Visible border */
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(101, 163, 13, 0.2) !important;
    border-color: var(--accent-green) !important;
    outline: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c5a059'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
}

/* Carousel Containers */
.carousel-container {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

/* Video Slider Logic - Discrete widths */
.video-item {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 12px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

@media (min-width: 768px) {
    .video-item {
        flex: 0 0 50%;
        width: 50%;
    }
}

/* Enhanced Video Item - Patient Success Stories */
.video-item .group {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.5rem;
    overflow: hidden;
}

.video-item .group:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 30px rgba(101, 163, 13, 0.15);
}

.video-item .group img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-item .group:hover img {
    transform: scale(1.1);
}

.video-item .group .bg-gradient-to-t {
    transition: opacity 0.5s ease;
}

.video-item .group:hover .bg-gradient-to-t {
    opacity: 0.9;
}

/* Enhanced overlay gradient */
.video-item .group::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.video-item .group:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.review-item {
    flex: 0 0 50%;
    width: 50%;
}

.video-placeholder {
    background: #000;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.play-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    scale: 1.1;
    background: var(--accent-green);
    color: white;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: navBtnPulse 2s infinite;
}

.nav-btn:hover {
    background: var(--accent-green);
    color: white;
    transform: scale(1.1);
    animation: none;
}

/* Enhanced navigation buttons with pulse animation */
@keyframes navBtnPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(101, 163, 13, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(101, 163, 13, 0);
    }
}

/* Slide indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(26, 60, 23, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--accent-green);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: var(--primary-green);
}

/* Section header enhancement */
.success-stories-header {
    position: relative;
}

.success-stories-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--primary-green));
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ============================================
   3D ORBIT REVIEW CAROUSEL STYLES
   ============================================ */

/* Review Section Container */
.review-orbit-section {
    width: 100%;
    max-width: 900px;
    height: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    touch-action: pan-y;
    margin: 0 auto;
}

/* 3D Scene Container */
.review-scene {
    perspective: 1500px;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 20px;
    cursor: grab;
}

.review-scene:active {
    cursor: grabbing;
}

/* Orbit Container - Holds all cards in 3D space */
.review-orbit-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Individual Review Cards */
.review-orbit-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 380px;
    height: 240px;
    margin-left: -190px;
    margin-top: -120px;
    background: white;
    padding: 28px;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(26, 60, 23, 0.1);
    border: 1px solid rgba(26, 60, 23, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backface-visibility: hidden;
    transition: opacity 0.6s, filter 0.6s, transform 0.6s;
    user-select: none;
    pointer-events: none;
    overflow: hidden;
}

/* Card Content Styling */
.review-orbit-card .quote-icon {
    position: absolute;
    top: 15px;
    right: 25px;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--accent-green);
    opacity: 0.15;
    line-height: 1;
}

.review-orbit-card .review-text {
    font-size: 0.95rem;
    font-style: italic;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-right: 20px;
}

.review-orbit-card .review-author {
    font-family: 'Playfair Display', serif;
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.review-orbit-card .review-location {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #718096;
}

.review-orbit-card .review-stars {
    color: #FFD700;
    font-size: 0.75rem;
    margin-bottom: 12px;
}

/* Progress Bar */
.review-progress-container {
    width: 240px;
    height: 3px;
    background: rgba(26, 60, 23, 0.08);
    margin-top: 30px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.review-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--accent-green);
    width: 0%;
    transition: width 0.1s linear;
}

/* Instructions Text */
.review-instructions {
    margin-top: 15px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-green);
    opacity: 0.5;
}

/* Decorative Leaf Element */
.review-leaf-center {
    position: absolute;
    width: 70px;
    height: 70px;
    background: var(--primary-green);
    border-radius: 50% 0 50% 0;
    opacity: 0.03;
    transform: rotate(-45deg);
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .review-orbit-section {
        height: 480px;
    }

    .review-scene {
        height: 300px;
    }

    .review-orbit-card {
        width: 280px;
        height: 180px;
        margin-left: -140px;
        margin-top: -90px;
        padding: 18px;
    }

    .review-orbit-card .review-text {
        font-size: 0.7rem;
    }

    .review-orbit-card .review-author {
        font-size: 0.8rem;
    }

    /* Mobile touch improvements */
    .review-orbit-container {
        touch-action: pan-y;
    }

    .review-orbit-card {
        touch-action: pan-y;
        user-select: none;
        -webkit-user-select: none;
    }
}

@media (max-width: 480px) {
    .review-orbit-section {
        height: 420px;
    }

    .review-scene {
        height: 260px;
    }

    .review-orbit-card {
        width: 240px;
        height: 160px;
        margin-left: -120px;
        margin-top: -80px;
        padding: 14px;
    }

    .review-orbit-card .quote-icon {
        font-size: 2rem;
    }

    .review-orbit-card .review-text {
        font-size: 0.65rem;
        line-height: 1.4;
    }

    .review-progress-container {
        width: 180px;
    }

    .review-instructions {
        font-size: 8px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 360px) {
    .review-orbit-section {
        height: 400px;
    }

    .review-scene {
        height: 240px;
    }

    .review-orbit-card {
        width: 220px;
        height: 150px;
        margin-left: -110px;
        margin-top: -75px;
        padding: 12px;
    }

    .review-orbit-card .quote-icon {
        font-size: 1.75rem;
    }

    .review-orbit-card .review-text {
        font-size: 0.6rem;
        line-height: 1.3;
    }

    .review-orbit-card .review-author {
        font-size: 0.7rem;
    }

    .review-orbit-card .review-location {
        font-size: 0.55rem;
    }
}

/* Touch-friendly button sizes */
@media (max-width: 768px) {

    button,
    .nav-btn,
    .play-btn,
    .btn-learn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Improve form inputs on mobile */
    input,
    textarea,
    select {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

/* PDF viewer mobile optimizations */
@media (max-width: 768px) {
    .pdf-viewer-container {
        padding: 10px;
    }

    canvas {
        margin-bottom: 10px;
    }
}

/* Carousel navigation improvements */
@media (max-width: 640px) {
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
    }
}

/* ============================================
   INDEX PAGE - LEAF CARD 3D ANIMATION
   ============================================ */

:root {
    --ayur-green: #3d5a36;
    --ayur-leaf-deep: #2d4428;
    --ayur-dark: #1e2b1f;
    --ayur-cream: #fbf9f4;
    --ayur-gold: #65a30d;
    --leaf-front-light: #94bc8c;
    --leaf-front-vibrant: #72a366;
    --stem-front: #5b8751;
    --stem-back: #1e2b1f;
}

.leaf-card-container {
    perspective: 1500px;
    width: 100%;
    max-width: 440px;
    height: 280px;
    position: relative;
    margin: 40px auto;
}

.leaf-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.leaf-card-container:hover .leaf-inner {
    transform: rotateX(180deg) scale(1.05);
}

.leaf-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    clip-path: url(#leafPathTapered);
    padding: 1rem 2rem;
}

@media (min-width: 640px) {
    .leaf-shape {
        padding: 1.25rem 2.5rem;
    }
}

@media (min-width: 768px) {
    .leaf-shape {
        padding: 1.5rem 3.5rem;
    }
}

/* Front Styling */
.leaf-front {
    background: linear-gradient(145deg, var(--leaf-front-light) 0%, var(--leaf-front-vibrant) 100%);
    border: 1px solid rgba(61, 90, 54, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Back Styling */
.leaf-back {
    background: linear-gradient(160deg, var(--ayur-green) 0%, var(--ayur-dark) 100%);
    color: white;
    transform: rotateX(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1rem;
}

@media (min-width: 640px) {
    .leaf-back {
        padding: 1rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .leaf-back {
        padding: 1.5rem 2rem;
    }
}

.leaf-back h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .leaf-back h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 768px) {
    .leaf-back h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
}

.leaf-back p {
    font-size: 0.7rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    max-width: 100%;
    overflow-wrap: break-word;
}

@media (min-width: 640px) {
    .leaf-back p {
        font-size: 0.75rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 768px) {
    .leaf-back p {
        font-size: 0.8rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
}

.leaf-back .btn-learn {
    margin-top: 0.5rem;
    padding: 4px 12px;
    font-size: 0.65rem;
    min-height: 32px;
}

@media (min-width: 640px) {
    .leaf-back .btn-learn {
        padding: 5px 14px;
        font-size: 0.7rem;
    }
}

@media (min-width: 768px) {
    .leaf-back .btn-learn {
        margin-top: 0.75rem;
        padding: 6px 16px;
        font-size: 0.75rem;
    }
}

/* Flipping Stem Logic */
.stem-wrapper {
    position: absolute;
    right: -25px;
    top: 50%;
    width: 65px;
    height: 8px;
    transform: translateY(-50%);
    transform-style: preserve-3d;
    pointer-events: none;
}

.stem-side {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.stem-front {
    background: linear-gradient(to left, var(--stem-front), var(--leaf-front-vibrant));
    transform: rotate(3deg);
}

.stem-back {
    background: linear-gradient(to left, var(--stem-back), var(--ayur-green));
    transform: rotateX(180deg) rotate(-3deg);
}

/* Vein Structure */
.vein-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}

.midrib {
    position: absolute;
    left: 0;
    top: 50%;
    height: 2px;
    width: 100%;
    background: #ffffff;
    transform: translateY(-50%);
    filter: blur(0.3px);
}

.lateral-vein {
    position: absolute;
    height: 48%;
    width: 1.2px;
    background: #ffffff;
    top: 50%;
}

.leaf-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
    z-index: 2;
}

.leaf-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leaf-front h3 {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.leaf-front p {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.btn-learn {
    margin-top: 1rem;
    padding: 6px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-learn:hover {
    background: #ffffff;
    color: var(--ayur-green);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .leaf-card-container {
        max-width: 320px;
        height: 200px;
        margin: 20px auto;
    }

    .leaf-icon {
        font-size: 2.5rem;
        width: 3rem;
        height: 3rem;
    }

    .leaf-front h3 {
        font-size: 1.3rem;
    }

    .leaf-front p {
        font-size: 9px;
    }

    .leaf-back h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .leaf-back p {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }

    .leaf-back .btn-learn {
        font-size: 0.65rem !important;
        padding: 3px 10px !important;
        margin-top: 0.25rem !important;
        min-height: 28px;
    }

    .stem-wrapper {
        width: 45px;
        right: -15px;
    }
}

@media (max-width: 480px) {
    .leaf-card-container {
        width: 100%;
        max-width: 300px;
        height: 180px;
        margin: 15px auto;
    }

    .leaf-icon {
        font-size: 1.8rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .leaf-front h3 {
        font-size: 1.1rem;
    }

    .leaf-front p {
        font-size: 8px;
    }

    .leaf-back h3 {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }

    .leaf-back p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }

    .leaf-back .btn-learn {
        font-size: 0.6rem !important;
        padding: 2px 8px !important;
        margin-top: 0.25rem !important;
        min-height: 26px;
    }

    .stem-wrapper {
        width: 40px;
        right: -12px;
    }
}

@media (max-width: 360px) {
    .leaf-card-container {
        max-width: 280px;
        height: 170px;
    }

    .leaf-front {
        padding: 0.75rem 1.5rem;
    }

    .leaf-back {
        padding: 0.5rem 0.75rem !important;
    }

    .leaf-back h3 {
        font-size: 0.9rem !important;
    }

    .leaf-back p {
        font-size: 0.65rem !important;
        line-height: 1.25 !important;
    }

    .leaf-back .btn-learn {
        font-size: 0.55rem !important;
        padding: 2px 6px !important;
        min-height: 24px;
    }
}

/* ============================================
   GALLERY & REVIEW PAGES - BACKGROUND & BENTO
   ============================================ */

:root {
    --ayur-deep-green: #1a2e1a;
    --ayur-leaf: #4a6741;
    --ayur-earth: #f4f1ea;
    --ayur-sage: #8da080;
    --ayur-accent: #c48b32;
}

/* Background Animation */
.liquid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    filter: blur(80px);
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 50%, #e8f5e9 100%);
}

.blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--ayur-sage);
    opacity: 0.15;
    border-radius: 50%;
    animation: moveBlob 25s infinite alternate ease-in-out;
}

@media (min-width: 768px) {
    .blob {
        width: 600px;
        height: 600px;
    }
}

@keyframes moveBlob {
    0% {
        transform: translate(-10%, -10%) scale(1);
    }

    100% {
        transform: translate(20%, 10%) scale(1.2);
    }
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    perspective: 1200px;
}

/* Content Copy Protection */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent image dragging */
img {
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Allow selection for input fields (keep functional) */
input,
textarea,
select {
    user-select: text;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-wide {
        grid-column: span 2;
    }

    .bento-tall {
        grid-row: span 2;
    }
}

/* Unified Style for All Cards */
.review-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(74, 103, 65, 0.08);
    border-radius: 2rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.review-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--ayur-accent);
    box-shadow:
        0 0 30px rgba(196, 139, 50, 0.3),
        0 0 60px rgba(196, 139, 50, 0.2),
        0 30px 60px -15px rgba(26, 46, 26, 0.15);
}

/* Glowing border animation for cards */
.review-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 2.1rem;
    background: linear-gradient(45deg, transparent, rgba(196, 139, 50, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

.review-card:hover::before {
    opacity: 1;
    animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* Enhanced Glowing Star Animation */
.stars {
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.star-icon {
    width: 18px;
    height: 18px;
    color: var(--ayur-leaf);
    filter: drop-shadow(0 0 0px transparent);
    transition: color 0.6s ease,
        transform 1s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.6s ease;
}

.review-card:hover .star-icon {
    color: var(--ayur-accent);
    transform: rotate(360deg) scale(1.15);
    filter: drop-shadow(0 0 6px rgba(196, 139, 50, 0.6));
}

.review-card:hover .star-icon:nth-child(2) {
    transition-delay: 0.05s;
}

.review-card:hover .star-icon:nth-child(3) {
    transition-delay: 0.1s;
}

.review-card:hover .star-icon:nth-child(4) {
    transition-delay: 0.15s;
}

.review-card:hover .star-icon:nth-child(5) {
    transition-delay: 0.2s;
}

/* Staggered load delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

.delay-7 {
    transition-delay: 0.7s;
}

.delay-8 {
    transition-delay: 0.8s;
}

.delay-9 {
    transition-delay: 0.9s;
}

/* ============================================
   BOOK ORDER PAGE STYLES
   ============================================ */

.text-lime-600 {
    color: #65a30d;
}

.bg-lime-600 {
    background-color: #65a30d;
}

.border-lime-600 {
    border-color: #65a30d;
}

.hover\:bg-lime-600:hover {
    background-color: #65a30d;
}

.hover\:text-lime-600:hover {
    color: #65a30d;
}

.hover\:border-lime-600:hover {
    border-color: #65a30d;
}

.form-input:focus {
    border-color: #65a30d;
    box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.1);
}

.book-preview {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.book-preview:hover {
    transform: translateY(-5px);
}

/* ============================================
   ORDER SUCCESS PAGE STYLES
   ============================================ */

.success-animation {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px #3d5a36;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #3d5a36;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #3d5a36;
    }
}

.delivery-timeline {
    position: relative;
    padding-left: 30px;
}

.delivery-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #65a30d;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #65a30d;
}

.timeline-item.completed::before {
    background: #3d5a36;
    box-shadow: 0 0 0 2px #3d5a36;
}

/* ============================================
   ARTICLE PAGES - PCOS AYURVEDA
   ============================================ */

.poppins {
    font-family: 'Poppins', sans-serif;
}

.sanskrit-verse {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-left: 5px solid #10b981;
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
    text-align: center;
    color: #475569;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.herb-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
}

.herb-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-5px);
}

.herb-label {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.stat-box {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 5px solid #10b981;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #10b981;
    font-family: 'Merriweather', serif;
}

.healing-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    border-left: 5px solid #f59e0b;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0.75rem;
    font-weight: 500;
    color: #92400e;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 1.0625rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.healing-highlight strong {
    font-weight: 700;
    color: #b45309;
    display: block;
    margin-bottom: 0.75rem;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.benefit-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid #ecfdf5;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    border-color: #10b981;
    box-shadow: 0 10px 25px -5px rgb(16 185 129 / 0.2);
}

.benefit-icon {
    font-size: 2.5rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: #64748b;
    font-size: 0.875rem;
}

.divider-ornament {
    text-align: center;
    margin: 3rem 0;
    color: #cbd5e1;
    font-size: 1.5rem;
}

/* Citation superscript styling */
sup {
    font-size: 0.7em;
    color: #059669;
    font-weight: 600;
    vertical-align: super;
    cursor: pointer;
}

sup:hover {
    color: #047857;
}

.reference-list sup {
    font-size: 0.65em;
    margin-right: 2px;
}

.shloka-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.shloka-container .sanskrit-verse {
    flex: 1;
    min-width: 280px;
    margin: 0;
}

.shloka-image {
    width: 350px;
    height: 350px;
    object-fit: cover;
}

/* Alternate layout: image on right for odd herbs, image on left for even herbs */
.herb-card:nth-child(odd) .shloka-container {
    flex-direction: row;
}

.herb-card:nth-child(even) .shloka-container {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {

    .shloka-container,
    .herb-card:nth-child(odd) .shloka-container,
    .herb-card:nth-child(even) .shloka-container {
        flex-direction: column;
    }
}

/* ============================================
   ARTICLE PAGES - ALCOHOL LIVER AYURVEDA
   ============================================ */

.herb-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dbeafe 100%);
    border-left: 5px solid #059669;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
}

.herb-box:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-3px);
}

.herb-box h4 {
    color: #047857;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-family: 'Merriweather', serif;
}

.herb-box p {
    color: #374151;
    line-height: 1.8;
    font-size: 1.0625rem;
}

.pathway-section {
    background: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 100%);
    border-left: 5px solid #9333ea;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.factor-item {
    background: white;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 0.75rem;
    border-left: 4px solid #dc2626;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.05);
}

.factor-item strong {
    color: #991b1b;
    font-size: 1.125rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border: 1px solid #f59e0b;
}

.stage-timeline {
    position: relative;
    padding: 2rem 0;
}

.stage-item {
    background: white;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    border-left: 4px solid #10b981;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.05);
}

.recovery-highlight {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-left: 5px solid #16a34a;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0.75rem;
    font-weight: 500;
    color: #166534;
    line-height: 1.8;
}

.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

/* Global responsive fixes */
@media (max-width: 480px) {

    /* Ensure no horizontal scroll on mobile */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Fix for any fixed-width elements that might cause scroll */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure containers don't overflow */
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==========================================================================
   Consolidated Internal Styles from HTML Pages
   ========================================================================== */

/* --- Article Elements --- */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: #64748b;
    font-size: 0.875rem;
}

.divider-ornament {
    text-align: center;
    margin: 3rem 0;
    color: #cbd5e1;
    font-size: 1.5rem;
}

sup {
    font-size: 0.7em;
    color: #059669;
    font-weight: 600;
    vertical-align: super;
    cursor: pointer;
}

sup:hover {
    color: #047857;
}

/* --- Alcohol & Liver Recovery Article --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border: 1px solid #f59e0b;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d97706;
    font-family: 'Merriweather', serif;
}

.stage-timeline {
    position: relative;
    padding: 2rem 0;
}

.stage-item {
    background: white;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    border-left: 4px solid #10b981;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.05);
}

.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

.recovery-highlight {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-left: 5px solid #16a34a;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0.75rem;
    font-weight: 500;
    color: #166534;
    line-height: 1.8;
}

/* --- PCOS Ayurveda Article --- */
.healing-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    border-left: 5px solid #f59e0b;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0.75rem;
    font-weight: 500;
    color: #92400e;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 1.0625rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.healing-highlight strong {
    font-weight: 700;
    color: #b45309;
    display: block;
    margin-bottom: 0.75rem;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.benefit-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid #ecfdf5;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    border-color: #10b981;
    box-shadow: 0 10px 25px -5px rgb(16 185 129 / 0.2);
}

.benefit-icon {
    font-size: 2.5rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.shloka-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.shloka-container .sanskrit-verse {
    flex: 1;
    min-width: 280px;
    margin: 0;
}

.shloka-image {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease;
}

.shloka-image:hover {
    transform: scale(1.05);
}

.herb-card:nth-child(odd) .shloka-container {
    flex-direction: row;
}

.herb-card:nth-child(even) .shloka-container {
    flex-direction: row-reverse;
}

/* --- Checkout & Utility --- */
.bg-lime-600 {
    background-color: #65a30d;
}

.border-lime-600 {
    border-color: #65a30d;
}

.hover\:bg-lime-600:hover {
    background-color: #65a30d;
}

.hover\:text-lime-600:hover {
    color: #65a30d;
}

.hover\:border-lime-600:hover {
    border-color: #65a30d;
}

.form-input:focus {
    border-color: #65a30d;
    box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.1);
}

.loading-spinner-checkout {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #65a30d;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.book-preview {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.book-preview:hover {
    transform: translateY(-5px);
}

/* --- Gallery & Review Components --- */
.blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--ayur-sage);
    opacity: 0.15;
    border-radius: 50%;
    animation: moveBlob 25s infinite alternate ease-in-out;
}

@media (min-width: 768px) {
    .blob {
        width: 600px;
        height: 600px;
    }
}

@keyframes moveBlob {
    0% {
        transform: translate(-10%, -10%) scale(1);
    }

    100% {
        transform: translate(20%, 10%) scale(1.2);
    }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    perspective: 1200px;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-wide {
        grid-column: span 2;
    }

    .bento-tall {
        grid-row: span 2;
    }
}

.review-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(74, 103, 65, 0.08);
    border-radius: 2rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.review-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--ayur-accent);
    box-shadow:
        0 0 30px rgba(196, 139, 50, 0.3),
        0 0 60px rgba(196, 139, 50, 0.2),
        0 30px 60px -15px rgba(26, 46, 26, 0.15);
}

.review-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 2.1rem;
    background: linear-gradient(45deg, transparent, rgba(196, 139, 50, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

.review-card:hover::before {
    opacity: 1;
    animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.stars {
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.star-icon {
    width: 18px;
    height: 18px;
    color: var(--ayur-leaf);
    filter: drop-shadow(0 0 0px transparent);
    transition: color 0.6s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s ease;
}

.review-card:hover .star-icon {
    color: var(--ayur-accent);
    transform: rotate(360deg) scale(1.15);
    filter: drop-shadow(0 0 6px rgba(196, 139, 50, 0.6));
}

.review-card:hover .star-icon:nth-child(2) {
    transition-delay: 0.05s;
}

.review-card:hover .star-icon:nth-child(3) {
    transition-delay: 0.1s;
}

.review-card:hover .star-icon:nth-child(4) {
    transition-delay: 0.15s;
}

.review-card:hover .star-icon:nth-child(5) {
    transition-delay: 0.2s;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

.delay-7 {
    transition-delay: 0.7s;
}

.delay-8 {
    transition-delay: 0.8s;
}

.delay-9 {
    transition-delay: 0.9s;
}

/* --- Order Success Page --- */
.success-animation {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px #3d5a36;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #3d5a36;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #3d5a36;
    }
}

.delivery-timeline {
    position: relative;
    padding-left: 30px;
}

.delivery-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #65a30d;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #65a30d;
}

.timeline-item.completed::before {
    background: #3d5a36;
    box-shadow: 0 0 0 2px #3d5a36;
}