html,

:root {
    --academy-green: #006837;
    --footer-dark: #0d462b;
    --gold-border: #c5a059;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(to bottom,
            #e9e9df 0%,

            #dba33d 40%,

            #1a6444 70%)
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('photos/bg.png') repeat;
    pointer-events: none;
    z-index: -1;
}

@font-face {
    font-family: 'TitleFont';
    src: url('fonts/title font.ttf') format('truetype');
}

@font-face {
    font-family: 'TextFont';
    src: url('fonts/texte font.otf') format('opentype');
}

.text-dark_8 {
    font-family: "TitleFont";
    width: 80%;
    font-size: 3rem;
    margin: 0 auto;
    line-height: 1.8;
    color: black;
}

.text-dark {
    font-family: "TitleFont";
    font-size: 1.6rem;
    width: 100%;
    text-align: right;
    line-height: 1.9;
    direction: rtl;
}

.main {
    min-height: 105vh;
    background: url('photo/back.png');

    width: 100%;
    padding-top: 140px;


}

/* Navbar container */
.custom-navbar {
    background-color: #e9e9df;
    padding: 12px 30px;
}

/* Left section */
.nav-left i {
    font-size: 20px;
    cursor: pointer;

}

.nav-btn {
    background: #deded6;
    border: none;
    padding: 20px 20px;
    border-radius: 999px;
    font-size: 17px;
    cursor: pointer;
    transition: 0.3s;
}

.nav-btn:hover {
    background: #cfcfc6;
}

/* Center menu */
.nav-center {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    background: #d8d8cf;
    border-radius: 999px;
}

.nav-center li a {
    display: block;
    padding: 20px 20px;
    text-decoration: none;
    color: #000;
    font-size: 17px;
    border-radius: 999px;
    transition: 0.3s;
}

/* Active item */
.nav-center li.active a {
    background: #bfbfb5;
    font-weight: bold;
}

/* Hover */
.nav-center li a:hover {
    background: #cfcfc6;
}

/* Logo */
.nav-logo img {
    height: 80px;
}

/* Responsive */
@media (max-width: 992px) {
    .custom-navbar {
        padding: 15px;
    }

    .nav-center {
        display: none;
        /* hide center menu on mobile */
    }
}

/* Hero Section */
.text-academy-green {
    color: green;
    font-family: "TitleFont";
}

.academy-logo {
    width: 500px;
    height: 500px;
}

.academy-group {
    width: auto;
}

.btn-read-more {
    background-color: var(--academy-green);
    color: white;
    border-radius: 50px;
    border: none;
    transition: 0.3s;
}

.btn-read-more:hover {
    background-color: #004d29;
    color: white;
}

/* Contact Form */
.contact-section {
    background: linear-gradient(rgba(123, 133, 128, 0.05), rgba(0, 104, 55, 0.1));
}

.contact-title {
    font-size: 2.5rem;
    color: #000;
    font-family: "TitleFont";
}

.glass-input-v2 {
    background: rgba(255, 255, 255, 0.1) !important;

    /* هادي هي اللي كتدير داك التأثير ديال الزجاج المضبب */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.2) !important;

    border-radius: 50px;
    padding: 12px 25px;
    color: white;
    width: 100%;
    outline: none;
}

.glass-input-v2::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-family: "TitleFont", sans-serif;
    text-align: right;
}

.login-submit-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white;
    padding: 12px 80px;
    border-radius: 50px;
    border: none;
    font-weight: bold;
}

.img-fluid {
    width: 70%;
    height: 70%;
    border-radius: 5% !important;
}

.footer {
    background-color: #1a6444;
    direction: rtl;
    position: relative;
    z-index: 10;
    border-top: 1px solid #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    height: 200px;
    gap: initial;
}


.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2px;
    max-width: 12000px;
    margin: 0 auto;
}

.footer-links a,
.footer-contact p {
    margin-bottom: 8px !important;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.link-icon,
.contact-icon {
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

.footer {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.social-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icon img {
    width: 50px;
    /* */
    height: 50px;


}


.footer-links {
    text-align: right;
}

.footer-links h3 {
    color: #0e0e0e;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    color: #ffff;
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
    gap: 1rem;
}

.link-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.footer-links a:hover {
    color: #ffff;
    transform: translateX(-5px);
}

.footer-contact {
    text-align: right;
}

.footer-contact h3 {
    color: #0e0e0e;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.footer-contact p {
    color: #ffff;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 0.8rem;
}

.contact-icon {
    width: 70px;
    height: 70px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-box {
        margin-bottom: 30px;
        text-align: center;
    }
}

/* Responsive Styles */
@media (max-width: 900px) {
    .main-title {
        font-size: 3rem;
    }

    .sub-title {
        font-size: 2.5rem;
    }

    .section-text,
    .centered-text-section p {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links,
    .footer-contact {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        justify-content: center;
    }

    .main-menu,
    .alt-menu {
        justify-content: center;
    }

    .sub-nav-bar {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .image-section {
        flex-direction: column;
        padding: 2rem 1rem;
        text-align: center;
    }

    .image-section-reverse {
        flex-direction: column;
    }

    .featured-image {
        width: 100%;
        max-width: 400px;
    }

    .read-more-btn {
        margin-right: 0;
        margin-top: 2rem;
    }

    .centered-text-section {
        padding: 2rem 1rem;
        text-align: center;
    }

    .centered-text-section p {
        text-align: center;
    }

    .types-section {
        padding: 2rem 1rem;
    }

    .types-title {
        font-size: 2.5rem;
    }

    .types-grid {
        gap: 2rem;
    }

    .type-item img {
        height: 100px;
    }

    .news-grid {
        gap: 1.5rem;
    }

    .news-item {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .news-item img {
        height: auto;
        aspect-ratio: 4/3;
    }

    .footer {
        padding: 2rem 1rem;
    }
}

/* Navbar Styles - From Store */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: linear-gradient(to bottom, #e8e0d4, #d4cdc2);
    z-index: 1000;
    direction: rtl;
    transition: transform 0.3s ease;
}

.navbar-hidden {
    transform: translateY(-100%);
}

.logo img {
    height: 100px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    direction: rtl;
}

.main-menu {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 5px;
    gap: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: #5a5a5a;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    white-space: nowrap;
    position: relative;
    font-weight: 500;
}

.nav-link:hover {
    color: #000;
}

.nav-link.active {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.nav-link.active::after {
    display: none;
}

.nav-left .nav-link {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
}

.nav-left .nav-link:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #333;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.icon-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Footer - From Store */
.footer {
    background: transparent;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    padding: 3rem 4rem;
    direction: rtl;
    position: relative;
    z-index: 10;
    border-top: 1px solid #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    height: 220px;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.social-icon:hover {
    transform: scale(1.1);
}

.footer-links {
    text-align: right;
}

.footer-links h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    gap: 1rem;
}

.link-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(-5px);
}

.footer-contact {
    text-align: right;
}

.footer-contact h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* ========================= */
/* MOBILE HAMBURGER ICON STYLING */
/* ========================= */
@media (max-width: 768px) {

    /* Adjust body padding for mobile */
    body {
        padding-top: 95px !important;
    }

    .main {
        padding-top: 0 !important;
    }

    /* Hamburger Menu Icon - Show 3 Lines */
    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        z-index: 99999;
        padding: 12px;
        min-width: 48px;
        min-height: 48px;
        position: fixed;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        top: 20px;
        left: 12px;
    }

    .hamburger i {
        display: none;
    }

    .hamburger::before,
    .hamburger::after,
    .hamburger {
        transition: all 0.3s ease;
    }

    .hamburger::before {
        content: '';
        position: absolute;
        width: 24px;
        height: 3px;
        background: #000;
        border-radius: 2px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        box-shadow:
            0 -8px 0 0 #000,
            0 8px 0 0 #000;
    }

    /* Mobile responsive text sizes */
    .text-dark_8 {
        font-size: clamp(1.5rem, 5vw, 3rem) !important;
        width: 90% !important;
    }

    .text-dark {
        font-size: clamp(1rem, 3.5vw, 1.6rem) !important;
    }

    .contact-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
    }

    .img-fluid {
        width: 90% !important;
        height: auto !important;
    }

    .academy-logo {
        width: 100% !important;
        max-width: 300px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

/* Fix horizontal overflow on mobile */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.container,
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
}

.hero-section,
.contact-section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
    max-width: 100vw !important;
}

.description-text {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}