/* STABLE MODERN GLASSMORPHISM FIX */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --glass-font: 'Outfit', sans-serif;
    --glass-bg-color: rgba(255, 255, 255, 0.5); /* Good visibility */
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 25px 50px rgba(30, 58, 138, 0.08); /* Soft blue shadow */
    --gradient-brand: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    --text-primary: #1e293b;
    --text-secondary: #475569;
}

/* Force the wrapper theme background to be transparent so our gradient shows! */
body, #page, #content, .site-content {
    background: transparent !important;
}

/* Global full-height gradient fixed under everything */
.modern-glass-wrapper::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}

.modern-glass-wrapper {
    padding: 140px 0 100px;
    font-family: var(--glass-font);
}

.container-glass {
    width: 100%;
    margin: 0 auto;
    padding: 0 5%; /* Matches the Header's 5% horizontal padding exactly */
}

/* Base Glass Dynamics */
.glass-card {
    background: var(--glass-bg-color);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 1);
    border-left: 1px solid rgba(255, 255, 255, 1);
    box-shadow: var(--glass-shadow);
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 50px;
}

/* Gradients */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Editorial Glass Hero (V4 Redesign) */
.hero-editorial-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    padding: 20px 80px 10px 80px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(30, 58, 138, 0.08);
}

/* Massive background typography watermark */
.editorial-watermark {
    position: absolute;
    top: -40px;
    right: -20px;
    font-size: clamp(8rem, 15vw, 16rem);
    font-weight: 900;
    color: rgba(99, 102, 241, 0.04); /* Ultra-light violet */
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
    user-select: none;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    position: relative;
    z-index: 10;
}

.editorial-branding {
    border-right: 2px dashed rgba(0,0,0,0.1);
    padding-right: 40px;
}

.editorial-title {
    font-size: clamp(3.5rem, 6vw, 4.5rem);
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1.1;
    margin: 0 0 20px 0;
    letter-spacing: -0.04em;
}

.editorial-accent {
    width: 60px;
    height: 6px;
    background: var(--gradient-brand);
    border-radius: 4px;
}

/* CMS Content Strict Control & Overflow Fixes */
.editorial-content {
    min-width: 0; /* Strictly prevent flex/grid blowout */
}

.glass-cms-wrapper {
    width: 100%;
}

/* Eliminate WPBakery/Visual Composer Decorative Arrows & Lines */
.glass-cms-wrapper .vc_separator,
.glass-cms-wrapper .wpb_separator,
.glass-cms-wrapper hr {
    display: none !important;
}

/* Universal alignment enforcement to force line wrapping */
.glass-cms-wrapper * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important; /* Force ultra-long lines to break */
}

.glass-cms-wrapper .vc_row, 
.glass-cms-wrapper .wpb_row,
.glass-cms-wrapper .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.glass-cms-wrapper h1, 
.glass-cms-wrapper h2, 
.glass-cms-wrapper h3 {
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: var(--text-primary) !important;
    margin: 0 0 25px 0 !important;
    text-align: left !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

.glass-cms-wrapper p, 
.glass-cms-wrapper span,
.glass-cms-wrapper div {
    font-size: 15px !important;
    color: var(--text-secondary) !important;
    line-height: 1.8 !important;
    text-align: left !important;
    margin-bottom: 25px !important;
    padding: 0 !important;
}

.glass-cms-wrapper img {
    margin: 30px 0;
    border-radius: 20px;
    display: block;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .hero-editorial-glass { padding: 50px 30px; }
    .editorial-grid { grid-template-columns: 1fr; gap: 40px; }
    .editorial-branding { border-right: none; border-bottom: 2px dashed rgba(0,0,0,0.1); padding-right: 0; padding-bottom: 30px; }
    .editorial-watermark { font-size: 8rem; top: 5%; right: -5%; opacity: 0.5; }
}

/* Grid Layouts (Fixing the overlap) */
.glass-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.section-header {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    width: 100%;
    margin-bottom: 50px;
}

/* Values */
.value-card {
    padding: 50px 40px;
    text-align: center;
    transition: transform 0.3s ease;
    margin-bottom: 0; /* Override */
}

.value-card:hover {
    transform: translateY(-10px);
}

.icon-wrap i {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.card-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.card-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
}

/* History Grid */
.history-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.history-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.history-sub {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 30px;
}

.history-image img {
    border-radius: 20px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.glass-cms-content p {
    font-size: 17px;
    line-height: 33px;
    text-align: justify;
}


/* Responsive constraints */
@media (max-width: 1024px) {
    .glass-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .history-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .glass-grid-3 { grid-template-columns: 1fr; }
    .glass-card { padding: 40px 30px; }
    .modern-glass-wrapper { padding: 15px 0 15px; }
    .editorial-title { font-size: 18px; font-weight: 500; margin: 0 0 4px 0; }
    .glass-cms-wrapper h1, .glass-cms-wrapper h2, .glass-cms-wrapper h3 { font-size: 13px !important; }
    .section-header { font-size: 16px; }
    .history-title { font-size: 16px; }
    .card-title { font-size: 16px; font-weight: 500; }
    .icon-wrap i { font-size: 14px; margin-bottom: 0; }
}
