/* General Styles */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap");

:root {
    --primary-color: #004650;
    --secondary-color: #bc5f42;
    --dark-color: #1a1a2e;
    --light-color: #f5f5f5;
    --text-color: #333;
    --text-light: #777;
    --white: #ffffff;
    --gradient: linear-gradient(45deg,
            var(--primary-color),
            var(--secondary-color));
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 3px;
    background: var(--gradient);
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    color: var(--white);
    box-shadow: var(--box-shadow);
    background: linear-gradient(90deg,
            #004650 0%,
            #bc5f42 47.92%,
            #037485 100%);
}

.gradient-btn {
    background: var(--gradient);
    color: var(--white);
    border: none;
}

.gradient-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    gap: 5px;
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(-5px);
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-half {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: var(--dark-color);
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

.preloader-half.left {
    left: 0;
    transform: translateX(0);
}

.preloader-half.right {
    right: 0;
    transform: translateX(0);
}

.preloader.loaded .preloader-half.left {
    transform: translateX(-100%);
}

.preloader.loaded .preloader-half.right {
    transform: translateX(100%);
}

.preloader-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.preloader-content img {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
    width: 200px;
}

.preloader-spinner {
    display: flex;
    gap: 8px;
}

.spinner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@keyframes bounces {

    0%,
    80%,
    100% {
        transform: scale(0.85);
    }

    40% {
        transform: scale(1);
    }
}

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

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

/* Enhanced 3D Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.95);
    transition: opacity 0.6s ease-in-out;
}

.preloader-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle,
            rgba(0, 70, 80, 0.9) 0%,
            rgba(26, 26, 46, 0.95) 100%);
    z-index: -1;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    perspective: 1000px;
}

/* Updated Text Animation Styles */
.text-animation-container {
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    margin-bottom: 20px;
}

.logo-text-ar {
    font-family: "Cairo", sans-serif;
    font-size: 46px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    opacity: 1;
    transform: translateZ(0);
    transition: all 0.5s ease;
}

.logo-text-en {
    font-family: "Cairo", sans-serif;
    font-size: 38px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0;
    transform: translateZ(-50px);
    transition: all 0.5s ease;
    display: flex;
    gap: 10px;
}

.word-wrapper {
    display: inline-block;
    position: relative;
    transform-style: preserve-3d;
    animation: wordFloat 3s infinite alternate ease-in-out;
}

.logo-text-ar .word-wrapper {
    animation-delay: calc(var(--word-index, 0) * 0.2s);
}

.logo-text-ar .word-wrapper:nth-child(1) {
    --word-index: 1;
}

.logo-text-ar .word-wrapper:nth-child(2) {
    --word-index: 2;
}

.logo-text-ar .word-wrapper:nth-child(3) {
    --word-index: 3;
}

.logo-text-en .word-wrapper {
    animation-delay: calc(var(--word-index, 0) * 0.2s + 0.3s);
}

.logo-text-en .word-wrapper:nth-child(1) {
    --word-index: 1;
}

.logo-text-en .word-wrapper:nth-child(2) {
    --word-index: 2;
}

/* Animation for Arabic and English transition */
.text-animation-container.show-english .logo-text-ar {
    opacity: 0;
    transform: translateZ(50px);
}

.text-animation-container.show-english .logo-text-en {
    opacity: 1;
    transform: translateZ(0);
}

/* SVG Logo Animation */
.logo-svg-container {
    width: 240px;
    height: 120px;
    margin-bottom: 20px;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-bg {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: drawPath 2s forwards ease-in-out,
        glowPath 3s infinite alternate 2s;
}

.logo-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawPath 1.5s 0.5s forwards ease-in-out,
        floatPath 4s infinite alternate 2s;
}

@keyframes wordFloat {
    0% {
        transform: translateY(0) rotateX(0deg);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }

    100% {
        transform: translateY(-5px) rotateX(5deg);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    }
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes glowPath {
    0% {
        stroke: #ffffff;
        stroke-width: 2;
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    }

    100% {
        stroke: #ffffff;
        stroke-width: 3;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
    }
}

@keyframes floatPath {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5px);
    }
}

/* Quiz Icon Animation */
.quiz-icon {
    width: 120px;
    height: 120px;
    perspective: 1000px;
    margin-bottom: 20px;
}

.quiz-icon svg {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: floatIcon 4s infinite ease-in-out;
}

.quiz-paper {
    animation: paperGlow 3s infinite alternate;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.quiz-lines line {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawLine 2s forwards;
    animation-delay: calc(var(--line-index, 0) * 0.3s + 0.5s);
}

.quiz-lines line:nth-child(1) {
    --line-index: 1;
}

.quiz-lines line:nth-child(2) {
    --line-index: 2;
}

.quiz-lines line:nth-child(3) {
    --line-index: 3;
}

.quiz-check {
    transform-origin: center;
    animation: checkScale 3s infinite alternate;
    filter: drop-shadow(0 0 5px rgba(188, 95, 66, 0.8));
}

.quiz-checkmark {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: drawCheckmark 1s forwards 1.5s, glowMark 2s infinite alternate 2s;
    stroke-linecap: round;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotateX(10deg);
    }

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

@keyframes paperGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkScale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes drawCheckmark {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes glowMark {

    0%,
    100% {
        stroke: #ffffff;
        stroke-width: 4;
    }

    50% {
        stroke: #ffffff;
        stroke-width: 5;
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    }
}

.loader-progress {
    width: 250px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

.loader-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
            var(--primary-color),
            var(--secondary-color));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.loader-progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    left: 0;
    text-align: center;
    color: white;
    font-size: 14px;
}

.preloader.loaded {
    opacity: 0;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo-text-ar {
        font-size: 38px;
    }

    .logo-text-en {
        font-size: 30px;
    }

    .quiz-icon {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .logo-text-ar {
        font-size: 32px;
    }

    .logo-text-en {
        font-size: 24px;
    }

    .logo-svg-container {
        width: 200px;
        height: 100px;
    }

    .quiz-icon {
        width: 80px;
        height: 80px;
    }
}

/* Header Styles */
header {
    position: fixed;
    top: 4%;
    left: 10%;
    width: 80%;
    z-index: 1000;
    background-color: #fff0fa0d;
    padding: 7px 10px;
    transition: var(--transition);
    margin: auto;
    border-radius: 3px;
    border-width: 0px, 0px, 0px, 0px;
    border-style: solid;
    border-color: #ffffff26;
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 40px;
    filter: brightness(1000.5) grayscale(900) contrast(36.5);
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--white) !important;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switch,
.search-btn {
    color: var(--white);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--white);
    transition: var(--transition);
    cursor: pointer;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    display: none;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-align: right;
    transition: var(--transition);
    background: transparent;
    border: none;
    width: 100%;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.user-dropdown form {
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero {
    background: url(/assets/img/bg.jpg);
    color: var(--white);
    padding: 150px 0 80px;
    overflow: hidden;
    position: relative;
}

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

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.hero-image {
    flex: 1;
    position: relative;
    text-align: center;
}

.hero-image img {
    max-height: 500px;
    position: relative;
    z-index: 2;
    margin-bottom: -6rem;
}

.hero-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    opacity: 0.6;
    animation: morphShape 8s linear infinite alternate;
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Services Section */
.services {
    background-color: #f9f5ff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: 0.5s !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* .service-card.active {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-10px);
} */

.service-card.active .read-more {
    color: var(--white);
}

.service-icon {
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Video Section */
.video-section {
    padding: 0;
}

.video-container {
    height: 400px;
    background-color: var(--dark-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}

.play-button {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.play-button i {
    color: var(--primary-color);
    font-size: 24px;
    margin-left: 5px;
}

.play-button:hover {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.video-overlay h2 {
    color: var(--white);
    font-size: 36px;
    opacity: 0.3;
}

/* About Us Section */
.about-us {
    overflow: hidden;
}

.about-us .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
}

.about-images {
    flex: 1;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    position: relative;
}

.image-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s ease;
}

.image-item:hover {
    transform: translateY(-5px);
}

.image-item.large {
    grid-row: span 2;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

.stats-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--gradient);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounces 2s infinite;
}

.shape-decoration {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100px;
    height: 200px;
    background: linear-gradient(45deg, #ff6b6b, #ff9e9e);
    border-radius: 0 100px 100px 0;
    opacity: 0.1;
    z-index: -1;
}

/* Latest Articles Section */
.latest-articles {
    background-color: #f9f5ff;
}

.articles-slider {
    padding-bottom: 50px;
}

.article-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.5s ease;
}

.article-imagea {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 18rem;
}

.article-image img {
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-author {
    position: absolute;
    bottom: 0px;
    right: 20px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--white);
}

.article-content {
    padding: 30px 20px 20px;
}

.article-content h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--white);
}

.testimonial-card {
    display: flex;
    background-color: var(--white);
    border-radius: 15px;
    /* overflow: hidden; */
    box-shadow: var(--box-shadow);
    transition: transform 0.5s ease;
    flex-direction: row-reverse;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    flex: 2;
    padding: 30px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 60px;
    color: rgba(106, 17, 203, 0.1);
    font-family: serif;
}

.testimonial-content p {
    margin-bottom: 20px;
}

.testimonial-author h4 {
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 14px;
}

.testimonial-image {
    flex: 1;
    position: relative;
    /* overflow: hidden; */
}

.testimonial-image::after {
    content: "";
    position: absolute;
    top: -25px;
    right: 25px;
    width: 80%;
    height: 100%;
    z-index: 0;
    border: 3px solid #16727e;
    border-radius: 7rem 10px 10px 10px;
    /* right: 20%; */
}

.testimonial-card {
    padding-top: 3rem;
}

.testimonial-image img {
    width: 80%;
    height: 20rem;
}

.testimonial-image img {
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 7rem 10px 10px 10px;
    z-index: 1;
    position: relative;
}

/* .testimonial-card:hover .testimonial-image img {
    transform: scale(1.1);
} */

/* Partners Section */
.partners {
    padding: 40px 0;
    background-color: var(--dark-color);
}

.partner-logo {
    text-align: center;
    padding: 15px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* Blog Posts Section */
.blog-posts {
    background-color: #f9f5ff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #f5f5f5;
}

.blog-category {
    font-size: 12px;
    color: var(--text-light);
    max-width: 70%;
}

.blog-date {
    background: var(--gradient);
    color: var(--white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-content h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

/* Footer */
footer {
    background-color: #06474f !important;
    color: var(--white);
}

.footer-top {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-column p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    opacity: 0.8;
}

.footer-column ul li a:hover {
    opacity: 1;
    padding-right: 5px;
}

.newsletter {
    display: flex;
    margin-top: 20px;
}

.newsletter input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
}

.newsletter button {
    padding: 10px 20px;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info p i {
    margin-top: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--gradient);
    transform: translateY(-5px);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .about-us .container {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        flex-direction: column-reverse;
    }

    .testimonial-image {
        height: 200px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
    }
}

header.scrolled {
    width: 98%;
    left: 1%;
    background: #004650bd;
    backdrop-filter: blur(27px);
}

.service-card:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-10px);
}

.section-header p {
    width: 70%;
    text-align: center;
    margin: 14px auto;
}

.service-icon img {
    border-radius: 50%;
    height: 100%;
    width: 100%;
}

.service-icon {
    border-radius: 50%;
    margin: auto;
    border: 3px solid #ffffff;
    height: 10rem;
    width: 10rem;
    margin-bottom: 9px;
}

.services {
    background-color: #f9f5ff;
    background-image: url(/assets/img/sbg.jpg);
    padding-bottom: 15rem;
    margin-bottom: -9rem;
    background-size: 100%;
}

.services a.read-more.nav-link {
    background: #fff0fa;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: auto;
    transition: 0.5s;
    transform: rotate(45deg);
}

.services a.read-more.nav-link:hover {
    transform: rotate(90deg);
}

.services a.read-more.nav-link:hover i {
    transform: scale(1.1);
}

.testimonial-card {
    width: 80%;
    margin: auto;
    box-shadow: none;
}

.skewfooter {
    height: 6rem;
    transform: skewY(2deg);
    background: #06474f;
    position: relative;
    top: -4rem;
    margin-bottom: -4rem;
    margin-top: 2rem;
}

#article-archive-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* رأس السكشن */
.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.archive-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.current-month-btn {
    background: linear-gradient(90deg, #ff6f61, #de4c3e);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.current-month-btn:hover {
    background: linear-gradient(90deg, #de4c3e, #ff6f61);
}

/* حاوية المقالات */
.archive-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* كل مقالة */
.archive-article {
    display: grid;
    grid-template-columns: 4fr 2fr 4fr 2fr;
    /* 4/12, 2/12, 4/12, 2/12 */
    gap: 20px;
    /* background-color: #fff; */
    border-radius: 10px;
    padding: 20px;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    align-items: center;
}

.article-image {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    background-size: cover;
}

/* التاريخ */
.article-date {
    text-align: center;
}

.article-date span {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    display: block;
}

.article-date p {
    margin: 5px 0 0;
    color: #888;
    font-size: 14px;
}

/* المحتوى */
.article-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-content h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
    text-transform: uppercase;
}

.article-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* زر "سطور" */
.article-read-more {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align:center;
}

.article-read-more:hover {
    background-color: #d0d0d0;
}

section#article-archive-section {
    background: url(/assets/img/bbg.jpg);
    max-width: 100%;
}

canvas.particles-js-canvas-el {
    position: absolute;
    width: auto;
    height: auto;
}

section.take-hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

section.history-hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.take-btn {
    font-family: 'Cairo';
    font-size: 14px;
    font-weight: bold;
}

.take-history-table td a.take-btn {
    min-width: 6rem;
}

span.take-badge {
    min-width: 6rem;
    text-align: center;
}

.footer-logo img {
    filter: grayscale(14000) brightness(34.5);
}

.take-hero {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.92), rgba(188, 95, 66, 0.92)),
    url("{{ asset('assets/img/temp/grade-1-bg.jpg') }}") center/cover no-repeat;
    padding: 90px 0 40px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.take-hero .take-hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
    animation: fadeInDown 1s;
}

.take-hero .take-hero-desc {
    font-size: 1.15rem;
    opacity: 0.95;
    animation: fadeInUp 1.2s;
}
