/**
 * Rahi Theme - Main CSS Architecture
 * Contains CSS variables, lightweight resets, layout utilities, and core header components.
 *
 * @package Rahi_Theme
 */

/* ==========================================================================
   1. DESIGN TOKENS & CORE VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #3F2A77;    /* Corporate Deep Purple */
    --color-secondary: #EA3126;  /* Accent Vibrant Red */
    --color-dark: #1E1E24;       /* Safe Dark Text */
    --color-light: #F8F9FA;      /* Background Light Grey */
    --color-white: #FFFFFF;
    
    /* Animation & Layout Defaults */
    --transition-smooth: all 0.3s ease-in-out;
    --container-width: 1200px;
}

/* ==========================================================================
   2. GLOBAL RESETS & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Base structural layout container */
.rahi-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   3. SITE HEADER ARCHITECTURE
   ========================================================================== */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Brand Logo & Typography --- */
.custom-logo-link-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-branding .theme-logo {
    max-height: 48px;
    width: auto;
    display: block;
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-title-text {
    font-size: 19px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.site-description-text {
    font-size: 11.5px;
    font-weight: 500;
    color: #62626C;
    line-height: 1.3;
    margin-top: 4px;
}

/* --- Primary Desktop Navigation --- */
.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-navigation ul a {
    font-size: 14.5px;
    font-weight: 600;
    color: #4A4A52;
    padding: 6px 0;
}

.main-navigation ul li.current-menu-item a,
.main-navigation ul a:hover {
    color: var(--color-primary);
}

/* --- Actions & Utilities Alignment --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ==========================================================================
   4. LANGUAGE SWITCHER DROPDOWN SYSTEM
   ========================================================================== */
.rahi-lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F4F5F9;
    border: 1px solid rgba(0, 0, 0, 0.02);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-dark);
    min-width: 95px;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.lang-dropdown-trigger:hover {
    background: #EAECEF;
}

.flag-wrapper-square {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    background-color: #f5f5f5;
    flex-shrink: 0;
}

.flag-img-strict {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--color-dark);
    transition: transform 0.25s ease;
}

/* --- Strict Global Centering Formula (Desktop + Mobile) --- */
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(10px) !important;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
    padding: 6px;
    min-width: 150px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 1100;
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Overriding LTR/RTL leaks to lock coordinates to the middle button anchor */
body[dir="ltr"] .lang-dropdown-menu,
body[dir="rtl"] .lang-dropdown-menu {
    right: auto !important;
    left: 50% !important;
}

/* Dynamic Open State Logic */
.rahi-lang-dropdown.is-open .dropdown-arrow {
    transform: rotate(180deg);
}

.rahi-lang-dropdown.is-open .lang-dropdown-menu {
    display: flex !important;
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    visibility: visible !important;
}

.lang-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-dark);
    border-radius: 6px;
    width: 100%;
}

.lang-dropdown-menu li a:hover,
.lang-dropdown-menu li a.current-lang {
    background-color: rgba(63, 42, 119, 0.05);
    color: var(--color-primary);
}

/* ==========================================================================
   5. ACTION BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn-consultation {
    background-color: var(--color-secondary);
    color: var(--color-white) !important;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(234, 49, 38, 0.15);
    white-space: nowrap;
}

.btn-consultation:hover {
    background-color: var(--color-primary);
    transform: translateY(-1px);
}

.modern-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

.modern-hamburger .hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: transform 0.25s ease, opacity 0.25s;
}

.menu-is-open .modern-hamburger .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-is-open .modern-hamburger .hamburger-line:nth-child(2) { opacity: 0; }
.menu-is-open .modern-hamburger .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   6. MOBILE NAVIGATION DRAWER OVERLAY
   ========================================================================== */
.mobile-navigation-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1500;
    visibility: hidden;
}

.drawer-close-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 36, 0.25);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--color-white);
    padding: 40px 24px;
    box-shadow: -10px 0 35px rgba(0,0,0,0.05);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body[dir="ltr"] .drawer-content {
    right: auto;
    left: -280px;
}

.menu-is-open .mobile-navigation-drawer { visibility: visible; }
.menu-is-open .drawer-close-overlay { opacity: 1; }
.menu-is-open .drawer-content { right: 0; }
body[dir="ltr"].menu-is-open .drawer-content { left: 0; }

.drawer-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.drawer-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
}

.mobile-drawer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-drawer-nav a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-dark);
    display: block;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS & LAYOUT OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 992px) {
    .main-navigation { display: none; }
    .modern-hamburger { display: flex; }
    .site-header { padding: 10px 0; }
    
    /* Downsizing the main trigger box for mobile viewports */
    .lang-dropdown-trigger {
        padding: 4px 6px !important;
        gap: 5px !important;
        border-radius: 6px !important;
        min-width: 62px !important;
    }
    .flag-wrapper-square {
        width: 15px !important;
        height: 15px !important;
        border-radius: 2px !important;
    }
    .lang-dropdown-trigger .lang-label {
        font-size: 11px !important;
    }
    .dropdown-arrow {
        border-left: 3px solid transparent !important;
        border-right: 3px solid transparent !important;
        border-top: 4px solid var(--color-dark) !important;
    }
    
    /* Ensuring absolute centering inside mobile header restrictions */
    .lang-dropdown-menu {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(10px) !important;
    }
    .rahi-lang-dropdown.is-open .lang-dropdown-menu {
        transform: translateX(-50%) translateY(0) !important;
    }
}

@media (max-width: 576px) {
    .btn-consultation { display: none; }
    .site-branding .theme-logo { max-height: 38px; }
    .site-title-text { font-size: 15px; }
    .header-actions { gap: 10px; }
    
    .site-description-text { 
        display: block !important;
        font-size: 9px !important; 
        margin-top: 1px;
        color: #7A7A85;
    }
}

/* ==========================================================================
   8. HOME PAGE - FULLSCREEN HERO SECTION WITH OVERLAY
   ========================================================================== */
.home-hero-fullscreen {
    position: relative;
    width: 100%;
    min-height: 85vh; /* ارتفاع استاندارد هیرو برای دسکتاپ */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
}

/* جادوی تگ تصویر اصلی هیرو */
.hero-main-img-wrapper, 
.hero-main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* هاله تاریک کننده جهت خوانایی ۱۰۰٪ متون آلمانی و فارسی */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20, 15, 38, 0.82) 0%, rgba(30, 20, 50, 0.75) 100%);
    z-index: 2;
}

.hero-fullscreen-container {
    position: relative;
    z-index: 3; /* آمدن روی لایه تاریک */
    width: 100%;
}

.hero-center-content {
    max-width: 850px; /* جلوگیری از کشیده شدن بیش از حد متن */
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* استایل ترازها بر اساس جهت زبان */
body[dir="ltr"] .hero-center-content {
    text-align: left;
    align-items: flex-start;
    margin: 0; /* در حالت آلمانی متن چپ‌چین و شیک می‌ایستد */
}

.hero-badge-modern {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-title-modern {
    font-size: 42px;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.35;
    margin-bottom: 24px;
}

.hero-desc-modern {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.85;
    margin-bottom: 16px;
}

.hero-subtext-modern {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 35px;
}

/* دکمه‌های پرمیوم روی بک‌گراند تاریک */
.hero-actions-modern {
    display: flex;
    gap: 20px;
}

.btn-fullscreen-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-fullscreen-primary:hover {
    background-color: #c92218;
    transform: translateY(-2px);
}

.btn-fullscreen-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-fullscreen-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

/* --- سازگاری فوق‌العاده با موبایل (Mobile Optimization) --- */
@media (max-width: 992px) {
    .home-hero-fullscreen {
        min-height: 100vh; /* در موبایل کل صفحه را می‌پوشاند تا حس اپلیکیشن بدهد */
        padding: 40px 0;
    }
    
    .hero-title-modern {
        font-size: 28px;
    }
    
    .hero-desc-modern {
        font-size: 15px;
    }
    
    .hero-subtext-modern {
        font-size: 13.5px;
    }
    
    .hero-actions-modern {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .btn-fullscreen-primary,
    .btn-fullscreen-secondary {
        width: 100%;
        text-align: center;
    }
    
    /* روی موبایل هر دو زبان برای زیبایی بیشتر مرکز‌چین می‌شوند */
    .hero-center-content {
        text-align: center !important;
        align-items: center !important;
        margin: 0 auto !important;
    }
}

/* ==========================================================================
   9. HOME PAGE - THREE-CARD SOLUTIONS SECTION (WITH IMAGES & LINKS)
   ========================================================================== */
.home-solutions {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.solutions-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 55px auto;
}

.solutions-main-title {
    font-size: 34px;
    font-weight: 850;
    color: var(--color-primary);
    margin-bottom: 18px;
}

.solutions-main-subtitle {
    font-size: 16px;
    color: #4A4A55;
    line-height: 1.8;
}

.solutions-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.solution-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    overflow: hidden; /* جهت گرد شدن لبه‌های تصویر بالای کارت */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(63, 42, 119, 0.1);
}

.solution-card.featured-card {
    border: 2px solid rgba(63, 42, 119, 0.12);
    box-shadow: 0 15px 35px rgba(63, 42, 119, 0.05);
}

/* استایل تصویر بالای کارت */
.card-img-link {
    width: 100%;
    height: 190px;
    overflow: hidden;
    display: block;
}

.card-top-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.solution-card:hover .card-top-img {
    transform: scale(1.06);
}

/* بدنه محتوای کارت */
.card-body-content {
    padding: 25px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-title a {
    color: inherit;
}

.card-title a:hover {
    color: var(--color-secondary);
}

.card-text {
    font-size: 14px;
    color: #555562;
    line-height: 1.75;
    text-align: justify;
}

body[dir="ltr"] .card-text {
    text-align: left;
}

/* ریسپانسیو اختصاصی کارت‌های تصویری */
@media (max-width: 992px) {
    .solutions-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 450px;
        margin: 0 auto;
    }
    .solutions-main-title { font-size: 26px; }
    .home-solutions { padding: 60px 0; }
}

/* ==========================================================================
   10. HOME PAGE - CORPORATE ANALYTICS & FACTS STYLES
   ========================================================================== */
.home-analytics-section {
    padding: 110px 0;
    background-color: #FFFFFF;
}

/* کادر اصلی فوق‌العاده شیک با ساختار مینیمال */
.analytics-corporate-card {
    background: #FAFBFD;
    border: 1px solid #EAEFF7;
    border-radius: 12px;
    padding: 60px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.01);
}

/* شبکه بندی متوازن ستون آمار و متون */
.analytics-grid-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: center;
}

body[dir="ltr"] .analytics-grid-layout {
    grid-template-columns: 0.9fr 1.1fr;
}

/* بلوک نمایش عدد رسمی */
.analytics-stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 2px solid #E2E8F3;
    padding-left: 40px;
}

body[dir="ltr"] .analytics-stat-block {
    border-left: none;
    border-right: 2px solid #E2E8F3;
    padding-left: 0;
    padding-right: 40px;
}

/* استایل بلوک آلمانی برای چند عددی بودن */
.analytics-stat-block-de {
    display: flex;
    flex-direction: column;
    gap: 25px;
    border-right: 2px solid #E2E8F3;
    padding-right: 40px;
}

body[dir="rtl"] .analytics-stat-block-de {
    border-right: none;
    border-left: 2px solid #E2E8F3;
    padding-left: 40px;
}

.stat-row {
    display: flex;
    flex-direction: column;
}

.stat-row-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid #E4E9F3;
    padding: 8px 16px;
    border-radius: 6px;
    width: max-content;
}

.percent-value {
    font-size: 18px;
    font-weight: 850;
    color: var(--color-secondary);
}

.percent-label {
    font-size: 13px;
    color: #646476;
    font-weight: 600;
}

/* استایل عدد بزرگ شاخص */
.analytics-big-number {
    font-size: 64px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 8px;
}

.analytics-stat-label {
    font-size: 15px;
    font-weight: 700;
    color: #646476;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* بلوک متن‌های رسمی */
.analytics-text-block {
    display: flex;
    flex-direction: column;
}

.analytics-title {
    font-size: 26px;
    font-weight: 850;
    color: var(--color-dark);
    line-height: 1.5;
    margin-bottom: 24px;
}

.analytics-paragraph {
    font-size: 15.5px;
    color: #444452;
    line-height: 1.85;
    margin-bottom: 16px;
    text-align: justify;
}

.analytics-sub-paragraph {
    font-size: 14.5px;
    color: #686878;
    line-height: 1.8;
    text-align: justify;
}

/* تراز بندی های بدنه بر اساس زبان */
body[dir="ltr"] .analytics-title,
body[dir="ltr"] .analytics-paragraph,
body[dir="ltr"] .analytics-sub-paragraph {
    text-align: left;
}

body[dir="ltr"] .analytics-stat-block-de {
    align-items: flex-start;
}

/* --- سازگاری کامل با نمایشگرهای کوچک --- */
@media (max-width: 992px) {
    .home-analytics-section {
        padding: 60px 0;
    }
    
    .analytics-corporate-card {
        padding: 40px 25px;
    }
    
    .analytics-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    .analytics-stat-block,
    .analytics-stat-block-de {
        border-left: none !important;
        border-right: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        align-items: center !important;
    }
    
    .stat-row {
        align-items: center;
    }
    
    .analytics-big-number {
        font-size: 52px;
    }
    
    .analytics-title {
        font-size: 21px;
        text-align: center !important;
    }
    
    .analytics-paragraph,
    .analytics-sub-paragraph {
        text-align: center !important;
        font-size: 15px;
    }
}

/* ==========================================================================
   11. HOME PAGE - MODERN CONSULTATION FORM WITH GEOMETRIC ELEMENTS
   ========================================================================== */
.home-consultation-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.consultation-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

/* --- Consultation Form Column --- */
.consultation-form-block {
    display: flex;
    flex-direction: column;
}

.form-text-header {
    margin-bottom: 35px;
}

.form-main-title {
    font-size: 32px;
    font-weight: 850;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.form-main-subtitle {
    font-size: 16px;
    color: #555565;
}

.rahi-modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-dynamic {
    display: flex;
    width: 100%;
}

.form-row-dynamic.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-dynamic {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group-dynamic label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-dark);
}

/* Enforcing template font family on native input states */
.form-group-dynamic input,
.form-group-dynamic textarea,
.btn-submit-modern {
    font-family: inherit; 
    width: 100%;
    font-size: 14.5px;
}

.form-group-dynamic input,
.form-group-dynamic textarea {
    padding: 14px 16px;
    background: #F5F7FA;
    border: 1px solid #E4E8F0;
    border-radius: 8px;
    color: var(--color-dark);
    transition: all 0.25s ease;
}

.form-group-dynamic input::placeholder,
.form-group-dynamic textarea::placeholder {
    font-family: inherit;
    color: #A0A5B5;
    font-size: 13.5px;
}

.form-group-dynamic input:focus,
.form-group-dynamic textarea:focus {
    background: #FFFFFF;
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(63, 42, 119, 0.06);
}

/* Disabling user custom resize handler on textarea */
.form-group-dynamic textarea {
    resize: none; 
    line-height: 1.7;
}

/* Premium submit action trigger button */
.form-submit-block {
    margin-top: 10px;
}

.btn-submit-modern {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-submit-modern:hover {
    background-color: #D3251B;
    transform: translateY(-2px);
}

.submit-icon {
    font-weight: bold;
}

/* AJAX Response Status Messaging */
.form-status-message {
    font-size: 14.5px;
    font-weight: 700;
    margin-top: 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-status-message.msg-success {
    padding: 12px 16px;
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.form-status-message.msg-error {
    padding: 12px 16px;
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

/* --- Geometric Frame Artwork Column --- */
.consultation-visual-block {
    display: flex;
    justify-content: center;
    position: relative;
}

.visual-shapes-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 480px;
}

.geometric-shape {
    position: absolute;
    border-radius: 16px;
    z-index: 1;
}

.shape-purple {
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    top: 20px;
    left: -20px;
    opacity: 0.08;
}

body[dir="ltr"] .shape-purple {
    left: auto;
    right: -20px;
}

.shape-red {
    width: 80px;
    height: 80px;
    background-color: var(--color-secondary);
    bottom: -15px;
    right: -20px;
    border-radius: 12px;
    z-index: 3;
    opacity: 0.9;
}

body[dir="ltr"] .shape-red {
    right: auto;
    left: -20px;
}

.shape-pattern {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(#3F2A77 15%, transparent 15%);
    background-size: 12px 12px;
    top: -20px;
    right: -30px;
    z-index: 1;
    opacity: 0.25;
}

body[dir="ltr"] .shape-pattern {
    right: auto;
    left: -30px;
}

.main-image-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border: 6px solid #FFFFFF;
}

.form-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Responsive Optimization Layout --- */
@media (max-width: 992px) {
    .consultation-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .consultation-visual-block {
        order: -1;
    }
    
    .visual-shapes-container {
        height: 400px;
        max-width: 340px;
    }
    
    .form-main-title {
        font-size: 24px;
        text-align: center;
    }
    
    .form-main-subtitle {
        font-size: 15px;
        text-align: center;
    }
    
    .form-row-dynamic.split-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .btn-submit-modern {
        width: 100%;
        justify-content: center;
    }
}

/* Anti-Spam Trap Hiding Force */
.rahi-hidden-trap {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* ==========================================================================
   12. HOME PAGE - AUSTRIA VISUAL SHOWCASE (CINEMATIC SECTION)
   ========================================================================== */
.rahi-showcase-section {
    position: relative;
    padding: 140px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0A0A12;
}

/* --- Fullscreen Background Image and Mask --- */
.showcase-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.showcase-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Enhanced dark overlay on the image for 100% text legibility across various monitors */
.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Uniform dark navy-black blend to establish background depth */
    background: rgba(10, 10, 18, 0.65); 
    /* Intelligent linear gradient overlay for maximum contrast behind active text typography */
    background: linear-gradient(to bottom, rgba(10, 10, 18, 0.5) 0%, rgba(10, 10, 18, 0.75) 100%);
    z-index: 2;
}

/* --- Content Wrapper and Typography --- */
.showcase-content-box {
    position: relative;
    z-index: 3;
    max-width: 750px;
    color: #FFFFFF;
}

.showcase-content-box.rahi-rtl {
    direction: rtl;
    text-align: right;
}

.showcase-content-box.rahi-ltr {
    direction: ltr;
    text-align: left;
}

.showcase-title {
    font-size: 42px;
    font-weight: 850;
    line-height: 1.4;
    margin-bottom: 25px;
    color: #FFFFFF;
}

.showcase-title .highlight-text {
    color: var(--color-secondary); /* Premium Brand Red */
    display: inline-block;
}

.showcase-description {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 35px;
}

.showcase-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #E2E4E9;
    font-weight: 400;
}

/* --- Premium Ghost CTA Button --- */
.showcase-action-block {
    display: flex;
}

.btn-showcase-more {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-showcase-more .arrow-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Hover Physics */
.btn-showcase-more:hover {
    background-color: #FFFFFF;
    color: var(--color-dark);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.rahi-rtl .btn-showcase-more:hover .arrow-icon {
    transform: translateX(-5px);
}

.rahi-ltr .btn-showcase-more:hover .arrow-icon {
    transform: translateX(5px);
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 768px) {
    .rahi-showcase-section {
        padding: 80px 0;
        min-height: auto;
    }
    
    .showcase-title {
        font-size: 28px;
    }
    
    .showcase-description p {
        font-size: 14.5px;
        line-height: 1.7;
    }
    
    .btn-showcase-more {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   13. HOME PAGE - LATEST BLOG ARTICLES GRID SYSTEM
   ========================================================================== */
.rahi-blog-showcase-section {
    padding: 100px 0;
    background-color: #F8F9FB; /* Clean, minimal off-white tone to bounce light */
}

/* --- Section Title Header Rules --- */
.blog-section-header {
    margin-bottom: 50px;
}
.blog-section-header.rahi-rtl { direction: rtl; text-align: right; }
.blog-section-header.rahi-ltr { direction: ltr; text-align: left; }

.blog-section-header .section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.blog-section-header .section-subtitle {
    font-size: 16px;
    color: #64748B;
    max-width: 600px;
    line-height: 1.6;
}

/* --- Grid Structure Deployment Layouts --- */
.blog-cards-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.blog-cards-grid-layout.grid-rtl { direction: rtl; }
.blog-cards-grid-layout.grid-ltr { direction: ltr; }

/* --- Individual Article Premium Card Structure --- */
.rahi-article-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rahi-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- Image and Badging Logic --- */
.card-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%; /* Enforces clean 5:3 premium crop scale */
    overflow: hidden;
    background-color: #E2E8F0;
}

.card-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-img-asset {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.rahi-article-card:hover .card-img-asset {
    transform: scale(1.06);
}

/* Premium Floating Badge placement rules */
.card-badge-category {
    position: absolute;
    bottom: 15px;
    z-index: 5;
    background-color: var(--color-secondary); /* Premium Brand accent colors */
    color: #FFFFFF;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.grid-rtl .card-badge-category { right: 15px; }
.grid-ltr .card-badge-category { left: 15px; }

/* --- Details Wrapper & Typography Clamp Mechanics --- */
.card-details-wrapper {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.meta-item {
    font-size: 13px;
    color: #94A3B8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-icon {
    width: 14px;
    height: 14px;
}

/* Strict Multi-line Line-Clamp rule targeting exactly maximum 2 lines */
.card-article-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

.card-title-link {
    color: var(--color-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Forces exactly maximum 2 lines text limits */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.card-title-link:hover {
    color: var(--color-secondary);
}

.blog-empty-state {
    grid-column: span 3;
    text-align: center;
    padding: 40px;
    color: #64748B;
}

/* --- Advanced Grid Responsiveness Viewports --- */
@media (max-width: 1024px) {
    .blog-cards-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .blog-empty-state { grid-column: span 2; }
}

@media (max-width: 768px) {
    .rahi-blog-showcase-section { padding: 60px 0; }
    .blog-section-header .section-title { font-size: 26px; }
    .blog-cards-grid-layout {
        grid-template-columns: 1fr;
    }
    .blog-empty-state { grid-column: span 1; }
    .card-article-title { font-size: 17px; }
}

/* ==========================================================================
   14. SITE FOOTER ARCHITECTURE (PREMIUM DARK COMPLEX)
   ========================================================================== */
.site-footer {
    background-color: #0B0C10; /* Dark deep cinematic gray */
    color: #A6ADBB;
    padding: 80px 0 30px 0;
    border-top: 1px solid #1F242E;
}

/* --- Layout Grid Alignment --- */
.footer-grid-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.5fr 1.3fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col.rahi-rtl { direction: rtl; text-align: right; }
.footer-col.rahi-ltr { direction: ltr; text-align: left; }

.footer-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* Premium Left Accent Border for Headers */
.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: var(--color-secondary);
}
.footer-col.rahi-rtl .footer-widget-title::after { right: 0; }
.footer-col.rahi-ltr .footer-widget-title::after { left: 0; }

/* --- Brand Info Section Styling --- */
.footer-about-text {
    font-size: 14px;
    line-height: 1.8;
    color: #94A3B8;
    margin-bottom: 25px;
}

.footer-social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    background-color: #1A1D24;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.svg-icon-asset {
    width: 18px;
    height: 18px;
    filter: invert(1); /* Forces white rendering on dark background */
    transition: transform 0.3s ease;
}

.social-icon-btn:hover {
    background-color: var(--color-secondary);
}

.social-icon-btn:hover .svg-icon-asset {
    transform: scale(1.1);
}

/* --- Lists and Links Common Architecture --- */
.footer-menu-links, 
.footer-contact-info, 
.footer-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-menu-links a, 
.footer-recent-posts a {
    font-size: 14px;
    color: #A6ADBB;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu-links a:hover, 
.footer-recent-posts a:hover {
    color: #FFFFFF;
}

/* Strict Title Clamping for Footer Recent Posts */
.footer-post-link {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.footer-contact-info li {
    font-size: 14px;
    line-height: 1.6;
    color: #94A3B8;
}

.footer-contact-info a {
    color: #94A3B8;
    text-decoration: none;
}

.footer-contact-info a:hover {
    color: #FFFFFF;
}

/* --- Bottom Copyright Bar --- */
.footer-bottom-bar {
    border-top: 1px solid #1F242E;
    padding-top: 25px;
    font-size: 13px;
    color: #64748B;
}
.footer-bottom-bar.rahi-rtl { direction: rtl; text-align: right; }
.footer-bottom-bar.grid-ltr { direction: ltr; text-align: left; }

/* --- Advanced Footer Fluid Responsiveness --- */
@media (max-width: 1024px) {
    .footer-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .site-footer { padding: 50px 0 25px 0; }
    .footer-grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-widget-title { margin-bottom: 18px; }
}

/* ==========================================================================
   15. HEADER NAVIGATION & RESTRUCTURED PREMIUM RESPONSIVE DRAWER SYSTEMS
   ========================================================================== */

/* --- Desktop Dropdown Support Architecture --- */
#primary-menu-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu-list li {
    position: relative;
}

#primary-menu-list li a {
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
    text-decoration: none;
    padding: 26px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

#primary-menu-list li a:hover {
    color: #FF3366;
}

/* Elegant Desktop Dropdown Submenu Layer (Fixing Width & Layout Shifts) */
#primary-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    background-color: #FFFFFF;
    min-width: 260px; /* Increased to ensure no layout text wrapping */
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 12px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 999;
}

/* Bi-directional support alignment for Desktop Submenu dropdowns */
html[dir="rtl"] #primary-menu-list .sub-menu { right: -15px; left: auto; }
html[dir="ltr"] #primary-menu-list .sub-menu { left: -15px; right: auto; }

#primary-menu-list .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#primary-menu-list .sub-menu li {
    width: 100%;
}

#primary-menu-list .sub-menu li a {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    border-radius: 8px;
    display: block;
    white-space: nowrap; /* Prevents text from stepping down line inside boxes */
    transition: all 0.25s ease;
}

#primary-menu-list .sub-menu li a:hover {
    background-color: #F8FAFC;
    color: #FF3366;
    /* Removed padding variations to permanently fix visual jitter/shaking layout shifts */
}

.dropdown-caret {
    border: solid currentcolor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2px;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
#primary-menu-list .menu-item-has-children:hover .dropdown-caret {
    transform: rotate(-135deg);
}

/* --- Premium Upgraded Mobile Drawer UI --- */
.mobile-navigation-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    visibility: hidden;
    transition: visibility 0.4s ease;
}

.drawer-close-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.drawer-content {
    position: absolute;
    top: 0;
    width: 290px;
    height: 100%;
    background-color: #FFFFFF;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes content up and CTA button down */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.drawer-content.drawer-rtl { right: 0; transform: translateX(100%); text-align: right; direction: rtl; }
.drawer-content.drawer-ltr { left: 0; transform: translateX(-100%); text-align: left; direction: ltr; }

.menu-is-open .mobile-navigation-drawer { visibility: visible; }
.menu-is-open .drawer-close-overlay { opacity: 1; }
.menu-is-open .drawer-content { transform: translateX(0); }

/* Luxury High-End Drawer Header Styling */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 15px;
}

.drawer-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-title {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
}

.drawer-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-close-button {
    background: #F1F5F9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-close-button:hover {
    background-color: #E2E8F0;
    color: #0F172A;
    transform: rotate(90deg);
}

/* Mobile Nav Wrap Wrapper Body Container */
.mobile-drawer-nav {
    flex-grow: 1;
}

/* Mobile Flat Link List Presentation Layer */
.mobile-nav-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-menu-list a {
    font-size: 14.5px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-nav-menu-list a:hover {
    background-color: #F8FAFC;
    color: #FF3366;
}

.drawer-rtl .mobile-nav-menu-list a:hover { padding-right: 18px; }
.drawer-ltr .mobile-nav-menu-list a:hover { padding-left: 18px; }

/* Premium Drawer Footer Consultation Button Styling */
.drawer-footer-cta {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #F1F5F9;
}

.btn-consultation-drawer {
    display: block;
    width: 100%;
    text-align: center;
    background: #FF3366;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.15);
    transition: all 0.3s ease;
}

.btn-consultation-drawer:hover {
    background: #E02855;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 51, 102, 0.25);
}

/* Disable standard body scrolling viewport locking configuration hook */
body.menu-is-open {
    overflow: hidden !important;
    touch-action: none;
}

/* ==========================================================================
   16. LUXURY COMPACT STANDARDIZED CONSERVATORIES ENGINE (REFINED ARCHITECTURE)
   ========================================================================== */

.conservatories-page-wrapper {
    background-color: #F8FAFC;
    padding-bottom: 90px;
}

/* --- Premium Brand Identity Hero Structure --- */
.conservatories-hero-section {
    padding: 100px 0 70px 0;
    text-align: center;
    background-color: #412C78; /* Main Brand Corporate Base Color */
    position: relative;
    overflow: hidden;
}

.conservatories-main-title {
    font-size: 30px;
    font-weight: 800;
    color: #FFFFFF; /* Pure white text for pristine high contrast ratio */
    line-height: 1.45;
    max-width: 850px;
    margin: 0 auto 20px auto;
    letter-spacing: -0.5px;
}

.title-bar-separator {
    width: 65px;
    height: 4px;
    background-color: #ED2E23; /* Secondary Vibrant Accent Brand Color */
    margin: 0 auto;
    border-radius: 2px;
}

/* --- CSS Native Smooth Fade Revel Animations --- */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(35px); }
    to { opacity: 1; transform: translateY(0); }
}

.animation-reveal-up {
    animation: revealUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.animation-card-fade {
    opacity: 0;
    animation: cardFadeIn 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Delays to create staggered rendering effects cleanly */
.academy-premium-card:nth-child(1) { animation-delay: 0.1s; }
.academy-premium-card:nth-child(2) { animation-delay: 0.25s; }
.academy-premium-card:nth-child(3) { animation-delay: 0.4s; }
.academy-premium-card:nth-child(4) { animation-delay: 0.5s; }
.academy-premium-card:nth-child(5) { animation-delay: 0.6s; }

/* --- Geometric Structural Flex Matrix Maps --- */
.cards-stack-container {
    display: flex;
    flex-direction: column;
    gap: 45px;
    padding-top: 65px;
}

.academy-premium-card {
    display: flex;
    background-color: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    border: 1px solid #E2E8F0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.academy-premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(65, 44, 120, 0.07); /* Tinted subtle shadow mapped from primary brand color */
}

/* --- Language Controlled Alignment Mapping Rules --- */
/* Persian (RTL) Rules: Alternate directional paths natively */
.lang-fa .layout-fa-normal { flex-direction: row; }
.lang-fa .layout-fa-reversed { flex-direction: row-reverse; }

/* German (LTR) Rules: Enforce strict uniform linear presentation */
.lang-de .layout-de-uniform { flex-direction: row !important; }

/* --- Grid Items Structural Configurations --- */
.academy-media-column {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

.academy-content-column {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    padding: 45px;
    justify-content: center;
}

.academy-image-frame {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background-color: #F1F5F9;
}

.academy-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.academy-premium-card:hover .academy-featured-img {
    transform: scale(1.03);
}

/* --- Card Header Elements --- */
.academy-branding-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.academy-card-title {
    font-size: 19px;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.5;
}

.lang-fa .academy-card-title { text-align: right; }
.lang-de .academy-card-title { text-align: left; }

.academy-stamp-logo {
    max-height: 48px;
    max-width: 80px;
    object-fit: contain;
    opacity: 0.9;
}

.academy-description-body p {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.9;
    margin: 0;
}

.lang-fa .academy-description-body p { text-align: justify; }
.lang-de .academy-description-body p { text-align: left; }

/* --- Ultra-Fluid Mobile Collapsible Text Management Engine --- */
.mobile-toggle-expand-btn {
    display: none; /* Globally hidden from standard desktop layouts */
}

@media (max-width: 768px) {
    .conservatories-main-title { font-size: 20px; padding: 0 15px; }
    .cards-stack-container { gap: 28px; padding-top: 40px; }
    
    /* Enforce full stacking parameters on smaller portable display layouts */
    .lang-fa .academy-premium-card,
    .lang-de .academy-premium-card {
        flex-direction: column !important;
    }
    
    .academy-media-column, 
    .academy-content-column {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .academy-image-frame { height: 200px; min-height: 200px; }
    .academy-content-column { padding: 24px 20px; }
    .academy-branding-header { gap: 15px; padding-bottom: 14px; margin-bottom: 14px; }
    .academy-card-title { font-size: 16.5px; }
    
    /* Active Collapsible System Rules for Mobile Views */
    .mobile-collapsible-block {
        position: relative;
    }
    
    .mobile-collapsible-block .text-clamp-container {
        max-height: 110px; /* Target limit size for multi line summaries */
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    
    /* Linear overlay transparency tint when summarized text mode is active */
    .mobile-collapsible-block .mobile-fade-overlay {
        position: absolute;
        bottom: 34px;
        left: 0;
        width: 100%;
        height: 55px;
        background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 95%);
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    /* Toggle Button Presentation Elements */
    .mobile-toggle-expand-btn {
        display: block;
        background: none;
        border: none;
        color: #412C78; /* Mapped to primary elite color hook */
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
        padding: 10px 0 0 0;
        margin-top: 5px;
        width: 100%;
        text-align: center;
        border-top: 1px dashed #E2E8F0;
        transition: color 0.2s ease;
    }
    
    .mobile-toggle-expand-btn:hover {
        color: #ED2E23;
    }
    
    /* Expanded modifications driven by runtime js class injection */
    .mobile-collapsible-block.is-expanded .text-clamp-container {
        max-height: 1000px; /* Safely expands to hold standard full text blocks */
    }
    
    .mobile-collapsible-block.is-expanded .mobile-fade-overlay {
        opacity: 0;
    }
}

/* ==========================================================================
   17. RESPONSIEV COHESION FLUID MEDIA QUERIES (BREAKPOINT MANAGEMENT)
   ========================================================================== */

@media (max-width: 1024px) {
    .academy-content-column {
        padding: 30px 35px;
    }
    .academy-card-title {
        font-size: 17.5px;
    }
}

@media (max-width: 768px) {
    .conservatories-main-title {
        font-size: 22px;
    }
    
    .cards-stack-container {
        gap: 30px;
        padding-top: 35px;
    }
    
    /* Collapse horizontal rows into a beautiful stacked card vertical configuration */
    html[dir="rtl"] .academy-premium-card,
    html[dir="ltr"] .academy-premium-card {
        flex-direction: column !important; /* Forces uniform stacking order regardless of counter */
    }
    
    .academy-media-column, 
    .academy-content-column {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .academy-image-frame {
        min-height: 220px;
        height: 220px;
    }
    
    .academy-content-column {
        padding: 28px 24px;
    }
    
    .academy-branding-header {
        flex-direction: column-reverse; /* Put logo above text on ultra compact displays if desired, or let it row */
        align-items: flex-start;
        gap: 14px;
    }
    
    .academy-stamp-logo {
        max-height: 40px;
    }
}

/* ==========================================================================
   18. PREMIUM BRAND UNIVERSITIES DIRECTORY SYSTEM
   ========================================================================== */

.universities-page-wrapper {
    background-color: #F8FAFC;
    padding-bottom: 90px;
}

/* --- Premium Brand Identity Hero Structure --- */
.universities-hero-section {
    padding: 100px 0 70px 0;
    text-align: center;
    background-color: #412C78; /* Main Brand Corporate Base Color */
    position: relative;
    overflow: hidden;
}

.universities-main-title {
    font-size: 30px;
    font-weight: 800;
    color: #FFFFFF; /* High contrast clean white typography */
    line-height: 1.45;
    max-width: 850px;
    margin: 0 auto 20px auto;
    letter-spacing: -0.5px;
}

/* --- Dynamic Entry Fade Animations --- */
.universities-page-wrapper .animation-reveal-up {
    animation: revealUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.universities-page-wrapper .animation-card-fade {
    opacity: 0;
    animation: cardFadeIn 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Staggered load delays */
.university-premium-card:nth-child(1) { animation-delay: 0.1s; }
.university-premium-card:nth-child(2) { animation-delay: 0.25s; }
.university-premium-card:nth-child(3) { animation-delay: 0.4s; }
.university-premium-card:nth-child(4) { animation-delay: 0.5s; }
.university-premium-card:nth-child(5) { animation-delay: 0.6s; }

/* --- Geometric Card Framework Matrix --- */
.university-premium-card {
    display: flex;
    background-color: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    border: 1px solid #E2E8F0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.university-premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(65, 44, 120, 0.07);
}

/* --- Directional Alignments based on Active Language Profile --- */
/* Persian Rules: Fluid Alternating Paths */
.lang-fa .layout-fa-normal { flex-direction: row; }
.lang-fa .layout-fa-reversed { flex-direction: row-reverse; }

/* German Rules: Enforce strict parallel symmetry (No zigzag) */
.lang-de .layout-de-uniform { flex-direction: row !important; }

/* --- Layout Split Ratios --- */
.university-media-column {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

.university-content-column {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    padding: 45px;
    justify-content: center;
}

.university-image-frame {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background-color: #F1F5F9;
}

.university-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.university-premium-card:hover .university-featured-img {
    transform: scale(1.03);
}

/* --- Header Core Parameters --- */
.university-branding-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.university-card-title {
    font-size: 19px;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.5;
}

.lang-fa .university-card-title { text-align: right; }
.lang-de .university-card-title { text-align: left; }

.university-stamp-logo {
    max-height: 48px;
    max-width: 80px;
    object-fit: contain;
    opacity: 0.9;
}

.university-description-body p {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.9;
    margin: 0;
}

.lang-fa .university-description-body p { text-align: justify; }
.lang-de .university-description-body p { text-align: left; }

/* ==========================================================================
   19. RESPONSIVE FLUID MEDIA QUERIES & MOBILE TRUNCATION SYSTEM
   ========================================================================== */

@media (max-width: 768px) {
    .universities-main-title { font-size: 20px; padding: 0 15px; }
    
    .lang-fa .university-premium-card,
    .lang-de .university-premium-card {
        flex-direction: column !important; /* Stack columns globally on mobile */
    }
    
    .university-media-column, 
    .university-content-column {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .university-image-frame { height: 200px; min-height: 200px; }
    .university-content-column { padding: 24px 20px; }
    .university-branding-header { gap: 15px; padding-bottom: 14px; margin-bottom: 14px; }
    .university-card-title { font-size: 16.5px; }
    
    /* Active Collapsible Grid Layout Rules for Mobile Devices */
    .university-description-body.mobile-collapsible-block .text-clamp-container {
        max-height: 110px; /* Precise height ceiling for the summary view */
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    
    /* Smooth gradient blur at the bottom of truncated text */
    .university-description-body.mobile-collapsible-block .mobile-fade-overlay {
        position: absolute;
        bottom: 34px;
        left: 0;
        width: 100%;
        height: 55px;
        background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 95%);
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .university-description-body.mobile-collapsible-block.is-expanded .text-clamp-container {
        max-height: 1200px; /* Expand fully for comprehensive view */
    }
    
    .university-description-body.mobile-collapsible-block.is-expanded .mobile-fade-overlay {
        opacity: 0;
    }
}

/* ==========================================================================
   20. ULTRA MODERN HIGH-PERFORMANCE DORM BOOKING SYSTEM UI
   ========================================================================== */

.dorm-booking-wrapper {
    background-color: #F8FAFC;
    padding-bottom: 100px;
}

/* --- Hero Core Style Guide Map --- */
.dorm-hero-section {
    padding: 95px 0 65px 0;
    text-align: center;
    background-color: #412C78; /* Primary Brand Context Color */
    position: relative;
}

.dorm-main-title {
    font-size: 32px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.dorm-sub-hint {
    font-size: 15px;
    color: #E2E8F0;
    max-width: 720px;
    margin: 0 auto 25px auto;
    line-height: 1.7;
    opacity: 0.95;
}

/* --- Form Layout Dynamic Grid Architecture --- */
.form-frame-holder {
    max-width: 800px;
    margin: -40px auto 0 auto;
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid #E2E8F0;
    position: relative;
    z-index: 5;
}

.form-grid-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
}

.form-field-group {
    display: flex;
    flex-direction: column;
}

.form-field-group.full-width-span {
    grid-column: span 2;
}

/* --- Label & Form Control Properties --- */
.form-field-group label {
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 9px;
    display: inline-block;
}

.form-field-group label .required {
    color: #ED2E23; /* Secondary brand accent hook */
    margin-left: 3px;
}

.form-field-group input[type="text"],
.form-field-group input[type="email"],
.form-field-group input[type="tel"],
.form-field-group input[type="number"],
.form-field-group input[type="date"],
.form-field-group textarea {
    width: 100%;
    padding: 13px 18px;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-size: 14.5px;
    color: #334155;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
}

/* Structural adjustment based on alignment logic */
.lang-fa .form-field-group input,
.lang-fa .form-field-group textarea { text-align: right; direction: rtl; }
.lang-de .form-field-group input,
.lang-de .form-field-group textarea { text-align: left; direction: ltr; }

.form-field-group input:focus,
.form-field-group textarea:focus {
    border-color: #412C78;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(65, 44, 120, 0.08);
}

/* --- Checkbox and Radio Specialized Rows --- */
.radio-choices-flex {
    display: flex;
    gap: 25px;
    margin-top: 5px;
}

.radio-box, .radio-row, .checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500 !important;
    color: #475569 !important;
    margin: 0;
}

.radio-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
    background: #F8FAFC;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.radio-box input, .radio-row input, .checkbox-row input {
    width: 17px;
    height: 17px;
    accent-color: #412C78; /* Branding focused native controllers */
    margin: 0;
}

.terms-group {
    margin-top: 10px;
    padding: 5px 0;
}

.terms-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #64748B;
}

/* --- High-Grade Async Submission Buttons --- */
.form-submission-cta {
    margin-top: 35px;
    text-align: center;
}

.btn-submit-modern {
    background-color: #412C78;
    color: #FFFFFF;
    border: none;
    padding: 15px 45px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(65, 44, 120, 0.2);
    transition: all 0.3s ease;
}

.btn-submit-modern:hover {
    background-color: #ED2E23; /* Dynamic color shift on active hover profiles */
    box-shadow: 0 8px 20px rgba(237, 46, 35, 0.2);
    transform: translateY(-2px);
}

/* --- Form Ajax Response Notification Blocks --- */
.form-status-message {
    grid-column: span 2;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    display: none;
    line-height: 1.5;
}

.form-status-message.msg-success {
    display: block;
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.form-status-message.msg-error {
    display: block;
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* ==========================================================================
   21. MOBILE FLUID PARAMETERS FOR ENGINE LAYOUT
   ========================================================================== */
@media (max-width: 768px) {
    .dorm-main-title { font-size: 22px; }
    .dorm-sub-hint { font-size: 13.5px; padding: 0 15px; }
    .form-frame-holder { padding: 30px 20px; margin-top: -25px; border-radius: 14px; }
    .form-grid-matrix { grid-template-columns: 1fr; gap: 20px; }
    .form-field-group.full-width-span { grid-column: span 1; }
    .btn-submit-modern { width: 100%; padding: 14px 20px; }
}

/* ==========================================================================
   22. RAHI BLOG ARCHIVE CORE ENGINE GRID LAYOUT
   ========================================================================== */
.rahi-blog-archive-wrapper {
    background-color: #f8fafc;
    padding-bottom: 60px;
}
.blog-hero-section {
    background: linear-gradient(135deg, #412C78 0%, #2A1B54 100%);
    color: #ffffff;
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
}
.blog-archive-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}
.blog-archive-subtitle {
    font-size: 16px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}
.blog-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.blog-post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(65, 44, 120, 0.08);
}
.post-card-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.responsive-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-post-card:hover .responsive-card-img {
    transform: scale(1.05);
}
.post-card-category {
    position: absolute;
    bottom: 15px;
}
body.rtl .post-card-category {
    right: 15px;
}
body:not(.rtl) .post-card-category {
    left: 15px;
}
.post-card-category a {
    background: #412C78;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}
.post-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.post-card-meta {
    font-size: 12px;
    color: #718096;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}
.post-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.5;
}
.post-card-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s;
}
.post-card-title a:hover {
    color: #412C78;
}
.post-card-excerpt {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.post-card-footer {
    margin-top: auto;
    border-top: 1px solid #edf2f7;
    padding-top: 15px;
}
.btn-read-more {
    color: #412C78;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.btn-read-more:hover {
    opacity: 0.8;
}
.rahi-pagination-container {
    text-align: center;
    margin-top: 5px;
}
.rahi-pagination-container ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.rahi-pagination-container li a, 
.rahi-pagination-container li span {
    padding: 10px 16px;
    display: block;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
}
.rahi-pagination-container li span.current {
    background: #412C78;
    color: #fff;
}
.rahi-pagination-container li a:hover:not(.current) {
    background: #f1f5f9;
}

/* ==========================================================================
   23. BLOG RESPONSIVE ADAPTATION MATRIX
   ========================================================================== */
@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    .blog-archive-title {
        font-size: 26px;
    }
}

/* ==========================================================================
   24. RAHI SINGLE POST ENGINE CORE TYPOGRAPHY
   ========================================================================== */
.rahi-single-post-wrapper {
    background-color: #ffffff;
    padding-bottom: 80px;
}
.post-hero-section {
    background: linear-gradient(135deg, #412C78 0%, #2A1B54 100%);
    color: #ffffff;
    padding: 80px 0 60px 0;
    text-align: center;
}
.post-hero-category {
    margin-bottom: 15px;
}
.post-hero-category a {
    color: #a3b8cc;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}
.post-hero-category a:hover {
    color: #ffffff;
}
.post-main-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.4;
    max-width: 850px;
    margin: 0 auto 20px auto;
    padding: 0 15px;
}
.post-hero-meta {
    font-size: 14px;
    color: #cbd5e1;
    display: flex;
    justify-content: center;
    gap: 12px;
}
.post-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.post-layout-central {
    max-width: 800px;
    margin: -40px auto 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   25. POST MEDIA & CONTENT RENDERING MATRIX
   ========================================================================== */
.post-featured-media {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.post-core-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.post-article-core-entry {
    color: #2d3748;
    font-size: 16.5px;
    line-height: 1.85;
}
.post-article-core-entry p {
    margin-bottom: 25px;
    text-align: justify;
}
.post-article-core-entry h2, 
.post-article-core-entry h3 {
    color: #412C78;
    font-weight: 800;
    margin: 40px 0 20px 0;
    line-height: 1.4;
}
.post-article-core-entry h2 { font-size: 24px; }
.post-article-core-entry h3 { font-size: 20px; }
.post-article-core-entry blockquote {
    margin: 30px 0;
    padding: 15px 25px;
    background: #f7fafc;
    border-radius: 4px;
    font-style: italic;
    color: #4a5568;
}
body.rtl .post-article-core-entry blockquote {
    border-right: 4px solid #412C78;
    border-left: none;
}
body:not(.rtl) .post-article-core-entry blockquote {
    border-left: 4px solid #412C78;
    border-right: none;
}

/* ==========================================================================
   26. TAGS & NAVIGATION POST LAYOUT
   ========================================================================== */
.post-tags-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    gap: 15px;
}
.tags-label {
    font-weight: 700;
    font-size: 14px;
    color: #718096;
}
.tags-links-row a {
    display: inline-block;
    background: #f1f5f9;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tags-links-row a:hover {
    background: #412C78;
    color: #ffffff;
}
.post-navigation-matrix {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #edf2f7;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.nav-box {
    display: flex;
    flex-direction: column;
}
.next-post-box {
    text-align: left;
}
body.rtl .next-post-box {
    text-align: left;
}
body.rtl .prev-post-box {
    text-align: right;
}
.nav-hint {
    font-size: 12px;
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.nav-title-link {
    font-size: 14px;
    font-weight: 600;
    color: #412C78;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}
.nav-title-link:hover {
    color: #2A1B54;
}

/* ==========================================================================
   27. SINGLE POST MOBILE RESPONSIVE ADAPTATION
   ========================================================================== */
@media (max-width: 768px) {
    .post-hero-section {
        padding: 60px 0 40px 0;
    }
    .post-main-title {
        font-size: 26px;
    }
    .post-layout-central {
        margin-top: -20px;
        padding: 20px;
        border-radius: 12px;
    }
    .post-article-core-entry {
        font-size: 15.5px;
        line-height: 1.75;
    }
    .post-navigation-matrix {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .next-post-box {
        text-align: right;
    }
    body.rtl .next-post-box {
        text-align: right;
    }
}

/* ==========================================================================
   28. RAHI FAQ CORE ARCHITECTURE INTERFACE
   ========================================================================== */
.rahi-faq-page-wrapper {
    background-color: #f8fafc;
    padding-bottom: 80px;
}
.faq-hero-section {
    background: linear-gradient(135deg, #412C78 0%, #2A1B54 100%);
    color: #ffffff;
    padding: 80px 0 70px 0;
    text-align: center;
}
.faq-main-title {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.faq-sub-title {
    font-size: 16px;
    opacity: 0.85;
    font-weight: 400;
}
.faq-main-container {
    max-width: 800px;
    margin: -40px auto 0 auto;
    padding: 0 20px;
}
.faq-accordion-matrix {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==========================================================================
   29. FAQ ACCORDION INTERACTIVE COMPONENTS
   ========================================================================== */
.faq-accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-accordion-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(65, 44, 120, 0.03);
}
.faq-accordion-item.is-active {
    border-color: #412C78;
    box-shadow: 0 10px 25px rgba(65, 44, 120, 0.06);
}
.faq-accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    padding: 24px;
    font-family: inherit; /* Forces theme fonts to apply directly */
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: color 0.25s ease;
}
body.rtl .faq-accordion-trigger { text-align: right; }
body:not(.rtl) .faq-accordion-trigger { text-align: left; }

.faq-accordion-item.is-active .faq-accordion-trigger {
    color: #412C78;
}

/* Minimalist Icon Indicator Circle */
.faq-accordion-trigger::after {
    content: '+';
    font-family: Consolas, Monaco, monospace; /* Ensures geometric vertical alignment */
    font-size: 18px;
    font-weight: 300;
    color: #64748b;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-accordion-item.is-active .faq-accordion-trigger::after {
    content: '×';
    background: #412C78;
    color: #ffffff;
    transform: rotate(180deg);
    font-size: 22px;
}
.faq-accordion-panel {
    height: 0; /* Changed from max-height to zero height for GSAP control */
    overflow: hidden;
    /* Removed the CSS transition property completely to prevent lag/conflict */
}
.faq-panel-inner {
    padding: 0 24px 24px 24px;
    color: #475569;
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.85;
}
/* کنترل پدینگ بالایی در زمان فعال بودن برای جلوگیری از پرش انیمیشن */
.faq-accordion-item.is-active .faq-panel-inner {
    padding-top: 8px;
}
.faq-panel-inner p {
    margin-bottom: 12px;
}
.faq-panel-inner p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   30. FAQ RESPONSIVE ENGINE LAYOUT
   ========================================================================== */
@media (max-width: 768px) {
    .faq-hero-section {
        padding: 55px 0 45px 0;
    }
    .faq-main-title {
        font-size: 24px;
    }
    .faq-sub-title {
        font-size: 14px;
        padding: 0 15px;
    }
    .faq-main-container {
        margin-top: -25px;
        padding: 0 15px;
    }
    .faq-accordion-matrix {
        gap: 12px;
    }
    .faq-accordion-item {
        border-radius: 10px;
    }
    .faq-accordion-trigger {
        padding: 16px;
        font-size: 14px;
        gap: 12px;
    }
    .faq-accordion-trigger::after {
        width: 26px;
        height: 26px;
        font-size: 15px;
    }
    .faq-accordion-item.is-active .faq-accordion-trigger::after {
        font-size: 18px;
    }
    .faq-panel-inner {
        padding: 0 16px 16px 16px;
        font-size: 13.5px;
        line-height: 1.75;
    }
    .faq-accordion-item.is-active .faq-panel-inner {
        padding-top: 14px;
    }
}

/* ==========================================================================
   31. RAHI ULTRA-LUXE MINIMAL CONTACT INTERFACE
   ========================================================================== */
.rahi-contact-page-wrapper {
    background-color: #fafafa;
    padding-bottom: 120px;
    box-sizing: border-box;
}
.rahi-contact-page-wrapper *, 
.rahi-contact-page-wrapper *::before, 
.rahi-contact-page-wrapper *::after {
    box-sizing: border-box;
}
.contact-hero-section {
    background: linear-gradient(135deg, #412C78 0%, #2A1B54 100%);
    color: #ffffff;
    padding: 120px 0 100px 0;
    text-align: center;
}
.contact-main-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}
.contact-sub-title {
    font-size: 16px;
    opacity: 0.85;
    font-weight: 400;
    margin: 0;
}
.contact-main-container {
    max-width: 1140px;
    margin: -60px auto 0 auto;
    padding: 0 24px;
    width: 100%;
}
.contact-grid-matrix {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

/* Luxury Info Cards Sidebar */
.contact-info-column {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.info-card-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-block-label {
    font-size: 13px;
    font-weight: 800;
    color: #412C78;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
}
.info-block-value {
    font-size: 16px;
    color: #111111;
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
}
.info-block-value a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}
.info-block-value a:hover {
    color: #412C78;
}
.info-block-value.c-subtitle {
    font-size: 13.5px;
    color: #666666;
}

/* Direction Alignment Rules for Mixed Languages */
html[dir="rtl"] .text-ltr {
    text-align: right;
    direction: ltr;
}
html[dir="ltr"] .text-ltr {
    text-align: left;
    direction: ltr;
}

/* ==========================================================================
   32. MINIMALIST CONTACT FORM ARCHITECTURE (STRICT RESIZE FIX)
   ========================================================================== */
.contact-form-column {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
}
#rahi-contact-engine-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.contact-field-group label {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
}
.contact-field-group input,
.contact-field-group textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 15px;
    color: #111111;
    transition: all 0.2s ease;
}
.contact-field-group textarea {
    resize: none; /* Disables ugly manual stretching */
}
.contact-field-group input:focus,
.contact-field-group textarea:focus {
    border-color: #412C78;
    box-shadow: 0 0 0 4px rgba(65, 44, 120, 0.05);
    outline: none;
}

/* Premium Submitter Button */
.btn-submit-contact {
    background: #412C78;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
    width: 100%;
}
.btn-submit-contact:hover {
    background: #2A1B54;
}
.btn-submit-contact.is-loading .btn-text {
    visibility: hidden;
    opacity: 0;
}
.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: contact-spin 0.6s linear infinite;
    position: absolute;
}
.btn-submit-contact.is-loading .btn-spinner {
    display: block;
}
@keyframes contact-spin {
    to { transform: rotate(360deg); }
}

/* Message UI Responses */
#contact-form-response-matrix {
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}
#contact-form-response-matrix.response-success {
    padding: 14px;
    background: #f4fbf7;
    color: #14532d;
    border: 1px solid #dcfce7;
}
#contact-form-response-matrix.response-error {
    padding: 14px;
    background: #fef2f2;
    color: #7f1d1d;
    border: 1px solid #fee2e2;
}

/* ==========================================================================
   33. CONTACT RESPONSIVE ADAPTATION MATRIX
   ========================================================================== */
@media (max-width: 1024px) {
    .contact-grid-matrix {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contact-main-container {
        margin-top: -40px;
    }
}
@media (max-width: 768px) {
    .contact-hero-section {
        padding: 80px 0 70px 0;
    }
    .contact-main-title {
        font-size: 32px;
    }
    .contact-info-column,
    .contact-form-column {
        padding: 32px 24px;
        border-radius: 12px;
    }
}