/*
Theme Name:   Udacoding Theme
Theme URI:    https://udacoding.com/
Description:  Professional WordPress theme for Udacoding - Digital Solutions Company.
Author:       Muhammad Luthfi Naldi
Author URI:   
Version:      1.0.0
Text Domain:  udacoding-theme
*/

:root {
    /* Color Palette — White-Green Udacoding */
    --ink: #111827;
    --charcoal: #1F2937;
    --brand-green: #10B981;
    --brand-green-dark: #059669;
    --brand-green-glow: rgba(16, 185, 129, 0.3);
    --cream: #FFFFFF;
    --cream-dark: #F9FAFB;
    --mid: #4B5563;
    --border: rgba(16, 185, 129, 0.15);
    --glass: rgba(31, 41, 55, 0.85);

    /* Typography */
    --ff-head: 'Sora', 'Space Grotesk', sans-serif;
    --ff-body: 'Sora', 'Space Grotesk', sans-serif;

    /* Spacing */
    --section-pad: 8rem;
    --container-max: 1280px;

    /* Animation */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* Modern Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--ff-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.site-main {
    padding-top: 72px; /* Standard navbar height */
    min-height: 80vh;
    background: #FFFFFF;
}

@media (max-width: 1024px) {
    .site-main {
        padding-top: 60px; /* Mobile navbar height */
    }
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-head);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    color: var(--mid);
    line-height: 1.8;
}

a {
    color: #10B981;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #059669;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #10B981;
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    font-family: var(--ff-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    background: var(--brand-green-dark);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--brand-green);
    border: 2px solid var(--brand-green);
    border-radius: 8px;
    font-family: var(--ff-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--brand-green);
    color: var(--cream);
    transform: translateY(-2px);
}

/* Section Styles */
.section {
    padding: var(--section-pad) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand-green);
}

.section-title p {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ink) 0%, var(--charcoal) 100%);
    padding: 8rem 2rem 4rem;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--cream);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title em {
    color: var(--brand-green);
    font-style: italic;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(250, 247, 240, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
}

/* Services Section */
.services-section {
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    transition: all var(--transition-medium);
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(30px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-green);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--brand-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 28px;
    color: var(--cream);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-title a {
    color: var(--ink);
}

.service-title a:hover {
    color: var(--brand-green);
}

.service-description {
    color: var(--mid);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--mid);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li::before {
    content: '✓';
    color: var(--brand-green);
    font-weight: bold;
}

/* About Section */
.about-section {
    background: var(--cream-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-card {
    background: var(--cream);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--brand-green);
    opacity: 0;
    transform: translateX(-30px);
}

.about-card:nth-child(even) {
    transform: translateX(30px);
}

.about-icon {
    font-size: 32px;
    color: var(--brand-green);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-card p {
    line-height: 1.8;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--ink);
    color: var(--cream);
    padding: var(--section-pad) 0;
}

.testimonials-section .section-title h2 {
    color: var(--cream);
}

.testimonial-card {
    background: rgba(250, 247, 240, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
}

.testimonial-text {
    font-family: var(--ff-head);
    font-size: 1.4rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--cream);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

/* Training Section */
.training-section {
    background: var(--cream);
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.training-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-medium);
    opacity: 0;
    transform: translateY(30px);
}

.training-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.training-thumbnail {
    height: 200px;
    overflow: hidden;
}

.training-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.training-card:hover .training-thumbnail img {
    transform: scale(1.05);
}

.training-content {
    padding: 1.5rem;
}

.training-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

/* Initiatives Section */
.initiatives-section {
    background: var(--cream-dark);
}

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

.initiative-card {
    background: var(--cream);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-medium);
    opacity: 0;
    transform: translateY(30px);
}

.initiative-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: var(--cream);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--brand-green);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.5rem 0;
}

.footer-section ul li a {
    color: rgba(250, 247, 240, 0.7);
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--brand-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    color: rgba(250, 247, 240, 0.5);
}

/* Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-pad: 4rem;
    }

    .hero-section {
        padding: 6rem 1rem 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Page Content Wrappers (vanilla CSS replacements for Tailwind utilities) */
.ukm-page-content {
    padding: 4rem 2rem;
    background: var(--cream);
}

.ukm-content-wide {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.ukm-content-narrow {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    color: var(--mid);
    font-size: 1.1rem;
    line-height: 1.8;
}

.ukm-empty-notice {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--cream-dark);
    border-radius: 12px;
    border: 2px dashed var(--border);
}

.ukm-empty-notice h3 {
    font-family: var(--ff-head);
    font-size: 1.75rem;
    color: var(--brand-green);
    margin-bottom: 1rem;
}

.ukm-empty-notice p {
    color: var(--mid);
}

/* Override Parent Theme Containers for Full-Width */
#page, .site, #content, .site-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Front Page: push content below fixed navbar, allow Spectra full-width */
.ukm-front-page {
    padding-top: 82px; /* height of fixed .topbar */
    overflow-x: hidden;
}

/* Allow Spectra alignfull blocks to be truly full width */
.ukm-front-page .alignfull,
.ukm-front-page .wp-block-uagb-container.alignfull,
.ukm-front-page .uagb-is-root-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}


/* Topbar */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.topbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.container-nav {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    min-height: 50px;
}

@media (max-width: 768px) {
    .container-nav {
        padding: 0 1rem;
    }
}

.logo-mark {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px; height: 42px;
    background: var(--brand-green);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
}

.logo-text { font-family: var(--ff-head); font-size: 1.25rem; color: #1F2937; font-weight: 700; letter-spacing: -0.01em; }
.logo-text span { color: #10B981; }

@media (max-width: 480px) {
    .logo-text { font-size: 1.1rem; }
    .logo-icon { width: 32px; height: 32px; }
}

/* Navigation Common Styles */
.main-nav { transition: all 0.3s ease; }
.nav-list { list-style: none; display: flex; flex-wrap: nowrap; margin: 0; padding: 0; }
.nav-list li { white-space: nowrap; position: relative; }
.nav-list a {
    color: #4B5563;
    text-decoration: none;
    font-size: 0.78rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.08em;
    transition: all 0.3s;
    padding: 10px 0;
    display: flex;
    align-items: center;
}
.nav-list a:hover { color: #10B981; }

.nav-list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Mobile Navigation (< 1024px) */
.mobile-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 12px; cursor: pointer; transition: all 0.3s; border-radius: 8px; }
.mobile-toggle:hover { background: rgba(0,0,0,0.05); }
.mobile-toggle span { width: 22px; height: 2px; background: #1F2937; border-radius: 2px; transition: all 0.3s; }

@media (max-width: 1024px) {
    .mobile-toggle { 
        display: flex; 
        z-index: 10001; /* Topmost */
    }
    
    .main-nav { 
        display: none; 
        position: fixed; 
        top: 0; left: 0; right: 0; bottom: 0;
        background: #111827; 
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        padding: 4rem 2rem; 
        z-index: 10000; /* Just below toggle */
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .main-nav.active { 
        display: flex; 
        opacity: 1;
    }
    
    .nav-list { 
        list-style: none;
        flex-direction: column; 
        gap: 0.75rem; 
        text-align: center; 
        width: 100%;
        margin: 0 0 1.5rem 0;
        padding: 0;
    }
    
    .nav-list a { 
        font-size: 1.1rem; 
        color: #FFFFFF !important; 
        font-weight: 600; 
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 12px;
        display: block;
        text-decoration: none;
        opacity: 0.9;
    }
    
    .btn-nav {
        background: #10B981 !important;
        color: #FFFFFF !important;
        padding: 0.75rem 1.5rem;
        border-radius: 100px;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 0.05em;
        text-decoration: none;
        width: auto;
        min-width: 200px;
        text-align: center;
    }

    .ukm-header-actions {
        display: none !important;
    }
}

/* Desktop Navigation (> 1025px) */
@media (min-width: 1025px) {
    .main-nav { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }
    .nav-list { gap: 1.5rem; flex-wrap: nowrap; }
    
    /* Dropdown Logic */
    .nav-list li.menu-item-has-children > a::after {
        content: "";
        display: inline-block;
        width: 0.4em;
        height: 0.4em;
        border-right: 1px solid currentColor;
        border-bottom: 1px solid currentColor;
        transform: rotate(45deg);
        margin-left: 6px;
        position: relative;
        top: -2px;
        transition: transform 0.3s;
    }
    .nav-list li.menu-item-has-children:hover > a::after {
        transform: rotate(225deg);
        top: 1px;
    }
    
    /* Desktop Dropdown Styles - Premium White Look */
    .nav-list .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 260px;
        background: #ffffff !important;
        border: 1px solid #f0f0f0 !important;
        border-radius: 12px !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
        padding: 10px 0 !important;
        margin-top: 5px;
    }
    
    .nav-list li:hover > .sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    .nav-list .sub-menu li {
        width: 100%;
        display: block;
    }
    
    .nav-list .sub-menu a {
        padding: 12px 24px !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        text-transform: none !important; /* Premium looks often use normal casing or subtle uppercase */
        letter-spacing: 0.5px !important;
        color: #374151 !important; /* Dark Gray */
        display: block !important;
        transition: all 0.2s !important;
        border-bottom: none !important;
        text-align: left !important;
        line-height: 1.4 !important;
    }
    
    .nav-list .sub-menu li:last-child a {
        border-bottom: none !important;
    }
    
    .nav-list .sub-menu a:hover {
        background: #f9fafb !important;
        color: #10B981 !important; /* Brand Green on Hover */
        padding-left: 28px !important;
    }
}

@media (min-width: 1280px) {
    .main-nav { gap: 2.5rem; }
    .nav-list { gap: 2rem; }
}

/* Mobile Toggle Animation */
.mobile-toggle { transition: transform 0.3s; }
.mobile-toggle span { 
    transition: all 0.3s; 
    transform-origin: center;
    background: #1F2937; /* Dark on white header */
}

.mobile-toggle.is-active span {
    background: #FFFFFF; /* White on dark menu overlay */
}

.mobile-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn-nav {
    background: #10B981; color: #FFFFFF;
    padding: 0.65rem 1.75rem; border-radius: 100px;
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    text-decoration: none; letter-spacing: 0.08em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-nav:hover { background: #059669; color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }

.btn-primary {
    background: #10B981; color: #FFFFFF;
    padding: 1.1rem 2.5rem; border-radius: 100px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    text-decoration: none; display: inline-flex; align-items: center; gap: 12px;
    transition: all 0.3s;
}

.btn-outline {
    border: 1px solid #10B981; color: #10B981;
    padding: 1.1rem 2.5rem; border-radius: 100px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
    text-decoration: none; transition: all 0.3s;
}
.btn-outline:hover { background: #10B981; color: #FFFFFF; }

/* Header Cart Icon */
.ukm-header-cart {
    position: relative;
    display: flex;
    align-items: center;
    color: #4B5563;
    margin-left: 1.5rem;
    transition: color 0.3s;
}
.ukm-header-cart:hover { color: #10B981; }
.ukm-header-account {
    color: #4B5563;
    margin-left: 1.5rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    height: 100%;
}
.ukm-header-account:hover { color: #10B981; }

.ukm-header-actions {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.ukm-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #10B981;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Breadcrumbs Styling */
.ukm-breadcrumbs-wrapper {
    background: var(--cream-dark);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    margin-top: 82px; /* Offset for fixed header */
    font-size: 0.85rem;
}

.rank-math-breadcrumb {
    color: var(--mid);
    font-weight: 500;
}

.rank-math-breadcrumb a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s;
}

.rank-math-breadcrumb a:hover {
    color: var(--brand-green);
}

.rank-math-breadcrumb .separator {
    margin: 0 10px;
    color: var(--brand-green);
    opacity: 0.5;
}

.rank-math-breadcrumb .last {
    color: var(--brand-green);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .ukm-breadcrumbs-wrapper { margin-top: 72px; padding: 1rem 0; }
}

/* Hero */
.hero {
    min-height: 100vh;
    background: var(--charcoal);
    padding-top: 10rem;
    position: relative; overflow: hidden;
    display: flex; align-items: center;
}

.hero-bg-overlay {
    position: absolute; inset: 0;
    background-image: 
        radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        linear-gradient(to bottom, transparent, var(--charcoal));
    pointer-events: none;
}

.hero-container { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 3rem; 
    position: relative; 
    z-index: 2; 
    align-items: center;
}

@media (max-width: 991px) {
    .hero-container { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
}

.hero-eyebrow {
    color: var(--brand-green); font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.3em;
    display: block; margin-bottom: 2rem;
}

.hero-h1 {
    font-family: var(--ff-head); 
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 1; color: var(--cream); font-weight: 700;
    margin-bottom: 2.5rem; letter-spacing: -0.01em;
}
.hero-h1 em { color: var(--brand-green); font-style: italic; }

.hero-sub {
    color: rgba(250, 247, 240, 0.6); font-size: 1.15rem;
    max-width: 480px; margin-bottom: 3.5rem; font-weight: 300;
}

.hero-ctas { display: flex; gap: 1.5rem; }

.hero-visual { position: relative; }
.hero-mockup-container {
    width: 100%; border-radius: 12px; overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    border: 1px solid rgba(16, 185, 129, 0.2);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.hero-visual:hover .hero-mockup-container { transform: perspective(1000px) rotateY(0) rotateX(0); }
.hero-img { width: 100%; height: auto; display: block; }

.hero-badge {
    position: absolute; bottom: -2rem; right: -1rem;
    background: var(--glass); backdrop-filter: blur(8px);
    border: 1px solid var(--border); padding: 1.5rem;
    border-radius: 8px; text-align: center;
}
.hero-badge-num { font-family: var(--ff-head); color: var(--brand-green); font-size: 2.5rem; font-weight: 700; display: block; line-height: 1; }
.hero-badge-label { font-size: 0.75rem; color: var(--cream); opacity: 0.6; text-transform: uppercase; letter-spacing: 0.1em; }

/* Stats */
.stats-band { background: var(--ink); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 4rem 2rem; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--ff-head); font-size: 3.5rem; color: var(--brand-green); font-weight: 700; line-height: 1; display: block; }
.stat-label { font-size: 0.8rem; color: var(--mid); text-transform: uppercase; letter-spacing: 0.15em; margin-top: 0.75rem; display: block; }

/* About */
.about { padding: var(--section-pad) 0; background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: center; }
.section-label { color: var(--brand-green); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; display: inline-block; margin-bottom: 1.5rem; }
.section-title { font-family: var(--ff-head); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; font-weight: 700; }
.section-title em { color: var(--brand-green); font-style: italic; }
.about-desc { font-size: 1.15rem; color: var(--mid); margin: 2rem 0; font-weight: 300; }

.feature-row { display: flex; gap: 1.5rem; padding: 2rem; background: white; border-radius: 8px; border: 1px solid rgba(0,0,0,0.05); margin-bottom: 1.5rem; transition: transform 0.3s; }
.feature-row:hover { transform: translateX(10px); border-color: var(--brand-green); }
.feat-icon { width: 48px; height: 48px; background: rgba(16, 185, 129, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.feat-text h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.about-card { background: var(--charcoal); padding: 4rem; border-radius: 12px; border: 1px solid var(--border); position: relative; overflow: hidden; }
.about-card-quote { font-family: var(--ff-head); font-size: 2rem; font-style: italic; color: var(--cream); line-height: 1.4; margin-bottom: 2rem; }
.about-card-source { color: var(--brand-green); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; }

/* Services */
.services { padding: 3rem 0; background: var(--cream-dark); }
.services-head { text-align: center; margin-bottom: 3rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card { background: white; padding: 3rem; border-radius: 12px; border: 1px solid rgba(0,0,0,0.05); transition: all 0.4s; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.08); border-color: var(--brand-green); }
.service-num { font-family: var(--ff-head); font-size: 4rem; color: rgba(16, 185, 129, 0.1); font-weight: 700; line-height: 1; margin-bottom: 2rem; }
.service-icon { width: 64px; height: 64px; background: rgba(16, 185, 129, 0.05); border-radius: 12px; display: flex; align-items: center; justify-content: center; stroke: var(--brand-green); margin-bottom: 2rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-tag { color: var(--brand-green); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-top: 2rem; }

/* Home Products Section (Renamed to avoid WooCommerce conflict) */
.home-products { padding: var(--section-pad) 0; background: var(--charcoal); color: var(--cream); }
.home-products-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 5rem; }
.view-all { color: var(--brand-green); text-decoration: none; border-bottom: 1px solid var(--brand-green); font-weight: 600; font-size: 0.9rem; padding-bottom: 4px; }
.home-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.prod-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; overflow: hidden; padding: 2.5rem; transition: all 0.3s; }
.prod-card:hover { background: rgba(255,255,255,0.05); border-color: var(--brand-green); }
.prod-img { width: 100%; height: 220px; border-radius: 8px; overflow: hidden; margin-bottom: 2rem; border: 1px solid rgba(255,255,255,0.1); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-category { color: var(--brand-green); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; margin-bottom: 0.75rem; display: block; }
.prod-name { font-family: var(--ff-head); font-size: 1.75rem; margin-bottom: 0.75rem; }
.prod-desc { font-size: 0.95rem; color: rgba(255,255,255,0.4); margin-bottom: 2.5rem; }
.prod-footer { display: flex; align-items: center; justify-content: space-between; }
.prod-price { font-family: var(--ff-head); font-size: 1.5rem; color: var(--brand-green); font-weight: 700; }
.prod-btn { width: 44px; height: 44px; background: var(--brand-green); color: var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; stroke: currentColor; }

/* Testimonials */
.testimonials { padding: var(--section-pad) 0; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 5rem; }
.testi-card { background: var(--cream-dark); padding: 3.5rem; border-radius: 12px; border: 1px solid rgba(0,0,0,0.05); }
.testi-stars { color: var(--brand-green); font-size: 1rem; margin-bottom: 1.5rem; }
.testi-text { font-size: 1.1rem; font-style: italic; color: var(--mid); margin-bottom: 2.5rem; line-height: 1.8; }
.testi-author { display: flex; align-items: center; gap: 1.25rem; }
.testi-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-green); }
.testi-name { font-weight: 700; font-size: 1rem; }
.testi-role { font-size: 0.85rem; color: var(--mid); }

/* CTA */
.cta-section { padding: 60px 0; background: var(--ink); text-align: center; position: relative; overflow: hidden; }
.cta-inner { position: relative; z-index: 2; }
.cta-h2 { font-family: var(--ff-head); color: var(--cream); font-size: clamp(3rem, 7vw, 5rem); line-height: 1.1; margin-bottom: 2rem; }
.cta-btns { display: flex; justify-content: center; gap: 2rem; }

/* Footer */
.footer { background: #080707; padding: 6rem 0 3rem; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 3rem; }
.footer-desc { color: rgba(255,255,255,0.3); font-size: 0.9rem; margin-top: 1.5rem; max-width: 320px; }
.footer-social { display: flex; gap: 1rem; margin-top: 2rem; }
.social-btn { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.75rem; transition: all 0.3s; }
.social-btn:hover { border-color: var(--brand-green); color: var(--brand-green); }
.footer-col h5 { color: var(--brand-green); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 2rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; color: rgba(255,255,255,0.4); font-size: 0.9rem; }
.footer-col a { color: inherit; text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.2); font-size: 0.8rem; }

/* Archive & Blog Grid (Variant 2) */
.archive-main, .single-post-main, .page-main, .error-404-main {
    padding-top: 8rem;
    background: #FFFFFF;
    min-height: 80vh;
}

.section-hero-small {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    padding: 6rem 0;
    color: #FFFFFF;
    text-align: center;
}

.blog-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.blog-card:hover { transform: translateY(-10px); border-color: #10B981; box-shadow: 0 15px 35px rgba(16, 185, 129, 0.15); }

/* Featured Card Variant */
.blog-card.featured-card {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
}

.blog-card.featured-card .blog-img { height: 100%; min-height: 400px; }
.blog-card.featured-card .blog-content { padding: 4rem; display: flex; flex-direction: column; justify-content: center; }
.blog-card.featured-card h2 { font-size: 2.5rem; }

/* Standard Card Variant */
.blog-card.standard-card { display: flex; flex-direction: column; }
.blog-card.standard-card .blog-img { height: 240px; }
.blog-card.standard-card .blog-content { padding: 2.5rem; }

.img-placeholder { background: linear-gradient(45deg, #eee, #f5f5f5); height: 100%; }

.blog-content h2, .blog-content h4 { font-family: var(--ff-head); margin-bottom: 1rem; }
.blog-content h2 a, .blog-content h4 a { text-decoration: none; color: inherit; transition: color 0.3s; }
.blog-content h2 a:hover, .blog-content h4 a:hover { color: #10B981; }

.post-date { font-size: 0.8rem; color: #10B981; text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 0.75rem; }
.post-excerpt { color: var(--mid); font-size: 0.95rem; margin-bottom: 1.5rem; }
.read-more { color: #10B981; font-weight: 700; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

.pagination { margin-top: 5rem; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 10px; }
.pagination .page-numbers { padding: 8px 15px; border: 1px solid var(--border); text-decoration: none; border-radius: 4px; color: var(--mid); }
.pagination .current { background: #10B981; color: white; border-color: #10B981; }

.section-title-small { font-family: var(--ff-head); font-size: 2rem; margin-bottom: 2rem; }
.related-posts { background: var(--cream-dark); border-top: 1px solid var(--border); margin-top: 4rem; }

/* Single Post & Page */
.container-medium { max-width: 800px; margin: 0 auto; }
.post-header { padding: 4rem 0; text-align: center; background: linear-gradient(135deg, #10B981 0%, #059669 100%); color: #FFFFFF; }
.post-meta { font-size: 0.85rem; color: #10B981; text-transform: uppercase; letter-spacing: 0.2rem; display: block; margin-bottom: 1.5rem; }
.post-title, .page-title { font-family: var(--ff-head); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; font-weight: 700; margin-bottom: 3rem; }
.post-thumbnail-large { margin-top: -8rem; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.3); }
.post-thumbnail-large img { width: 100%; height: auto; display: block; }

.post-content-area, .page-content-area { padding: 6rem 0; background: #FFFFFF; }
.post-text, .page-text { font-size: 1.15rem; line-height: 1.8; color: var(--mid); }
.post-text p, .page-text p { margin-bottom: 2rem; }
.post-text h2, .post-text h3 { font-family: var(--ff-head); color: var(--ink); margin: 3.5rem 0 1.5rem; }

.post-footer { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.post-tags a { font-size: 0.8rem; background: var(--border); padding: 5px 12px; border-radius: 4px; text-decoration: none; color: var(--mid); }
.post-navigation { display: flex; justify-content: space-between; margin-top: 3rem; }
.post-navigation a { color: #10B981; text-decoration: none; font-weight: 700; }

/* 404 */
.text-center { text-align: center; }
.error-description { font-size: 1.25rem; color: var(--mid); max-width: 500px; margin: 2rem auto 3rem; }

/* Existing Animations Redux */
.reveal-up, .reveal-left, .reveal-right { opacity: 0; transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-up { transform: translateY(50px); }
.active { opacity: 1; transform: translate(0); }

/* Responsive Updates */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
    .post-thumbnail-large { margin-top: 2rem; }
}

/* Gutenberg Blocks Styling */

/* Block: Page Header */
.ukm-block-header {
    background: var(--charcoal);
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
    color: var(--cream);
    border-bottom: 1px solid var(--border);
}

.header-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(var(--brand-green) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.05;
    pointer-events: none;
}

.header-title {
    font-family: var(--ff-head);
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--brand-green);
    margin-bottom: 2rem;
}

.header-desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(250, 247, 240, 0.6);
    font-weight: 300;
}

/* Block: Text & Image */
.ukm-block-ti.section-padding { padding: 8rem 0; }
.ti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.img-left .ti-content-col { order: 2; }
.img-left .ti-media-col { order: 1; }

.ti-main-content {
    font-size: 1.15rem;
    color: var(--mid);
    margin-top: 2rem;
    line-height: 1.8;
}

.ti-image-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    background: var(--cream-dark);
}

.ti-image-box img { width: 100%; height: auto; display: block; filter: brightness(0.95); transition: transform 0.8s; }
.ti-image-box:hover img { transform: scale(1.05); }

@media (max-width: 1024px) {
    .ti-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
}

/* Block: Klien Grid */
.ukm-block-klien { background: var(--cream-dark); }
.klien-grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.klien-logo-wrapper {
    background: white;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s ease;
}

.klien-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.klien-item:hover .klien-logo-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--brand-green);
}

.klien-item:hover .klien-logo-wrapper img {
    filter: grayscale(0);
    opacity: 1;
}

.klien-name-placeholder { font-weight: 700; color: var(--mid); font-size: 1rem; }

/* Block: Product Grid (Adaptive) */
.product-grid-block {
    padding: 6rem 0;
}

.product-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
    border-color: var(--brand-green);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--cream-dark);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}

.product-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.product-info {
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-title {
    font-family: var(--ff-head);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.product-title a {
    text-decoration: none;
    color: var(--ink);
    transition: color 0.3s;
}

.product-card:hover .product-title a {
    color: var(--brand-green);
}

.product-price {
    font-family: var(--ff-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-green);
    letter-spacing: 0.02em;
}

.product-price .price-prefix {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-right: 2px;
}

/* WooCommerce Price HTML compatibility */
.product-price ins { text-decoration: none; }
.product-price del { font-size: 0.8em; opacity: 0.5; margin-right: 8px; }
.product-price amount { color: var(--brand-green); }

@media (max-width: 640px) {
    .product-grid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========================================================================= */
/* TAILWIND-LIKE UTILITY CLASSES (Clean Code UI/UX Foundation) */
/* ========================================================================= */

/* Layout & Display */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Alignment */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Spacing (Padding) */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

/* Spacing (Margin) */
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

/* Gaps */
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; font-family: var(--ff-head); }
.text-5xl { font-size: 3rem; line-height: 1; font-family: var(--ff-head); }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Colors (Using theme variables) */
.text-cream { color: var(--cream); }
.text-mid { color: var(--mid); }
.text-gold { color: var(--brand-green); }
.text-ink { color: var(--ink); }
.bg-cream { background-color: var(--cream); }
.bg-cream-dark { background-color: var(--cream-dark); }
.bg-charcoal { background-color: var(--charcoal); }
.bg-ink { background-color: var(--ink); }
.bg-white { background-color: #ffffff; }

/* Borders & Shadows */
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.border { border-width: 1px; border-style: solid; }
.border-gold { border-color: var(--brand-green); }
.border-cream { border-color: var(--border); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Sizing & Positioning */
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.z-10 { z-index: 10; }

/* Responsive Utilities */
@media (max-width: 768px) {
    .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .md\:flex-col { flex-direction: column; }
    .md\:px-4 { padding-left: 1rem; padding-right: 1rem; }
    .md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
    .md\:gap-4 { gap: 1rem; }
}

/* ========================================================================= */
/* UKM TOKO SHOP PAGE - PREMIUM DESIGN                                      */
/* ========================================================================= */

/* --- Shop Page --- */
.ukm-shop-page { background-color: var(--cream); min-height: 80vh; }

/* --- Hero --- */
.ukm-shop-hero {
    background-color: var(--charcoal);
    padding: 8rem 2rem 4rem;
    text-align: center;
    border-bottom: 2px solid rgba(16, 185, 129, 0.2);
}
.ukm-shop-hero__label {
    color: var(--brand-green);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}
.ukm-shop-hero__title {
    font-family: var(--ff-head);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--cream);
    margin: 0;
}

/* --- Grid Section --- */
.ukm-shop-grid-section { padding: 4rem 2rem; }
.ukm-shop-container { max-width: 1200px; margin: 0 auto; }

/* --- Toolbar (result count + sorting) --- */
.ukm-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.ukm-shop-toolbar .woocommerce-result-count {
    color: var(--mid);
    font-size: 0.9rem;
    margin: 0;
}
.ukm-shop-toolbar .woocommerce-ordering select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
}

/* --- Product Grid --- */
.ukm-product-grid {
    display: grid;
    grid-template-columns: repeat(var(--product-cols, 3), 1fr);
    gap: 2rem;
}

/* --- Product Card --- */
.ukm-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.ukm-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}

/* Image */
.ukm-product-card__image {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fafafa;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.ukm-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.25rem;
    transition: transform 0.4s ease;
}
.ukm-product-card:hover .ukm-product-card__image img {
    transform: scale(1.05);
}
.ukm-product-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--brand-green);
    color: var(--charcoal);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ukm-product-card__noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--mid); font-size: 0.9rem;
}

/* Body */
.ukm-product-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Category */
.ukm-product-card__category {
    font-size: 0.65rem;
    color: var(--brand-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Title */
.ukm-product-card__title {
    font-family: var(--ff-head);
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0 0 auto 0;
    padding-bottom: 0.75rem;
}
.ukm-product-card__title a {
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.2s;
}
.ukm-product-card__title a:hover { color: var(--brand-green); }

/* Price */
.ukm-product-card__price {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.75rem;
}
.ukm-product-card__price del {
    font-size: 0.8em;
    opacity: 0.5;
    font-weight: 400;
}
.ukm-product-card__price ins {
    text-decoration: none;
    color: var(--brand-green);
}

/* Button */
.ukm-product-card__btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--charcoal);
    color: var(--brand-green);
    padding: 0.7rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-top: auto;
}
.ukm-product-card__btn:hover {
    background: var(--brand-green);
    color: var(--charcoal);
}

/* --- Pagination --- */
.ukm-shop-pagination { margin-top: 3rem; text-align: center; }

/* --- Empty State --- */
.ukm-shop-empty {
    text-align: center; padding: 4rem;
    background: #fff; border-radius: 12px;
}
.ukm-shop-empty h3 { color: var(--charcoal); font-family: var(--ff-head); }
.ukm-shop-empty p { color: var(--mid); }

/* --- Responsive Grid --- */
@media (max-width: 768px) {
    .ukm-product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
    .ukm-shop-grid-section { padding: 2rem 1rem; }
    .ukm-shop-hero { padding: 6rem 1.5rem 3rem; }
}
@media (max-width: 480px) {
    .ukm-product-grid { grid-template-columns: 1fr !important; }
}

/* ========================================================================= */
/* WOOCOMMERCE RELATED PRODUCTS (Single Product)                             */
/* ========================================================================= */
.related.products {
    background: transparent !important;
    padding: 3rem 0;
    margin-top: 3rem;
}
.related.products h2 {
    font-family: var(--ff-head) !important;
    font-size: 2rem !important;
    color: var(--charcoal) !important;
    margin-bottom: 2rem !important;
    text-align: center;
}
.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(var(--product-cols, 3), 1fr) !important;
    gap: 2rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
.related.products ul.products li.product {
    background: #fff !important;
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    transition: transform 0.3s ease !important;
    width: auto !important;
    margin: 0 !important;
}
.related.products ul.products li.product:hover {
    transform: translateY(-6px) !important;
}
.related.products ul.products li.product img {
    aspect-ratio: 1/1;
    object-fit: contain !important;
    padding: 1rem !important;
    width: 100% !important;
    height: auto !important;
}
.related.products ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--ff-head) !important;
    font-size: 1.1rem !important;
    padding: 0 1.25rem !important;
    margin: 0.5rem 0 !important;
    color: var(--charcoal) !important;
}
.related.products ul.products li.product .price {
    padding: 0 1.25rem 1rem !important;
    color: var(--brand-green) !important;
    font-weight: bold !important;
    font-size: 1rem !important;
}
.related.products ul.products li.product .button {
    margin: 0 1.25rem 1.25rem !important;
    background: var(--charcoal) !important;
    color: var(--brand-green) !important;
    text-align: center !important;
    border-radius: 6px !important;
    padding: 0.7rem 1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    display: block !important;
}
.related.products ul.products li.product .button:hover {
    background: var(--brand-green) !important;
    color: var(--charcoal) !important;
}

/* ========================================================================= */
/* WOOCOMMERCE CART, CHECKOUT, & ACCOUNT STYLING                             */
/* ========================================================================= */

/* --- Common UI elements --- */
.woocommerce-input-wrapper { display: block; width: 100%; }
.woocommerce-Input, .input-text {
    width: 100%;
    padding: 0.75rem 1rem !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-family: var(--ff-body) !important;
    transition: border-color 0.3s ease;
}
.woocommerce-Input:focus, .input-text:focus {
    border-color: var(--brand-green) !important;
    outline: none;
}

/* --- Cart Page --- */
.woocommerce-cart-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Cart Wrapper Grid (Item 28) */
.ukm-cart-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: flex-start;
}
@media (max-width: 1024px) {
    .ukm-cart-layout-wrapper { grid-template-columns: 1fr; }
}

.shop_table.cart { border-collapse: separate; border-spacing: 0 1rem; width: 100%; }
.shop_table.cart thead { display: none; } /* Mobile-first table */
.shop_table.cart tr.cart_item {
    background: var(--cream);
    border-radius: 10px;
    margin-bottom: 1rem;
}
.shop_table.cart td { padding: 1rem !important; border: none !important; }
.shop_table.cart .product-thumbnail img { border-radius: 8px; width: 80px !important; }
.shop_table.cart .product-name a { font-family: var(--ff-head); color: var(--charcoal); font-weight: bold; text-decoration: none; }

/* Cart Totals */
.cart-collaterals { margin-top: 0; }
.cart_totals {
    background: var(--charcoal);
    color: var(--cream);
    padding: 2.5rem;
    border-radius: 15px;
}
.cart_totals h2 { font-family: var(--ff-head); color: var(--brand-green); margin-bottom: 1.5rem; }
.cart_totals .shop_table { width: 100%; }
.cart_totals .shop_table th, .cart_totals .shop_table td { color: var(--cream); border-bottom: 1px solid rgba(16, 185, 129, 0.2); padding: 1rem 0; }
.checkout-button {
    background: var(--brand-green) !important;
    color: var(--charcoal) !important;
    width: 100%;
    text-align: center;
    padding: 1rem !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    text-transform: uppercase;
}

/* Checkout Grid Wrapper (Item 29) */
.ukm-checkout-grid-wrapper .woocommerce-checkout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 4rem;
    align-items: flex-start;
}
@media (max-width: 1024px) {
    .ukm-checkout-grid-wrapper .woocommerce-checkout { grid-template-columns: 1fr; }
}

/* Hide default checkout columns display to allow grid */
.woocommerce-checkout #customer_details, 
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
    width: 100% !important;
    float: none !important;
}

#place_order {
    background: var(--charcoal) !important;
    color: var(--brand-green) !important;
    width: 100%;
    padding: 1rem !important;
    border-radius: 8px;
    font-weight: bold;
}

/* --- My Account (CLEAN SLATE FIX) --- */
/* Wrapper: 2-column layout owned entirely by us */
.ukm-account-layout-final {
    display: flex !important;
    gap: 4rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 0;
}

/* Sidebar column */
.ukm-account-sidebar {
    width: 280px !important;
    flex: 0 0 280px;
}

/* Content column */
.ukm-account-content-area {
    flex: 1 1 auto;
    min-width: 0; /* Critical: prevents flex-child from overflowing */
    background: #fff;
    padding: 3.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    min-height: 400px;
}

/* Reset WooCommerce's own float/width defaults ONLY for our wrapper */
.ukm-account-sidebar .woocommerce-MyAccount-navigation,
.ukm-account-content-area .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* The sidebar nav itself - keep its dark card style */
.ukm-account-sidebar .woocommerce-MyAccount-navigation {
    background: var(--charcoal) !important;
    padding: 2rem 1.5rem !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Navigation list items */
.ukm-account-sidebar .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ukm-account-sidebar .woocommerce-MyAccount-navigation li {
    margin-bottom: 0.25rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}
.ukm-account-sidebar .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none !important;
}
.ukm-account-sidebar .woocommerce-MyAccount-navigation li a {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    color: var(--cream) !important;
    text-decoration: none !important;
    padding: 0.85rem 0.5rem !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.ukm-account-sidebar .woocommerce-MyAccount-navigation li a::before {
    content: '→';
    color: var(--brand-green);
    display: inline-block;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.ukm-account-sidebar .woocommerce-MyAccount-navigation li a:hover {
    color: var(--brand-green) !important;
}
.ukm-account-sidebar .woocommerce-MyAccount-navigation li a:hover::before {
    transform: translateX(4px);
}
.ukm-account-sidebar .woocommerce-MyAccount-navigation li.is-active > a {
    color: var(--brand-green) !important;
    font-weight: 700;
}

/* Content area: remove WC's own background/padding since parent container has it */
.ukm-account-content-area .woocommerce-MyAccount-content {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Typography inside content */
.ukm-account-content-area h2,
.ukm-account-content-area h3 {
    font-family: var(--ff-head);
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}
.ukm-account-content-area h3 {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .ukm-account-layout-final {
        flex-direction: column;
        gap: 2rem;
    }
    .ukm-account-sidebar {
        width: 100% !important;
        flex: 0 0 auto;
    }
}


/* --- Dashboard Premium UI --- */
.ukm-welcome-card {
    background: var(--charcoal);
    padding: 4rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    color: var(--cream);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.ukm-welcome-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--brand-green) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.ukm-welcome-label {
    background: var(--brand-green);
    color: var(--charcoal);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ukm-welcome-content h2 span { color: var(--brand-green); }

.btn-dashboard-main {
    display: inline-block;
    background: var(--brand-green);
    color: var(--charcoal);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-dashboard-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.ukm-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.ukm-stat-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ukm-stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-green);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.ukm-stat-icon { font-size: 2.5rem; }
.ukm-stat-info h3 { font-family: var(--ff-head); color: var(--charcoal); margin: 0; font-size: 1.25rem; }
.ukm-stat-info p { margin: 0; font-size: 0.85rem; color: var(--mid); }

/* --- WooCommerce Forms & Labels --- */
.woocommerce-form-row { margin-bottom: 1.5rem; width: 100%; }
.woocommerce-form-row label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--charcoal); font-size: 0.9rem; }
.woocommerce-EditAccountForm fieldset { border: 1px solid var(--border); padding: 2rem; border-radius: 12px; margin: 2rem 0; }
.woocommerce-EditAccountForm legend { padding: 0 1rem; font-family: var(--ff-head); font-weight: bold; color: var(--brand-green); }
.woocommerce-Button { 
    background: var(--charcoal) !important; 
    color: var(--brand-green) !important; 
    border-radius: 8px !important; 
    padding: 1rem 2.5rem !important; 
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.woocommerce-Button:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* WooCommerce Notices (Premium Refinement) */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    background: #fff !important;
    border: none !important;
    border-left: 5px solid var(--brand-green) !important;
    padding: 1.5rem 2rem !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
    color: var(--charcoal) !important;
    margin-bottom: 2.5rem !important;
    font-size: 1rem !important;
}

.woocommerce-info { border-left-color: var(--charcoal) !important; }
.woocommerce-error { border-left-color: #e74c3c !important; }

.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
    display: none !important; /* Hide standard dashicons */
}

.woocommerce-MyAccount-navigation {
    background: #ffffff;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #F3F4F6;
}
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-MyAccount-navigation li { margin-bottom: 0.5rem; border-bottom: 1px solid #F3F4F6; }
.woocommerce-MyAccount-navigation li a { color: #4B5563; text-decoration: none; display: block; padding: 0.8rem 0; font-weight: 500; transition: color 0.3s; }
.woocommerce-MyAccount-navigation li a:hover { color: #10B981; }
.woocommerce-MyAccount-navigation li.is-active a { color: #10B981; font-weight: 700; }
.woocommerce-MyAccount-navigation li a::before {
    content: '→';
    margin-right: 10px;
    color: #10B981;
    transition: transform 0.3s;
    display: inline-block;
    opacity: 0;
}
.woocommerce-MyAccount-navigation li.is-active a::before {
    opacity: 1;
}
.woocommerce-MyAccount-navigation li a:hover::before {
    transform: translateX(5px);
    opacity: 1;
}
/* Breadcrumbs (Item 35/42) */
.woocommerce-breadcrumb {
    font-size: 0.85rem;
    color: var(--mid);
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.woocommerce-breadcrumb a { color: var(--brand-green); text-decoration: none; }
.woocommerce-breadcrumb .breadcrumb-separator { margin: 0 10px; opacity: 0.3; }

/* Login & Register Tabbed UI (Item 30) */
.ukm-auth-container {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.ukm-auth-tabs {
    display: flex;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

.ukm-tab-btn {
    flex: 1;
    padding: 1.5rem;
    border: none;
    background: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ukm-tab-btn:hover {
    color: #1F2937;
}

.ukm-tab-btn.active {
    background: #fff;
    color: #10B981;
    border-bottom: 3px solid #10B981;
}

.ukm-auth-content {
    padding: 3rem;
}

.ukm-auth-tab-content {
    display: none;
    animation: ukmFadeIn 0.5s ease;
}

.ukm-auth-tab-content.active {
    display: block;
}

@keyframes ukmFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.woocommerce-form-login .woocommerce-button, 
.woocommerce-form-register .woocommerce-button {
    background: #10B981 !important;
    color: #ffffff !important;
    width: 100%;
    margin-top: 1rem;
    padding: 1rem !important;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: background 0.3s;
}

.woocommerce-form-login .woocommerce-button:hover, 
.woocommerce-form-register .woocommerce-button:hover {
    background: #0D9668 !important;
}

.woocommerce-account .woocommerce .u-columns.col2-set h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #1F2937;
    border-bottom: 2px solid #10B981;
    display: inline-block;
}

/* Ensure Register and Login forms within the tab use full width */
.woocommerce-form-login, .woocommerce-form-register {
    width: 100%;
    max-width: none !important;
}

.ukm-auth-tab-content form {
    width: 100%;
}

/* ========================================================================= */
/* MODERN LANDING PAGE (front-page.php)                                      */
/* ========================================================================= */
.udacoding-modern-landing {
    background: #f7fff8;
    color: #153226;
}

.udacoding-modern-landing .btn-outline {
    border-color: #25a95b;
    color: #167941;
    background: #ffffff;
}

.udacoding-modern-landing .btn-outline:hover {
    border-color: #1f8d4c;
    color: #ffffff;
    background: #1f8d4c;
}

.udacoding-modern-landing .udacoding-grid-bg {
    background-image: linear-gradient(rgba(37, 169, 91, 0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(37, 169, 91, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
}

.udacoding-modern-hero {
    padding: 140px 0 40px;
}

.udacoding-modern-hero__tag {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(37, 169, 91, 0.12);
    border: 1px solid rgba(37, 169, 91, 0.25);
    color: #1f8d4c;
    font-size: 13px;
    margin-bottom: 18px;
}

.udacoding-modern-hero__title {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
    color: #153226;
    margin: 0 0 16px;
}

.udacoding-modern-hero__title span {
    background: linear-gradient(135deg, #2cbf66, #167941);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.udacoding-modern-hero__desc {
    max-width: 720px;
    color: #315e4a;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 28px;
}

.udacoding-modern-hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.udacoding-modern-section {
    padding: 50px 0;
}

.udacoding-modern-section--soft {
    background: #edf9f0;
}

.udacoding-modern-section__head {
    margin-bottom: 24px;
}

.udacoding-modern-section__head h2 {
    font-size: clamp(28px, 4vw, 48px);
    color: #153226;
    margin: 0 0 8px;
}

.udacoding-modern-section__head p {
    color: #315e4a;
    font-size: 18px;
    font-weight: 500;
}

.udacoding-modern-cta {
    padding: 50px 0;
    background: linear-gradient(135deg, #26ad5d, #18934b);
    text-align: center;
}

.udacoding-modern-cta h2 {
    color: #ffffff;
    margin: 0 0 12px;
}

.udacoding-modern-cta p {
    max-width: 620px;
    margin: 0 auto 18px;
    color: #e9fff1;
}

.udacoding-modern-hero__image-wrap {
    margin-top: 32px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(37, 169, 91, 0.2);
    box-shadow: 0 20px 40px rgba(20, 72, 43, 0.15);
}

.udacoding-modern-hero__image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.udacoding-modern-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.udacoding-modern-cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.udacoding-modern-card {
    background: #ffffff;
    border: 1px solid #cdeed8;
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 6px 16px rgba(20, 72, 43, 0.06);
}

.udacoding-modern-card h3 {
    color: #153226;
    margin: 0 0 8px;
    font-size: 24px;
}

.udacoding-modern-card p {
    color: #244f3d;
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.65;
}

.udacoding-modern-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #244f3d;
}

.udacoding-modern-card li {
    margin-bottom: 6px;
    line-height: 1.55;
}

.udacoding-modern-card--wide {
    grid-column: 1 / -1;
}

.udacoding-modern-quotes {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.udacoding-modern-quote {
    margin: 0;
    background: #ffffff;
    border: 1px solid #cdeed8;
    border-radius: 14px;
    padding: 1rem;
}

.udacoding-modern-quote p {
    margin: 0 0 10px;
    color: #244f3d;
    font-size: 15px;
}

.udacoding-modern-quote cite {
    color: #167941;
    font-style: normal;
    font-weight: 600;
}

.home .topbar {
    background: #1fa44f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.home .logo-text {
    color :white;
}

.home .site-title,
.home .nav-list a,
.home .ukm-header-cart,
.home .ukm-header-account {
    color: #ffffff;
}

.home .logo-text a:hover {
    color: #ffffff;
}
.home .nav-list a:hover {
    color: #000000;
}

.home .btn-nav {
    background: #ffffff;
    color: #167941;
}

.home .btn-nav:hover {
    background: #eaffef;
    color: #0f5f30;
}

/* ==========================================================================
   Udacoding Modern White-Green Landing Page
   ========================================================================== */

.udacoding-modern-landing {
    --u-green: #10B981;
    --u-green-dark: #059669;
    --u-green-soft: rgba(16, 185, 129, 0.1);
    --u-text-dark: #1F2937;
    --u-text-mid: #4B5563;
    --u-text-light: #6B7280;
    --u-bg-white: #FFFFFF;
    --u-bg-soft: #F9FAFB;
    --u-bg-gray: #F3F4F6;
    --u-font-main: 'Sora', sans-serif;
}

.udacoding-modern-landing,
.udacoding-modern-landing * {
    font-family: var(--u-font-main);
    box-sizing: border-box;
}

.udacoding-modern-landing {
    background: var(--u-bg-white);
    color: var(--u-text-dark);
}

/* Typography Helpers */
.udacoding-modern-landing .gradient-text {
    background: linear-gradient(135deg, var(--u-green) 0%, var(--u-green-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.udacoding-modern-landing .section-tag {
    display: inline-flex;
    align-items: center;
    background: var(--u-green-soft);
    color: var(--u-green-dark);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

/* Buttons */
.udacoding-modern-landing .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all .25s;
    background: var(--u-green);
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
    text-decoration: none;
}

.udacoding-modern-landing .cta-btn:hover {
    transform: translateY(-2px);
    background: var(--u-green-dark);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.3);
}

.udacoding-modern-landing .cta-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid var(--u-green);
    color: var(--u-green) !important;
    transition: all .25s;
    text-decoration: none;
}

.udacoding-modern-landing .cta-btn-ghost:hover {
    background: var(--u-green-soft);
}

/* Hero Section */
.udacoding-modern-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.udacoding-modern-hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.udacoding-modern-hero__content {
    flex: 1;
    max-width: 620px;
}

.udacoding-modern-hero__title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--u-text-dark);
    margin: 0 0 24px;
    font-family: var(--u-font-main) !important;
}

.udacoding-modern-hero__desc {
    font-size: 18px;
    color: var(--u-text-mid);
    line-height: 1.7;
    margin-bottom: 40px;
}

.udacoding-modern-hero__image-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

@media (max-width: 991px) {
    .udacoding-modern-hero .container {
        flex-direction: column;
        text-align: center;
    }
    .udacoding-modern-hero__image-wrap {
        display: none;
    }
    .udacoding-modern-hero__content {
        max-width: 100%;
    }
}

/* Service Cards */
.udacoding-modern-section {
    padding: 100px 0;
}

.udacoding-modern-section__head {
    text-align: center;
    margin-bottom: 60px;
}

.udacoding-modern-section__head h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--u-text-dark);
    font-family: var(--u-font-main) !important;
}

.udacoding-modern-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.udacoding-modern-card {
    background: var(--u-bg-soft);
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 32px 28px;
    transition: all .3s ease;
}

.udacoding-modern-card:hover {
    transform: translateY(-5px);
    border-color: var(--u-green);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.udacoding-modern-card h3 {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--u-text-dark);
    font-family: var(--u-font-main) !important;
}

.udacoding-modern-card p {
    color: var(--u-text-light);
    line-height: 1.6;
    font-size: 15px;
}

/* Program Cards */
.udacoding-program-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 24px;
    transition: all .4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.udacoding-program-card:hover {
    border-color: #10B981;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.12);
    transform: translateY(-8px);
}

.udacoding-program-tag {
    font-size: 11px;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
    letter-spacing: 0.05em;
}

.udacoding-program-meta {
    list-style: none;
    padding: 16px 0 0;
    margin-top: 16px;
    border-top: 1px solid #F3F4F6;
    font-size: 13px;
    color: var(--u-text-light);
}

.udacoding-program-meta li {
    margin-bottom: 8px;
}

/* Animations */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

.float-anim { animation: float 4s ease-in-out infinite; }
.fade-up { animation: fadeUp .7s ease forwards; opacity: 0; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .25s; }
.fade-up-3 { animation-delay: .4s; }

/* Scoped Overrides for Header/Footer if needed */
.home .topbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E5E7EB;
}

.home .topbar.scrolled .logo-text,
.home .topbar.scrolled .site-title {
    color: #1F2937 !important;
}

.site-title {
    color: #1F2937;
}

.home .topbar.scrolled .logo-icon-box {
    background: #1fa44f !important;
    color: #ffffff !important;
}

.home .topbar.scrolled .nav-list a,
.home .topbar.scrolled .ukm-header-cart,
.home .topbar.scrolled .ukm-header-account {
    color: var(--u-text-mid);
}

.home .topbar.scrolled .nav-list a:hover,
.home .topbar.scrolled .ukm-header-cart:hover,
.home .topbar.scrolled .ukm-header-account:hover {
    color: var(--u-green);
}

@media (max-width: 1024px) {
    .udacoding-modern-cards,
    .udacoding-modern-cards--3,
    .udacoding-modern-quotes {
        grid-template-columns: 1fr;
    }
}

.portfolio-item-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #1fa44f;
}

.portfolio-item-home:hover img {
    transform: scale(1.08);
}



.portfolio-filter .filter-btn {
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: var(--u-text-mid);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.portfolio-filter .filter-btn:hover {
    border-color: var(--u-green);
    color: var(--u-green);
}

.portfolio-filter .filter-btn.active {
    background: var(--u-green);
    border-color: var(--u-green);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.portfolio-item-home {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   Active Nav Link
   ========================================================================== */
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-ancestor > a {
    color: #10B981 !important;
    font-weight: 700;
}

.nav-list .current-menu-item > a::after,
.nav-list .current_page_item > a::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #10B981;
    border-radius: 2px;
    margin-top: 4px;
}

.home .nav-list .current-menu-item > a,
.home .nav-list .current_page_item > a {
    color: #10B981 !important;
}

.nav-list .current-menu-item > a::after,
.nav-list .current_page_item > a::after {
    background: #10B981;
}

.home .topbar.scrolled .nav-list .current-menu-item > a,
.home .topbar.scrolled .nav-list .current_page_item > a {
    color: #10B981 !important;
}

.home .topbar.scrolled .nav-list .current-menu-item > a::after,
.home .topbar.scrolled .nav-list .current_page_item > a::after {
    background: #10B981;
}

/* ==========================================================================
   Gutenberg Block Full-Width Support
   ========================================================================== */
.udacoding-page-content {
    background: #FFFFFF;
}

.udacoding-page-content > .wp-block-group,
.udacoding-page-content > .wp-block-cover,
.udacoding-page-content > .alignfull {
    max-width: 100%;
    width: 100%;
}

.udacoding-page-content > .wp-block-columns,
.udacoding-page-content > .wp-block-media-text,
.udacoding-page-content > .wp-block-image,
.udacoding-page-content > .alignwide {
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.udacoding-page-content .wp-block-cover {
    min-height: 400px;
}

.udacoding-page-content .wp-block-group {
    box-sizing: border-box;
}

.udacoding-page-content .wp-block-columns {
    gap: 2rem;
}

.udacoding-page-content .wp-block-media-text {
    gap: 0;
}

.udacoding-page-content .wp-block-media-text .wp-block-media-text__content {
    padding: 2rem 3rem;
}

/* Ensure text inside blocks is readable */
.udacoding-page-content h1,
.udacoding-page-content h2,
.udacoding-page-content h3,
.udacoding-page-content h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.udacoding-page-content p {
    line-height: 1.8;
}

/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */
.woocommerce-page .site-main {
    background: #FFFFFF;
    padding-top: 100px;
}

.woocommerce .products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 24px !important;
}

.woocommerce ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    border-color: #10B981;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.1);
}

.woocommerce ul.products li.product img {
    border-radius: 0;
    margin: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 16px 4px;
    color: #1F2937;
}

.woocommerce ul.products li.product .price {
    padding: 0 16px;
    color: #10B981;
    font-weight: 700;
}

.woocommerce ul.products li.product .button {
    background: #10B981 !important;
    color: #FFFFFF !important;
    border-radius: 100px;
    margin: 12px 16px 16px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 13px;
    border: none;
}

.woocommerce ul.products li.product .button:hover {
    background: #059669 !important;
}

/* WooCommerce breadcrumb */
.woocommerce .woocommerce-breadcrumb {
    padding: 1rem 0;
    color: #6B7280;
    font-size: 14px;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #10B981;
    text-decoration: none;
}


/* Hero Split Layout */
.udacoding-hero-split {
    padding: 50px 0 10px;
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
    overflow: hidden;
}

.hero-split-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-left {
    flex: 1.2;
    min-width: 320px;
}

.hero-right {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-tag {
    color: #10B981;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title-modern {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    color: #111827;
    margin-bottom: 2rem;
}

.hero-title-modern .accent-text {
    color: #10B981;
}

.hero-subtitle-modern {
    font-size: 1.25rem;
    color: #6B7280;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions-modern {
    display: flex;
    gap: 16px;
}

.btn-primary-modern {
    background: #10B981;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.btn-secondary-modern {
    background: white;
    color: #374151;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    border: 1px solid #E5E7EB;
}

/* Cards */
.hero-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-8px);
}

.hero-card-dark {
    background: #111827;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&q=80&w=800');
    background-size: cover;
    background-position: center;
}

.hero-card-dark::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.9) 100%);
}

.card-content-bottom {
    position: relative;
    z-index: 1;
}

.card-title-white {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-desc-white {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.badge-live {
    position: absolute;
    top: 20px; right: 20px;
    background: #10B981;
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-card-white {
    background: #F9FAFB;
    padding: 30px;
    border: 1px solid #F3F4F6;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.card-icon-box {
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10B981;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card-subtitle-small {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.card-author-small {
    color: #10B981;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.card-info-small {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-footer-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9CA3AF;
    font-size: 0.8rem;
    font-weight: 600;
}

.dot-green {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    margin-right: 6px;
}

.card-actions-small {
    display: flex;
    gap: 12px;
}

.action-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .udacoding-hero-split {
        padding: 100px 0 60px;
    }
    .hero-split-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .hero-left {
        max-width: 100%;
    }
    .hero-actions-modern {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .hero-subtitle-modern {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-right {
        width: 100%;
    }
    .hero-card-dark {
        min-height: 350px;
        padding: 30px;
    }
    .card-title-white {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-title-modern {
        font-size: 2.25rem;
    }
    .hero-card-white {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- Force Consistency for Shop Page --- */
.woocommerce-loop-product__title, 
.ukm-product-card__title a {
    color: var(--charcoal) !important;
}

.ukm-product-card__category {
    color: #10B981 !important; /* Force Udacoding Green */
}

.ukm-product-card__btn {
    background: #1F2937 !important;
    color: #10B981 !important;
}

.ukm-product-card__btn:hover {
    background: #10B981 !important;
    color: #FFFFFF !important;
}

.woocommerce-pagination .page-numbers {
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.woocommerce-pagination .page-numbers.current {
    background: #10B981 !important;
    color: #FFFFFF !important;
    border-color: #10B981 !important;
}

.woocommerce-breadcrumb a {
    color: #10B981 !important;
}

.ukm-shop-hero__label {
    color: #10B981 !important;
}

ins {
    color: #10B981 !important;
    text-decoration: none !important;
}

.udacoding-page-content {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Ensure blocks inside content are contained unless explicitly full-width */
.udacoding-page-content > *:not(.alignfull) {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* WooCommerce specific container fix */
.woocommerce-cart .udacoding-page-content,
.woocommerce-checkout .udacoding-page-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
}

.udacoding-page-content > .alignwide {
    max-width: 1280px !important;
}

/* --- PREMIUM WOOCOMMERCE CART MODERNIZATION --- */

/* Layout & Container */
.woocommerce-cart .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.woocommerce-cart .woocommerce-cart-form {
    flex: 1 1 650px;
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.woocommerce-cart .cart-collaterals {
    flex: 1 1 350px;
    background: #fff;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.1);
    position: sticky;
    top: 100px;
}

/* Cart Table Styling */
.shop_table.cart {
    border: none !important;
    border-collapse: separate;
    border-spacing: 0 15px;
    width: 100% !important;
}

.shop_table.cart thead {
    display: none; /* Modern clean look usually hides thead */
}

.shop_table.cart tr.cart_item {
    background: #fafafa;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop_table.cart tr.cart_item:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.shop_table.cart td {
    border: none !important;
    padding: 20px !important;
}

.shop_table.cart td.product-thumbnail img {
    border-radius: 12px;
    width: 80px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.shop_table.cart td.product-name a {
    font-weight: 700;
    color: var(--ink);
    font-size: 1.1rem;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.shop_table.cart td.product-name .variation {
    font-size: 0.85rem;
    color: #6B7280;
}

/* Quantity Input Styling */
.quantity .qty {
    width: 60px !important;
    height: 40px;
    border-radius: 8px !important;
    border: 1px solid #E5E7EB !important;
    text-align: center;
    font-weight: 700;
    color: var(--ink);
}

/* Remove Button */
.shop_table.cart td.product-remove a.remove {
    background: #FEE2E2 !important;
    color: #EF4444 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 28px !important;
    transition: all 0.3s;
}

.shop_table.cart td.product-remove a.remove:hover {
    background: #EF4444 !important;
    color: #fff !important;
}

/* Coupon & Actions */
.cart-actions-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

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

.coupon input {
    border-radius: 100px !important;
    border: 1px solid #E5E7EB !important;
    padding: 10px 20px !important;
    width: 200px;
}

.coupon .button {
    background: #F3F4F6 !important;
    color: var(--ink) !important;
    border-radius: 100px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.coupon .button:hover {
    background: var(--ink) !important;
    color: #fff !important;
}

.shop_table.cart .button[name="update_cart"] {
    background: transparent !important;
    color: var(--brand-green) !important;
    border: 2px solid var(--brand-green) !important;
    border-radius: 100px !important;
    padding: 10px 25px !important;
    font-weight: 700 !important;
}

.shop_table.cart .button[name="update_cart"]:hover {
    background: var(--brand-green) !important;
    color: #fff !important;
}

/* Cart Totals (Right Sidebar) */
.cart_totals h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.cart_totals table {
    width: 100%;
}

.cart_totals .cart-subtotal th, 
.cart_totals .order-total th {
    text-align: left;
    font-weight: 600;
    color: #6B7280;
}

.cart_totals .order-total {
    border-top: 2px dashed #E5E7EB;
}

.cart_totals .order-total td strong {
    font-size: 1.5rem;
    color: var(--brand-green);
    font-weight: 800;
}

.wc-proceed-to-checkout {
    margin-top: 30px;
}

.wc-proceed-to-checkout .checkout-button {
    width: 100%;
    background: var(--brand-green) !important;
    color: #fff !important;
    padding: 18px !important;
    border-radius: 100px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4) !important;
    background: var(--brand-green-dark) !important;
}

/* Empty Cart Styling */
.cart-empty {
    text-align: center;
    padding: 100px 20px;
}

.cart-empty::before {
    content: "🛒";
    display: block;
    font-size: 80px;
    margin-bottom: 20px;
}

.return-to-shop .button {
    background: var(--brand-green) !important;
    color: #fff !important;
    padding: 15px 40px !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .woocommerce-cart .woocommerce {
        flex-direction: column;
    }
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        width: 100%;
    }
}

