
/* Mandatory Image Constraints */
img {
    max-width: 100%;
}

img.logo-img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

img.hero-logo-img {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Root Theme Settings */
:root {
    --primary-blue: #0A84FF;
    --primary-dark: #004080;
    --bg-light: #F5F6FA;
    --card-bg: #FFFFFF;
    --text-dark: #1E2229;
    --text-muted: #5F6D7E;
    --border-color: #E2E8F0;
    --danger-red: #FF3B30;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1.5px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

/* Language selector */
.lang-selector {
    display: flex;
    gap: 8px;
    background: #EFEFEF;
    padding: 4px;
    border-radius: 30px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.lang-selector::-webkit-scrollbar {
    display: none;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Cairo', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-btn.active {
    background: var(--primary-blue);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(10, 132, 255, 0.2);
}

/* Main Container & Sections Visibility */
.main-container {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 0 24px;
}

.lang-section {
    display: none;
}

.lang-section.active {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0A84FF 0%, #004080 100%);
    color: #FFFFFF;
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(10, 132, 255, 0.15);
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero p {
    font-size: 14px;
    opacity: 0.8;
}

.hero .subtitle {
    margin-top: 16px;
    font-size: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    opacity: 0.95;
}

/* Language Specific Fonts */
[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

[dir="ltr"] {
    font-family: 'Inter', sans-serif;
}

/* Layout Grid */
.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar navigation */
.sidebar {
    position: sticky;
    top: 100px;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

[dir="rtl"] .nav-links a {
    font-size: 13.5px;
}

.nav-links a:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.nav-links a.active {
    background: rgba(10, 132, 255, 0.08);
    color: var(--primary-blue);
}

/* Main Content Area */
.main-content {
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.policy-section {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1.5px solid var(--border-color);
}

.policy-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.policy-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.policy-section p {
    color: var(--text-dark);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
}

.policy-section ul {
    margin-left: 24px;
    margin-right: 24px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.policy-section li {
    font-size: 14.5px;
    color: var(--text-dark);
}

/* Warning Callout Box */
.callout {
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
    border-left: 5px solid;
    border-right: 5px solid;
}

.callout.warning {
    background: rgba(255, 59, 48, 0.06);
    border-color: var(--danger-red);
}

.callout strong {
    color: var(--danger-red);
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.callout p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--text-dark);
}

/* Contact Us Styling */
.email-link {
    font-size: 18px;
    font-weight: 700;
}

.email-link a {
    color: var(--primary-blue);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.email-link a:hover {
    border-color: var(--primary-blue);
}

/* Footer styling */
.footer {
    border-top: 1.5px solid var(--border-color);
    background: #FFFFFF;
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .sidebar {
        position: static;
        width: 100%;
        overflow-x: auto;
    }

    .nav-links {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
    }

    .nav-links a {
        padding: 8px 16px;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 10px 14px;
        flex-direction: column;
        gap: 10px;
    }

    .lang-selector {
        width: 100%;
        justify-content: flex-start;
        padding: 4px;
        gap: 6px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .main-container {
        margin-top: 130px;
        padding: 0 16px;
    }

    .hero {
        padding: 32px 16px;
        border-radius: 16px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .main-content {
        padding: 20px;
        border-radius: 16px;
    }
}

/* Contact Form Styling */
.contact-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.form-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--bg-light);
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary-blue);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.submit-btn {
    border: none;
    background: var(--primary-blue);
    color: #FFFFFF;
    padding: 14px 24px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

[dir="rtl"] .submit-btn {
    align-self: flex-start;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.2);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    display: none;
}

.form-status.sending {
    display: block;
    background-color: rgba(10, 132, 255, 0.08);
    color: var(--primary-blue);
}

.form-status.success {
    display: block;
    background-color: rgba(52, 199, 89, 0.08);
    color: #34C759;
}

.form-status.error {
    display: block;
    background-color: rgba(255, 59, 48, 0.08);
    color: var(--danger-red);
}

.logo-img { width: 38px; height: 38px; object-fit: contain; vertical-align: middle; margin-left: 8px; margin-right: 8px; }




/* App Logo Enhancements */
.logo-img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

.hero-logo-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 0 16px 0 !important;
    width: 100% !important;
}

.hero-logo-img {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    filter: drop-shadow(0 4px 12px rgba(10, 132, 255, 0.2)) !important;
}
