*,
body {
    margin: 0;
    padding: 0
}

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

.logo-text,
.logo-title {
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    letter-spacing: .5px
}

.hamburger.active span:first-child,
.hamburger.active span:nth-child(3) {
    background: linear-gradient(135deg, rgba(245, 183, 26, .9) 0, rgba(199, 33, 39, .8) 100%)
}

.btn,
.hero-content,
.section-header,
.section-subtitle,
.section-title,
.stats-header {
    text-align: center
}

.about-card,
.btn,
.home-section,
.navbar,
.stat-item,
.stats-section {
    overflow: hidden
}

.footer-section ul,
.nav-menu,
.program-card ul li {
    list-style: none
}

.logo-text,
.logo-title {
    font-size: 1.8rem;
    transition: .3s
}

.news-content h3,
.news-content p {
    overflow-wrap: break-word;
    white-space: normal;
    word-wrap: break-word
}

.logo-image {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.btn,
.nav-link,
.nav-logo,
.news-link {
    text-decoration: none
}

.lang-btn,
.logo-text,
.logo-title {
    letter-spacing: .5px
}

[dir=ltr] .grid,
body {
    direction: ltr
}

.btn,
.event-image,
.gallery-btn,
.hamburger,
.indicator,
.lang-btn,
.modern-btn,
.nav-cta-btn,
.news-tab,
.submit-btn,
.thumbnail {
    cursor: pointer
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: Cairo, sans-serif;
    line-height: 1.6;
    color: #333;
    text-align: left;
    width: 100%;
    overflow-x: hidden
}

:root {
    --primary-color: #F5B71A;
    --secondary-color: #C72127;
    --accent-color: #18305A;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e9ecef;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #FFD700);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #FF4757);
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #2C5282)
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0, #1a2332 50%, var(--accent-color) 100%);
    backdrop-filter: blur(25px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .1);
    border-bottom: 1px solid rgba(245, 183, 26, .2);
    z-index: 1000;
    transition: .4s cubic-bezier(.4, 0, .2, 1)
}

.btn,
.form-group,
.gallery-events-container,
.hero-content,
.hero-features,
.hero-title,
.home-section,
.nav-container,
.nav-item,
.nav-link,
.nav-logo,
.section-title,
.stats-header,
.stats-section,
[dir=ltr] ul li,
[dir=rtl] ul li {
    position: relative
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 183, 26, .03);
    pointer-events: none
}

@keyframes shimmer {
    0% {
        left: -100%
    }

    100% {
        left: 100%
    }
}

.navbar.scrolled {
    background: linear-gradient(135deg, var(--accent-color) 0, #1a2332 50%, var(--accent-color) 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .08);
    border-bottom: 2px solid rgba(245, 183, 26, .3);
    transform: translateY(0)
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    gap: 20px;
    min-height: 90px
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto
}

.nav-menu,
.nav-right {
    align-items: center;
    display: flex
}

.nav-logo .logo-image {
    width: 70px;
    height: 70px;
    object-fit: contain
}

.logo-subtitle {
    font-size: .75rem;
    color: rgba(255, 255, 255, .8);
    font-weight: 500;
    opacity: .85;
    transition: .3s
}

.hero-badge i,
.nav-icon {
    font-size: 1rem
}

.nav-logo:hover .logo-subtitle {
    opacity: 1;
    color: var(--primary-color)
}

.nav-right {
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
    height: 100%
}

.nav-menu {
    gap: 12px;
    flex-wrap: nowrap;
    padding: 12px 20px
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 600;
    padding: 12px 20px;
    transition: .3s cubic-bezier(.4, 0, .2, 1);
    white-space: nowrap
}

.card-1 i,
.contact-card:hover .contact-card-title,
.nav-link.active,
.nav-link:hover,
.teacher-card:hover .teacher-title {
    color: var(--primary-color)
}

.nav-icon {
    transition: .3s
}

.hamburger,
.hamburger span {
    transition: .3s cubic-bezier(.4, 0, .2, 1)
}

.about-card:hover .card-icon i,
.contact-card:hover .contact-card-icon i,
.event-image:hover img,
.feature-card:hover .feature-icon i,
.feature-card:hover i,
.features-section .feature-card:hover .feature-icon i,
.map-placeholder:hover i,
.nav-link.active .nav-icon,
.nav-link:hover .nav-icon,
.news-card:hover .news-date .day,
.program-card:hover .program-icon i,
.stat-item:hover .stat-icon,
.teacher-card:hover .teacher-avatar i {
    transform: scale(1.1)
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .8) 0, rgba(248, 249, 250, .7) 100%);
    border: 1px solid rgba(245, 183, 26, .3);
    backdrop-filter: blur(15px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08)
}

.home-section,
.section {
    display: flex;
    align-items: center
}

.btn,
.hero-badge {
    backdrop-filter: blur(10px)
}

.hamburger:hover {
    background: linear-gradient(135deg, rgba(245, 183, 26, .2) 0, rgba(199, 33, 39, .1) 50%, rgba(24, 48, 90, .2) 100%);
    border-color: rgba(245, 183, 26, .5);
    transform: translateY(-1px) scale(1.08);
    box-shadow: 0 5px 15px rgba(245, 183, 26, .25)
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: linear-gradient(135deg, rgba(24, 48, 90, .8) 0, rgba(245, 183, 26, .9) 100%);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1)
}

.feature-card i,
.stat-icon {
    background: linear-gradient(135deg, var(--primary-color), #e6a617)
}

.btn i,
.feature-card i {
    transition: transform .3s
}

.hamburger.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px)
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0)
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px)
}

.section {
    padding: 60px 0;
    min-height: auto
}

.section-header {
    margin-bottom: 60px
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px
}

.home-section::before,
.stats-section::before {
    right: 0;
    top: 0;
    content: '';
    position: absolute;
    bottom: 0;
    pointer-events: none
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto
}

.home-section {
    background: linear-gradient(135deg, #e9ecef 0, #f8f9fa 50%, #dee2e6 100%);
    padding: 120px 0 80px;
    min-height: 100vh;
    justify-content: center
}

.home-section::before {
    left: 0;
    background: linear-gradient(45deg, rgba(245, 183, 26, .05), rgba(199, 33, 39, .05));
    animation: 20s ease-in-out infinite float
}

.hero-content {
    margin-bottom: 60px;
    animation: .8s ease-out fadeInUp
}

.hero-text {
    max-width: 800px;
    margin: 0 auto
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 183, 26, .15);
    border: 1px solid rgba(245, 183, 26, .3);
    padding: 8px 20px;
    border-radius: 25px;
    color: var(--primary-color);
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 25px;
    animation: .8s ease-out .2s both fadeInDown
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2
}

.title-highlight {
    display: block;
    font-size: 1rem;
    font-weight: 300;
    color: #c72127 !important;
    margin-bottom: 8px;
    text-shadow: 0 1px 5px rgba(199, 33, 39, .2);
    opacity: 0;
    animation: 1s ease-out .5s forwards fadeInUp
}

.title-main {
    display: block;
    color: #18305a !important;
    font-weight: 700;
    font-size: 2.5rem;
    opacity: 0;
    animation: 1s ease-out 1.5s forwards fadeInUp
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: .4s cubic-bezier(.4, 0, .2, 1);
    border: 2px solid transparent;
    min-width: 180px
}

.btn-secondary,
.feature-card,
.stats-section {
    backdrop-filter: blur(15px)
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    transition: left .6s
}

.btn:hover::before {
    left: 100%
}

.btn i {
    font-size: 1.1rem
}

.btn:hover i {
    transform: translateX(3px)
}

.btn-primary {
    background: linear-gradient(135deg, #18305a 0, #0f1f3d 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(24, 48, 90, .4)
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f1f3d 0, #18305a 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(24, 48, 90, .5)
}

.btn-secondary {
    background: linear-gradient(135deg, #c72127 0, #a01c21 100%);
    color: #fff;
    border: 2px solid rgba(199, 33, 39, .3);
    box-shadow: 0 8px 25px rgba(199, 33, 39, .4)
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #a01c21 0, #c72127 100%);
    border-color: rgba(199, 33, 39, .6);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(199, 33, 39, .5)
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
    animation: .8s ease-out .4s both fadeInUp
}

.feature-card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1)
}

.feature-card::before {
    content: '';
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0)
}

.feature-card:hover::before,
.features-section .feature-card:hover::before,
.stat-item:hover::before {
    transform: scaleX(1)
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .15);
    background: linear-gradient(145deg, #fff, rgba(248, 249, 250, .95));
    border-color: rgba(245, 183, 26, .3)
}

.feature-card i {
    font-size: 3rem;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: block
}

.feature-card h3,
.feature-card:hover p,
.features-section .feature-card:hover p,
.news-card:hover .news-content p,
.program-card:hover>p,
.teacher-card:hover .teacher-subject {
    color: var(--text-dark)
}

.contact-card-text,
.feature-card p {
    color: var(--text-light)
}

.stats-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, .9) 0, rgba(248, 249, 250, .8) 100%);
    padding: 60px 40px;
    margin: 0 auto;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, .1);
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1)
}

.stats-section::before {
    left: 0;
    background: linear-gradient(45deg, rgba(245, 183, 26, .05) 0, rgba(199, 33, 39, .03) 100%)
}

.stats-header {
    margin-bottom: 4rem;
    z-index: 2;
    padding: 2rem 0
}

.stats-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0, #764ba2 100%);
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, .4)
}

.stats-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, .1) 0, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: 3s ease-in-out infinite pulse
}

.about-section::before,
.stat-item::before {
    top: 0;
    left: 0;
    right: 0;
    position: absolute;
    content: ''
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .5
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: .8
    }
}

.stats-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    letter-spacing: -.02em;
    line-height: 1.2
}

.stats-grid,
.stats-header p {
    margin: 0 auto;
    z-index: 2;
    position: relative
}

.stats-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    padding: 0 20px;
    width: 100%;
    justify-items: center
}

.news-content,
.news-content h3,
.news-content p {
    word-break: break-word;
    max-width: 100%
}

.stat-item {
    color: var(--text-dark);
    padding: 30px 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .8) 0, rgba(248, 249, 250, .9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, .1);
    transition: .3s;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08)
}

.stat-icon,
.stat-number {
    transition: transform .3s;
    -webkit-text-fill-color: transparent
}

.about-card,
.program-card {
    backdrop-filter: blur(15px);
    padding: 45px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .1);
    text-align: center
}

.stat-item::before {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px 16px 0 0;
    transform: scaleX(0);
    transition: transform .4s
}

.stat-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255, 255, 255, .95) 0, #f8f9fa 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
    border-color: var(--primary-color)
}

.stat-icon {
    font-size: 2.5rem;
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 20px;
    display: block
}

.stat-number {
    background: linear-gradient(135deg, var(--primary-color), #e6a617);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 12px
}

.stat-item:hover .stat-number {
    transform: scale(1.05)
}

.stat-label {
    color: rgba(255, 255, 255, .9);
    transition: color .3s
}

.stat-item:hover .stat-label {
    color: #fff
}

.about-section,
.news-section,
.programs-section,
.teachers-section,
.why-choose-section {
    background: linear-gradient(135deg, #f8f9fa 0, #fff 50%, #f1f3f4 100%);
    position: relative;
    overflow: hidden
}

.about-section::before {
    bottom: 0;
    background: rgba(24, 48, 90, .03);
    pointer-events: none
}

.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    position: relative;
    z-index: 2
}

.about-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(248, 249, 250, .95));
    transition: .4s cubic-bezier(.175, .885, .32, 1.275);
    border: 2px solid transparent;
    position: relative;
    margin-top: 40px;
    animation: .6s forwards fadeInUp;
    opacity: 0
}

.about-card::before,
.feature-card::before,
.news-card::before,
.program-card::before,
.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity .3s;
    z-index: -1
}

.about-card:hover,
.feature-card:hover,
.news-card:hover,
.program-card:hover,
.teacher-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .15);
    border-color: var(--primary-color)
}

.about-card:hover::before,
.feature-card:hover::before,
.news-card:hover::before,
.program-card:hover::before,
.teacher-card:hover::before {
    opacity: .05
}

.about-card:first-child,
.contact-card:first-child,
.feature-card:first-child,
.news-card:first-child,
.program-card:first-child,
.teacher-card:first-child {
    animation-delay: .1s
}

.about-card:nth-child(2),
.contact-card:nth-child(2),
.feature-card:nth-child(2),
.news-card:nth-child(2),
.program-card:nth-child(2),
.teacher-card:nth-child(2) {
    animation-delay: .2s
}

.about-card:nth-child(3),
.contact-card:nth-child(3),
.feature-card:nth-child(3),
.news-card:nth-child(3),
.program-card:nth-child(3),
.teacher-card:nth-child(3) {
    animation-delay: .3s
}

.card-icon,
.program-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    transition: .4s
}

.feature-card,
.program-card,
.teacher-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(248, 249, 250, .9));
    transition: .4s cubic-bezier(.175, .885, .32, 1.275);
    overflow: hidden;
    animation: .6s forwards fadeInUp;
    opacity: 0
}

.about-card:first-child .card-icon,
.feature-card:nth-child(4) .feature-icon,
.program-card:nth-child(4) .program-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 10px 30px rgba(102, 126, 234, .3)
}

.about-card:nth-child(2) .card-icon,
.program-card:nth-child(5) .program-icon {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    box-shadow: 0 10px 30px rgba(17, 153, 142, .3)
}

.about-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    box-shadow: 0 10px 30px rgba(255, 107, 107, .3)
}

.about-card:hover .card-icon,
.feature-card:hover .feature-icon,
.features-section .feature-card:hover .feature-icon,
.teacher-card:hover .teacher-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .2)
}

.card-icon::before,
.program-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0;
    transition: opacity .4s;
    z-index: -1
}

.about-card:hover .card-icon::before,
.program-card:hover .program-icon::before {
    opacity: .3
}

.card-icon i {
    font-size: 2.8rem;
    color: var(--white);
    transition: .4s
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    transition: .3s
}

.about-card:hover h3,
.feature-card:hover h3,
.features-section .feature-card:hover h3,
.news-card:hover .news-content h3,
.program-card:hover h3,
.teacher-card:hover h3 {
    color: var(--primary-color);
    transform: translateY(-2px)
}

.about-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
    transition: .3s
}

.programs-section::before {
    content: '';
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23F5B71A" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%23C72127" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%2318305A" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
    position: relative;
    z-index: 2
}

.news-grid,
.teachers-grid {
    gap: 30px;
    z-index: 2;
    position: relative
}

.program-card {
    border: 2px solid transparent;
    position: relative;
    margin-top: 40px
}

.contact-card:nth-child(4),
.feature-card:nth-child(4),
.news-card:nth-child(4),
.program-card:nth-child(4),
.teacher-card:nth-child(4) {
    animation-delay: .4s
}

.program-card:nth-child(5),
.teacher-card:nth-child(5) {
    animation-delay: .5s
}

.feature-card:first-child .feature-icon,
.features-section .feature-card:first-child .feature-icon,
.program-card:first-child .program-icon {
    background: var(--gradient-primary);
    box-shadow: 0 10px 30px rgba(245, 183, 26, .3)
}

.feature-card:nth-child(2) .feature-icon,
.features-section .feature-card:nth-child(2) .feature-icon,
.news-card:nth-child(2n) .news-date,
.program-card:nth-child(2) .program-icon,
.teacher-card:nth-child(2n) .teacher-avatar {
    background: var(--gradient-secondary);
    box-shadow: 0 10px 30px rgba(199, 33, 39, .3)
}

.feature-card:nth-child(3) .feature-icon,
.features-section .feature-card:nth-child(3) .feature-icon,
.program-card:nth-child(3) .program-icon {
    background: var(--gradient-accent);
    box-shadow: 0 10px 30px rgba(24, 48, 90, .3)
}

.program-card:hover .program-icon {
    box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
    transform: scale(1.1) rotate(5deg)
}

.program-icon i {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .3)
}

.program-card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-align: center;
    margin-top: 0;
    transition: .3s
}

.program-card>p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    margin-top: 0;
    transition: .3s
}

.program-card ul {
    list-style: none;
    text-align: right
}

.program-card li {
    padding: 8px 20px 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    position: relative
}

.program-card li:before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: 700
}

[dir=ltr],
[dir=ltr] .contact-form,
[dir=ltr] .contact-info,
[dir=ltr] .footer-content,
[dir=ltr] .footer-section ul,
[dir=ltr] .form-group input,
[dir=ltr] .form-group textarea,
[dir=ltr] .hero-card,
[dir=ltr] .hero-content,
[dir=ltr] .news-card,
[dir=ltr] .program-card,
[dir=ltr] .program-card ul,
[dir=ltr] .section-subtitle,
[dir=ltr] .teacher-card,
[dir=ltr] .working-hours,
[dir=ltr] h1,
[dir=ltr] h2,
[dir=ltr] h3,
[dir=ltr] h4,
[dir=ltr] h5,
[dir=ltr] h6,
[dir=ltr] p {
    text-align: left
}

[dir=rtl],
[dir=rtl] .contact-form,
[dir=rtl] .contact-info,
[dir=rtl] .footer-content,
[dir=rtl] .footer-section ul,
[dir=rtl] .form-group input,
[dir=rtl] .form-group textarea,
[dir=rtl] .hero-card,
[dir=rtl] .hero-content,
[dir=rtl] .news-card,
[dir=rtl] .program-card,
[dir=rtl] .program-card ul,
[dir=rtl] .section-subtitle,
[dir=rtl] .teacher-card,
[dir=rtl] .working-hours,
[dir=rtl] h1,
[dir=rtl] h2,
[dir=rtl] h3,
[dir=rtl] h4,
[dir=rtl] h5,
[dir=rtl] h6,
[dir=rtl] p {
    text-align: right
}

[dir=ltr] .program-card li {
    padding-left: 20px;
    padding-right: 8px
}

[dir=rtl] .program-card li {
    padding-right: 20px;
    padding-left: 8px
}

[dir=ltr] .program-card li:before {
    left: 0;
    right: auto
}

[dir=rtl] .program-card li:before {
    right: 0;
    left: auto
}

.program-card ul li::before {
    content: '✓' !important
}

[dir=ltr] .program-card ul li::before {
    content: '✓' !important;
    left: 0 !important;
    right: auto !important
}

[dir=rtl] .program-card ul li::before {
    content: '✓' !important;
    right: 0 !important;
    left: auto !important
}

.program-card li:last-child {
    border-bottom: none
}

.contact-section::before,
.news-section::before,
.teachers-section::before,
.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23F5B71A" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%23C72127" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%2318305A" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 50px
}

.feature-card,
.teacher-card {
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .1)
}

.teacher-card:nth-child(6) {
    animation-delay: .6s
}

.teacher-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: .4s;
    background: var(--gradient-primary);
    box-shadow: 0 10px 30px rgba(245, 183, 26, .3)
}

.program-icon i,
.teacher-avatar i {
    font-size: 2.5rem;
    color: var(--white);
    transition: .3s
}

.feature-card h3,
.news-content h3,
.teacher-card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 700
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, .3);
    transition: .3s
}

.teacher-card:hover .teacher-avatar img {
    border-color: rgba(255, 255, 255, .6)
}

.feature-card h3,
.teacher-card h3 {
    font-size: 1.6rem;
    transition: .3s
}

.teacher-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
    transition: .3s
}

.teacher-subject {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    transition: .3s
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 50px
}

.news-card,
.news-content {
    display: flex;
    overflow: hidden
}

.news-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(248, 249, 250, .9));
    border-radius: 25px;
    transition: .4s cubic-bezier(.175, .885, .32, 1.275);
    gap: 25px;
    padding: 30px;
    position: relative;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .1);
    animation: .6s forwards fadeInUp;
    opacity: 0
}

.map-placeholder,
.news-date {
    border-radius: 20px;
    text-align: center
}

.contact-card,
.contact-form-wrapper,
.map-wrapper {
    backdrop-filter: blur(20px)
}

.news-date {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 20px 15px;
    min-width: 90px;
    height: fit-content;
    transition: .4s;
    box-shadow: 0 10px 30px rgba(245, 183, 26, .3);
    position: relative;
    overflow: hidden
}

.news-card:hover .news-date {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .2)
}

.news-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    transition: .3s
}

.news-date .month {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    opacity: .9
}

.news-content {
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0
}

.news-content h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    transition: .3s
}

.news-content p,
.news-link {
    font-size: 1rem;
    transition: .3s
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis
}

.news-link {
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding: 8px 0
}

.news-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width .3s
}

.news-link:hover {
    color: var(--primary-color);
    transform: translateX(5px)
}

.news-link:hover::after {
    width: 100%
}

.contact-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0, #fff 50%, #f1f3f4 100%);
    position: relative;
    overflow: hidden
}

.contact-card-icon,
.contact-card-icon::before,
.contact-card::before {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color))
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    margin-bottom: 80px;
    position: relative;
    z-index: 2
}

.contact-info-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px
}

.contact-card {
    display: flex;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
    animation: .8s forwards fadeInUp;
    opacity: 0
}

.contact-card::before {
    content: '';
    right: 0;
    bottom: 0;
    opacity: 0
}

.contact-card:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, .15);
    border-color: var(--primary-color)
}

.contact-card:hover::before {
    opacity: .08;
    left: 0
}

.contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 15px 40px rgba(245, 183, 26, .3)
}

.contact-card-icon::before {
    content: '';
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    z-index: -1
}

.contact-form-wrapper::before,
.footer::before {
    bottom: 0;
    content: '';
    position: absolute;
    top: 0;
    right: 0
}

.contact-card:hover .contact-card-icon {
    box-shadow: 0 20px 50px rgba(245, 183, 26, .4)
}

.contact-card:hover .contact-card-icon::before {
    opacity: .4;
    opacity: 1
}

.contact-card-icon i {
    font-size: 1.8rem;
    color: var(--white);
    transition: transform .3s
}

.card-3 i,
.contact-card-title,
.contact-form-header h3 {
    color: var(--accent-color)
}

.contact-card-content {
    flex: 1
}

.contact-form-wrapper {
    background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(248, 249, 250, .9));
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .1);
    border: 2px solid rgba(245, 183, 26, .1);
    position: relative;
    overflow: hidden
}

.contact-form-header h3::after,
.contact-form-wrapper::before,
.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color))
}

.contact-form-wrapper::before {
    left: 0;
    opacity: 0;
    transition: opacity .3s;
    z-index: -1
}

.contact-form-wrapper:hover::before {
    opacity: .03
}

.contact-form-header {
    text-align: center;
    margin-bottom: 40px
}

.contact-form-header h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative
}

.contact-form-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px
}

.contact-form-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6
}

.form-group label,
.map-header h3 {
    color: var(--accent-color);
    display: flex
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px
}

.form-row.full-width {
    grid-template-columns: 1fr
}

.form-group label {
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.1rem
}

.form-group label i {
    color: var(--primary-color);
    font-size: 1.2rem
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(24, 48, 90, .1);
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: .3s;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(10px)
}

.footer-section ul li a::before,
.social-links a {
    background: linear-gradient(135deg, rgba(245, 183, 26, .15) 0, rgba(199, 33, 39, .15) 100%)
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 0;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(245, 183, 26, .15);
    background: rgba(255, 255, 255, .95);
    transform: translateY(-2px)
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit
}

.submit-btn {
    color: var(--white);
    padding: 18px 40px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: .3s;
    box-shadow: 0 10px 30px rgba(245, 183, 26, .3);
    position: relative;
    overflow: hidden
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transition: left .3s;
    z-index: -1
}

.footer-section ul li a:hover::before,
.footer-section:hover::before,
.submit-btn:hover::before {
    left: 0
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 183, 26, .4)
}

.map-container {
    margin-top: 60px;
    position: relative
}

.map-header {
    text-align: center;
    margin-bottom: 30px
}

.map-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    align-items: center;
    justify-content: center;
    gap: 15px
}

.map-header h3 i {
    color: var(--primary-color);
    font-size: 2rem
}

.map-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(245, 183, 26, .3);
    transition: .3s
}

.map-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 183, 26, .4)
}

[dir=rtl] .map-logo {
    margin-right: 0;
    margin-left: 10px
}

.map-wrapper {
    background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(248, 249, 250, .9));
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
    border: 2px solid rgba(245, 183, 26, .1);
    transition: .3s
}

.map-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, .12);
    border-color: rgba(245, 183, 26, .2)
}

.map-placeholder {
    background: linear-gradient(135deg, rgba(245, 183, 26, .05), rgba(199, 33, 39, .05));
    padding: 80px;
    border: 3px dashed rgba(245, 183, 26, .3);
    transition: .3s
}

.map-placeholder:hover {
    border-color: rgba(245, 183, 26, .5);
    background: linear-gradient(135deg, rgba(245, 183, 26, .08), rgba(199, 33, 39, .08))
}

.map-placeholder i {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: transform .3s
}

.map-placeholder p {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600
}

.map-placeholder small {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5
}

@media (max-width:1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px
    }

    .contact-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px
    }

    .contact-form-wrapper {
        padding: 40px
    }
}

@media (max-width:768px) {
    .contact-section {
        padding: 80px 0
    }

    .contact-content {
        gap: 40px;
        margin-bottom: 60px
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .contact-card {
        padding: 25px;
        flex-direction: column;
        text-align: center;
        gap: 15px
    }

    .contact-card-icon {
        width: 70px;
        height: 70px
    }

    .contact-card-icon i,
    .contact-form-header h3 {
        font-size: 1.6rem
    }

    .contact-form-wrapper,
    .map-wrapper {
        padding: 30px
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 25px
    }

    .map-placeholder {
        padding: 60px 30px
    }

    .map-placeholder i {
        font-size: 4rem
    }
}

@media (max-width:480px) {
    .contact-section {
        padding: 60px 0
    }

    .contact-card,
    .map-wrapper {
        padding: 20px
    }

    .contact-card-icon {
        width: 60px;
        height: 60px
    }

    .contact-card-icon i,
    .contact-form-header h3 {
        font-size: 1.4rem
    }

    .contact-card-title,
    .map-placeholder p {
        font-size: 1.1rem
    }

    .contact-form-wrapper {
        padding: 25px
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 15px
    }

    .submit-btn {
        padding: 15px 30px;
        font-size: 1rem
    }

    .map-header h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px
    }

    .map-placeholder {
        padding: 40px 20px
    }

    .map-placeholder i {
        font-size: 3rem
    }
}

.footer {
    background: linear-gradient(135deg, var(--accent-color) 0, #1a2332 50%, var(--accent-color) 100%);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden
}

.footer::before {
    left: 0;
    background: rgba(0, 0, 0, .02);
    pointer-events: none
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1
}

.footer-logo,
.footer-section h3 {
    margin-bottom: 25px;
    display: flex
}

.footer-section {
    background: rgba(255, 255, 255, .05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(245, 183, 26, .15);
    backdrop-filter: blur(15px);
    transition: .4s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden
}

.footer-section h3::after,
.footer-section-icon {
    background: linear-gradient(135deg, var(--primary-color) 0, var(--secondary-color) 100%)
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 183, 26, .08) 0, rgba(199, 33, 39, .08) 100%);
    transition: left .4s;
    z-index: -1
}

.footer-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(245, 183, 26, .2);
    border-color: rgba(245, 183, 26, .3)
}

.footer-section h3 {
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    position: relative
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    transition: width .3s
}

.footer-section:hover h3::after {
    width: 60px
}

.footer-section-icon {
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 10px;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(245, 183, 26, .3);
    transition: .3s
}

.footer-section:hover .footer-section-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(245, 183, 26, .4)
}

.footer-logo {
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, .08);
    border-radius: 15px;
    border: 1px solid rgba(245, 183, 26, .2);
    transition: .3s
}

.footer-logo-title,
.social-links a::before {
    background: linear-gradient(135deg, var(--primary-color) 0, var(--secondary-color) 100%)
}

.footer-logo:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(245, 183, 26, .4);
    transform: scale(1.02)
}

.footer-logo .logo-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(245, 183, 26, .3));
    transition: .3s
}

.contact-card-icon::before,
.contact-card::before,
.footer-section ul li a::before,
.social-links a::before {
    width: 100%;
    height: 100%;
    position: absolute;
    content: ''
}

.footer-logo:hover .logo-image {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 20px rgba(245, 183, 26, .4))
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.footer-section ul li a,
.social-links a {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-decoration: none
}

.footer-logo-title {
    font-size: 1.3rem;
    font-weight: 700;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.footer-logo-subtitle {
    font-size: .8rem;
    color: rgba(255, 255, 255, .7);
    font-weight: 500
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .8);
    transition: color .3s
}

.footer-section:hover p {
    color: rgba(255, 255, 255, .95)
}

.footer-section ul li {
    margin-bottom: 12px;
    transition: .3s
}

.footer-section ul li:hover {
    transform: translateX(8px)
}

.footer-section ul li a {
    gap: 10px;
    color: rgba(255, 255, 255, .8);
    padding: 8px 12px;
    border-radius: 10px;
    transition: .3s
}

.footer-section ul li a::before {
    top: 0;
    left: -100%;
    transition: left .3s;
    z-index: -1
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    background: rgba(245, 183, 26, .1);
    border: 1px solid rgba(245, 183, 26, .2);
    transform: translateX(5px)
}

.footer-link-icon {
    font-size: .9rem;
    color: var(--primary-color);
    transition: .3s
}

.footer-section ul li a:hover .footer-link-icon,
.social-links a:hover i {
    transform: scale(1.2) rotate(15deg)
}

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

.social-links a {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(245, 183, 26, .3);
    border-radius: 15px;
    justify-content: center;
    color: var(--white);
    transition: .4s cubic-bezier(.4, 0, .2, 1)
}

.contact-info p,
.working-hours p {
    background: rgba(255, 255, 255, .05)
}

.contact-card,
.contact-info p {
    align-items: center;
    display: flex
}

.social-links a::before {
    top: 0;
    left: 0;
    transform: scale(0);
    transition: transform .3s;
    z-index: -1
}

.social-links a:hover::before {
    transform: scale(1)
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(245, 183, 26, .4);
    border-color: var(--primary-color)
}

.contact-info p:hover,
.working-hours p:hover {
    transform: translateX(5px)
}

.social-links a i {
    font-size: 24px;
    transition: .3s
}

.social-links a.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 10px 30px rgba(24, 119, 242, .4)
}

.social-links a.twitter:hover {
    background: #000;
    border-color: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4)
}

.social-links a.instagram:hover {
    background: linear-gradient(45deg, #f09433 0, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
    box-shadow: 0 10px 30px rgba(225, 48, 108, .4)
}

.social-links a.youtube:hover {
    background: red;
    border-color: red;
    box-shadow: 0 10px 30px rgba(255, 0, 0, .4)
}

.social-links a.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 10px 30px rgba(37, 211, 102, .4)
}

.social-tooltip {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1000;
    pointer-events: none
}

.contact-card,
.contact-info p:hover,
.working-hours p:hover {
    background: rgba(255, 255, 255, .08)
}

.social-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, .9)
}

.social-links a:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 65px
}

.contact-info p {
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, .8);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(245, 183, 26, .1);
    transition: .3s
}

.contact-info p:hover {
    border-color: rgba(245, 183, 26, .2)
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
    font-size: 1.1rem;
    transition: .3s
}

.contact-info p:hover i {
    transform: scale(1.2) rotate(10deg)
}

.working-hours p {
    margin-bottom: 8px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: .3s
}

.working-hours span {
    color: var(--primary-color);
    font-weight: 500
}

.contact-info-horizontal {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap
}

.contact-card {
    gap: 20px;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(245, 183, 26, .15);
    transition: .4s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    flex: 1;
    min-width: 280px
}

.contact-card-icon,
.footer-bottom {
    border-radius: 15px;
    position: relative
}

.contact-card::before {
    top: 0;
    left: -100%;
    background: linear-gradient(135deg, rgba(245, 183, 26, .1) 0, rgba(199, 33, 39, .1) 100%);
    transition: left .4s;
    z-index: -1
}

.contact-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(245, 183, 26, .25);
    border-color: rgba(245, 183, 26, .3);
    background: rgba(255, 255, 255, .12)
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(245, 183, 26, .3);
    transition: .4s;
    overflow: hidden;
    flex-shrink: 0
}

.contact-card-icon::before {
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .2) 0, transparent 100%);
    opacity: 0;
    transition: opacity .3s
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 35px rgba(245, 183, 26, .4)
}

.contact-card-content {
    flex: 1;
    min-width: 0
}

.contact-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px;
    transition: .3s
}

.contact-card-text,
.footer-bottom p {
    margin: 0;
    font-size: .95rem;
    transition: .3s
}

#2563eb .contact-card:hover .contact-card-title {
    color: var(--white);
    transform: translateX(5px)
}

.contact-card-text {
    color: var(--accent-color);
    line-height: 1.5;
    word-wrap: break-word;
    font-weight: 500
}

.contact-card:hover .contact-card-text {
    color: var(--text-dark);
    color: #1d4ed8;
    transform: translateX(5px)
}

.footer-bottom {
    border-top: 1px solid rgba(245, 183, 26, .2);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .03);
    margin-top: 20px;
    z-index: 1
}

.lang-btn.active,
.lang-btn:hover {
    border-color: var(--primary-color)
}

.footer-bottom p {
    padding: 15px
}

[dir=ltr] .footer-section ul li,
[dir=rtl] .footer-section ul li {
    padding-right: 0;
    padding-left: 0
}

.footer-bottom:hover p {
    color: rgba(255, 255, 255, .9);
    transform: scale(1.02)
}

.lang-btn,
[dir=ltr] ol li::before,
[dir=ltr] ul li::before,
[dir=rtl] ol li::before,
[dir=rtl] ul li::before {
    color: var(--primary-color)
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(50px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0)
    }

    25% {
        transform: translateY(-10px) rotate(1deg)
    }

    50% {
        transform: translateY(-5px) rotate(-1deg)
    }

    75% {
        transform: translateY(-15px) rotate(.5deg)
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) scale(.8);
        opacity: .7
    }

    25%,
    75% {
        transform: translateY(5px) scale(.9);
        opacity: .8
    }

    50% {
        transform: translateY(10px) scale(1);
        opacity: 1
    }
}

.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, .15);
    padding: 6px;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(245, 183, 26, .3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
    height: fit-content
}

.lang-btn {
    padding: 10px 18px;
    background: 0 0;
    border: 1px solid rgba(245, 183, 26, .4);
    border-radius: 25px;
    transition: .3s;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center
}

.lang-btn:hover {
    background: rgba(245, 183, 26, .2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 183, 26, .2)
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(245, 183, 26, .4);
    transform: translateY(-1px)
}

.lang-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, .2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .6s
}

.lang-btn.active:hover::before {
    transform: translateX(100%)
}

.language-switcher {
    flex-shrink: 0;
    z-index: 10
}

.nav-right {
    flex-shrink: 0
}

[dir=ltr] .nav-logo {
    margin-right: 0;
    margin-left: auto
}

[dir=rtl] .nav-logo {
    margin-left: 0;
    margin-right: auto
}

[dir=ltr] .nav-logo .logo-image {
    margin-right: 15px;
    margin-left: 0
}

[dir=rtl] .nav-logo .logo-image {
    margin-left: 15px;
    margin-right: 0
}

[dir=ltr] .nav-right {
    justify-content: flex-start
}

[dir=rtl] .nav-right {
    justify-content: flex-end
}

[dir=ltr] .flex-container,
[dir=ltr] .hero-container,
[dir=ltr] .nav-menu {
    flex-direction: row
}

[dir=rtl] .flex-container,
[dir=rtl] .hero-container,
[dir=rtl] .nav-menu {
    flex-direction: row-reverse
}

[dir=ltr] .btn,
[dir=ltr] .contact-info i,
[dir=ltr] .icon-left,
[dir=rtl] .icon-right {
    margin-right: 10px;
    margin-left: 0
}

[dir=ltr] .icon-right,
[dir=rtl] .btn,
[dir=rtl] .contact-info i,
[dir=rtl] .icon-left {
    margin-left: 10px;
    margin-right: 0
}

[dir=ltr] ol,
[dir=ltr] ul {
    padding-left: 20px;
    padding-right: 0;
    text-align: left
}

[dir=rtl] ol,
[dir=rtl] ul {
    padding-right: 20px;
    padding-left: 0;
    text-align: right
}

[dir=ltr] ol,
[dir=rtl] ol {
    counter-reset: item
}

[dir=ltr] ol li,
[dir=rtl] ol li {
    counter-increment: item;
    position: relative
}

[dir=ltr] ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: -20px;
    font-weight: 700
}

[dir=rtl] ol li::before {
    content: counter(item) ".";
    position: absolute;
    right: -20px;
    font-weight: 700
}

[dir=ltr] ul li::before {
    content: "•";
    position: absolute;
    left: -15px;
    font-weight: 700
}

[dir=rtl] ul li::before {
    content: "•";
    position: absolute;
    right: -15px;
    font-weight: 700
}

[dir=ltr] .section-title::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%)
}

[dir=rtl] .section-title::after {
    right: 50%;
    left: auto;
    transform: translateX(50%)
}

[dir=ltr] .language-switcher {
    margin-left: 20px;
    margin-right: 0
}

[dir=rtl] .language-switcher {
    margin-right: 20px;
    margin-left: 0
}

[dir=rtl] .grid {
    direction: rtl
}

[dir=ltr] .hero-title,
[dir=ltr] .section-header,
[dir=ltr] .section-title,
[dir=ltr] .text-center,
[dir=rtl] .hero-title,
[dir=rtl] .section-header,
[dir=rtl] .section-title,
[dir=rtl] .text-center {
    text-align: center !important
}

body[data-lang=ar] {
    font-family: Amiri, Cairo, serif
}

body[data-lang=en],
body[data-lang=fr] {
    font-family: Inter, Roboto, sans-serif
}

@media (min-width:1400px) {
    .container {
        max-width: 1320px
    }

    .hero-title {
        font-size: 4rem
    }

    .section-title {
        font-size: 3.5rem
    }
}

@media (max-width:1200px) {
    .container {
        max-width: 960px
    }

    .teachers-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .programs-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px
    }
}

@media (max-width:992px) {

    .about-content,
    .footer-content,
    .stats-grid,
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .container {
        max-width: 720px
    }

    .hero-title {
        font-size: 3rem
    }

    .about-content {
        gap: 20px
    }

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

@media (max-width:768px) {
    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px
    }

    .contact-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem
    }

    .contact-card-title,
    .stat-label {
        font-size: 1rem
    }

    .contact-card-text {
        font-size: .9rem
    }

    .hamburger span,
    .nav-link,
    .nav-menu {
        transition: .4s cubic-bezier(.4, 0, .2, 1)
    }

    .footer-content,
    .hero-container,
    .nav-link,
    .nav-menu li,
    .news-card {
        text-align: center
    }

    .about-content,
    .contact-content,
    .footer-content,
    .hero-container {
        grid-template-columns: 1fr
    }

    .container {
        padding: 0 20px;
        max-width: 100%
    }

    .navbar {
        padding: 15px 0
    }

    .nav-right {
        gap: 15px
    }

    .language-switcher {
        gap: 6px;
        padding: 5px;
        background: rgba(255, 255, 255, .2);
        border-radius: 25px
    }

    [dir=rtl] .language-switcher {
        order: -1
    }

    .lang-btn {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 42px;
        border-width: 1px;
        height: 36px;
        border-radius: 20px
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        overflow-y: auto
    }

    .nav-menu.active {
        right: 0
    }

    .nav-menu li {
        margin: 20px 0;
        width: 85%
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 18px 25px;
        display: block;
        border-radius: 15px;
        white-space: nowrap;
        background: rgba(245, 183, 26, .05);
        border: 1px solid rgba(245, 183, 26, .1);
        font-weight: 500;
        letter-spacing: .3px
    }

    .nav-link:hover {
        color: rgba(245, 183, 26, .9)
    }

    .hamburger {
        display: flex;
        margin-left: auto;
        padding: 12px;
        border-radius: 15px;
        background: rgba(245, 183, 26, .1);
        border: 2px solid rgba(245, 183, 26, .2);
        transition: .3s
    }

    .hamburger:hover {
        background: rgba(245, 183, 26, .2);
        transform: scale(1.05);
        border-color: rgba(245, 183, 26, .4)
    }

    .hamburger span {
        width: 28px;
        height: 3px;
        background: var(--primary-color);
        border-radius: 2px
    }

    [dir=rtl] .hamburger {
        margin-right: auto;
        margin-left: 0
    }

    .hamburger.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px)
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px)
    }

    .home-section {
        min-height: auto;
        padding: 40px 0 30px
    }

    .hero-container {
        gap: 40px;
        padding: 0 15px
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 20px
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 35px
    }

    .hero-buttons,
    .stats-grid {
        justify-content: center;
        gap: 15px
    }

    .btn {
        padding: 15px 30px;
        font-size: 1rem
    }

    .hero-card {
        padding: 25px 20px
    }

    .hero-card i {
        font-size: 3rem
    }

    .stats-section {
        padding: 60px 0;
        margin-top: 40px;
        border-radius: 20px 20px 0 0
    }

    .program-icon i,
    .section-title {
        font-size: 2.2rem
    }

    .contact-content {
        gap: 40px
    }

    .contact-form {
        order: 2
    }

    .contact-info {
        order: 1
    }

    .stat-item {
        padding: 20px 15px
    }

    .stat-number {
        font-size: 2.5rem
    }

    .about-card,
    .program-card {
        padding: 30px;
        margin-top: 30px
    }

    .news-grid,
    .programs-grid,
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .program-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px
    }

    .news-card {
        flex-direction: column
    }

    .about-content {
        gap: 20px
    }

    .section {
        padding: 40px 0
    }
}

@media (max-width:576px) {
    .container {
        padding: 0 15px
    }

    .navbar {
        padding: 12px 0
    }

    .nav-logo {
        font-size: 1.1rem
    }

    .language-switcher {
        margin-left: 5px;
        gap: 3px
    }

    [dir=rtl] .language-switcher {
        margin-right: 5px;
        margin-left: 0
    }

    .lang-btn {
        padding: 3px 6px;
        font-size: 9px;
        min-width: 25px
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 15px
    }

    .section-subtitle {
        font-size: 1rem
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center
    }

    .btn {
        width: 100%;
        max-width: 250px;
        padding: 12px 20px;
        font-size: .9rem
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .stat-item {
        padding: 25px 15px
    }

    .stat-number {
        font-size: 2rem
    }

    .section {
        padding: 30px 0
    }

    .about-card,
    .news-card,
    .program-card,
    .teacher-card {
        padding: 20px
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 20px
    }

    .form-group {
        margin-bottom: 20px
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 14px
    }

    .footer {
        padding: 40px 0 20px
    }

    .footer-content {
        gap: 25px
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px
    }
}

@media (max-width:400px) {
    .hero-title {
        font-size: 1.8rem
    }

    .section-title {
        font-size: 1.6rem
    }

    .btn {
        padding: 10px 16px;
        font-size: .85rem
    }

    .hamburger {
        padding: 8px
    }

    .hamburger span {
        width: 20px;
        height: 2px
    }

    .nav-logo {
        font-size: 1rem
    }

    .lang-btn {
        padding: 2px 4px;
        font-size: 8px;
        min-width: 20px
    }
}

@media (max-width:480px) {
    .contact-info-horizontal {
        gap: 15px
    }

    .contact-card {
        padding: 15px;
        gap: 12px
    }

    .contact-card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem
    }

    .home-section {
        padding: 30px 0 20px
    }

    .hero-container {
        gap: 30px;
        padding: 0 10px
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px
    }

    .btn {
        width: 100%;
        max-width: 200px;
        padding: 12px 20px;
        font-size: .9rem
    }

    .hero-image {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .hero-card {
        padding: 18px 15px
    }

    .hero-card i,
    .stat-number {
        font-size: 2rem
    }

    .hero-card h3 {
        font-size: 1.1rem
    }

    .hero-card p,
    .stat-label {
        font-size: .85rem
    }

    .stats-section {
        padding: 40px 0;
        margin-top: 25px
    }

    .stats-grid {
        flex-direction: column;
        gap: 15px
    }

    .stat-item {
        padding: 18px 10px
    }

    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .teacher-card {
        max-width: 300px;
        margin: 0 auto
    }
}

@media (max-width:1024px) {
    .home-section {
        padding: 40px 0 30px
    }

    .hero-container {
        gap: 40px;
        padding: 0 20px;
        max-width: 1000px
    }

    .hero-title {
        font-size: 3rem
    }

    .hero-subtitle {
        font-size: 1.1rem
    }

    .hero-features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px
    }

    .feature-card {
        padding: 25px 20px
    }

    .stats-section {
        max-width: 1000px;
        width: calc(100% - 40px);
        margin: 40px auto 0;
        padding: 60px 0
    }

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

@media (max-width:768px) {
    .home-section {
        padding: 35px 0 25px
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        max-width: 100%;
        padding: 0 15px
    }

    .stats-section {
        max-width: 100%;
        width: calc(100% - 30px);
        margin: 30px auto 0
    }

    .hero-badge {
        font-size: .8rem;
        padding: 8px 16px
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2
    }

    .title-highlight {
        font-size: 2.8rem
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: .95rem
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px
    }

    .feature-card {
        padding: 25px 20px
    }

    .feature-card i,
    .stat-number {
        font-size: 2.5rem
    }

    .stats-section {
        padding: 50px 0;
        margin-top: 30px;
        border-radius: 20px 20px 0 0
    }

    .stats-header h3 {
        font-size: 2.2rem
    }

    .stats-header p {
        font-size: 1.1rem;
        max-width: 500px
    }

    .stats-header::after {
        width: 150px;
        height: 150px
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px
    }

    .stat-item {
        padding: 25px 15px
    }

    .stat-icon {
        font-size: 2rem
    }
}

@media (max-width:480px) {
    .navbar {
        padding: 12px 0
    }

    .nav-logo {
        gap: 10px;
        padding: 8px 15px
    }

    .nav-logo .logo-image {
        width: 65px;
        height: 65px
    }

    .logo-title {
        font-size: 1.5rem
    }

    .logo-subtitle {
        font-size: .7rem
    }

    .nav-menu {
        top: 75px;
        height: calc(100vh - 75px);
        padding-top: 30px
    }

    .nav-menu li {
        margin: 15px 0;
        width: 90%
    }

    .nav-link {
        font-size: 1rem;
        padding: 15px 20px
    }

    .hamburger {
        padding: 10px
    }

    .hamburger span {
        width: 25px;
        height: 2.5px
    }

    .home-section {
        padding: 25px 0 20px
    }

    .hero-container {
        padding: 0 15px;
        max-width: 100%
    }

    .stats-section {
        max-width: 100%;
        width: calc(100% - 30px);
        margin: 25px auto 0
    }

    .hero-badge {
        font-size: .75rem;
        padding: 6px 12px
    }

    .hero-title {
        font-size: 2rem
    }

    .feature-card i,
    .stat-number,
    .title-highlight {
        font-size: 2.2rem
    }

    .hero-subtitle {
        font-size: .9rem;
        margin-bottom: 25px
    }

    .btn {
        padding: 12px 20px;
        font-size: .9rem;
        min-width: 160px
    }

    .feature-card,
    .stat-item {
        padding: 20px 15px
    }

    .feature-card h3 {
        font-size: 1.1rem
    }

    .feature-card p {
        font-size: .85rem
    }

    .stat-icon,
    .stats-header h3 {
        font-size: 1.8rem
    }

    .stats-section {
        padding: 40px 0;
        margin-top: 25px
    }

    .stats-header {
        padding: 1.5rem 0;
        margin-bottom: 2rem
    }

    .stats-header::before {
        width: 60px;
        height: 3px
    }

    .stats-header::after {
        width: 120px;
        height: 120px
    }

    .stats-header h3 {
        margin-bottom: 1rem
    }

    .stats-header p {
        font-size: 1rem;
        max-width: 400px;
        line-height: 1.6
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px
    }

    .stat-label {
        font-size: 1rem
    }
}

@media print {

    .btn,
    .hamburger,
    .language-switcher,
    .navbar {
        display: none !important
    }

    .home-section {
        padding-top: 10px
    }

    .section {
        padding: 15px 0;
        page-break-inside: avoid
    }

    body {
        font-size: 12pt;
        line-height: 1.4
    }

    .hero-title {
        font-size: 24pt
    }

    .section-title {
        font-size: 20pt
    }
}

.section {
    opacity: 0;
    transform: translateY(30px);
    transition: .6s
}

.section.visible {
    opacity: 1;
    transform: translateY(0)
}

.gallery-content,
.modern-home-section .container,
.why-choose-content {
    position: relative;
    z-index: 2
}

.why-choose-description {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto
}

.why-choose-description p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-dark);
    background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(248, 249, 250, .8));
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
    border: 1px solid rgba(245, 183, 26, .2);
    position: relative;
    backdrop-filter: blur(10px)
}

.why-choose-description p::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: .3;
    font-family: serif
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: .4s
}

.feature-card p,
.features-section .feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
    transition: .3s
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.features-section {
    background: linear-gradient(135deg, #f8f9fa 0, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .01);
    pointer-events: none
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 2
}

.features-section .feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(248, 249, 250, .9));
    backdrop-filter: blur(15px);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
    text-align: center;
    transition: .4s cubic-bezier(.4, 0, .2, 1);
    border: 1px solid rgba(255, 255, 255, .8);
    position: relative;
    overflow: hidden;
    transform: translateY(0)
}

.features-section .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform .4s
}

.features-section .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
    border-color: rgba(245, 183, 26, .3)
}

.features-section .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: .4s
}

.features-section .feature-icon i {
    font-size: 2.2rem;
    color: var(--white);
    transition: .3s;
    z-index: 2
}

.features-section .feature-card h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    transition: .3s
}

.modern-navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, .95) 0, rgba(248, 249, 250, .9) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 183, 26, .15);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .08)
}

.modern-navbar .nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    height: 80px
}

.modern-navbar .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px
}

.modern-navbar .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.modern-navbar .nav-center {
    display: flex;
    justify-content: center
}

.modern-navbar .nav-menu {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, .7);
    padding: 8px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 183, 26, .2)
}

.modern-navbar .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    transition: .3s;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none
}

.modern-navbar .nav-link.active,
.modern-navbar .nav-link:hover {
    background: linear-gradient(135deg, var(--primary-color), gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 183, 26, .3)
}

.modern-navbar .nav-link i {
    font-size: .8rem
}

.nav-cta-btn {
    background: linear-gradient(135deg, var(--secondary-color), #ff4757);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: .3s;
    font-size: .9rem
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 33, 39, .3)
}

.modern-home-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0, #e9ecef 100%);
    overflow: hidden;
    padding: 120px 0 80px
}

.hero-background,
.hero-bg-img,
.hero-shapes,
.shape {
    position: absolute
}

.shape-1,
.title-line-2 {
    background: linear-gradient(135deg, var(--primary-color), gold)
}

.hero-background {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: -1
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 1
}

.hero-shapes {
    width: 100%;
    height: 100%;
    z-index: 2
}

.shape {
    border-radius: 50%;
    opacity: .1;
    animation: 6s ease-in-out infinite float
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), #ff4757);
    bottom: 20%;
    left: 5%;
    animation-delay: 2s
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--accent-color), #2c5282);
    top: 50%;
    left: 50%;
    animation-delay: 4s
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0)
    }

    50% {
        transform: translateY(-20px) rotate(180deg)
    }
}

.modern-home-section .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 3
}

.hero-left {
    animation: 1s ease-out slideInLeft
}

.hero-right {
    animation: 1s ease-out slideInRight
}

@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)
    }
}

.modern-home-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 183, 26, .1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(245, 183, 26, .2)
}

.modern-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark)
}

.title-line-1 {
    display: block;
    color: var(--accent-color)
}

.card-2 i,
.title-accent {
    color: var(--secondary-color)
}

.title-line-2 {
    display: block;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.title-accent {
    display: block;
    font-size: 2.5rem
}

.modern-hero-subtitle {
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 40px
}

.stat-number,
.visual-card i {
    font-size: 2.5rem;
    display: block
}

.stat-item {
    text-align: center
}

.stat-number {
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1
}

.stat-label {
    font-size: .9rem;
    color: var(--text-light);
    font-weight: 500
}

.modern-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
    border: none;
    font-size: 1rem
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), gold);
    color: #fff
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 183, 26, .4)
}

.secondary-btn {
    background: #fff;
    color: var(--text-dark);
    border: 2px solid var(--border-color)
}

.secondary-btn:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(24, 48, 90, .2)
}

.hero-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative
}

.visual-card {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    transition: .3s;
    border: 1px solid rgba(245, 183, 26, .1)
}

.visual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12)
}

.card-4:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(40, 167, 69, .2);
    border-color: #28a745
}

.visual-card i {
    margin-bottom: 16px
}

.card-4 i {
    color: #28a745
}

.visual-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark)
}

.visual-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: .95rem
}

.card-1 {
    animation: 3s ease-in-out infinite cardFloat
}

.card-2 {
    animation: 3s ease-in-out 1s infinite cardFloat
}

.card-3 {
    animation: 3s ease-in-out 2s infinite cardFloat
}

.card-4 {
    animation: 3s ease-in-out 3s infinite cardFloat
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

@media (max-width:1024px) {
    .modern-home-section .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center
    }

    .modern-hero-title {
        font-size: 3rem
    }

    .hero-stats {
        justify-content: center
    }
}

.modern-gallery-section {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0, #e2e8f0 50%, #f1f5f9 100%);
    overflow: hidden
}

.gallery-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.gallery-shapes {
    position: relative;
    width: 100%;
    height: 100%
}

.gallery-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: .08;
    animation: 8s ease-in-out infinite float
}

.gallery-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
    animation-delay: 0s
}

.gallery-shape.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 10%;
    animation-delay: 3s
}

.gallery-shape.shape-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation-delay: 6s
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, .05) 0, transparent 50%), radial-gradient(circle at 80% 70%, rgba(245, 183, 26, .05) 0, transparent 50%)
}

.gallery-showcase {
    display: grid;
    gap: 3rem
}

.main-gallery-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start
}

.gallery-viewer {
    position: relative;
    background: #fff;
    border-radius: 25px;
    padding: 1.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .1);
    border: 1px solid rgba(255, 255, 255, .8);
    backdrop-filter: blur(20px)
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem
}

.gallery-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: .6s;
    border-radius: 20px
}

.event-image:hover .event-image-overlay,
.gallery-main-image.active,
.thumbnail:hover .thumbnail-overlay {
    opacity: 1
}

.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none
}

.gallery-btn,
.gallery-stats .stat-item {
    align-items: center;
    display: flex;
    transition: .3s
}

.gallery-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .9);
    border: none;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
    pointer-events: all
}

.gallery-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .2)
}

.gallery-btn i,
.news-tab i {
    font-size: 1.2rem
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: .8rem;
    margin-top: 1rem
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .3);
    transition: .3s
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.3)
}

.indicator:hover {
    background: var(--secondary-color);
    transform: scale(1.2)
}

.gallery-description,
.gallery-stats .stat-item {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08)
}

.gallery-info {
    display: flex;
    flex-direction: column;
    gap: 2rem
}

.gallery-stats {
    display: grid;
    gap: 1.5rem
}

.gallery-stats .stat-item {
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .8)
}

.gallery-stats .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12)
}

.gallery-stats .stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.gallery-stats .stat-icon i {
    font-size: 1.3rem;
    color: #fff
}

.gallery-stats .stat-data {
    display: flex;
    flex-direction: column
}

.gallery-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1
}

.gallery-stats .stat-label {
    font-size: .9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px
}

.gallery-description {
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .8)
}

.gallery-description h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem
}

.gallery-description p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem
}

.gallery-features {
    display: grid;
    gap: 1rem
}

.feature-item {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem 1rem;
    background: rgba(59, 130, 246, .05);
    border: 1px solid rgba(59, 130, 246, .1);
    border-radius: 15px;
    transition: .3s
}

.feature-item:hover {
    background: rgba(59, 130, 246, .1);
    transform: translateX(5px)
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1rem
}

.feature-item span {
    color: var(--text-dark);
    font-weight: 500
}

.gallery-thumbnails {
    margin-top: 2rem
}

.thumbnail-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap
}

.thumbnail {
    position: relative;
    width: 120px;
    height: 80px;
    border-radius: 15px;
    overflow: hidden;
    transition: .3s;
    border: 3px solid transparent
}

.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.1)
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--secondary-color)
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .3s
}

.thumbnail-overlay i {
    color: #fff;
    font-size: 1.2rem
}

.news-gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap
}

.news-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(30, 30, 60, .8), rgba(20, 20, 40, .9));
    border: 1px solid rgba(99, 102, 241, .3);
    border-radius: 50px;
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    font-weight: 600;
    transition: .3s;
    backdrop-filter: blur(10px)
}

.news-tab:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, .3), rgba(139, 92, 246, .3));
    border-color: rgba(99, 102, 241, .5);
    color: #fff;
    transform: translateY(-3px)
}

.event-link:hover,
.news-tab.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, .5), rgba(139, 92, 246, .5))
}

.news-tab.active {
    border-color: rgba(139, 92, 246, .8);
    color: #fff;
    box-shadow: 0 10px 30px rgba(99, 102, 241, .3)
}

.gallery-event {
    display: none;
    animation: .5s fadeIn
}

.gallery-event.active {
    display: block
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(30, 30, 60, .6), rgba(20, 20, 40, .7));
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, .2);
    flex-wrap: wrap;
    gap: 15px
}

.event-title {
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px
}

.event-title i {
    color: #8b5cf6;
    font-size: 1.3rem
}

.event-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .3), rgba(139, 92, 246, .3));
    border: 1px solid rgba(99, 102, 241, .4);
    border-radius: 25px;
    color: #a5b4fc;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    transition: .3s
}

.event-link:hover {
    color: #fff;
    transform: translateX(5px)
}

.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px
}

.event-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: .3s
}

.event-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, .3)
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s
}

.event-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s
}

.event-image-overlay i {
    font-size: 2.5rem;
    color: #fff
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.lightbox-close-btn,
.lightbox-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .1);
    cursor: pointer;
    transition: .3s;
    position: absolute;
    color: #fff
}

.gallery-lightbox.active {
    display: flex
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    object-fit: contain
}

.lightbox-close-btn {
    top: 30px;
    right: 30px;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center
}

.lightbox-close-btn:hover,
.lightbox-nav-btn:hover {
    background: var(--primary-color);
    color: var(--text-dark)
}

.lightbox-nav-btn {
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center
}

.lightbox-prev {
    left: 20px
}

.lightbox-next {
    right: 20px
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .6);
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600
}

@media (max-width:768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .feature-card,
    .features-section .feature-card {
        padding: 30px 20px
    }

    .why-choose-description p {
        font-size: 1.1rem;
        padding: 25px
    }

    .feature-icon,
    .features-section .feature-icon {
        width: 70px;
        height: 70px
    }

    .feature-icon i,
    .features-section .feature-icon i,
    .stat-number {
        font-size: 2rem
    }

    .features-section {
        padding: 60px 0
    }

    .modern-navbar .nav-center,
    .modern-navbar .nav-menu.active {
        position: fixed;
        top: 90px;
        width: 100%;
        height: calc(100vh - 90px);
        background: linear-gradient(135deg, rgba(24, 48, 90, .98) 0, rgba(10, 20, 40, .98) 100%);
        backdrop-filter: blur(20px);
        display: flex;
        padding-top: 40px;
        z-index: 999
    }

    .modern-navbar .nav-container {
        grid-template-columns: auto auto;
        gap: 20px
    }

    .modern-navbar .nav-center {
        left: -100%;
        justify-content: center;
        align-items: flex-start;
        transition: .4s cubic-bezier(.4, 0, .2, 1)
    }

    .modern-navbar .nav-center.active {
        left: 0
    }

    .modern-navbar .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 90%;
        padding: 20px;
        background: 0 0;
        border: none
    }

    .modern-navbar .nav-menu.active {
        left: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto
    }

    .modern-navbar .nav-menu.active .nav-link {
        color: #fff;
        font-size: 1.2rem;
        padding: 18px 40px;
        width: 80%;
        text-align: center;
        background: rgba(255, 255, 255, .05);
        border: 1px solid rgba(245, 183, 26, .2);
        border-radius: 15px;
        margin: 5px 0
    }

    .modern-navbar .nav-menu.active .nav-link.active,
    .modern-navbar .nav-menu.active .nav-link:hover {
        background: linear-gradient(135deg, var(--primary-color), gold);
        border-color: var(--primary-color)
    }

    .modern-home-section {
        padding: 100px 0 60px
    }

    .modern-hero-title {
        font-size: 2.5rem
    }

    .hero-stats {
        gap: 20px
    }

    .modern-hero-buttons,
    .news-tab {
        justify-content: center
    }

    .shape-1,
    .shape-2,
    .shape-3 {
        opacity: .05
    }

    .main-gallery-container {
        grid-template-columns: 1fr;
        gap: 2rem
    }

    .gallery-image-container {
        height: 300px
    }

    .gallery-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem
    }

    .gallery-stats .stat-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: .5rem
    }

    .gallery-stats .stat-icon {
        width: 40px;
        height: 40px
    }

    .gallery-stats .stat-number {
        font-size: 1.5rem
    }

    .thumbnail {
        width: 80px;
        height: 60px
    }

    .gallery-description {
        padding: 1.5rem
    }

    .gallery-features {
        grid-template-columns: 1fr
    }

    .lightbox-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem
    }

    .lightbox-prev {
        left: 10px
    }

    .lightbox-next {
        right: 10px
    }

    .lightbox-counter {
        bottom: 15px;
        padding: 8px 18px;
        font-size: .9rem
    }

    .news-gallery-tabs {
        flex-direction: column;
        align-items: stretch
    }

    .event-header {
        flex-direction: column;
        text-align: center
    }

    .event-title {
        font-size: 1.2rem
    }

    .event-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }

    .lightbox-close-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px
    }
}

@media (max-width:480px) {
    .modern-hero-title {
        font-size: 2rem
    }

    .title-accent {
        font-size: 1.8rem
    }

    .modern-hero-subtitle {
        font-size: 1rem
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px
    }

    .modern-hero-buttons {
        flex-direction: column;
        align-items: center
    }

    .modern-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center
    }

    .event-gallery-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width:992px) {

    #nav-menu,
    #nav-menu li {
        list-style: none !important
    }

    #nav-menu,
    #nav-menu .nav-link,
    .hamburger {
        display: flex !important
    }

    .nav-center,
    .nav-container,
    .nav-right,
    .navbar,
    .navbar.modern-navbar {
        overflow: visible !important
    }

    .hamburger {
        z-index: 10001 !important;
        position: relative !important
    }

    #nav-menu {
        visibility: hidden !important;
        opacity: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: linear-gradient(135deg, #18305a 0, #0f1d36 100%) !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
        z-index: 10000 !important;
        padding: 0 !important;
        margin: 0 !important;
        transition: opacity .3s, visibility .3s !important
    }

    #nav-menu.active {
        visibility: visible !important;
        opacity: 1 !important
    }

    #nav-menu li {
        opacity: 1 !important;
        transform: none !important
    }

    #nav-menu .nav-link {
        font-size: 1.4rem !important;
        padding: 18px 40px !important;
        color: #fff !important;
        align-items: center !important;
        gap: 12px !important
    }

    #nav-menu .nav-link.active,
    #nav-menu .nav-link:hover {
        color: #f5b71a !important
    }

    #nav-menu .nav-link i {
        font-size: 1.2rem !important
    }
}