/* General Resets & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #9b59b6; /* Purple */
    --secondary-color: #6c5ce7; /* Darker Purple/Blue */
    --accent-color: #0be881; /* Greenish accent for highlights */
    --text-light: rgba(255, 255, 255, 0.9);
    --text-dark: rgba(0, 0, 0, 0.8);
    --bg-dark: rgba(0, 0, 0, 0.9);
    --card-bg-light: rgba(255, 255, 255, 0.08); /* Adjusted for glassmorphism */
    --card-border: rgba(255, 255, 255, 0.18); /* Adjusted for glassmorphism */
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.2);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.4);
    --gradient-purple: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

@font-face {
    font-family: 'Montserrat-Arabic';
    src: url('font/Montserrat-Arabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: 'Montserrat', 'Cairo', sans-serif; /* Prioritize Montserrat for English, Cairo for Arabic */
    background-color: #1a1a2e; /* Dark background */
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    background-image: url('img/background-pattern.png'); /* A subtle, modern pattern */
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    padding-top: 100px; /* Space for fixed header on desktop */
}

/* Background Animated Blobs for dynamic feel */
.background-blob {
    position: fixed;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(100px); /* Soft blur effect */
    z-index: -1;
    animation: blob-animate 15s infinite alternate;
}

.background-blob.top-left {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.background-blob.bottom-right {
    width: 400px;
    height: 400px;
    background-color: var(--secondary-color);
    bottom: -100px;
    right: -100px;
    animation-delay: 2s;
}

@keyframes blob-animate {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 40px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}


/* --- Global Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Base animation classes */
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.fade-in-down { animation: fadeInDown 0.8s ease-out forwards; opacity: 0; }
.fade-in { animation: fadeIn 0.8s ease-out forwards; opacity: 0; }
.slide-in-left { animation: slideInLeft 0.8s ease-out forwards; opacity: 0; }
.slide-in-right { animation: slideInRight 0.8s ease-out forwards; opacity: 0; }

/* Delay Utility Classes for Staggered Animations */
.delay-1 { animation-delay: 0.1s !important; }
.delay-2 { animation-delay: 0.2s !important; }
.delay-3 { animation-delay: 0.3s !important; }

/* Intersection Observer Animations (Controlled by JS) */
.fade-in-on-scroll,
.slide-in-left-on-scroll,
.slide-in-right-on-scroll,
.fade-in-up-on-scroll {
    opacity: 0;
    transform: translateY(20px); /* Default slide up */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left-on-scroll { transform: translateX(-50px); }
.slide-in-right-on-scroll { transform: translateX(50px); }

/* Class added by JS when element is visible */
.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}


/* --- Glassmorphism Effect --- */
.glassmorphism {
    background: rgba(255, 255, 255, 0.08); /* Slightly visible background */
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px); /* The key to glass effect */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease-in-out;
}

.glassmorphism:hover {
    background: rgba(255, 255, 255, 0.15); /* Slightly brighter on hover */
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}


/* --- Header Styles --- */
header {
    background-color: var(--bg-dark);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-dark);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    animation-delay: 0s !important; /* Header appears instantly */
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo img {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

header .logo h1 {
    font-size: 1.8rem;
    color: var(--text-light);
    font-weight: 700;
    text-shadow: 0 0 5px var(--primary-color);
}

/* زر البرجر - إخفاء افتراضياً على الديسكتوب وإظهار على الجوال */
.hamburger-menu {
    display: none; /* Hidden on desktop by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    /* لجعل الخطوط فوق بعضها في المنتصف */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 4px 0; /* مسافة بين الخطوط */
    transition: all 0.3s ease; /* للانتقال السلس في التحويل */
}

/* تحويل زر البرجر إلى X */
.hamburger-menu.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); } /* تعديل طفيف للمسافة */
.hamburger-menu.is-active .bar:nth-child(2) { opacity: 0; } /* إخفاء الخط الأوسط */
.hamburger-menu.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); } /* تعديل طفيف للمسافة */


/* Desktop Navigation */
.desktop-nav {
    display: flex;
    flex-grow: 1; /* Allow nav to take available space */
    justify-content: center; /* Center nav items */
    gap: 30px;
}

.nav-group {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-btn:hover::before {
    transform: translateX(0);
}

.nav-btn:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}


/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: var(--card-bg-light);
    border: 1px solid var(--card-border);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover, .lang-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.6);
}


/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Off-screen by default */
    width: 70%;
    max-width: 300px;
    height: 100%;
    background-color: var(--bg-dark);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: right 0.4s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
}

.mobile-nav.is-active {
    right: 0;
}

.mobile-nav .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-nav .close-menu:hover {
    background-color: var(--primary-color);
    color: white;
}

.mobile-nav .language-switcher {
    margin-bottom: 30px;
}

.mobile-nav ul {
    list-style: none;
    width: 100%;
    text-align: center;
}

.mobile-nav li {
    margin-bottom: 20px;
    opacity: 0; /* For staggered animation */
    transform: translateX(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.mobile-nav.is-active li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.2rem;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: var(--primary-color);
}


/* --- Main Content Sections --- */
main {
    max-width: 1200px;
    margin: 60px auto; /* Adjust for fixed header */
    padding: 20px;
}

.hero-section {
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 80px;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.hero-section p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
    text-shadow: 0 0 8px rgba(155, 89, 182, 0.5);
    font-weight: 700;
}

.packages-section {
    margin-bottom: 100px;
}

.package-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-content: center;
    align-items: stretch; /* Ensure cards stretch to same height */
}

.package-card {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Fill the grid cell */
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card::before { /* Subtle background gradient */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(155, 89, 182, 0.1), rgba(108, 92, 231, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.package-card:hover::before {
    opacity: 1;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.package-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(155, 89, 182, 0.3);
}

.package-card .price {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(11, 232, 129, 0.4);
}

/* --- إصلاح نقاط الباقات --- */
.package-card .features {
    list-style: none;
    margin-bottom: 30px;
    padding-right: 0;
    padding-left: 0;
    text-align: left; /* الافتراضي لـ LTR */
}

.package-card .features li {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-light);
    line-height: 1.4;
    position: relative;
    padding-left: 20px; /* مسافة للنقطة على اليسار */
    padding-right: 0;
    text-align: left; /* تأكيد محاذاة النص لليسار في LTR */
}

.package-card .features li::before {
    content: '•'; /* نقطة مخصصة */
    color: var(--accent-color);
    font-size: 1.2rem;
    position: absolute;
    left: 0; /* ضع النقطة على اليسار */
    top: 0;
}
/* --- نهاية إصلاح نقاط الباقات --- */


.action-btn {
    background: var(--gradient-purple);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--primary-color);
}

.info-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 100px;
    margin-bottom: 80px;
}

.info-card {
    padding: 30px;
    text-align: center;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(155, 89, 182, 0.3);
}

.info-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}


/* --- Footer Styles --- */
footer {
    background-color: var(--bg-dark);
    padding: 60px 40px 20px;
    color: var(--text-light);
    text-align: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.4);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Updated footer-content to better integrate Discord icon */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px;
    text-align: left; /* Default for LTR */
    /* Additions for better flexible alignment */
    align-items: flex-start; /* Aligns content to the top of each grid cell */
}

.footer-section {
    padding: 10px;
}

.footer-logo-section {
    grid-column: span 1; /* Take one column on desktop */
    text-align: center;
}
.footer-logo-section img {
    width: 120px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--primary-color));
}
.footer-logo-section .tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(155, 89, 182, 0.3);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-start; /* Default for LTR */
}

.social-icons a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.8) drop-shadow(0 0 5px var(--primary-color));
}

.social-icons a img:hover {
    transform: translateY(-5px) scale(1.1);
    filter: brightness(1) drop-shadow(0 0 10px var(--accent-color));
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* --- Discord Icon Styles - MODIFIED FOR FONT AWESOME --- */
.discord-social {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the icon and text horizontally */
    justify-content: flex-start;
    text-align: center;
}

.discord-social h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px; /* Space between heading and icon */
    font-weight: 600;
    text-shadow: 0 0 5px rgba(155, 89, 182, 0.3);
}

.discord-social a .fab.fa-discord { /* Targeting the Font Awesome icon */
    font-size: 70px; /* Adjust icon size */
    color: #5865F2; /* Discord brand color for the icon itself */
    background-color: transparent; /* No background color needed for Font Awesome icon */
    border-radius: 15px;
    padding: 0; /* No padding needed around the icon itself */
    transition: transform 0.4s ease-in-out, text-shadow 0.4s ease-in-out;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Shadow for the icon */
    display: inline-block; /* Make sure transform works correctly */
}

.discord-social a:hover .fab.fa-discord {
    transform: perspective(1000px) rotateY(10deg) rotateX(5deg) scale(1.08);
    text-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 20px #5865F2; /* More pronounced shadow and glow on hover */
}

.discord-social a:active .fab.fa-discord {
    transform: perspective(1000px) rotateY(-5deg) rotateX(-2deg) scale(1.05);
    transition: transform 0.1s ease-out;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}
/* --- End Discord Icon Styles --- */


/* --- Media Queries for Responsiveness --- */
@media (max-width: 1024px) {
    header {
        padding: 15px 20px;
    }
    .desktop-nav {
        gap: 15px;
    }
    .nav-group {
        gap: 10px;
    }
    .nav-btn {
        font-size: 1rem;
        padding: 6px 12px;
    }
    .hero-section h1 {
        font-size: 3rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }
    .package-cards, .info-sections {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    .package-card, .info-card {
        padding: 25px;
    }
    .package-card h3, .info-card h3 {
        font-size: 1.6rem;
    }
    .package-card .price {
        font-size: 1.3rem;
    }
    footer {
        padding: 50px 20px 15px;
    }
    .footer-content {
        gap: 30px;
    }
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    .footer-logo-section img {
        width: 100px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Smaller space for mobile fixed header */
    }
    header {
        height: 70px;
        border-radius: 0;
        justify-content: space-between;
    }
    header .logo h1 {
        font-size: 1.5rem;
    }
    header .logo img {
        width: 40px;
    }
    /* إخفاء قائمة سطح المكتب ومبدل اللغة الخاص بها على الجوال */
    .desktop-nav, .desktop-lang-switcher {
        display: none;
    }
    /* إظهار زر البرجر على الشاشات الصغيرة */
    .hamburger-menu {
        display: flex;
    }
    .hero-section {
        padding: 60px 15px;
        margin-bottom: 60px;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .package-cards, .info-sections {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 25px;
    }
    .package-card, .info-card {
        padding: 20px;
    }
    .package-card h3, .info-card h3 {
        font-size: 1.4rem;
    }
    .package-card .price {
        font-size: 1.2rem;
    }
    .package-card .features li {
        font-size: 0.95rem;
    }
    .action-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    footer {
        padding: 40px 15px 10px;
        border-radius: 0;
    }
    .footer-content {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 25px;
        text-align: center; /* Center footer sections on mobile */
    }
    .footer-logo-section {
        text-align: center;
        grid-column: auto;
    }
    .footer-section h3 {
        text-align: center;
        margin-bottom: 15px;
    }
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
    }
    .social-icons {
        justify-content: center; /* Center social icons on mobile */
    }
    .footer-bottom {
        font-size: 0.8rem;
    }

    /* Discord social section responsiveness for mobile */
    .discord-social {
        margin-top: 20px; /* Ensure some space above the Discord section when stacked */
    }
}

/* RTL adjustments for Arabic */
body.arabic-active {
    direction: rtl;
    font-family: 'Cairo', 'Montserrat-Arabic', sans-serif;
}

/* Specific adjustments for RTL where needed */
.arabic-active .desktop-nav .nav-group.left-nav-group {
    /* order: 1; Uncomment if you want to swap order of nav groups */
}
.arabic-active .desktop-nav .nav-group.right-nav-group {
    /* order: 0; Uncomment if you want to swap order of nav groups */
}
/* زر البرجر يجب أن يكون على اليسار في وضع RTL */
.arabic-active .hamburger-menu {
    margin-right: auto; /* يدفع الشعار إلى اليمين ويضع البرجر على اليسار */
    margin-left: 0;
}
.arabic-active header .logo {
    margin-right: 0; /* إزالة أي هامش أيمن قد يدفع الشعار بعيداً */
    margin-left: auto; /* يدفع الشعار إلى أقصى اليمين في وضع RTL */
}


.arabic-active .mobile-nav {
    left: -100%; /* يجب أن تظهر من اليسار على RTL */
    right: auto;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.4); /* تعديل الظل ليتناسب مع الظهور من اليسار */
}
.arabic-active .mobile-nav.is-active {
    left: 0;
    right: auto;
}
.arabic-active .close-menu {
    left: 20px; /* نقل زر الإغلاق "X" إلى اليسار في وضع RTL */
    right: auto;
}

/* --- FIX for RTL Feature List Bullets --- */
.arabic-active .package-card .features {
    text-align: right; /* Ensure text is right-aligned */
    padding-right: 0; /* No padding on the right of the UL itself */
    padding-left: 0;
}
.arabic-active .package-card .features li {
    padding-right: 20px; /* Space for the bullet on the right */
    padding-left: 0; /* Remove left padding */
    text-align: right; /* Ensure list item text is right-aligned */
}
.arabic-active .package-card .features li::before {
    left: auto; /* Remove left positioning */
    right: 0; /* Position bullet to the right */
    top: 0; /* Align bullet to the top of the line */
}
/* --- END FIX for RTL Feature List Bullets --- */

.arabic-active .footer-content {
    text-align: right; /* Align footer content to the right */
}
.arabic-active .footer-links,
.arabic-active .footer-contact,
.arabic-active .footer-social, /* Added for Discord section */
.arabic-active .footer-logo-section {
    text-align: right;
}
.arabic-active .social-icons {
    justify-content: flex-end; /* Align social icons to the right */
}

/* RTL adjustment for Discord icon alignment in footer */
.arabic-active .discord-social {
    text-align: center; /* Keep centered for visual appeal regardless of LTR/RTL for icon itself */
    align-items: center; /* Center horizontally for the column */
}

@media (max-width: 768px) {
    .arabic-active .footer-links,
    .arabic-active .footer-contact,
    .arabic-active .footer-social, /* Added for Discord section */
    .arabic-active .footer-logo-section {
        text-align: center; /* Center align on mobile for all */
    }
    .arabic-active .social-icons {
        justify-content: center; /* Center social icons on mobile */
    }
    /* في وضع الجوال RTL، زر البرجر يكون على أقصى اليمين (لأن الـ header مرن) */
    .arabic-active .hamburger-menu {
        margin-right: 0;
        margin-left: auto; /* يدفع شعار GS-TAG إلى اليمين */
    }
    .arabic-active header .logo {
        margin-right: auto; /* يدفع شعار GS-TAG إلى أقصى اليسار */
        margin-left: 0;
    }
}