:root {
    --primary-color: #0a192f;
    --secondary-color: #112240;
    --gold-color: #c5a059;
    --gold-hover: #d4af37;
    --text-light: #e6f1ff;
    --text-gray: #8892b0;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

[dir="rtl"] body { font-family: 'Cairo', sans-serif; }
[dir="ltr"] body { font-family: 'Montserrat', sans-serif; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--primary-color); color: var(--white); }
.text-gold { color: var(--gold-color); }

/* Section Headers */
.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold-color);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    animation: pulse-green 2s infinite;
}

[dir="ltr"] .whatsapp-float { right: auto; left: 30px; }

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    background-color: #128c7e;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #333;
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
}

[dir="ltr"] .whatsapp-tooltip { right: auto; left: 75px; }

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-gold {
    background-color: var(--gold-color);
    color: var(--primary-color);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.btn-outline {
    border: 2px solid var(--gold-color);
    color: var(--gold-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--gold-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(15px);
}

.navbar.scrolled {
    padding: 15px 0;
    background: var(--primary-color);
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gold-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.8rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.main-name { font-weight: 800; font-size: 1.4rem; letter-spacing: 1px; }
.sub-name { font-size: 0.75rem; color: var(--gold-color); font-weight: 600; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a.nav-item {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-links a.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: var(--transition);
}

[dir="rtl"] .nav-links a.nav-item::after { left: auto; right: 0; }

.nav-links a.nav-item:hover::after, 
.nav-links a.nav-item.active::after {
    width: 100%;
}

.nav-links a.nav-item:hover, 
.nav-links a.nav-item.active {
    color: var(--gold-color);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-color);
    min-width: 160px;
    list-style: none;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

[dir="rtl"] .dropdown-menu { left: auto; right: 0; }

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

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-color);
    padding-left: 25px;
}

[dir="rtl"] .dropdown-menu li a:hover { padding-left: 20px; padding-right: 25px; }

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-item.active { opacity: 1; }

.hero-content { color: var(--white); max-width: 850px; }
.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid var(--gold-color);
    border-radius: 50px;
    color: var(--gold-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 45px;
    max-width: 650px;
}

.hero-btns { display: flex; gap: 25px; }

/* Levels Ticker */
.levels-ticker {
    background: var(--primary-color);
    padding: 20px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    overflow: hidden;
}

.ticker-wrapper { display: flex; overflow: hidden; }
.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-content span {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0 40px;
    display: flex;
    align-items: center;
}

.ticker-content .dot {
    width: 8px;
    height: 8px;
    background: var(--gold-color);
    border-radius: 50%;
    margin: 0 10px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

[dir="rtl"] @keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* Pearson Section */
.pearson { background: #fff; }
.pearson-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.pearson-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.pearson-badge img { height: 35px; }
.pearson-badge span { font-weight: 800; color: var(--gold-color); letter-spacing: 1px; }

.pearson-desc { font-size: 1.15rem; color: #555; margin-bottom: 45px; }

.pearson-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.p-feat-card {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.p-feat-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-color);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.15);
}

.p-icon {
    width: 60px;
    height: 60px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.p-text h4 { font-size: 1.2rem; margin-bottom: 8px; color: var(--primary-color); }
.p-text p { font-size: 0.9rem; color: #666; line-height: 1.5; }

.pearson-visual { position: relative; }
.main-visual-card {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
}

.main-visual-card img { width: 100%; display: block; transition: var(--transition); }
.main-visual-card:hover img { transform: scale(1.05); }

/* About Section */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { position: relative; }
.img-main { width: 100%; border-radius: 30px; box-shadow: var(--shadow); }
.img-overlay-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--gold-color);
    padding: 30px;
    border-radius: 20px;
    color: var(--primary-color);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

[dir="ltr"] .img-overlay-card { right: auto; left: -30px; }

.img-overlay-card h3 { font-size: 2.5rem; font-weight: 900; line-height: 1; }
.img-overlay-card p { font-weight: 700; font-size: 0.9rem; }

.features-list { list-style: none; margin-top: 30px; }
.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.features-list i { color: var(--gold-color); font-size: 1.3rem; }

/* Why Us Section */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.why-card {
    background: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.why-card:hover {
    background: var(--gold-color);
    transform: translateY(-15px);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2.5rem;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.why-card:hover .icon-box { background: var(--white); color: var(--gold-color); }
.why-card h3 { font-size: 1.4rem; margin-bottom: 15px; transition: var(--transition); }
.why-card p { color: var(--text-gray); font-size: 0.95rem; transition: var(--transition); }
.why-card:hover h3, .why-card:hover p { color: var(--primary-color); }

/* News Section */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.news-item {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.news-item:hover {
    transform: translateY(-15px);
    border-color: var(--gold-color);
    box-shadow: 0 25px 50px rgba(197, 160, 89, 0.15);
}

.news-item-img { height: 250px; position: relative; overflow: hidden; }
.news-item-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.news-item:hover .news-item-img img { transform: scale(1.1); }

.news-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold-color);
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    z-index: 2;
}

[dir="ltr"] .news-category { right: auto; left: 20px; }

.news-item-content { padding: 35px; }
.news-date { color: var(--gold-color); font-weight: 700; font-size: 0.85rem; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.news-item-content h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--primary-color); font-weight: 800; }
.news-item-content p { color: #666; margin-bottom: 25px; font-size: 0.95rem; }
.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.news-link:hover { color: var(--gold-color); gap: 15px; }

/* Gallery Section */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 25px; }
.gallery-item { position: relative; border-radius: 25px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i { color: var(--gold-color); font-size: 2.5rem; transform: scale(0.5); transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay i { transform: scale(1); }

/* Contact Section */
.contact-info .info-item { display: flex; gap: 20px; margin-bottom: 35px; }
.contact-info .icon {
    width: 60px;
    height: 60px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info h4 { font-size: 1.2rem; margin-bottom: 5px; }
.contact-info p { color: #666; font-size: 1rem; }

.contact-form-wrapper { background: var(--white); padding: 50px; border-radius: 30px; box-shadow: var(--shadow); border: 1px solid #eee; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus { border-color: var(--gold-color); background: #fff; box-shadow: 0 0 15px rgba(197, 160, 89, 0.1); }

/* Footer */
.footer { background: var(--primary-color); color: var(--white); position: relative; padding-top: 120px; padding-bottom: 40px; overflow: hidden; }
.footer-waves { position: absolute; top: 0; left: 0; width: 100%; line-height: 0; }
.footer-waves svg { display: block; width: 100%; height: 60px; }
.footer-waves .shape-fill { fill: #fff; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr; gap: 60px; margin-bottom: 80px; }
.footer-about-text { color: var(--text-gray); margin-bottom: 30px; }
.footer-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 30px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--gold-color); }
[dir="rtl"] .footer-title::after { left: auto; right: 0; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: var(--text-gray); text-decoration: none; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold-color); padding-left: 10px; }
[dir="rtl"] .footer-col ul li a:hover { padding-left: 0; padding-right: 10px; }

.footer-contact-info p { display: flex; gap: 15px; color: var(--text-gray); margin-bottom: 20px; }
.footer-contact-info i { color: var(--gold-color); }

.footer-newsletter { display: flex; gap: 10px; margin-top: 25px; }
.footer-newsletter input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 15px; border-radius: 10px; color: var(--white); outline: none; }
.footer-newsletter button { background: var(--gold-color); color: var(--primary-color); border: none; width: 55px; border-radius: 10px; cursor: pointer; transition: var(--transition); font-size: 1.2rem; }
.footer-newsletter button:hover { background: var(--gold-hover); transform: scale(1.05); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-gray); font-size: 0.95rem; }
.developer a { color: var(--gold-color); text-decoration: none; font-weight: 800; }

.social-links { display: flex; gap: 15px; }
.social-links a { width: 45px; height: 45px; background: rgba(255,255,255,0.05); color: var(--white); display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); text-decoration: none; }
.social-links a:hover { background: var(--gold-color); color: var(--primary-color); transform: translateY(-8px); }

/* Responsive */
@media (max-width: 1200px) {
    .hero h1 { font-size: 3.5rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .navbar { padding: 15px 0; }
    .nav-links, .btn-dashboard { display: none; }
    .menu-toggle { display: flex; }
    .grid-2, .pearson-wrapper { grid-template-columns: 1fr; gap: 50px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    .grid-4, .news-grid, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .contact-form-wrapper { padding: 30px; }
}
