.first-nav, .navbar, .position, .preloader {
    left: 0;
    right: 0;
    top: 0
}

.hero-secion, body, html {
    overflow-x: hidden
}

.blog-item, nav a, nav span {
    text-decoration: none
}

body {
    background-color: var(--gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-y: hidden;
    scroll-behavior: smooth;
}

/* Make images responsive by default */
img {
    max-width: 100%;
    display: block;
}

/* Don't override height for images with explicit height attribute */
img:not([height]) {
    height: auto;
}

/* Ensure iframes and videos are responsive */
iframe,
video {
    max-width: 100%;
    height: auto;
}

:root {
    --black: #212121 !important;
    --gray: #F5F0E6 !important;
    --dark-red: #8B1212 !important;
    --dark-red-hover: #5a0c0c !important;
    --yellow: #f9b42b !important;
    --yellow-hover: #f9b42bcf !important;
    --red: #8B1212;
    --white: #fff;
    --font-14: 14px;
    --font-15: 15px;
}

.bg-gray {
    background-color: var(--gray) !important
}

.text-black {
    color: var(--black) !important
}

.font-bold, .fw-ex-bold {
    font-family: Alexandria-ExtraBold
}

.text-green, .text-yellow {
    color: var(--dark-red)
}

/* Container improvements */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

p {
    font-family: Alexandria-SemiBold;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.counter-box span {}
.p-size-large {
    font-size: 50px
}

.p-size-title {
    font-size: 40px
}

.p-size-subtitle {
    font-size: 30px
}

.p-text-w {
    font-size: 19px;
    font-family: Alexandria-Regular;
    color: #2b2b2b
}

.defult-btn, .defult-btn2 {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .25);
    font-family: Alexandria-SemiBold, serif;
    padding: 10px 20px;
    width: 150px;
    max-width: 100%;
    transition: all .3s ease;
    display: flex;
    overflow: hidden;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.defult-btn:active,
.defult-btn2:active {
    transform: scale(0.98);
}

.text-break {
    word-break: break-all
}

.text-gray {
    color: var(--white);
    opacity: 70%
}

.countact-page .icon-box a, .text-black50 {
    color: rgba(0, 0, 0, .52) !important
}

.defult-btn {
    align-items: center;
    justify-content: center;
    color: var(--white) !important;
    border-radius: 7px;
    background: var(--dark-red)
}

.defult-btn:hover {
    background: var(--dark-red-hover) !important;
    color: #fff !important;
    border: 1px solid var(--dark-red) !important
}

.defult-btn2 {
    align-items: center;
    justify-content: center;
    color: var(--white) !important;
    border-radius: 7px;
    background: var(--black)
}

.defult-btn2:hover {
    background: #151111 !important;
    color: #fff !important
}

.input-defult {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .1), 0 0 4px 0 rgba(0, 0, 0, .25) inset;
    border: 0;
    padding-right: 20px;
    padding-left: 20px;
    opacity: .9;
    margin-bottom: 15px;
    transition: all .3s ease;
    font-family: Alexandria-Regular, serif;
    font-size: 15px;
}

.counter-bg, .navbar {
    box-shadow: 0 2.874px 17.246px -.719px rgba(0, 0, 0, .2);
    backdrop-filter: blur(14.371501922607422px)
}

.input-defult:focus {
    border: 0;
    outline: 0;
    opacity: 1;
    box-shadow: 0 0 0 2px var(--dark-red), 0 0 4px 0 rgba(0, 0, 0, .25) inset;
}

.input-defult::placeholder {
    color: #999;
    font-family: Alexandria-Light, serif;
}

@keyframes flip {
    from {
        transform: rotateY(0)
    }
    to {
        transform: rotateY(360deg)
    }
}

@keyframes spin {
    0%, 100% {
        transform: rotate(0)
    }
    25%, 75% {
        transform: rotate(90deg)
    }
    50% {
        transform: rotate(180deg)
    }
}

@keyframes bottom-top {
    0%, 100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(10px)
    }
    75% {
        transform: translateY(5px)
    }
}

@keyframes waves {
    0%, 100% {
        transform: translateX(0)
    }
    50% {
        transform: translateX(10px)
    }
    75% {
        transform: translateX(5px)
    }
}

.flip {
    animation: 3s infinite flip
}

.spin {
    animation: 4s linear infinite spin
}

.waves {
    animation: 4s linear infinite waves
}

.bottom-top {
    animation: 3s linear infinite bottom-top
}

.first-nav {
    position: fixed;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--dark-red) !important;
    z-index: 10
}

.position {
    background-color: #f3ece9;
    position: absolute;
    bottom: 0;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center
}

.preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999999999 !important;
    background-color: var(--dark-red);
    bottom: 0
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--dark-red);
    transform: rotateX(65deg) rotate(45deg);
    transform: perspective(200px) rotateX(65deg) rotate(45deg);
    color: #fff;
    animation: 1s linear infinite alternate layers1
}

.loader:after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .7);
    animation: 1s linear infinite alternate layerTr
}

@keyframes layers1 {
    0% {
        box-shadow: 0 0
    }
    100%, 90% {
        box-shadow: 20px 20px 0 -4px
    }
}

@keyframes layerTr {
    0% {
        transform: translate(0, 0) scale(1)
    }
    100% {
        transform: translate(-25px, -25px) scale(1)
    }
}

.navbar {
    position: fixed;
    transition: all .3s ease;
    z-index: 33;
    border-radius: 0 0 25px 25px;
    background-color: #ffffff !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: 100%;
}

.navbar-toggler {
    border: 2px solid var(--dark-red) !important;
    padding: 8px 10px;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 999;
    border-radius: 5px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(210, 30, 30, 0.25) !important;
}

.navbar-toggler:hover {
    background-color: rgba(210, 30, 30, 0.1);
}

.navbar-toggler svg {
    width: 24px;
    height: 24px;
    color: var(--dark-red);
}

.nav-link {
    font-family: Alexandria-SemiBold, serif !important;
    color: rgba(0, 0, 0, 0.8) !important;
    transition: .5s;
    padding-top: 0;
    padding-bottom: 0;
    /*border-left: 1px solid var(--black)*/
}

.separate {
    border-left: 1px solid var(--black)
}

.active, .nav-link:hover, nav a, nav a:hover, nav span {
    color: var(--dark-red) !important
}

.navbar-expand-lg .navbar-nav .nav-link {
    font-size: var(--font-15)
}

nav a, nav span {
    font-family: Alexandria-Medium !important;
    transition: .5s
}

.navbar-brand {
    margin-right: 0 !important
}

.hero-secion {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 90vh;
    padding-top: 60px;
    padding-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ensure background images are responsive */
[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.logo-icon {
    position: absolute;
    bottom: 1rem;
    left: 1rem
}

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

.counter-section {
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--gray)
}

.counter-box {
    padding-top: 10px
}

.counter-bg {
    border-radius: 28.743px;
    background: rgba(216, 192, 192, .6);
    position: relative;
    top: -80px;
    z-index: 22
}

.circles-counter {
    position: absolute;
    bottom: -33px;
    left: 7rem
}

.pyramids-counter {
    position: absolute;
    bottom: 9px;
    right: 1rem
}

.about-secion {
    padding-top: 40px;
    padding-bottom: 40px;
    position: relative;
    background-color: var(--gray);
    z-index: 2
}

.addmission-secion, .service-secion {
    padding-top: 60px;
    padding-bottom: 60px
}

.bg-image, .lines, .moanain {
    position: absolute
}

.about-secion .main-text {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.bg-image {
    background-color: #0000005b;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 50px;
    z-index: 2
}

.layer, .service-item {
    border-radius: 40px;
    transition: 1s;
    z-index: 2
}

.about-secion .main-image {
    border-radius: 50px;
    overflow: hidden;
    z-index: 2;
    position: relative
}

.moanain {
    left: -4rem;
    bottom: -1.2rem
}

.lines {
    right: 0;
    top: -9.5rem;
    width: 21rem
}

.addmission-secion {
    background-size: cover;
    min-height: 90vh;
    display: flex;
    align-items: center
}

.arrow-addmission {
    width: 6rem;
    margin-bottom: 20px;
    position: relative;
    left: -64px;
    transform: rotateZ(13deg);
    top: 19px
}

.bg-one, .join {
    width: 100%;
    height: 100%
}

.rotate-text {
    /*transform: rotateZ(-12deg)*/
}

.service-secion {
    position: relative;
    transition: 1s;
    z-index: 2
}

.service-item {
    position: relative;
    overflow: hidden;
    height: 240px;
    margin-top: 10px;
    margin-bottom: 10px
}

.circles-service, .layer, .pyramid {
    position: absolute
}

.layer {
    background-color: #0000008c;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px;
    display: none
}

.logopar, .pyramid {
    left: 2rem
}

.service-item:hover .layer {
    display: flex;
    transition: 1s
}

.pyramid {
    top: 1rem
}

.circles-service {
    bottom: 1rem;
    right: 2rem;
    z-index: 1
}

.service-secion .col-lg-4 {
    position: relative;
    z-index: 2
}

.admission2-secion {
    background-size: cover;
    background-repeat: no-repeat;
    position: relative
}

.logopar, .pyramids-egypt {
    position: absolute;
    top: 2rem
}

.bg-one {
    background-color: var(--black);
    border-bottom-left-radius: 40rem
}

.join-text {
    background: var(--dark-red);
    width: 93%;
    height: 100%;
    border-bottom-left-radius: 92rem;
    display: flex;
    align-items: center;
    padding-right: 100px;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 120px
}

.partner-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #f3ece9;
    overflow: hidden
}

.partneres {
    background-color: var(--blue);
    width: 100%;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px
}

.partner-image img {
    width: 130px !important;
    height: auto !important
}

.partner-image {
    display: flex;
    justify-content: center
}

.partner-section .owl-stage {
    display: flex;
    align-items: center
}

.pyramids-egypt {
    right: 2rem
}

.blogs-secion .owl-nav, .partner-section .owl-theme .owl-nav {
    display: none !important
}

.blogs-secion {
    position: relative;
    padding-top: 60px;
    padding-bottom: 60px
}

.date {
    background: #302e2f;
    color: #fff;
    width: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 11px 12px 10px;
    border-radius: 0 0 5px 5px;
    position: relative;
    top: -45px;
    right: 24px
}

.day {
    line-height: 50px
}

.footer a, .footer-about {
    opacity: 100%;
    font-style: normal;
    line-height: normal
}

.blog-image {
    height: 260px;
    overflow: hidden;
    border-radius: 32px
}

.blog-image img {
    height: 100%
}

.blog-text {
    margin-top: -30px;
    color: var(--black)
}

.blogs-icon {
    position: absolute;
    top: 2rem;
    right: 0
}

.blogs-secion .owl-dots {
    margin-top: 32px !important
}

.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
    background: var(--dark-red) !important
}

.blogs-secion .col-lg-4 {
    margin-bottom: 20px !important
}

.page-item.active .page-link {
    z-index: 3;
    color: var(--white) !important;
    background-color: var(--dark-red);
    border-color: var(--dark-red)
}

.blogimage {
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    max-height: 400px
}

.contact-section {
    padding-top: 40px;
    padding-bottom: 20px;
    background-color: var(--black)
}

.contact-form {
    background-color: var(--white);
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .5);
    margin-bottom: -90px;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    z-index: 4
}

.circliesform, .header-logo, .lines1, .lines2, .piont-footer, .star-footer {
    position: absolute
}

textarea {
    padding-top: 15px;
    resize: vertical;
    min-height: 100px;
}

textarea.input-defult {
    padding-left: 20px;
}

.circliesform {
    top: 0;
    left: 73px;
    z-index: 1
}

.i-contact {
    color: var(--dark-red) !important;
    font-size: 20px
}

.icon-box {
    margin-bottom: 12px
}

.logo-name, .page-title p {
    margin-bottom: 0
}

.icon-box a {
    text-decoration: none !important;
    color: #fff !important;
    opacity: 70%;
    margin-right: 10px
}

.footer a, .page-header a {
    text-decoration: none;
    transition: .5s
}

.upperfooter-section {
    padding-top: 0;
    padding-bottom: 0;
    height: 40vh
}

.star-footer {
    right: 4rem;
    top: 32px
}

.piont-footer {
    left: 5rem;
    bottom: 19px
}

.footer {
    background-color: var(--black);
    padding-top: 70px;
    padding-bottom: 70px
}

.footer-about {
    color: #fff;
    font-family: Alexandria-Light, serif;
    font-size: 17px;
    line-height: 1.5;
}

.footer a, .logo-name {
    font-family: Alexandria-SemiBold, serif;
    color: #fff
}

.footer ul {
    list-style: square;
    color: #fff;
    opacity: 70%
}

.footer li {
    text-align: start
}

.footer a {
    text-align: right;
    font-size: 16px
}

.footer a:hover, .page-header a:hover {
    color: var(--dark-red-hover)
}

.footer .icons-contact {
    padding-left: 10px;
    color: #fff !important
}

.logo-name {
    font-size: 32px;
    padding-right: 10px
}

.lines1 {
    top: -15rem;
    left: -6rem;
    width: 23rem
}

.lines2 {
    bottom: -21rem;
    right: -10rem;
    width: 23rem
}

.powred-by {
    background-color: var(--dark-red);
    border-top: 3px solid rgba(255, 255, 255, 0.1)
}

.powred-by img {
    width: 45px;
    transition: transform 0.3s ease
}

.powred-by img:hover {
    transform: scale(1.1)
}

.social .icon-font {
    display: block;
    font-size: 23px !important;
    color: var(--dark-red);
    margin-bottom: 12px
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none
}

.social-icon-link:hover {
    background-color: var(--dark-red);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3)
}

.social-icon-link .icon-font {
    width: 20px;
    height: 20px;
    color: #fff;
    margin-bottom: 0
}

.footer ul.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0
}

.footer ul.list-unstyled li {
    padding: 0;
    margin-bottom: 8px;
    position: relative;
    padding-right: 15px
}

.footer ul.list-unstyled li:before {
    content: "◆";
    position: absolute;
    right: 0;
    color: var(--dark-red);
    font-size: 10px;
    top: 50%;
    transform: translateY(-50%)
}

.footer-contact {
    transition: transform 0.2s ease
}

.footer-contact:hover {
    transform: translateX(-5px)
}

.footer-contact a {
    transition: color 0.3s ease
}

.footer-contact a:hover {
    color: var(--dark-red-hover) !important
}

.footer .logo-name {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px !important
}

.footer .logo-name:after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--dark-red)
}

.navbar-nav .dropdown-menu {
    text-align: center
}

.show-response {
    display: none
}

.page-header {
    height: 49vh;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    margin-top: 50px
}

.page-title {
    display: inline-block;
    font-family: Alexandria-Light;
    font-size: 16px;
    color: #fff;
    background-color: var(--black);
    border-radius: 5px;
    opacity: .5;
    padding-left: 20px;
    padding-right: 20px
}

.header-logo {
    top: 2rem;
    left: 0;
    width: 4rem
}

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

.about-page .p-size-subtitle {
    font-size: 20px;
    font-family: Alexandria-ExtraBold
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

/* Text alignment utilities */
.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

/* Responsive spacing utilities */
.mb-responsive {
    margin-bottom: 1rem;
}

.mt-responsive {
    margin-top: 1rem;
}

.py-responsive {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-responsive {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Flexbox utilities for better responsive layouts */
.flex-wrap-responsive {
    flex-wrap: wrap;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Overflow utilities */
.overflow-hidden {
    overflow: hidden;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

/* Width utilities */
.w-100 {
    width: 100% !important;
}

.w-auto {
    width: auto !important;
}

.max-w-100 {
    max-width: 100%;
}

/* Height utilities */
.h-100 {
    height: 100% !important;
}

.h-auto {
    height: auto !important;
}

/* Display utilities */
.d-block {
    display: block !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-flex {
    display: flex !important;
}

.d-none {
    display: none !important;
}

/* Position utilities */
.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.position-fixed {
    position: fixed !important;
}

/* Visibility utilities for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure proper box-sizing for all elements */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Improve text rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--dark-red);
    outline-offset: 2px;
}

/* Remove focus outline when not using keyboard */
:focus:not(:focus-visible) {
    outline: none;
}

/* Ensure links are properly styled */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Improve button reset */
button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

/* List reset utility */
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Clearfix utility */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive table wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Aspect ratio utilities */
.aspect-ratio-16-9 {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.aspect-ratio-16-9 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.aspect-ratio-4-3 {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
}

.aspect-ratio-4-3 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.aspect-ratio-1-1 {
    position: relative;
    padding-bottom: 100%;
    height: 0;
    overflow: hidden;
}

.aspect-ratio-1-1 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Object fit utilities for images */
.object-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.object-contain {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* RTL Support improvements */
[dir="rtl"] .text-right {
    text-align: right !important;
}

[dir="rtl"] .text-left {
    text-align: left !important;
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--dark-red);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}
