/* ========================================
   RESPONSIVE STYLES - Mobile First Approach
   ======================================== */

/* ========================================
   EXTRA SMALL DEVICES (< 576px)
   ======================================== */
@media all and (max-width: 575px) {
    /* Typography */
    .p-size-large {
        font-size: 32px !important;
    }

    .p-size-title {
        font-size: 24px !important;
    }

    .p-size-subtitle {
        font-size: 20px !important;
    }

    .p-text-w {
        font-size: 16px !important;
    }

    .logo-name {
        font-size: 18px !important;
    }

    .footer a, .footer-about {
        font-size: 14px !important;
    }

    /* Layout */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .hero-secion {
        min-height: 60vh;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .hero-secion .main-text,
    .hero-secion .main-image {
        padding: 10px;
    }

    /* Navigation */
    .navbar {
        border-radius: 0 !important;
    }

    .nav-link {
        border-left: 0 !important;
        padding: 10px 15px !important;
        font-size: 15px !important;
    }

    .navbar-nav {
        padding-right: 0;
    }

    .nav-item {
        margin-bottom: 5px;
        margin-top: 5px;
    }

    /* Counter Section */
    .counter-bg {
        position: static !important;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .counter-box {
        padding: 15px;
    }

    /* Decorative Elements - Hide on Mobile */
    .circles-counter,
    .pyramids-counter,
    .circliesform,
    .lines,
    .moanain,
    .lines1,
    .lines2 {
        display: none !important;
    }

    /* About Section */
    .about-secion {
        overflow: hidden;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .about-secion .main-image {
        margin-bottom: 20px;
    }

    /* Service Section */
    .service-secion {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .service-item {
        /*height: auto;*/
        min-height: 200px;
        margin-bottom: 15px;
    }

    .pyramid {
        width: 4rem;
        left: 0.5rem;
    }

    .circles-service {
        width: 4rem;
        right: 0.5rem;
        bottom: 0.5rem;
    }

    /* Admission Section */
    .addmission-secion {
        min-height: 40vh;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .bg-one,
    .join-text {
        border-bottom-left-radius: 10rem !important;
    }

    .join-text {
        padding: 20px 15px !important;
        width: 100% !important;
    }

    .join-text .w-75 {
        width: 100% !important;
    }

    .arrow-addmission {
        width: 4rem;
        left: -30px;
        top: 10px;
    }

    /* Admission 2 Section */
    .admission2-secion {
        height: auto;
        margin-top: 20px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .logopar,
    .pyramids-egypt {
        width: 3rem;
        top: 0.5rem;
    }

    .logopar {
        left: 0.5rem;
    }

    .pyramids-egypt {
        right: 0.5rem;
    }

    /* Partner Section */
    .partner-section {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .partneres {
        padding: 20px 15px;
    }

    .partner-image img {
        width: 80px !important;
    }

    /* Blogs Section */
    .blogs-secion {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .blog-image {
        /*height: auto !important;*/
        min-height: 200px;
    }

    .blog-text {
        padding: 15px;
    }

    /* Contact Section */
    .contact-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .contact-form {
        margin-bottom: 0 !important;
        padding: 25px 20px;
        margin-right: 0 !important;
    }

    .form-image {
        display: none !important;
    }

    /* Upper Footer */
    .upperfooter-section {
        height: 30vh;
        background-size: cover;
    }

    .upperfooter-section .p-text-w {
        font-size: 20px;
    }

    /* Footer */
    .footer {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .footer-data {
        justify-content: flex-start !important;
        margin-bottom: 25px;
    }

    .footer-about {
        font-size: 14px !important;
        line-height: 1.6;
    }

    .footer-contact {
        padding-right: 0;
        margin-bottom: 15px !important;
    }

    .footer-contact span {
        font-size: 14px;
    }

    .footer .logo-name {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .footer ul.list-unstyled li {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .footer-social {
        justify-content: flex-start !important;
        margin-top: 20px;
    }

    .social-icons-wrapper {
        gap: 10px !important;
    }

    .social-icon-link {
        width: 40px !important;
        height: 40px !important;
    }

    .social-icon-link .icon-font {
        width: 18px !important;
        height: 18px !important;
    }

    /* Copyright Section */
    .powred-by {
        padding: 15px 0;
    }

    .powred-by span {
        font-size: 13px !important;
    }

    /* Page Header */
    .page-header {
        height: 25vh;
        padding-top: 15px;
        margin-top: 70px;
    }

    .page-header h1 {
        font-size: 24px !important;
    }

    .page-title {
        font-size: 14px !important;
        padding: 8px 15px;
    }

    /* Buttons */
    .defult-btn,
    .defult-btn2 {
        width: 100%;
        font-size: 15px;
        padding: 12px 20px;
    }

    /* Inputs */
    .input-defult {
        height: 45px;
        font-size: 14px;
        padding-right: 15px;
    }

    /* Utilities */
    .logo-icon {
        width: 50px;
        bottom: 0.5rem;
        left: 0.5rem;
    }

    /* Logo responsiveness */
    .navbar-brand img,
    .footer-item img[alt="khaqan"] {
        height: 60px !important;
        width: auto;
    }
}

/* ========================================
   SMALL DEVICES (≥ 576px and < 768px)
   ======================================== */
@media all and (min-width: 576px) and (max-width: 767px) {
    /* Typography */
    .p-size-large {
        font-size: 38px !important;
    }

    .p-size-title {
        font-size: 28px !important;
    }

    .p-size-subtitle {
        font-size: 22px !important;
    }

    /* Layout */
    .container {
        max-width: 540px;
    }

    /* Hero Section */
    .hero-secion {
        min-height: 65vh;
    }

    /* Counter */
    .counter-bg {
        position: static !important;
    }

    /* Navigation */
    .nav-link {
        border-left: 0 !important;
    }

    /* Service Items */
    .service-item {
        height: auto;
        min-height: 220px;
    }

    /* Admission */
    .addmission-secion {
        min-height: 45vh;
    }

    .bg-one,
    .join-text {
        border-bottom-left-radius: 12rem;
    }

    .join-text {
        padding: 30px 20px;
        width: 98%;
    }

    /* Footer */
    .footer {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .footer-data {
        margin-bottom: 30px;
    }

    .social-icon-link {
        width: 42px !important;
        height: 42px !important;
    }

    /* Page Header */
    .page-header {
        height: 28vh;
    }

    /* Logo responsiveness for small devices */
    .navbar-brand img,
    .footer-item img[alt="khaqan"] {
        height: 70px !important;
        width: auto;
    }

    /* Hide decorative elements */
    .lines1,
    .lines2,
    .circles-counter,
    .pyramids-counter {
        display: none;
    }
}

/* ========================================
   MEDIUM DEVICES - Tablets (≥ 768px and < 992px)
   ======================================== */
@media all and (min-width: 768px) and (max-width: 991px) {
    /* Typography */
    .p-size-large {
        font-size: 42px;
    }

    .p-size-title {
        font-size: 32px;
    }

    .p-size-subtitle {
        font-size: 24px;
    }

    .p-text-w {
        font-size: 17px;
    }

    /* Layout */
    .container {
        max-width: 720px;
    }

    /* Hero Section */
    .hero-secion {
        min-height: 70vh;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    /* Navigation */
    .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 14px;
    }

    /* Service Section */
    .service-item {
        height: 260px;
        margin-bottom: 20px;
    }

    .pyramid {
        width: 5rem;
    }

    .circles-service {
        width: 5rem;
    }

    /* Admission */
    .addmission-secion {
        min-height: 60vh;
    }

    .admission2-secion {
        height: auto !important;
        background-size: cover !important;
    }

    .join-text {
        width: 95%;
        padding: 40px 50px;
    }

    /* Partner Section */
    .partner-image img {
        width: 100px !important;
    }

    /* Footer */
    .footer {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .footer-about {
        font-size: 16px;
    }

    .footer-data {
        margin-bottom: 25px;
    }

    /* Page Header */
    .page-header {
        height: 32vh;
        margin-top: 60px;
    }

    /* Hide some decorative elements */
    .lines1,
    .lines2 {
        display: none;
    }

    /* Preloader */
    .preloader .moanain {
        display: block;
    }
}

/* ========================================
   LARGE DEVICES - Desktops (≥ 992px and < 1200px)
   ======================================== */
@media all and (min-width: 992px) and (max-width: 1199px) {
    /* Layout */
    .container {
        max-width: 960px;
    }

    /* Typography */
    .p-size-large {
        font-size: 45px;
    }

    .p-size-title {
        font-size: 36px;
    }

    /* Navigation */
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 0 15px !important;
        font-size: 14px;
    }

    .nav-item .border-0 {
        padding-left: 0.5rem !important;
    }

    /* Dropdown hover */
    .dropdown:hover .dropdown-menu {
        display: block;
    }

    /* Footer */
    .footer-social {
        position: relative;
        z-index: 222;
    }

    /* Service Items */
    .service-item {
        height: 240px;
    }

    /* Partner */
    .partner-image img {
        width: 110px !important;
    }
}

/* ========================================
   EXTRA LARGE DEVICES (≥ 1200px and < 1400px)
   ======================================== */
@media all and (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }

    /* Navigation */
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 0 17px !important;
        font-size: 15px;
    }

    /* Dropdown hover */
    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .footer-social {
        position: relative;
        z-index: 222;
    }
}

/* ========================================
   XXL DEVICES (≥ 1400px and < 1600px)
   ======================================== */
@media all and (min-width: 1400px) and (max-width: 1599px) {
    .container {
        max-width: 1320px;
    }

    /* Navigation */
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 0 18px !important;
        font-size: 15px;
    }
}

/* ========================================
   LARGE SCREENS (≥ 1600px and < 1920px)
   ======================================== */
@media all and (min-width: 1600px) and (max-width: 1919px) {
    .container {
        max-width: 1500px;
    }

    /* Typography */
    .p-size-large {
        font-size: 55px;
    }

    .p-size-title {
        font-size: 42px;
    }

    .p-size-subtitle {
        font-size: 32px;
    }

    /* Navigation */
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 0 20px !important;
        font-size: 16px;
    }
}

/* ========================================
   FULL HD SCREENS (≥ 1920px and < 2560px)
   ======================================== */
@media all and (min-width: 1920px) and (max-width: 2559px) {
    .container {
        max-width: 1770px;
    }

    /* Typography */
    .p-size-large {
        font-size: 60px;
    }

    .p-size-title {
        font-size: 48px;
    }

    .p-size-subtitle {
        font-size: 36px;
    }

    .p-text-w {
        font-size: 21px;
    }

    /* Navigation */
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 0 22px !important;
        font-size: 18px;
    }

    /* Footer */
    .footer-about {
        font-size: 19px;
    }

    .logo-name {
        font-size: 36px;
    }
}

/* ========================================
   2K SCREENS (≥ 2560px and < 3840px)
   ======================================== */
@media all and (min-width: 2560px) and (max-width: 3839px) {
    .container {
        max-width: 2344px;
    }

    /* Typography */
    .p-size-large {
        font-size: 70px;
    }

    .p-size-title {
        font-size: 56px;
    }

    .p-size-subtitle {
        font-size: 42px;
    }

    .p-text-w {
        font-size: 24px;
    }

    /* Navigation */
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 0 25px !important;
        font-size: 22px;
    }

    /* Buttons */
    .defult-btn,
    .defult-btn2 {
        font-size: 20px;
        padding: 15px 30px;
        width: 200px;
    }

    /* Footer */
    .footer {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .footer-about {
        font-size: 22px;
    }

    .logo-name {
        font-size: 42px;
    }

    .footer a {
        font-size: 20px;
    }

    .social-icon-link {
        width: 55px !important;
        height: 55px !important;
    }

    .social-icon-link .icon-font {
        width: 26px !important;
        height: 26px !important;
    }
}

/* ========================================
   4K SCREENS (≥ 3840px)
   ======================================== */
@media all and (min-width: 3840px) {
    .container {
        max-width: 3344px;
    }

    /* Typography */
    .p-size-large {
        font-size: 90px;
    }

    .p-size-title {
        font-size: 70px;
    }

    .p-size-subtitle {
        font-size: 52px;
    }

    .p-text-w {
        font-size: 30px;
    }

    /* Navigation */
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 0 30px !important;
        font-size: 28px;
    }

    /* Buttons */
    .defult-btn,
    .defult-btn2 {
        font-size: 26px;
        padding: 20px 40px;
        width: 280px;
    }

    /* Inputs */
    .input-defult {
        height: 70px;
        font-size: 22px;
        padding-right: 30px;
    }

    /* Footer */
    .footer {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .footer-about {
        font-size: 28px;
    }

    .logo-name {
        font-size: 52px;
    }

    .footer a {
        font-size: 26px;
    }

    .social-icon-link {
        width: 70px !important;
        height: 70px !important;
    }

    .social-icon-link .icon-font {
        width: 34px !important;
        height: 34px !important;
    }

    /* Service Items */
    .service-item {
        height: 320px;
    }

    /* Partner */
    .partner-image img {
        width: 180px !important;
    }
}

/* ========================================
   UTILITY CLASSES FOR ALL SIZES
   ======================================== */

/* Ensure proper spacing on all devices */
@media all and (max-width: 1024px) {
    .lines1,
    .lines2 {
        display: none;
    }
}

/* Mobile Menu Improvements */
@media all and (max-width: 991px) {
    .separate_li {display: none!important;}
    .navbar-collapse {
        background: #fff;
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        border-left: 0 !important;
        border-bottom: 1px solid #f0f0f0;
        padding: 12px 10px !important;
    }

    .nav-item:last-child .nav-link {
        border-bottom: 0;
    }
}

/* Smooth transitions for all screen sizes */
@media all {
    * {
        transition: padding 0.3s ease, margin 0.3s ease, font-size 0.3s ease;
    }
}
