/* --- CORE CONFIGURATION & THEMING --- */
:root {
    --primary-green: #399918;
    --primary-purple: #443199;
    --light-bg: #E8EDF2;
    --white: #FFFFFF;
    --black: #111111;
    --text-muted: #555555;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- TYPOGRAPHY & LAYOUT UTILITIES --- */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}
p {
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.editorial-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.editorial-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: justify;
}
.section-padding {
    padding: 100px 8%;
}
@media(max-width: 992px) {
    .section-padding { padding: 60px 5%; }
    .editorial-title { font-size: 2.2rem; }
}
@media(max-width: 576px) {
    .section-padding { padding: 40px 4%; }
}

/* --- BUTTONS --- */
.btn-premium {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-green {
    background-color: var(--primary-green);
    color: var(--white);
}
.btn-green:hover {
    background-color: #2e7d12;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(57, 153, 24, 0.3);
}
.btn-purple {
    background-color: var(--primary-purple);
    color: var(--white);
}
.btn-purple:hover {
    background-color: #332375;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(68, 49, 153, 0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-2px);
}

/* --- TOP BAR --- */
.top-bar {
    height: 42px;
    background-color: var(--primary-green);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1001;
    position: relative;
}
.top-bar-socials a {
    color: var(--white);
    margin-left: 15px;
    transition: opacity 0.3s;
}
.top-bar-socials a:hover { opacity: 0.7; }

/* --- MAIN HEADER --- */
.main-header {
    position: sticky;
    top: 0;
    background-color: var(--black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 90px;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}
.logo-text {
    color: var(--primary-green);
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}
.nav-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    cursor: pointer;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.4s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.header-cta .btn-nav {
    border-bottom: 2px solid var(--white);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    padding-bottom: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.header-cta .btn-nav:hover {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 5px;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-green);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

@media(max-width: 992px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: absolute;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--black);
        flex-direction: column;
        align-items: center;
        padding: 50px 20px;
        transition: var(--transition-smooth);
        gap: 20px;
    }
    .nav-menu.active { left: 0; }
    .header-cta { display: none; }
    .top-bar .ticker-wrapper { display: none; }
    .top-bar-socials a:not(:first-child) { display: none; }
}

@media(max-width: 576px) {
    .main-header { padding: 0 4%; height: 70px; }
    .logo-text { font-size: 1.2rem; }
    .top-bar { padding: 0 4%; font-size: 0.7rem; height: 36px; }
}

/* --- APP PAGE ROUTER --- */
.app-page {
    display: none;
}
.app-page.active-page {
    display: block;
    animation: fadeInPage 0.5s ease-in-out;
}
@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   HOME PAGE COMPONENTS
=========================================== */
.hero-section {
    height: calc(100vh - 132px);
    min-height: 650px;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('https://i.pinimg.com/1200x/dc/8b/78/dc8b78b92964aa388580d992003fb77f.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background-color: rgba(154, 143, 200, 0.88);
    backdrop-filter: blur(-10px);
    z-index: 2;
    padding: 60px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 25px;
}
.hero-paragraph {
    
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 35px;
    text-align: justify;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-badges-container {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.floating-badge {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(5px);
    animation: floatAnim 4s infinite ease-in-out alternate;
}
.floating-badge:nth-child(2) { animation-delay: 2s; }
@keyframes floatAnim {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-15px); }
}
.floating-badge i { font-size: 2rem; color: var(--primary-purple); }
.floating-badge h4 { font-size: 1.2rem; color: var(--black); margin: 0; }
.floating-badge p { font-size: 0.85rem; color: #666; margin: 0; }

@media(max-width: 1200px) {
    .hero-overlay { width: 60%; }
    .hero-badges-container { display: none; }
}
@media(max-width: 768px) {
    .hero-overlay { width: 100%;     background-color: rgba(154, 143, 200, 0.88);
    backdrop-filter: blur(-10px);
 padding: 40px 6%; }
    .hero-title { font-size: 2.5rem; }
    .hero-paragraph { font-size: 0.95rem; }
    .hero-buttons { flex-direction: column; align-items: flex-start; }
    .hero-section { height: auto; min-height: 100vh; }
}

/* HOME: ABOUT PREVIEW */
.home-about {
    background-color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.home-about-images {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.about-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition-smooth);
}
.about-card-img:hover {
    transform: scale(1.03) translateY(-5px);
}
.home-about h2 { color: var(--primary-purple); }

@media(max-width: 992px) {
    .home-about { grid-template-columns: 1fr; gap: 40px; }
    .about-card-img { height: 220px; }
}

/* SERVICES PREVIEW SCROLL */
.services-preview {
    background: var(--white);
    overflow: hidden;
}
.services-preview h2 { color: var(--primary-purple); margin-bottom: 50px; }
.scroll-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 5px 30px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar { display: none; }
.service-scroll-card {
    flex: 0 0 350px;
    background: var(--light-bg);
    border-radius: 24px;
    padding: 30px;
    scroll-snap-align: start;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.service-scroll-card:hover {
    transform: scale(1.05);
    background: var(--white);
    box-shadow: 0 20px 40px rgba(68, 49, 153, 0.1);
}
.service-scroll-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
}
.service-scroll-card h3 {
    color: var(--primary-purple);
    margin-bottom: 12px;
    font-size: 1.3rem;
}
.service-scroll-card p { font-size: 0.95rem; margin: 0; }

@media(max-width: 576px) {
    .service-scroll-card { flex: 0 0 280px; padding: 20px; }
    .service-scroll-card img { height: 160px; }
}

/* WHY CHOOSE US */
.why-choose-us {
    background-color: var(--light-bg);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 70px;
}
.stat-block {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 5px;
}
.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
}
.wide-editorial-banner {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://i.pinimg.com/736x/d5/ea/7b/d5ea7b8ae986477af0f1200d0fa49864.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.banner-overlay-left {
    background: rgba(68, 49, 153, 0.85);
    padding: 60px;
    color: var(--white);
    display: flex;
    align-items: center;
}
.banner-overlay-left p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin: 0; }
.banner-cards-right {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.floating-white-card {
    background: var(--white);
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}
.floating-white-card:hover { transform: translateY(-5px); }
.floating-white-card h4 { color: var(--primary-purple); margin-bottom: 8px; font-size: 1.15rem; }
.floating-white-card p { font-size: 0.9rem; margin: 0; }

@media(max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .wide-editorial-banner { grid-template-columns: 1fr; }
    .banner-overlay-left { padding: 40px; }
    .banner-cards-right { padding: 40px; }
}
@media(max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-block { padding: 25px 20px; }
    .stat-number { font-size: 2.8rem; }
}

/* LOAN PROCESS ACCORDION */
.loan-process-section {
    background: var(--white);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}
.process-left h2 { color: var(--primary-purple); }
.process-accordion {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}
.accordion-header {
    background: var(--light-bg);
    padding: 20px 25px;
    width: 100%;
    text-align: left;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}
.accordion-header:hover { background: #dfe6ed; }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    background: var(--white);
}
.accordion-content-inner {
    padding: 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}
.process-right-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 24px;
}
.process-footer-text {
    grid-column: 1 / -1;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}
.process-footer-text p { margin: 0; }

@media(max-width: 992px) {
    .loan-process-section { grid-template-columns: 1fr; gap: 40px; }
    .process-right-img { min-height: 300px; }
}

/* EXPERTS SECTION */
.our-experts {
    background: var(--white);
    text-align: center;
}
.our-experts h2 { color: var(--primary-purple); margin-bottom: 60px; }
.experts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.expert-card {
    position: relative;
    background: var(--light-bg);
    border-radius: 24px;
    overflow: hidden;
    height: 480px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}
.expert-card:hover { transform: translateY(-10px); }
.expert-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.expert-card:hover img { transform: scale(1.05); }
.expert-info-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: 18px;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 100px;
}
.expert-info-panel h4 { font-size: 1.25rem; color: var(--primary-purple); margin-bottom: 4px; }
.expert-info-panel p.role { font-size: 0.9rem; color: var(--primary-green); font-weight: 600; margin-bottom: 15px; }
.expert-hidden-desc {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}
.expert-socials {
    opacity: 0;
    display: flex;
    gap: 15px;
    font-size: 1.1rem;
}
.expert-socials a { color: var(--white); transition: opacity 0.2s; }
.expert-socials a:hover { opacity: 0.7; }

.expert-card:hover .expert-info-panel {
    background: var(--primary-purple);
    max-height: 320px;
    bottom: 20px;
}
.expert-card:hover .expert-info-panel h4 { color: var(--white); }
.expert-card:hover .expert-info-panel p.role { color: var(--primary-green); }
.expert-card:hover .expert-hidden-desc,
.expert-card:hover .expert-socials { opacity: 1; transition-delay: 0.2s; }

@media(max-width: 992px) {
    .experts-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .expert-card { height: 420px; }
}

/* CUSTOMER SUCCESS */
.customer-success {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    background: var(--white);
}
.success-left-panel {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 100px 12%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.success-left-panel h2 { color: var(--white); margin-bottom: 20px; }
.success-left-panel p { color: rgba(255,255,255,0.95); font-size: 1.15rem; line-height: 1.8; text-align: justify; margin: 0; }
.success-right-panel {
    background: url('https://i.pinimg.com/736x/72/7e/f4/727ef45158dac948c6585dc33a549508.jpg') no-repeat center center;
    background-size: cover;
    min-height: 450px;
    position: relative;
}
.success-caption {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(17,17,17,0.85);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 20px 35px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.2rem;
    border-left: 5px solid var(--primary-green);
    margin: 0;
}

@media(max-width: 992px) {
    .customer-success { grid-template-columns: 1fr; }
    .success-left-panel { padding: 60px 8%; }
    .success-right-panel { min-height: 300px; }
    .success-caption { bottom: 20px; right: 20px; padding: 15px 25px; font-size: 1rem; }
}

/* LATEST INSIGHTS */
.latest-insights {
    background: var(--white);
}
.latest-insights h2 { text-align: center; color: var(--primary-purple); margin-bottom: 50px; }
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.blog-card {
    background: var(--light-bg);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.blog-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.blog-card:hover img { transform: scale(1.04); }
.blog-content { padding: 30px; }
.blog-content h4 { color: var(--primary-purple); margin-bottom: 15px; }
.blog-content p { font-size: 0.98rem; line-height: 1.7; text-align: justify; margin: 0; }

@media(max-width: 992px) {
    .insights-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
    .blog-card img { height: 200px; }
}

/* ==========================================
   ABOUT PAGE
=========================================== */
.about-hero-header {
    background: linear-gradient(135deg, var(--primary-purple), #1a1044);
    color: var(--white);
    padding: 80px 8%;
    text-align: center;
}
.about-hero-header h1 { margin-bottom: 15px; }
.about-hero-header p { max-width: 800px; margin: 0 auto; color: rgba(255,255,255,0.85); }
.about-core-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.core-box {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border-top: 4px solid var(--primary-green);
}
.core-box h4 { font-size: 1.3rem; margin-bottom: 15px; color: var(--primary-purple); }
.core-box p { margin: 0; }
.timeline-container {
    margin-top: 60px;
    position: relative;
    padding-left: 30px;
    border-left: 3px solid var(--primary-green);
}
.timeline-event {
    position: relative;
    margin-bottom: 40px;
}
.timeline-event::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-purple);
    border: 3px solid var(--white);
}
.timeline-year { font-weight: 800; color: var(--primary-green); font-size: 1.3rem; margin-bottom: 5px; }
.timeline-event p { margin: 0; }

@media(max-width: 992px) {
    .about-core-grid { grid-template-columns: 1fr; max-width: 600px; margin: 40px auto 0; }
    .about-hero-header { padding: 60px 5%; }
    .about-hero-header h1 { font-size: 2.5rem; }
}

/* ==========================================
   EMI CALCULATOR
=========================================== */
.calc-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    background: var(--white);
    border-radius: 28px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.05);
}
.calc-wrapper h2 { color: var(--primary-purple); margin-bottom: 30px; }
.calc-control-group { margin-bottom: 35px; }
.calc-label-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-purple);
}
.calc-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
}
.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    transition: transform 0.1s;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-results-panel {
    background: var(--primary-purple);
    color: var(--white);
    border-radius: 22px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.result-card-metric {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.result-card-metric:last-child { border: none; padding: 0; margin: 0; }
.metric-title { font-size: 0.95rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }
.metric-value { font-size: 2.2rem; font-weight: 800; color: var(--primary-green); margin-top: 5px; }
.chart-mock-container { margin-top: 25px; padding: 20px; background: rgba(255,255,255,0.05); border-radius: 14px; }
.chart-bar-fill {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    margin-top: 10px;
}
.fill-principal { background: var(--primary-green); height: 100%; width: 70%; transition: width 0.3s; }
.fill-interest { background: #ff9800; height: 100%; width: 30%; transition: width 0.3s; }
.calc-advisory-box {
    margin-top: 40px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 14px;
}
.calc-advisory-box h4 { color: var(--primary-purple); margin-bottom: 10px; }
.calc-advisory-box p { font-size: 0.9rem; text-align: justify; margin: 0; }

@media(max-width: 992px) {
    .calc-wrapper { grid-template-columns: 1fr; padding: 30px; gap: 30px; }
    .metric-value { font-size: 1.8rem; }
}
@media(max-width: 576px) {
    .calc-wrapper { padding: 20px; border-radius: 16px; }
    .calc-results-panel { padding: 25px; }
}

/* ==========================================
   SERVICES PORTFOLIO
=========================================== */
.services-portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.portfolio-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.portfolio-row:nth-child(even) { direction: rtl; }
.portfolio-row:nth-child(even) .portfolio-text-block { direction: ltr; }
.portfolio-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 18px;
}
.portfolio-text-block h3 { color: var(--primary-purple); font-size: 1.8rem; margin-bottom: 15px; }
.portfolio-text-block p { margin: 0; }

@media(max-width: 768px) {
    .portfolio-row, .portfolio-row:nth-child(even) { grid-template-columns: 1fr; direction: ltr; padding: 25px; gap: 25px; }
    .portfolio-img { height: 250px; }
    .portfolio-text-block h3 { font-size: 1.5rem; }
}

/* ==========================================
   CONTACT PAGE
=========================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
}
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.contact-card-item {
    background: var(--white);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.contact-card-item i { font-size: 1.8rem; color: var(--primary-green); margin-top: 4px; }
.contact-card-item h4 { color: var(--primary-purple); margin-bottom: 5px; }
.contact-card-item p { margin: 0; }
.contact-form-panel {
    background: var(--white);
    padding: 45px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}
.contact-form-panel h3 { color: var(--primary-purple); margin-bottom: 25px; }
.form-row-twin {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--primary-purple); }
.form-input-field {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}
.form-input-field:focus { border-color: var(--primary-purple); box-shadow: 0 0 0 4px rgba(68,49,153,0.1); }
.map-mock-container {
    grid-column: 1 / -1;
    height: 350px;
    background: #cbd5e1;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #443199;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    margin-top: 30px;
}

@media(max-width: 992px) {
    .contact-layout { grid-template-columns: 1fr; gap: 30px; }
    .form-row-twin { grid-template-columns: 1fr; gap: 0; }
    .contact-form-panel { padding: 30px; }
    .map-mock-container { height: 250px; font-size: 1rem; }
}
@media(max-width: 576px) {
    .contact-card-item { padding: 20px; flex-direction: column; gap: 10px; }
    .contact-form-panel { padding: 20px; }
}

/* ==========================================
   FAQ PAGE
=========================================== */
.faq-search-box {
    max-width: 600px;
    margin: 0 auto 50px auto;
    position: relative;
}
.faq-search-box input {
    width: 100%;
    padding: 16px 25px;
    border-radius: 30px;
    border: 2px solid var(--primary-purple);
    font-size: 1.1rem;
    outline: none;
}
.faq-container-massive {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================
   LEGAL PAGES
=========================================== */
.legal-editorial-card {
    background: var(--white);
    padding: 50px;
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}
.legal-editorial-card h1 { color: var(--primary-purple); margin-bottom: 10px; }
.legal-editorial-card h3 {
    color: var(--primary-purple);
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-left: 4px solid var(--primary-green);
    padding-left: 15px;
}
.legal-editorial-card p { margin-bottom: 20px; text-align: justify; }
.legal-editorial-card hr { margin: 20px 0; opacity: 0.1; border: none; border-top: 1px solid #ccc; }

@media(max-width: 768px) {
    .legal-editorial-card { padding: 30px; }
    .legal-editorial-card h3 { font-size: 1.2rem; }
}

/* ==========================================
   FOOTER
=========================================== */
footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 80px 5% 30px 5%;
}
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}
.footer-brand h3 { font-size: 1.8rem; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-bottom: 20px; text-align: justify; }
.footer-links-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
}
.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--white);
}
.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}
.footer-links-col ul li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}
.footer-links-col ul li a:hover { color: var(--black); padding-left: 5px; }
.newsletter-box p { color: rgba(255,255,255,0.85); margin-bottom: 15px; font-size: 0.95rem; }
.newsletter-form {
    display: flex;
    background: var(--white);
    padding: 6px;
    border-radius: 30px;
}
.newsletter-form input {
    border: none;
    outline: none;
    padding: 10px 20px;
    flex-grow: 1;
    border-radius: 30px;
    font-size: 0.95rem;
}
.newsletter-form button {
    background: var(--primary-purple);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.newsletter-form button:hover { background: #2f1f75; }
.footer-divider { height: 1px; background: rgba(255,255,255,0.2); margin-bottom: 30px; }
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    flex-wrap: wrap;
    gap: 20px;
}
.footer-legal-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-left: 20px;
    cursor: pointer;
}
.footer-legal-links a:hover { color: var(--black); }

@media(max-width: 1100px) {
    .footer-main-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media(max-width: 600px) {
    .footer-main-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom-row { flex-direction: column; text-align: center; }
    .footer-legal-links a { margin: 0 10px; }
    footer { padding: 50px 4% 20px 4%; }
}

/* ==========================================
   BACK TO TOP
=========================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px;
    background: var(--primary-purple);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
    z-index: 999;
    border: none;
}
#back-to-top.visible { right: 30px; }
#back-to-top:hover { background: var(--primary-green); transform: translateY(-3px); }

/* ==========================================
   TICKER
=========================================== */
.ticker-wrapper {
    flex-grow: 1;
    text-align: center;
    height: 20px;
    overflow: hidden;
    position: relative;
}
.ticker-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
    margin: 0;
    left: 0;
}
.ticker-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   LOADING SCREEN
=========================================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--black);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
}
.loader-logo {
    color: var(--primary-green);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: pulseLogo 1.5s infinite ease-in-out;
}
@keyframes pulseLogo {
    0%, 100% { opacity: 0.6; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}
.loader-bar {
    width: 150px;
    height: 3px;
    background: #222;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}
.loader-progress {
    position: absolute;
    width: 40%;
    height: 100%;
    background: var(--primary-green);
    animation: slideLoad 1.2s infinite ease-in-out;
}
@keyframes slideLoad {
    0% { left: -40%; }
    100% { left: 100%; }
}  
.newsletter-feedback {
    font-size: 0.8rem;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    animation: fadeInFeedback 0.4s ease;
}
@keyframes fadeInFeedback {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.subscribe-btn {
    background: var(--primary-purple);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.subscribe-btn:hover { background: #2f1f75; }
.unsubscribe-btn {
    background: #8B0000;
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.unsubscribe-btn:hover { background: #660000; }
