﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Open+Sans:wght@400;600;700;800&display=swap');
/* Optimized font loading with display=swap */

:root {
    --primary-red: #C8102E;
    --primary-yellow: #FFC72C;
    --card-bg: #F1F4F9;
    --card-border: #C8102E;
    --text-dark: #333333;
    --white: #FFFFFF;
    --font-main: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.5;
}


header {
    background-color: var(--primary-red);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    will-change: transform;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: auto; 
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.logo img:hover {
    transform: scale(1.05);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    position: relative;
    z-index: 1001; /* Above mobile nav and main nav */
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary-red);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    font-family: 'Cairo', sans-serif; /* Recommended Arabic font */
}

body.rtl .nav-container {
    flex-direction: row-reverse;
}

body.rtl .lang-switcher {
    margin-left: 0;
    margin-right: 20px;
}

body.rtl nav ul {
    flex-direction: row-reverse;
}

body.rtl .card-left {
    border-right: none;
    border-left: 4px solid var(--primary-yellow);
}

body.rtl .yellow-line {
    right: 0;
    left: auto;
}

body.rtl .jump-box {
    text-align: right;
}

body.rtl .footer-container {
    text-align: right;
}

/* Dropdown Menu Style */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    list-style: none;
    z-index: 1000;
    display: flex; /* Added flex to force column */
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    margin: 0 !important;
}

.dropdown-menu li a {
    color: var(--primary-red) !important;
    display: block;
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    transition: background 0.2s ease;
    white-space: nowrap;
    text-transform: none !important; /* Fixed: Allow Title Case */
}

.dropdown-menu li a:hover {
    background: #f8f8f8;
    color: var(--primary-yellow) !important;
}

.dropdown a i {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* RTL Dropdown */
body.rtl .dropdown-menu {
    left: auto;
    right: 0;
    text-align: right;
}

body.rtl .dropdown a i {
    margin-left: 0;
    margin-right: 5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle at center, #ffffff 0%, #fdfdfd 100%);
    border-bottom: 1px solid #eee;
}

.hero h1 {
    font-size: 2.6rem;
    color: var(--primary-red);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-intro {
    max-width: 750px;
    margin: 0 auto 15px auto;
    font-size: 1.1rem;
    color: #4A5568;
    line-height: 1.7;
    font-weight: 400;
}

.jump-box {
    background: #fff;
    border: 3px solid #E63946;
    /* Burnt red/orange border */
    border-radius: 60px 0 60px 0;
    /* Distinctive curved corners */
    padding: 30px 20px;
    max-width: 800px;
    margin: 10px auto 20px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.jump-title {
    font-family: 'Playfair Display', serif;
    color: #1a202c;
    font-size: 1.6rem;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 1px;
}

.items-grid-jump {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.jump-btn-new {
    background-color: var(--primary-yellow);
    color: var(--primary-red);
    padding: 12px 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 8px;
    box-shadow: 0 5px 0 #d97706;
    /* 3D bottom shadow */
    transition: all 0.15s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.jump-btn-new:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #d97706;
}

.jump-btn-new:active {
    transform: translateY(5px);
    box-shadow: 0 0px 0 #d97706;
}

.special-item {
    margin-bottom: 40px;
    text-align: left;
}

body.rtl .special-item {
    text-align: right;
}

.special-item h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.special-item h4 {
    margin: 15px 0 10px 0;
    color: #2D3748;
}

.highlight-box.accent {
    background: #FFF5F5;
    border-left: 4px solid var(--primary-red);
    color: #C53030;
    border-radius: 4px;
}

body.rtl .highlight-box.accent {
    border-left: none;
    border-right: 4px solid var(--primary-red);
}

.simple-info, .final-thought {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    border: 1px solid #e2e8f0;
}

.final-thought {
    border-top: 4px solid var(--primary-yellow);
}

/* Mobile Responsiveness for Jump Box */
@media (max-width: 768px) {
    .items-grid-jump {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .jump-box {
        padding: 30px 20px;
        margin: 30px 10px;
        border-radius: 40px 0 40px 0;
    }
}

@media (max-width: 480px) {
    .items-grid-jump {
        grid-template-columns: 1fr;
    }

    .jump-title {
        font-size: 1.5rem;
    }
}

/* Download Menu Section */
.download-section {
    text-align: center;
    padding: 20px 20px 60px 20px;
    background: radial-gradient(circle at center, #ffffff 0%, #fdfdfd 100%);
    border-bottom: 2px solid #eee;
}

.download-heading {
    color: var(--primary-red);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.download-btn {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--primary-yellow);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3);
    text-transform: uppercase;
}

.download-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(200, 16, 46, 0.4);
    background-color: #b30f29;
}

.download-btn:active {
    transform: translateY(0);
}

.full-menu-container {
    margin-top: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.full-menu-img {
    max-height: 600px;
    width: 100%;
    margin: 0 auto;
    display: block;
}

/* Category Section */
.category-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px;
}

.category-header {
    background-color: #FCE8E8;
    color: var(--primary-red);
    padding: 12px 25px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-radius: 4px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

/* --- EXACT CLONE OF CARD DESIGN --- */
.item-card {
    display: flex;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    overflow: hidden;
    padding: 20px;
    position: relative;
    min-height: 200px;
}

@media (max-width: 480px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
    .item-card {
        flex-direction: column;
        padding: 15px;
    }
    .card-left {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 15px;
    }
    .card-right {
        padding-left: 0;
    }
}

.card-left {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-left .yellow-line {
    width: 100%;
    height: 4px;
    background-color: var(--primary-yellow);
    margin-bottom: 10px;
}

.card-left img {
    width: 190px;
    height: 145px;
    object-fit: contain;
    padding: 2px;
    /* Breathing room */
}

.card-right {
    flex: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
}

.subcategory-title {
    color: var(--primary-red);
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-transform: uppercase;
}

.item-card.no-image .card-right {
    padding-left: 0;
}

.title-banner {
    background-color: var(--primary-yellow);
    color: var(--primary-red);
    padding: 8px 15px;
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 15px;
    border-radius: 2px;
}

.item-desc {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: auto;
    font-weight: 600;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 15px;
    font-weight: 800;
    color: #2D3748;
    font-size: 1.1rem;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Updated Responsive Design */

/* Tablets & Small Laptops (992px and below) */
@media (max-width: 992px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .info-section {
        margin: 40px 20px;
    }
}

/* iPads & Large Mobile (768px and below) */
@media (max-width: 768px) {
    .category-header {
        font-size: 1.3rem;
        padding: 10px 20px;
    }
    .items-grid {
        gap: 20px;
    }
    .download-heading {
        font-size: 1.6rem;
    }
}

/* Mobile Phones (600px and below) */
@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        padding: 15px 10px;
        gap: 15px;
    }
    
    nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 0.8rem;
    }

    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 1.7rem;
        margin-bottom: 20px;
    }

    .hero-intro {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .item-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card-left img {
        width: 100%;
        max-width: 250px;
        height: auto;
    }

    .card-right {
        padding-left: 0;
        padding-top: 15px;
        width: 100%;
    }

    .item-desc {
        font-size: 0.9rem;
    }

    .card-footer {
        justify-content: center;
        font-size: 1rem;
    }

    .download-section {
        padding: 40px 15px;
    }

    .download-heading {
        font-size: 1.4rem;
    }

    .download-btn {
        padding: 15px 25px;
        font-size: 0.95rem;
    }

    .info-section {
        padding: 25px 15px;
        margin: 30px 10px;
    }

    .info-section h2 {
        font-size: 1.35rem;
    }

    .highlight-box {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .custom-table-container {
        margin: 20px -5px;
    }

    .custom-table th, .custom-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Information Sections */
.info-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px;
    background-color: #fcfcfc;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-section h2 {
    color: var(--primary-red);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-yellow);
    padding-left: 15px;
}

.info-section h3 {
    color: #444;
    margin: 25px 0 15px 0;
    font-size: 1.4rem;
}

.info-section p,
.info-section li {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 12px;
}

.info-section ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.highlight-box {
    background-color: var(--primary-yellow);
    color: var(--primary-red);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 25px;
    display: inline-block;
    border: 1px solid var(--primary-red);
}

/* Custom Table */
.custom-table-container {
    overflow-x: auto;
    margin: 30px 0;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.custom-table th,
.custom-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.custom-table th {
    background-color: var(--primary-red);
    color: white;
    text-transform: uppercase;
    font-weight: 800;
}

.custom-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* FAQ */
.faq-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    margin-top: 0;
    color: var(--primary-red);
    font-size: 1.25rem;
}

footer {
    background-color: #9D202F;
    color: var(--white);
    padding: 80px 0 40px 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    padding: 0 20px;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

.footer-title {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
    display: inline-block;
    width: 100%;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--primary-yellow);
    border-bottom-color: var(--primary-yellow);
    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-btn.facebook {
    border: 1px solid var(--white);
    color: var(--primary-yellow);
}

.social-btn.instagram {
    border: 1px solid var(--primary-yellow);
    color: var(--white);
}

.social-btn i {
    font-size: 1.2rem;
}

.social-btn:hover {
    transform: translateX(10px);
    background: rgba(255,255,255,0.1);
}

/* Responsiveness for new footer */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}