@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;600&display=swap');

/* Main Container Wrapper (CKEditor Context) */
.desi-smart-content {
    -webkit-font-smoothing: antialiased;
}

/* Surface Contexts */
.desi-smart-content .uk-section-default,
.desi-smart-content .uk-section-muted {
    --surface-color: #ffffff;
    --surface-border: rgba(22, 145, 121, 0.15); /* Subtle teal border */
}

.desi-smart-content .uk-section-secondary {
    --surface-color: #161b22;
    --surface-border: rgba(255, 255, 255, 0.1);
}

.desi-smart-content .uk-section-primary {
    --surface-color: rgba(0, 0, 0, 0.15); /* Translucent dark on teal */
    --surface-border: rgba(255, 255, 255, 0.2);
}

/* Base Sections specific to this category handled mostly in uikit_override */

/* Headings Helpers */
.desi-smart-content .uk-heading-line {
    display: flex;
    align-items: center;
}

.desi-smart-content .uk-heading-line::before, 
.desi-smart-content .uk-heading-line::after {
    content: "";
    flex-grow: 1;
    border-bottom: 1px solid var(--surface-border);
    margin: 0 20px;
}

/* Badge System */
.desi-smart-content .badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 240, 255, 0.2);
    margin-bottom: 1rem;
}

/* Hero Section */
.desi-smart-content .hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
}

.desi-smart-content .hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.5;
}

.desi-smart-content .hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(13,17,23,1) 0%, rgba(13,17,23,0.4) 100%);
    z-index: 1;
}

.desi-smart-content .hero-content {
    position: relative;
    z-index: 2;
}

.desi-smart-content .hero-title {
    font-size: clamp(2.5rem, 4vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desi-smart-content .hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    color: var(--text-muted, #8b949e);
    max-width: 600px;
    font-weight: 300;
}

/* Premium Cards */
.desi-smart-content .premium-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.desi-smart-content .premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.desi-smart-content .premium-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.desi-smart-content .premium-card:hover::before {
    opacity: 1;
}

.desi-smart-content .icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
    transition: all 0.3s;
}

.desi-smart-content .premium-card:hover .icon-box {
    background: var(--brand-teal);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}



.desi-smart-content .card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.desi-smart-content .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Light Theme Card Context Overrides */
.desi-smart-content .uk-section-default .card-text,
.desi-smart-content .uk-section-muted .card-text {
    color: var(--text-dark-muted, #666);
}

.desi-smart-content .uk-section-secondary .card-text,
.desi-smart-content .section-darker .card-text {
    color: var(--text-muted, #8b949e);
}

/* Recolor SVGs in light sections to brand teal instead of neon cyan */
.desi-smart-content .uk-section-default .icon-box img,
.desi-smart-content .uk-section-muted .icon-box img {
    /* filter to turn #00f0ff into ~ #169179 by darkening and hue-shifting */
    filter: brightness(0.4) saturate(1.5) hue-rotate(-20deg);
}

/* Feature Unordered Lists */
.desi-smart-content ul.custom-check-list {
    list-style: none;
    padding-left: 0;
}

.desi-smart-content ul.custom-check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

/* Default Check List colors in Dark background */
.desi-smart-content .uk-section-secondary ul.custom-check-list li,
.desi-smart-content .hero-section ul.custom-check-list li,
.desi-smart-content .uk-section-primary ul.custom-check-list li {
    color: #c9d1d9;
}

.desi-smart-content .uk-section-secondary ul.custom-check-list li::before,
.desi-smart-content .hero-section ul.custom-check-list li::before,
.desi-smart-content .uk-section-primary ul.custom-check-list li::before {
    color: var(--accent-color);
}

/* Check List colors in Light background */
.desi-smart-content .uk-section-muted ul.custom-check-list li,
.desi-smart-content .uk-section-default ul.custom-check-list li {
    color: var(--text-dark, #333);
}

.desi-smart-content .uk-section-muted ul.custom-check-list li::before,
.desi-smart-content .uk-section-default ul.custom-check-list li::before {
    color: var(--brand-teal, #169179);
}

.desi-smart-content ul.custom-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Video Wrapper Element */
.desi-smart-content .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--surface-border);
}

.desi-smart-content .video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* Box Contents Styling */
.desi-smart-content .box-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.desi-smart-content .box-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.desi-smart-content .box-icon {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.desi-smart-content .box-item:hover .box-icon {
    transform: scale(1.15) rotate(-5deg);
}
