* {
    box-sizing: border-box;
    margin: 0;
    font-family: "Hacen Tehran", sans-serif, Arial, Tahoma;
}

.top-image img {
    position: absolute;
    top: -110px;
    left: 50%;
    transform: translateX(-49.8%);
    width: 100%;
    z-index: -1;
}

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

nav {
    background-color: #ffffff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0px;
    top: 50px;
    width: 90%;
    margin-right: 75px;
    position: relative;
    border-radius: 200px;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav .r-div,
nav .l-div {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav .r-div a img {
    width: 110px;
    height: auto;
    margin-top: 10px;
}

nav a {
    text-decoration: none;
    color: #0f988d;
    transition: color 0.3s ease;
    font-size: 22px;
}

nav a > i {
    color: rgb(82, 81, 81);
}

nav a:hover {
    color: #00a5a5;
}

nav .container .l-div #btn {
    font-size: 16px;
    background-color: #0f988d;
    text-align: center;
    color: white;
    padding: 13px;
    border-radius: 50px;
    border: 0;
    transition: background-color 0.3s ease;
    box-shadow: #333 0px 7px 12px 0.5px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

nav .container .l-div #btn2 {
    background-color: white;
    color: #0f988d;
    padding: 10px 12px;
    border-radius: 50px;
    border: 3px solid #0f988d;
    cursor: pointer;
    transition: background-color 0.7s ease;
    box-shadow: #333 0px 7px 12px 0.5px;
    font-size: 20px;
}

nav button#btn:hover {
    background-color: #009999;
}

nav .nav-item.dropdown {
    list-style: none;
}

nav .nav-item.dropdown .nav-link {
    color: #333;
    font-weight: bold;
}

nav .nav-item.dropdown .nav-link:hover {
    color: #00a5a5;
}

nav .dropdown-menu {
    border-radius: 5px;
}

nav .dropdown-item:hover {
    background-color: #f1f1f1;
    color: #00a5a5;
}

/* ===== Media Queries للـnav والـheader ===== */

/* شاشات متوسطة - أقل من أو تساوي 1200px */
@media (max-width: 1300px) {
    nav {
        width: 95%;
        border-radius: 100px;
        top: 40px;
        margin-right: 30px;
        padding: 14px 20px;
    }

    nav .container {
        display: flex;
    }

    nav .r-div a img {
        width: 90px;
    }

    nav a {
        font-size: 20px;
    }

    nav a > i {
        font-size: 20px;
    }

    nav .container .l-div #btn,
    nav .container .l-div #btn2 {
        width: 150px;
        height: 60px;
        font-size: 18px;
        text-align: center;
    }

    nav .r-div,
    nav .l-div {
        gap: 20px;
    }
}

/* شاشات صغيرة - أقل من أو تساوي 992px */
@media (max-width: 992px) {
    nav {
        width: 98%;
        margin-right: 10px;
        border-radius: 70px;
        top: 30px;
    }

    nav .container {
        display: flex;
    }

    nav .r-div,
    nav .l-div {
        flex-wrap: nowrap;
        gap: 15px;
        justify-content: center;
    }

    nav .r-div a img {
        width: 80px;
        margin-top: 5px;
    }

    nav a {
        font-size: 18px;
    }

    nav a > i {
        font-size: 18px;
    }

    nav .container .l-div #btn,
    nav .container .l-div #btn2 {
        width: 150px;
        height: 60px;
        font-size: 18px;
    }
}

/* شاشات صغيرة جداً (تابلت عمودي) - أقل من أو تساوي 768px */
@media (max-width: 768px) {
    nav {
        width: 100%;
        margin-right: 0;
        border-radius: 50px;
        top: 20px;
        padding: 10px 15px;
    }

    nav .container {
        display: flex;
    }

    nav .r-div,
    nav .l-div {
        width: 100%;
        justify-content: space-between;
        gap: 20px;
    }

    nav .r-div a img {
        width: 80px;
    }

    nav .container .r-div #links {
        display: none;
    }

    nav a {
        font-size: 16px;
        white-space: normal;
        text-align: center;
    }

    nav a > i {
        font-size: 20px;
    }

    nav .container .l-div #btn,
    nav .container .l-div #btn2 {
        width: 150px;
        height: 60px;
        font-size: 18px;
    }
}

/* هواتف صغيرة جداً - أقل من أو تساوي 480px */
@media (max-width: 480px) {
    nav {
        border-radius: 30px;
        top: 10px;
        padding: 10px 10px;
    }

    nav .container {
        display: flex;
    }

    nav .r-div,
    nav .l-div {
        width: 100%;
        justify-content: space-between;
        gap: 15px;
    }

    nav .r-div a img {
        width: 60px;
    }

    nav a {
        font-size: 14px;
        white-space: normal;
    }

    nav a > i {
        font-size: 20px;
    }

    nav .container .l-div #btn,
    nav .container .l-div #btn2 {
        width: 100px;
        height: 40px;
        font-size: 11px;
    }
}

/******************************************************************************************/
#hero-section {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    background: transparent !important;
    box-shadow: none !important;
}

#hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

#hero-section .r-div {
    padding: 0 30px;
    width: 50%;
}

#hero-section .r-div h1 {
    margin-top: 70px;
    font-size: 41px;
    font-weight: bold;
    line-height: 1.2;
    color: black;
}

#hero-section .r-div p {
    font-size: 20px;
    color: rgb(63, 62, 62);
    width: 100%;
    margin-top: 20px;
}

#hero-section .r-div h3 {
    font-size: 28px;
    font-weight: bold;
    color: white;
    padding: 50px 50px 0px 0px;
}

#hero-section .container .r-div a#btn {
    background-color: rgb(241, 241, 241);
    color: black;
    font-size: 30px;
    border-radius: 50px;
    border: 3px solid #656666;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: 50%;
    text-align: center;
    margin-right: 110px;
    margin-top: 25px;
    padding: 15px 20px;
}

#hero-section .l-div {
    width: 50%;
    display: flex;
    justify-content: center;
}

#hero-section .l-div img {
    width: 900px;
}

/* Media Queries for Responsiveness */

/* عند الشاشات الصغيرة (أقل من 1024px) */
@media (max-width: 1200px) {
    #hero-section .container {
        flex-direction: column;
    }

    #hero-section .r-div,
    #hero-section .l-div {
        width: 100%;
        padding: 0;
    }

    /* استخدام order لجعل l-div فوق r-div */
    #hero-section .l-div {
        order: 1;
    }

    #hero-section .r-div {
        order: 2;
    }

    #hero-section .r-div h1 {
        margin-top: 50px;
        margin: 20px -80px;
        text-align: center;
        font-size: 35px;
    }

    #hero-section .r-div p {
        font-size: 20px;
        width: 90%;
        margin: 20px auto;
        text-align: center;
    }

    #hero-section .r-div h3 {
        color: black;
        font-size: 25px;
        margin: 20px -120px;
        text-align: center;
    }

    #hero-section .container .r-div a#btn {
        background-color: #00a5a5;
        color: white;
        font-size: 20px;
        width: 80%;
        margin: 10px auto;
    }

    #hero-section .l-div img {
        width: 1000px;
    }
}

/* عند الشاشات الصغيرة جدًا (أقل من 480px) */
@media (max-width: 768px) {
    #hero-section .r-div h1 {
        margin-top: 30px;
        text-align: center;
        font-size: 35px;
    }

    #hero-section .r-div p {
        font-size: 20px;
        width: 90%;
        text-align: center;
    }

    #hero-section .r-div h3 {
        color: black;
        font-size: 25px;
        text-align: center;
    }

    #hero-section .l-div img {
        width: 100%;
    }
}

/* عند الشاشات الصغيرة جدًا (أقل من 480px) */
@media (max-width: 480px) {
    #hero-section .r-div h1 {
        margin-top: 30px;
        text-align: center;
        font-size: 23px;
    }

    #hero-section .r-div p {
        font-size: 15px;
        width: 90%;
        text-align: center;
    }

    #hero-section .r-div h3 {
        color: black;
        font-size: 15px;
        text-align: center;
    }

    #hero-section .l-div img {
        width: 100% !important;
    }

    #hero-section .container .r-div a#btn {
        background-color: #00a5a5;
        color: white;
        font-size: 15px;
        width: 50%;
        margin: 10px auto;
    }

    #hero-section .l-div img {
        width: 1000px;
    }
}

/******************************************************************************************/
#students .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 3px solid #ddd;
    border-radius: 32px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 60px;
    background-color: #fff;
}

#students .container .r-div {
    width: 20%;
    height: 265px;
}

#students .container .r-div img {
    width: 400px;
    height: 265px;
    border-radius: 20px 80px 20px 80px;
    margin-right: 5px;
}

#students .container .l-div img {
    width: 550px;
    height: 280px;
    margin-top: 46.5px;
    margin-left: -5px;
}

#students .container .c-div {
    position: absolute;
    right: 40%;
}

/* أقل من أو يساوي 1200px */
@media (max-width: 1200px) {
    #students .container {
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    #students .container .r-div {
        order: 1;
        margin-bottom: 50px;
        width: 25%;
        height: auto;
    }

    #students .container .r-div img {
        order: 2;
        width: 300px;
        height: auto;
    }

    #students .container .l-div img {
        display: none;
        width: 400px;
        height: auto;
        margin-top: 30px;
        margin-left: 0;
    }

    #students .container .c-div {
        position: static;
        text-align: center;
        margin: 20px auto;
        width: 90%;
        right: auto;
    }
}

/* أقل من أو يساوي 992px */
@media (max-width: 992px) {
    #students .container {
        flex-direction: column;
        height: auto;
        padding: 20px 10px;
        margin-bottom: 40px;
    }

    #students .container .r-div,
    #students .container .l-div,
    #students .container .c-div {
        width: 100%;
        height: auto;
        margin: 0;
    }

    #students .container .r-div img,
    #students .container .l-div img {
        width: 100%;
        height: auto;
        border-radius: 20px 20px 20px 20px; /* أقل تعقيد للرادياس */
        margin: 0;
    }

    #students .container .c-div {
        position: static;
        margin-top: 20px;
        text-align: center;
    }
}

/* أقل من أو يساوي 576px (هواتف صغيرة) */
@media (max-width: 576px) {
    #students .container {
        padding: 15px 5px;
        margin-bottom: 30px;
    }

    #students .container .r-div img,
    #students .container .l-div img {
        width: 100%;
        height: auto;
        border-radius: 15px;
    }

    #students .container .c-div {
        font-size: 16px;
        padding: 0 10px;
    }
}

/**************************************************************/
#teachers .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 3px solid #ddd;
    border-radius: 24px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 60px;
}

#teachers .container .r-div img {
    width: 550px;
    height: 280px;
    margin-top: 29px;
    margin-right: -2px;
}

#teachers .container .l-div {
    height: 265px;
}

#teachers .container .l-div img {
    width: 400px;
    height: 265px;
    border-radius: 80px 20px 80px 20px;
    margin-left: 5px;
}

#teachers .container .c-div {
    position: absolute;
    left: 40%;
}

/* أقل من أو يساوي 1200px */
@media (max-width: 1200px) {
    #teachers .container {
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    #teachers .container .r-div img {
        display: none;
        width: 450px;
        height: auto;
        margin-top: 20px;
        margin-right: 0;
    }

    #teachers .container .l-div img {
        width: 350px;
        height: auto;
        margin-left: 0;
    }

    #teachers .container .c-div {
        position: static;
        width: 90%;
        margin: 20px auto 0 auto;
        text-align: center;
        left: auto;
    }
}

/* أقل من أو يساوي 992px */
@media (max-width: 992px) {
    #teachers .container {
        flex-direction: column;
        height: auto;
        padding: 20px 10px;
        margin-bottom: 40px;
    }

    #teachers .container .r-div,
    #teachers .container .l-div,
    #teachers .container .c-div {
        width: 100%;
        height: auto;
        margin: 0;
    }

    #teachers .container .r-div img,
    #teachers .container .l-div img {
        width: 100%;
        height: auto;
        border-radius: 24px;
        margin: 0 0 20px 0;
    }

    #teachers .container .c-div {
        position: static;
        margin-top: 20px;
        text-align: center;
    }
}

/* أقل من أو يساوي 576px (هواتف صغيرة) */
@media (max-width: 576px) {
    #teachers .container {
        padding: 15px 5px;
        margin-bottom: 30px;
    }

    #teachers .container .r-div img,
    #teachers .container .l-div img {
        width: 100%;
        height: auto;
        border-radius: 15px;
    }

    #teachers .container .c-div {
        font-size: 16px;
        padding: 0 10px;
    }
}

/**************************************************************/
#Registration-card .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 3px solid #ddd;
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
    padding: 30px 40px;
    margin-bottom: 60px;
    box-sizing: border-box;
}

#Registration-card .container .text h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

#Registration-card .container .text h2 {
    font-size: 25px;
    font-weight: 400;
    color: #666;
    margin: 0;
}

#Registration-card .container .btn a#btn1 {
    background-color: white;
    color: #0f988d;
    padding: 13px 25px;
    border-radius: 50px;
    border: 3px solid #0f988d;
    transition: background-color 0.3s ease;
    box-shadow: #333 0px 7px 12px 0.5px;
    font-size: 22px;
    text-decoration: none;
}

#Registration-card .container .btn a#btn2 {
    background-color: #0f988d;
    color: white;
    padding: 8px 32px;
    border-radius: 50px;
    border: 3px solid #0f988d;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: #333 0px 7px 12px 0.5px;
    font-size: 28px;
    margin-right: 10px;
}

#Registration-card .contaner .btn:hover {
    background-color: #009999;
}

/* أقل من أو يساوي 1200px */
@media (max-width: 1200px) {
    #Registration-card .container {
        height: auto;
        padding: 25px 30px;
        flex-wrap: wrap;
        gap: 20px;
    }

    #Registration-card .container .text h1 {
        font-size: 34px;
    }

    #Registration-card .container .text h2 {
        font-size: 20px;
    }

    #Registration-card .container .btn button#btn1,
    #Registration-card .container .btn button#btn2 {
        width: 100px;
        height: 60px;
        font-size: 16px;
        text-align: center;
    }
}

/* أقل من أو يساوي 992px */
@media (max-width: 992px) {
    #Registration-card .container {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 20px 20px;
    }

    #Registration-card .container .text {
        text-align: center;
        width: 100%;
    }

    #Registration-card .container .text h1 {
        font-size: 28px;
    }

    #Registration-card .container .text h2 {
        font-size: 18px;
    }

    #Registration-card .container .btn {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    #Registration-card .container .btn button#btn1,
    #Registration-card .container .btn button#btn2 {
        width: 140px;
        height: 55px;
        font-size: 16px;
    }
}

/* أقل من أو يساوي 576px */
@media (max-width: 390px) {
    #Registration-card .container {
        padding: 15px 10px;
    }

    #Registration-card .container .text h1 {
        font-size: 24px;
    }

    #Registration-card .container .text h2 {
        font-size: 16px;
    }

    #Registration-card .container .btn button#btn1,
    #Registration-card .container .btn button#btn2 {
        width: 50px;
        height: 20px;
        font-size: 10px;
    }
}

/**************************************************************/
#mudawana-ufuq {
    background: transparent !important;
    box-shadow: none !important;
}

#mudawana-ufuq .container div.head-mudawana h1 {
    margin-top: 35px;
    font-size: 45px;
    font-weight: 500;
    color: black;
}

#mudawana-ufuq .container div.head-mudawana p {
    color: #5b5b5b;
    font-weight: 500;
    font-size: 25px;
    padding: 0 70px;
    margin-top: 10px;
}

#mudawana-ufuq .container .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    padding: 30px 20px;
}

#mudawana-ufuq .container .cards #first-cards {
    width: 100%;
    height: 760px;
    grid-column: span 2;
    grid-row: span 2;
    background-color: white;
    border: 3px solid #ddd;
    border-radius: 80px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#mudawana-ufuq .container .cards #first-cards img {
    width: 100%;
    height: 400px;
    background-repeat: no-repeat;
    border-radius: 80px;
    object-fit: cover;
    background-size: auto;
}

#mudawana-ufuq .container .cards #first-cards .first-card-content {
    padding: 20px;
}

#mudawana-ufuq .container .cards #first-cards .first-card-content p {
    color: #6a6969;
}

#mudawana-ufuq .container .cards #first-cards p#thedate {
    margin-right: 500px;
    color: #6a6969;
}

#rest-cards {
    width: 350px;
    height: 370px;
}

.rest-card-content {
    padding: 5px;
}

#mudawana-ufuq .container .cards .content {
    background-color: white;
    border: 3px solid #ddd;
    border-radius: 80px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#mudawana-ufuq .container .cards .content img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 50px;
}

#mudawana-ufuq .container .cards .content h3 {
    font-weight: bold;
    margin-top: 10px;
}

#mudawana-ufuq .container .cards .content p {
    margin-top: 10px;
    line-height: 1.6;
}

#mudawana-ufuq .container .cards .content:hover {
    transform: translateY(-10px);
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.15);
}

.btn-read-more {
    background-color: #0f988d;
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-read-more:hover {
    background-color: #009999;
}

hr {
    border: 3px solid #f7ebc7;
}

#mudawana-ufuq div.foot-mudawana {
    margin-top: 40px;
}

#mudawana-ufuq div.foot-mudawana h1 {
    text-align: center;
    color: #00a5a5;
    margin-bottom: 15px;
}

#mudawana-ufuq div.foot-mudawana h2 {
    margin-top: 5px;
    text-align: center;
    font-size: 20px;
    color: #373838;
}

#mudawana-ufuq div.foot-mudawana p {
    margin-top: 5px;
    text-align: center;
    font-size: 20px;
    color: #4f4f4f;
}

/* أقل من أو يساوي 1200px */
@media (max-width: 1200px) {
    #mudawana-ufuq .container div.head-mudawana h1 {
        font-size: 38px;
        margin-top: 25px;
    }

    #mudawana-ufuq .container div.head-mudawana p {
        font-size: 20px;
        padding: 0 40px;
    }

    #mudawana-ufuq .container .cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 20px;
        padding: 30px 20px;
    }

    #mudawana-ufuq .container .cards #first-cards {
        height: auto;
        grid-column: span 2;
        grid-row: auto;
        border-radius: 40px;
        padding: 20px;
    }

    #mudawana-ufuq .container .cards #first-cards img {
        height: auto;
        border-radius: 40px;
    }

    #mudawana-ufuq .container .cards #first-cards p#thedate {
        margin-right: 20px;
    }

    #rest-cards {
        width: 100%;
        height: auto;
    }
}

/* أقل من أو يساوي 768px (تابلت وأجهزة صغيرة) */
@media (max-width: 768px) {
    #mudawana-ufuq .container div.head-mudawana h1 {
        font-size: 30px;
        margin-top: 20px;
    }

    #mudawana-ufuq .container div.head-mudawana p {
        font-size: 18px;
        padding: 0 20px;
    }

    #mudawana-ufuq .container .cards {
        display: block;
    }

    #mudawana-ufuq .container .cards .content {
        margin-bottom: 20px;
    }
    #mudawana-ufuq .container .cards .content:hover {
        transform: none;
    }

    #mudawana-ufuq .container .cards #first-cards {
        border-radius: 30px;
    }

    #mudawana-ufuq .container .cards #first-cards img {
        border-radius: 30px;
    }

    #rest-cards {
        width: 100%;
        height: auto;
    }
}

/* أقل من أو يساوي 480px (هواتف صغيرة) */
@media (max-width: 480px) {
    #mudawana-ufuq .container div.head-mudawana h1 {
        font-size: 24px;
        margin-top: 15px;
    }

    #mudawana-ufuq .container div.head-mudawana p {
        font-size: 16px;
        padding: 0 10px;
    }

    #mudawana-ufuq .container .cards {
        grid-template-columns: 1fr;
        padding: 10px 5px;
    }

    #mudawana-ufuq .container .cards #first-cards {
        padding: 15px 10px;
    }

    #mudawana-ufuq .container .cards #first-cards img {
        height: auto;
    }

    #rest-cards {
        width: 100%;
        height: auto;
    }

    #mudawana-ufuq div.foot-mudawana h1,
    #mudawana-ufuq div.foot-mudawana h2,
    #mudawana-ufuq div.foot-mudawana p {
        font-size: 16px;
    }
}

/************************************************************/

footer {
    position: relative;
    width: 100%;
    color: white;
    padding: 40px 20px 180px;
    background-size: cover;
    box-sizing: border-box;
}

.footer-bg-wrapper {
    pointer-events: none !important;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    height: auto;
    overflow: visible;
    z-index: 0;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.footer-bg-wrapper img,
.footer-bg {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    pointer-events: none !important;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: start;
    position: relative;
    top: 180px;
    z-index: 2;
}

.logo-foot img {
    width: 220px;
    height: 220px;
    position: absolute;
    top: 95px;
}

.footer-links,
.media,
.copyright {
    display: block;
}

.footer-links,
.media {
    display: flex;
    justify-content: space-between;
    gap: 20;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.8;
    width: 50%;
    margin-bottom: 20px;
}

footer h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

footer ul li {
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

footer ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 22px;
    display: block;
    text-align: right;
}

footer ul li a:hover {
    color: #d3d1d1;
}

.media {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 314px;
    gap: 18px;
    font-size: 40px;
    align-items: center;
    margin-top: 8px;
    white-space: nowrap;
}

.media a {
    list-style: none;
    text-decoration: none;
    color: black;
}

.media a:hover {
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 5;
    color: #373737;
}

#facebook {
    position: absolute;
    top: 50px;
    right: 330px;
}

#twitter {
    position: absolute;
    top: 30 px;
    right: 360px;
}

#github {
    position: absolute;
    top: 10px;
    right: 410px;
}

#instagram {
    position: absolute;
    top: -10px;
    right: 460px;
}

#whatsapp {
    position: absolute;
    top: -30px;
    right: 500px;
}

.copyright {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    z-index: 10;
}

.copyright p {
    color: black;
    margin: 0;
    font-size: 17px;
    font-weight: normal;
}

@media (max-width: 1200px) {
    footer .container {
        display: none;
    }

    .footer-bg-wrapper {
        display: none;
    }

    .logo-foot img {
        display: none;
        pointer-events: none !important;
    }

    .footer-links {
        display: none;
    }

    .media {
        display: none;
    }

    .copyright {
        display: block;
        background-color: #009999;
        margin-bottom: -20px;
    }

    .copyright p {
        color: black;
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    footer .container {
        display: none;
    }

    .footer-bg-wrapper {
        display: none;
    }

    .logo-foot img {
        display: none;
        pointer-events: none !important;
    }

    .footer-links {
        display: none;
    }

    .media {
        display: none;
    }

    .copyright {
        display: block;
        background-color: #009999;
        margin-bottom: -100px;
    }

    .copyright p {
        color: black;
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    footer .container {
        display: none;
    }

    .footer-bg-wrapper {
        display: none;
        pointer-events: none !important;
    }

    .logo-foot img {
        display: none;
    }

    .footer-links {
        display: none;
    }

    .media {
        display: none;
    }

    .copyright p {
        color: black;
        font-size: 17px;
    }
}

/* ===== NAVBAR PUBLIC ===== */
.main-header {
    background: #fff;
    border-radius: 60px;
    box-shadow: 0 4px 16px rgba(15, 152, 141, 0.08);
    margin: 0 auto 2rem auto;
    width: 80%;
    max-width: 1200px;
    position: relative;
    z-index: 10;
    padding: 0.2rem 0.7rem;
    min-height: 60px;
    transition: background 0.3s, box-shadow 0.3s;
}

.main-header .navbar-nav {
    gap: 0.7rem;
}

.main-header .nav-resp {
    color: #0f988d !important;
    font-size: 1.13rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    padding: 0.3rem 0.7rem;
    border-radius: 30px;
}

.main-header .nav-resp i {
    color: #20c997 !important;
    font-size: 1.2rem;
    margin-left: 0.3rem;
    transition: color 0.2s;
}

.main-header .nav-resp:hover,
.main-header .nav-resp:focus {
    color: #fff !important;
    background: linear-gradient(90deg, #20c997 0%, #0f988d 100%);
}

.main-header .nav-resp:hover i,
.main-header .nav-resp:focus i {
    color: #fff !important;
}

.main-header .nav-link img {
    width: 2.5rem;
    height: 2.5rem;
    margin-left: 0.5rem;
}

.main-header .btn-primary {
    background: linear-gradient(90deg, #20c997 0%, #0f988d 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 1.05rem !important;
    font-weight: bold !important;
    box-shadow: 0 2px 12px rgba(32, 201, 151, 0.13);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}
.main-header .btn-primary:hover {
    background: linear-gradient(90deg, #0f988d 0%, #20c997 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(32, 201, 151, 0.22);
    transform: translateY(-2px) scale(1.03);
}

.main-header .btn-outline-primary {
    background: #fff !important;
    color: #0f988d !important;
    border: 2px solid #0f988d !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 1.05rem !important;
    font-weight: bold !important;
    box-shadow: 0 2px 12px rgba(32, 201, 151, 0.08);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.main-header .btn-outline-primary:hover {
    background: #0f988d !important;
    color: #fff !important;
    border-color: #0f988d !important;
}

.main-header .fa-moon,
.main-header .fa-sun {
    font-size: 1.3rem;
    color: #636060;
    transition: color 0.2s;
}
.main-header .fa-moon:hover,
.main-header .fa-sun:hover {
    color: #20c997;
}

@media (max-width: 1200px) {
    .main-header {
        width: 85%;
    }
}

@media (max-width: 992px) {
    .main-header {
        width: 90%;
        border-radius: 30px;
        padding: 0.2rem 0.2rem;
    }
    .main-header .navbar-nav {
        gap: 0.3rem;
    }
    .main-header .nav-resp {
        font-size: 1rem;
        padding: 0.2rem 0.4rem;
    }
    .main-header .btn-primary,
    .main-header .btn-outline-primary {
        padding: 0.4rem 1rem !important;
        font-size: 0.98rem !important;
    }
}

@media (max-width: 768px) {
    .main-header {
        width: 95%;
        border-radius: 25px;
    }
    .main-header .nav-resp span {
        display: none !important;
    }
    .main-header .nav-link img {
        width: 2rem;
        height: 2rem;
    }
    .main-header .btn-primary,
    .main-header .btn-outline-primary {
        padding: 0.3rem 0.8rem !important;
        font-size: 0.9rem !important;
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .main-header {
        width: 98%;
        border-radius: 18px;
        padding: 0.1rem 0.1rem;
    }
    .main-header .nav-resp span {
        display: none !important;
    }
    .main-header .nav-link img {
        width: 1.8rem;
        height: 1.8rem;
    }
    .main-header .btn-primary,
    .main-header .btn-outline-primary {
        padding: 0.25rem 0.6rem !important;
        font-size: 0.85rem !important;
    }
}

body.dark-mode .main-header {
    background: #181c23 !important;
    color: #e0e0e0 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25) !important;
}
body.dark-mode .main-header .nav-resp {
    color: #20c997 !important;
}
body.dark-mode .main-header .nav-resp:hover,
body.dark-mode .main-header .nav-resp:focus {
    color: #fff !important;
    background: linear-gradient(90deg, #20c997 0%, #0f988d 100%) !important;
}
body.dark-mode .main-header .fa-moon,
body.dark-mode .main-header .fa-sun {
    color: #fff;
}
body.dark-mode .main-header .btn-primary {
    background: linear-gradient(90deg, #20c997 0%, #0f988d 100%) !important;
    color: #fff !important;
}
body.dark-mode .main-header .btn-outline-primary {
    background: #23272f !important;
    color: #20c997 !important;
    border-color: #20c997 !important;
}
body.dark-mode .main-header .btn-outline-primary:hover {
    background: #20c997 !important;
    color: #fff !important;
}

/* ===== MODERN HERO SECTION ===== */
.modern-hero {
    padding: 4rem 0;
    background: transparent;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
    padding-top: 2rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    padding-right: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 2.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(255, 255, 255, 0.4);
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(135deg, #20c997 0%, #0f988d 100%);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.4);
    color: #fff;
    text-decoration: none;
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* ===== DARK MODE HERO SECTION ===== */
body.dark-mode .modern-hero {
    background: transparent;
}

body.dark-mode .hero-title {
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(255, 255, 255, 0.4);
}

body.dark-mode .hero-description {
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

body.dark-mode .hero-subtitle {
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(255, 255, 255, 0.5);
}

body.dark-mode .hero-btn {
    background: linear-gradient(135deg, #20c997 0%, #0f988d 100%);
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .hero-btn:hover {
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.5);
}

body.dark-mode .hero-image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== MODERN SECTIONS ===== */
.modern-section {
    padding: 5rem 0;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.section-text.center {
    text-align: center;
    padding: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f988d;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.7;
}

.section-image {
    text-align: center;
}

.section-image.left {
    text-align: left;
}

.section-image.right {
    text-align: right;
}

.image-wrapper {
    display: inline-block;
    padding: 1rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

/* ===== MODERN REGISTRATION ===== */
.modern-registration {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f988d 0%, #20c997 100%);
    color: #fff;
    text-align: center;
}

.registration-content {
    max-width: 800px;
    margin: 0 auto;
}

.registration-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.registration-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.registration-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-primary {
    background: #fff;
    color: #0f988d;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    color: #0f988d;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #0f988d;
    transform: translateY(-3px);
    text-decoration: none;
}

/* ===== MODERN BLOG ===== */
.modern-blog {
    padding: 5rem 0;
    background: #fff;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0f988d;
    margin-bottom: 1rem;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 152, 141, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f988d;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-title-small {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f988d;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-description {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-block;
    color: #20c997;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #0f988d;
    text-decoration: none;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f988d;
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.3rem;
    color: #20c997;
    margin-bottom: 2rem;
    font-weight: 600;
}

.about-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.8;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #20c997 50%,
        transparent 100%
    );
    margin: 3rem 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
    }

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

    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

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

    .btn-primary,
    .btn-secondary {
        min-width: 250px;
    }
}

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

    .section-title {
        font-size: 2rem;
    }

    .blog-title {
        font-size: 2.5rem;
    }

    .registration-title {
        font-size: 2.5rem;
    }

    .about-title {
        font-size: 2rem;
    }

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

@media (max-width: 576px) {
    .modern-hero {
        padding: 2rem 0;
    }

    .modern-section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        min-width: 200px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===== DARK MODE SUPPORT ===== */
body.dark-mode .public-header-bg {
    content: url("/assets/images/svg/Vector 70.png");
    pointer-events: none !important;
}
body.dark-mode .public-footer-bg {
    pointer-events: none !important;
    content: url("/assets/images/svg/Vector 71.png");
}

body.dark-mode .modern-hero {
    background: transparent;
}

body.dark-mode .modern-section:nth-child(even) {
    background: #23272f;
}

body.dark-mode .hero-title {
    color: #ffffff;
}

body.dark-mode .hero-description,
body.dark-mode .section-description,
body.dark-mode .blog-subtitle,
body.dark-mode .about-description {
    color: #ffffff;
}

body.dark-mode .section-title,
body.dark-mode .blog-title,
body.dark-mode .about-title {
    color: #ffffff;
}

body.dark-mode .blog-card {
    background: #23272f;
    border-color: #2d3238;
}

body.dark-mode .card-title,
body.dark-mode .card-title-small {
    color: #ffffff;
}

body.dark-mode .card-description {
    color: #ffffff;
}

body.dark-mode .image-wrapper {
    background: #23272f;
}

body.dark-mode .modern-registration {
    background: linear-gradient(135deg, #20c997 0%, #0f988d 100%);
}

/* ===== DARK MODE FOR HERO SECTION ===== */
body.dark-mode #hero-section .r-div h1 {
    color: #ffffff !important;
}

body.dark-mode #hero-section .r-div p {
    color: #e0e0e0 !important;
}

body.dark-mode #hero-section .r-div h3 {
    color: #ffffff !important;
}

/* ===== DARK MODE FOR BUTTONS ===== */
body.dark-mode .btn-read-more {
    background-color: #20c997 !important;
    color: #ffffff !important;
}

body.dark-mode .btn-read-more:hover {
    background-color: #17a2b8 !important;
}

/* ===== DARK MODE FOR HR ===== */
body.dark-mode hr {
    border: 3px solid #333a44 !important;
}

/* ===== DARK MODE FOR CONTAINER ===== */
body.dark-mode .container {
    background: transparent !important;
}

/* ===== DARK MODE FOR BACKGROUND ===== */
body.dark-mode {
    background: #07121d !important;
}

/* ========== SLUG PAGES CONTENT STYLES ========== */
/* (تم دمج المحتوى الداخلي من slug-unified.css) */

/* ===== HERO SECTION FOR SLUG PAGES ===== */
#hero-section {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    background: transparent !important;
    box-shadow: none !important;
}

#hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

#hero-section .r-div {
    padding: 0 30px;
    width: 50%;
}

#hero-section .r-div h1 {
    margin-top: 70px;
    font-size: 41px;
    font-weight: bold;
    line-height: 1.2;
    color: black;
}

#hero-section .r-div p {
    font-size: 20px;
    color: rgb(63, 62, 62);
    width: 100%;
    margin-top: 20px;
}

#hero-section .r-div h3 {
    font-size: 28px;
    font-weight: bold;
    color: white;
    padding: 50px 50px 0px 0px;
}

#hero-section .container .r-div a#btn {
    background-color: rgb(241, 241, 241);
    color: black;
    font-size: 30px;
    border-radius: 50px;
    border: 3px solid #656666;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: 50%;
    text-align: center;
    margin-right: 110px;
    margin-top: 25px;
    padding: 15px 20px;
}

#hero-section .l-div {
    width: 50%;
    display: flex;
    justify-content: center;
}

#hero-section .l-div img {
    width: 900px;
}

/* ===== STUDENTS SECTION ===== */
#students .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 3px solid #ddd;
    border-radius: 32px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 60px;
    background-color: #fff;
}

#students .container .r-div {
    width: 20%;
    height: 265px;
}

#students .container .r-div img {
    width: 400px;
    height: 265px;
    border-radius: 20px 80px 20px 80px;
    margin-right: 5px;
}

#students .container .l-div img {
    width: 550px;
    height: 280px;
    margin-top: 46.5px;
    margin-left: -5px;
}

#students .container .c-div {
    position: absolute;
    right: 40%;
}

/* ===== TEACHERS SECTION ===== */
#teachers .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 3px solid #ddd;
    border-radius: 24px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 60px;
}

#teachers .container .r-div img {
    width: 550px;
    height: 280px;
    margin-top: 29px;
    margin-right: -2px;
}

#teachers .container .l-div {
    height: 265px;
}

#teachers .container .l-div img {
    width: 400px;
    height: 265px;
    border-radius: 80px 20px 80px 20px;
    margin-left: 5px;
}

#teachers .container .c-div {
    position: absolute;
    left: 40%;
}

/* ===== REGISTRATION CARD ===== */
#Registration-card .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 3px solid #ddd;
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
    padding: 30px 40px;
    margin-bottom: 60px;
    box-sizing: border-box;
}

#Registration-card .container .text h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

#Registration-card .container .text h2 {
    font-size: 25px;
    font-weight: 400;
    color: #666;
    margin: 0;
}

#Registration-card .container .btn a#btn1 {
    background-color: white;
    color: #0f988d;
    padding: 13px 25px;
    border-radius: 50px;
    border: 3px solid #0f988d;
    transition: background-color 0.3s ease;
    box-shadow: #333 0px 7px 12px 0.5px;
    font-size: 22px;
    text-decoration: none;
}

#Registration-card .container .btn a#btn2 {
    background-color: #0f988d;
    color: white;
    padding: 8px 32px;
    border-radius: 50px;
    border: 3px solid #0f988d;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: #333 0px 7px 12px 0.5px;
    font-size: 28px;
    margin-right: 10px;
}

#Registration-card .contaner .btn:hover {
    background-color: #009999;
}

/* ===== MUDWANA UFUQ SECTION ===== */
#mudawana-ufuq {
    background: transparent !important;
    box-shadow: none !important;
}

#mudawana-ufuq .container div.head-mudawana h1 {
    margin-top: 35px;
    font-size: 45px;
    font-weight: 500;
    color: black;
}

#mudawana-ufuq .container div.head-mudawana p {
    color: #5b5b5b;
    font-weight: 500;
    font-size: 25px;
    padding: 0 70px;
    margin-top: 10px;
}

#mudawana-ufuq .container .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    padding: 30px 20px;
}

#mudawana-ufuq .container .cards #first-cards {
    width: 100%;
    height: 760px;
    grid-column: span 2;
    grid-row: span 2;
    background-color: white;
    border: 3px solid #ddd;
    border-radius: 80px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#mudawana-ufuq .container .cards #first-cards img {
    width: 100%;
    height: 400px;
    background-repeat: no-repeat;
    border-radius: 80px;
    object-fit: cover;
    background-size: auto;
}

#mudawana-ufuq .container .cards #first-cards .first-card-content {
    padding: 20px;
}

#mudawana-ufuq .container .cards #first-cards .first-card-content p {
    color: #6a6969;
}

#mudawana-ufuq .container .cards #first-cards p#thedate {
    margin-right: 500px;
    color: #6a6969;
}

#rest-cards {
    width: 350px;
    height: 370px;
}

.rest-card-content {
    padding: 5px;
}

#mudawana-ufuq .container .cards .content {
    background-color: white;
    border: 3px solid #ddd;
    border-radius: 80px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#mudawana-ufuq .container .cards .content img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 50px;
}

#mudawana-ufuq .container .cards .content h3 {
    font-weight: bold;
    margin-top: 10px;
}

#mudawana-ufuq .container .cards .content p {
    margin-top: 10px;
    line-height: 1.6;
}

#mudawana-ufuq .container .cards .content:hover {
    transform: translateY(-10px);
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.15);
}

.btn-read-more {
    background-color: #0f988d;
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-read-more:hover {
    background-color: #009999;
}

hr {
    border: 3px solid #f7ebc7;
}

#mudawana-ufuq div.foot-mudawana {
    margin-top: 40px;
}

#mudawana-ufuq div.foot-mudawana h1 {
    text-align: center;
    color: #00a5a5;
    margin-bottom: 15px;
}

#mudawana-ufuq div.foot-mudawana h2 {
    margin-top: 5px;
    text-align: center;
    font-size: 20px;
    color: #373838;
}

#mudawana-ufuq div.foot-mudawana p {
    margin-top: 5px;
    text-align: center;
    font-size: 20px;
    color: #4f4f4f;
}

/* ===== RESPONSIVE DESIGN FOR SLUG PAGES ===== */

/* Hero Section Responsive */
@media (max-width: 1200px) {
    #hero-section .container {
        flex-direction: column;
    }

    #hero-section .r-div,
    #hero-section .l-div {
        width: 100%;
        padding: 0;
    }

    #hero-section .l-div {
        order: 1;
    }

    #hero-section .r-div {
        order: 2;
    }

    #hero-section .r-div h1 {
        margin-top: 50px;
        margin: 20px -80px;
        text-align: center;
        font-size: 35px;
    }

    #hero-section .r-div p {
        font-size: 20px;
        width: 90%;
        margin: 20px auto;
        text-align: center;
    }

    #hero-section .r-div h3 {
        color: black;
        font-size: 25px;
        margin: 20px -120px;
        text-align: center;
    }

    #hero-section .container .r-div a#btn {
        background-color: #00a5a5;
        color: white;
        font-size: 20px;
        width: 80%;
        margin: 10px auto;
    }

    #hero-section .l-div img {
        width: 1000px;
    }
}

@media (max-width: 768px) {
    #hero-section .r-div h1 {
        margin-top: 30px;
        text-align: center;
        font-size: 35px;
    }

    #hero-section .r-div p {
        font-size: 20px;
        width: 90%;
        text-align: center;
    }

    #hero-section .r-div h3 {
        color: black;
        font-size: 25px;
        text-align: center;
    }

    #hero-section .l-div img {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #hero-section .r-div h1 {
        margin-top: 30px;
        text-align: center;
        font-size: 23px;
    }

    #hero-section .r-div p {
        font-size: 15px;
        width: 90%;
        text-align: center;
    }

    #hero-section .r-div h3 {
        color: black;
        font-size: 15px;
        text-align: center;
    }

    #hero-section .l-div img {
        width: 100% !important;
    }

    #hero-section .container .r-div a#btn {
        background-color: #00a5a5;
        color: white;
        font-size: 15px;
        width: 50%;
        margin: 10px auto;
    }

    #hero-section .l-div img {
        width: 1000px;
    }
}

/* Students Section Responsive */
@media (max-width: 1200px) {
    #students .container {
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    #students .container .r-div {
        order: 1;
        margin-bottom: 50px;
        width: 25%;
        height: auto;
    }

    #students .container .r-div img {
        order: 2;
        width: 300px;
        height: auto;
    }

    #students .container .l-div img {
        display: none;
        width: 400px;
        height: auto;
        margin-top: 30px;
        margin-left: 0;
    }

    #students .container .c-div {
        position: static;
        text-align: center;
        margin: 20px auto;
        width: 90%;
        right: auto;
    }
}

@media (max-width: 992px) {
    #students .container {
        flex-direction: column;
        height: auto;
        padding: 20px 10px;
        margin-bottom: 40px;
    }

    #students .container .r-div,
    #students .container .l-div,
    #students .container .c-div {
        width: 100%;
        height: auto;
        margin: 0;
    }

    #students .container .r-div img,
    #students .container .l-div img {
        width: 100%;
        height: auto;
        border-radius: 20px 20px 20px 20px;
        margin: 0;
    }

    #students .container .c-div {
        position: static;
        margin-top: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    #students .container {
        padding: 15px 5px;
        margin-bottom: 30px;
    }

    #students .container .r-div img,
    #students .container .l-div img {
        width: 100%;
        height: auto;
        border-radius: 15px;
    }

    #students .container .c-div {
        font-size: 16px;
        padding: 0 10px;
    }
}

/* Teachers Section Responsive */
@media (max-width: 1200px) {
    #teachers .container {
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    #teachers .container .r-div img {
        display: none;
        width: 450px;
        height: auto;
        margin-top: 20px;
        margin-right: 0;
    }

    #teachers .container .l-div img {
        width: 350px;
        height: auto;
        margin-left: 0;
    }

    #teachers .container .c-div {
        position: static;
        width: 90%;
        margin: 20px auto 0 auto;
        text-align: center;
        left: auto;
    }
}

@media (max-width: 992px) {
    #teachers .container {
        flex-direction: column;
        height: auto;
        padding: 20px 10px;
        margin-bottom: 40px;
    }

    #teachers .container .r-div,
    #teachers .container .l-div,
    #teachers .container .c-div {
        width: 100%;
        height: auto;
        margin: 0;
    }

    #teachers .container .r-div img,
    #teachers .container .l-div img {
        width: 100%;
        height: auto;
        border-radius: 24px;
        margin: 0 0 20px 0;
    }

    #teachers .container .c-div {
        position: static;
        margin-top: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    #teachers .container {
        padding: 15px 5px;
        margin-bottom: 30px;
    }

    #teachers .container .r-div img,
    #teachers .container .l-div img {
        width: 100%;
        height: auto;
        border-radius: 15px;
    }

    #teachers .container .c-div {
        font-size: 16px;
        padding: 0 10px;
    }
}

/* Registration Card Responsive */
@media (max-width: 1200px) {
    #Registration-card .container {
        height: auto;
        padding: 25px 30px;
        flex-wrap: wrap;
        gap: 20px;
    }

    #Registration-card .container .text h1 {
        font-size: 34px;
    }

    #Registration-card .container .text h2 {
        font-size: 20px;
    }

    #Registration-card .container .btn button#btn1,
    #Registration-card .container .btn button#btn2 {
        width: 100px;
        height: 60px;
        font-size: 16px;
        text-align: center;
    }
}

@media (max-width: 992px) {
    #Registration-card .container {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 20px 20px;
    }

    #Registration-card .container .text {
        text-align: center;
        width: 100%;
    }

    #Registration-card .container .text h1 {
        font-size: 28px;
    }

    #Registration-card .container .text h2 {
        font-size: 18px;
    }

    #Registration-card .container .btn {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    #Registration-card .container .btn button#btn1,
    #Registration-card .container .btn button#btn2 {
        width: 140px;
        height: 55px;
        font-size: 16px;
    }
}

@media (max-width: 390px) {
    #Registration-card .container {
        padding: 15px 10px;
    }

    #Registration-card .container .text h1 {
        font-size: 24px;
    }

    #Registration-card .container .text h2 {
        font-size: 16px;
    }

    #Registration-card .container .btn button#btn1,
    #Registration-card .container .btn button#btn2 {
        width: 50px;
        height: 20px;
        font-size: 10px;
    }
}

/* Mudawana Ufuq Responsive */
@media (max-width: 1200px) {
    #mudawana-ufuq .container div.head-mudawana h1 {
        font-size: 38px;
        margin-top: 25px;
    }

    #mudawana-ufuq .container div.head-mudawana p {
        font-size: 20px;
        padding: 0 40px;
    }

    #mudawana-ufuq .container .cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 20px;
        padding: 30px 20px;
    }

    #mudawana-ufuq .container .cards #first-cards {
        height: auto;
        grid-column: span 2;
        grid-row: auto;
        border-radius: 40px;
        padding: 20px;
    }

    #mudawana-ufuq .container .cards #first-cards img {
        height: auto;
        border-radius: 40px;
    }

    #mudawana-ufuq .container .cards #first-cards p#thedate {
        margin-right: 20px;
    }

    #rest-cards {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    #mudawana-ufuq .container div.head-mudawana h1 {
        font-size: 30px;
        margin-top: 20px;
    }

    #mudawana-ufuq .container div.head-mudawana p {
        font-size: 18px;
        padding: 0 20px;
    }

    #mudawana-ufuq .container .cards {
        display: block;
    }

    #mudawana-ufuq .container .cards .content {
        margin-bottom: 20px;
    }
    #mudawana-ufuq .container .cards .content:hover {
        transform: none;
    }

    #mudawana-ufuq .container .cards #first-cards {
        border-radius: 30px;
    }

    #mudawana-ufuq .container .cards #first-cards img {
        border-radius: 30px;
    }

    #rest-cards {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    #mudawana-ufuq .container div.head-mudawana h1 {
        font-size: 24px;
        margin-top: 15px;
    }

    #mudawana-ufuq .container div.head-mudawana p {
        font-size: 16px;
        padding: 0 10px;
    }

    #mudawana-ufuq .container .cards {
        grid-template-columns: 1fr;
        padding: 10px 5px;
    }

    #mudawana-ufuq .container .cards #first-cards {
        padding: 15px 10px;
    }

    #mudawana-ufuq .container .cards #first-cards img {
        height: auto;
    }

    #rest-cards {
        width: 100%;
        height: auto;
    }

    #mudawana-ufuq div.foot-mudawana h1,
    #mudawana-ufuq div.foot-mudawana h2,
    #mudawana-ufuq div.foot-mudawana p {
        font-size: 16px;
    }
}

/* ===== ENHANCED TRANSITIONS AND INTERACTIONS ===== */

/* Smooth Button Transitions */
.btn-primary,
.btn-secondary,
.card-link,
.registration-buttons a,
.registration-buttons button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.btn-secondary:hover,
.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 152, 141, 0.15);
}

.btn-primary:active,
.btn-secondary:active,
.card-link:active {
    transform: translateY(0);
    transition: all 0.1s;
}

/* Button Ripple Effect */
.btn-primary::before,
.btn-secondary::before,
.card-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.card-link:hover::before {
    width: 300px;
    height: 300px;
}

/* Enhanced Card Interactions */
.blog-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card .card-image img {
    transition: transform 0.3s ease;
}

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

/* Smooth Page Transitions */
body {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* Loading States */
.btn-primary.loading,
.btn-secondary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after,
.btn-secondary.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Focus States for Accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.card-link:focus {
    outline: 2px solid #0f988d;
    outline-offset: 2px;
}

/* Enhanced Button Groups */
.registration-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.registration-buttons a,
.registration-buttons button {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

/* Responsive Button Adjustments */
@media (max-width: 768px) {
    .registration-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .registration-buttons a,
    .registration-buttons button {
        width: 100%;
        max-width: none;
    }
}

/* Improved Link States */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: #0f988d;
}

/* Enhanced Card Interactions */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link::after {
    content: "→";
    transition: transform 0.3s ease;
}

.card-link:hover::after {
    transform: translateX(4px);
}

/* Loading Animation for Forms */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #0f988d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Mobile Interactions */
@media (max-width: 768px) {
    .btn-primary:active,
    .btn-secondary:active,
    .card-link:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    .blog-card:active {
        transform: scale(0.98);
    }
}

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }

    .card-link {
        text-decoration: underline;
    }
}

/* Print Styles */
@media print {
    .floating-chat-btn,
    .chat-widget-ufuqq {
        display: none !important;
    }

    .btn-primary,
    .btn-secondary {
        border: 1px solid #000;
        background: transparent !important;
        color: #000 !important;
    }
}

/* Ripple Effect for Buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Button States */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.card-link:focus-visible {
    outline: 3px solid #0f988d;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(15, 152, 141, 0.1);
}

/* Page Transition Effects */
.page-transitioning {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Keyboard Navigation Styles */
.keyboard-navigation *:focus {
    outline: 2px solid #0f988d !important;
    outline-offset: 2px !important;
}

/* Enhanced Form Interactions */
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0f988d;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(15, 152, 141, 0.1);
}

/* Enhanced Chat Widget */
.chat-widget-ufuqq {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chat-widget-ufuqq .chat-header {
    background: linear-gradient(135deg, #0f988d 0%, #0b6e6b 100%);
}

/* Smooth Hover Transitions */
.blog-card,
.btn-primary,
.btn-secondary,
.card-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Focus Indicators */
.btn-primary:focus,
.btn-secondary:focus,
.card-link:focus {
    box-shadow: 0 0 0 3px rgba(15, 152, 141, 0.3);
}

/* Improved Button Groups */
.registration-buttons {
    gap: 1rem;
}

.registration-buttons a,
.registration-buttons button {
    position: relative;
    overflow: hidden;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 480px) {
    .registration-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .registration-buttons a,
    .registration-buttons button {
        width: 100%;
        text-align: center;
    }

    .blog-card {
        margin-bottom: 1.5rem;
    }
}

/* ===== DARK MODE FOR BLOG SHOW PAGE ===== */
body.dark-mode .blog-hero-card {
    background: #23272f !important;
    box-shadow: 0 2px 18px rgba(15,152,141,0.13) !important;
}
body.dark-mode .blog-hero-card .hero-title,
body.dark-mode .blog-hero-card .blog-meta,
body.dark-mode .blog-hero-card .blog-content-body {
    color: #fff !important;
}
body.dark-mode .blog-hero-card .blog-category {
    background: #1a1f2c !important;
    color: #20c997 !important;
}
body.dark-mode .blog-hero-card .blog-date {
    color: #a0a3a9 !important;
}

body.dark-mode .other-blogs-grid > a > div {
    background: #23272f !important;
    color: #fff !important;
    border: 1px solid #2d3238 !important;
    box-shadow: 0 2px 10px rgba(15,152,141,0.13) !important;
}
body.dark-mode .other-blogs-grid .blog-category {
    background: #1a1f2c !important;
    color: #20c997 !important;
}
body.dark-mode .other-blogs-grid .blog-date {
    color: #a0a3a9 !important;
}
body.dark-mode .other-blogs-grid .card-title-small,
body.dark-mode .other-blogs-grid .card-description {
    color: #fff !important;
}

body.dark-mode footer .media a {
    color: #fff !important;
}
body.dark-mode footer .media a:hover {
    color: #20c997 !important;
}

body.dark-mode footer .copyright p {
    color: #fff !important;
}
