/* Your custom css codes start here: */
:root {
  --primary: #052B4A;
  --primary-light: #0A4D7A;
  --primary-dark: #021626;
  --secondary: #FF9D42;
  --secondary-light: #FFBB75;
  --secondary-dark: #E67E21;
  --primary-light-rgb: 10, 77, 122;
  --secondary-rgb: 255, 157, 66;
  --text-light: #ffffff;
  --text-dark: #0A2E3B;
  --text-muted: #6C7A89;
  --background-light: #EDF2F7;
  --background-white: #ffffff;
  --accent-teal: #00B5AD;
  --accent-blue: #3498DB;
  --accent-success: #2ECC71;
  --accent-warning: #F1C40F;
  --accent-danger: #E74C3C;
  --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.07);
  --shadow-hard: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --font-main: 'Poppins', sans-serif;
  --header-height: 80px;
  --animation-slow: 18s;
  --animation-medium: 12s;
  --animation-fast: 6s;
  --blur-amount: 80px;
  --glow-size: 10px;
  --glow-color-primary: rgba(5, 43, 74, 0.6);
  --glow-color-secondary: rgba(255, 157, 66, 0.6);
  --glass-blur: 15px;
  --glass-opacity: 0.8;
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}


@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Amiri:wght@400;700&display=swap');
.service_home_page img {
    max-width: 70px;
}

.electronic_services_colleges {
    text-align: center;
    margin-bottom: 12px;
    background: #40689b;
    padding: 10px 0;
    color: #fff;
    margin-top: 30px;
}

.upcoming_events,
.curricula_colleges {
    text-align: center;
    margin-bottom: 5px;
    background: #40689b;
    padding: 10px 0;
    color: #fff;
    display: block;
    text-decoration: none !important;
    transition: 0.2s;
}

.padding_left {
    padding-left: 2px;
}

.padding_right {
    padding-right: 2px;
}

.service_home_page {
    text-align: center;
    border: 2px solid #e0e0e0;
    padding: 15px 0;
    margin-bottom: 4px;
    display: block;
    text-decoration: none !important;
    color: #656565;
    transition: .2s;
    background: #fff;
}


.service_home_page .title_service {
    margin-top: 9px px;
}

.service_home_page:hover {
    background: #e0af62;
    color: #fff;
}

*,
body,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Tajawal", Tajawal, Tajawal;
}


html[dir="rtl"] ul.list li {
    padding-right: 30px;
}


html[dir="rtl"] ul.list li:before {
    margin-right: 10px;
    right: 0;
}


.section-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    background-color: #40689b;
    padding: 10px 25px;
    color: #fff;
}

.section-heading h5 {
    color: #fff;
}


.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}


.c-dashboardInfo {
    margin-bottom: 15px;
}

.c-dashboardInfo .wrap {
    background: #ffffff;
    box-shadow: 2px 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 7px;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 40px 25px 20px;
    height: 100%;
}

.c-dashboardInfo__title,
.c-dashboardInfo__subInfo {
    color: #6c6c6c;
    font-size: 1.18em;
    font-family: Cairo;
}

.c-dashboardInfo span {
    display: block;
}

.c-dashboardInfo__count {
    font-weight: 600;
    font-size: 2.2em;
    line-height: 64px;
    color: #323c43;
    font-family: Cairo;
}

.c-dashboardInfo .wrap:after {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    content: "";
}


.c-dashboardInfo:nth-child(1) .wrap:after {
    background: linear-gradient(82.59deg, #121f27 0%, #01a3de 100%);
}

.MuiSvgIcon-root-19 {
    fill: currentColor;
    width: 1em;
    height: 1em;
    display: inline-block;
    font-size: 24px;
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    user-select: none;
    flex-shrink: 0;
}

.tableres {
    margin: -20px 0 0 0;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: table;
}


.tableres .row {
    display: table-row;
    background: #f6f6f6;
    text-align: center;
}

.tableres .row:nth-of-type(odd) {
    background: #e9e9e9;
}

.tableres .row.header {
    font-weight: 900;
    color: #ffffff;
    background: #ea6153;
}

.tableres .row.green {
    background: linear-gradient(82.59deg, #00c48c 0%, #00a173 100%);
}

.tableres .row.blue {
    background: #2980b9;
}

.tableres .cell {
    padding: 6px 12px;
    display: table-cell;
}

.breaking_news {
    width: 100%;
    font-family: Cairo;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: -40px;
}

.border_hl {
    padding: 1px;
    background-color: #D6002A;
    /* gold */
    /* Single pixel data uri image http://jsfiddle.net/LPxrT/ 
/* background-image: gold, gold, white */
    background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAANYAKv///yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=='), url('data:image/gif;base64,R0lGODlhAQABAPAAANYAKv///yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=='), url('data:image/gif;base64,R0lGODlhAQABAPAAAP///////yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==');
    background-repeat: no-repeat;
    background-size: 0 2px, 0 100%, 0% 2px;
    background-position: top center, top center, bottom center;
    -webkit-animation: drawBorderFromCenter 4s infinite;
}

.breaking_news .label {
    padding: 8px 15px;
    background: #D6002A;
    color: #FFF;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.news_title {
    padding: 5px 10px;
    background: #FFF;
    width: 100%;
    border: 1px solid #CCC;
}

/* Ripple magic */
.breaking_news .ripple {
    position: relative;
    overflow: hidden;
}

.breaking_news .ripple:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, .5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }

    20% {
        transform: scale(25, 25);
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.ripple::after {
    animation: ripple 1.5s ease-out infinite;
}


/* Borderr Highlight Effect */

/* Chrome, Safari, Opera */
@-webkit-keyframes drawBorderFromCenter {
    0% {
        background-size: 0 2px, 0 0, 100% 100%;
    }

    20% {
        background-size: 100% 2px, 100% 0, 100% 100%;
    }

    66% {
        background-size: 100% 2px, 100% 98%, 100% 100%;
    }

    99% {
        background-size: 100% 2px, 100% 98%, 0 2px;
    }
}

@media screen and (max-width: 768px) {
    #header img {
        margin-left: 10px;
        margin-top: 0px;
    }
}

@media only screen and (min-width: 600px) {
    .imgofnew {
        height: 155px;
    }
}



.top-line {
    font-family: Lobster, Cairo;
    font-weight: 400;
    font-size: 2.5em;
    text-transform: capitalize;
    /*text-shadow: 3px 3px #6D4C41;
    color: rgb(253, 248, 228);*/
    text-shadow: 3px 3px rgb(229, 229, 229);
    color: #3a584c;
}

.hr2 {
    border: none;
    border-top: medium double grey;
    color: grey;
    overflow: visible;
    text-align: center;
    width: 200px;
    margin: 20px auto;
}

.hr2:after {
    background: white;
    content: "\0025C6";
    display: inline-block;
    font-size: 1.4em;
    position: relative;
    top: -.80em;
}

#loading {
    display: inline-block;
    margin-top: 10px;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    border-top-color: #00815f;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}


.publication-card,
.card1 {
    width: 100%;
    border-radius: 1rem;
    background: white;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    color: #434343;
    display: inline-block;
    margin: 8px;
}

.publication-card .card__container,
.card1 .card__container {
    padding: 2rem;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 1rem;
    position: relative;
    height: 230px;
}

.publication-card .card__header,
.card1 .card__header {
    margin-top: 10px;
    margin-bottom: 1rem;
    font-family: "Playfair Display", serif;
}

.publication-card .card__body,
.card1 .card__body {
    font-family: "Roboto", sans-serif;
}





.card1::after {
    background: #064662;
}

@media screen and (min-width: 600px) {

    .card,
    .card1 {
        min-height: 250px;
    }
}


:root {
    --secondary: #FF9D42;
    --secondary-light: #FFB676;
    --secondary-dark: #E67E21;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f8f8f8;
    --bg-dark: #222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    direction: rtl;
    position: relative;
    overflow-x: hidden;
}

.container1 {
    width: 100%;
    padding: 40px 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.events-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.events-header h1 {
    font-size: 3.5rem;
    color: var(--secondary-dark);
    margin-bottom: 15px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    font-weight: 800;
    text-shadow: 2px 2px 0px rgba(255, 157, 66, 0.1);
}

.events-header h1::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid var(--secondary-light);
    border-radius: 50%;
    top: -15px;
    right: -30px;
    opacity: 0.3;
    z-index: -1;
}

.events-header h1::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--secondary), transparent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.month-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.month-selector {
    position: relative;
    background: linear-gradient(to left, rgba(255, 157, 66, 0.05), rgba(255, 182, 118, 0.1), rgba(255, 157, 66, 0.05));
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 3px 15px rgba(230, 126, 33, 0.05);
}

.month-selector .current-month {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 20px;
    color: var(--secondary-dark);
    background: linear-gradient(45deg, var(--secondary-dark), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 0px 1px rgba(230, 126, 33, 0.1);
}

.month-selector button {
    background: none;
    border: 2px solid var(--secondary-light);
    font-size: 1.2rem;
    color: var(--secondary);
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(230, 126, 33, 0.1);
}

.month-selector button:hover {
    background-color: var(--secondary);
    color: white;
    transform: scale(1.05);
}
/* 
.events-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 1400px; 
} 
*/

.event-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(230, 126, 33, 0.08);
    transition: all 0.3s ease; /* Smoother transition */
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 157, 66, 0.1);
    margin-bottom: 10px;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(230, 126, 33, 0.15);
}

.scroll-indicator {
    display: none;
}

.events-grid-container1 {
    /* width: 100%;
    display: flex;
    justify-content: center; */
}

.fade-edge {
    display: none;
}

.event-date {
    background: linear-gradient(45deg, var(--secondary-dark), var(--secondary));
    color: #fff;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.event-date:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, 30%);
}

.event-date .month {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    font-family: 'Amiri', serif;
}

.event-date .day {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.event-date .day:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.event-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 20px;
    line-height: 1.5;
    position: relative;
    padding-right: 15px;
}

.event-title:before {
    content: '';
    position: absolute;
    top: 5px;
    right: 0;
    width: 5px;
    height: 80%;
    background: var(--secondary);
    border-radius: 5px;
}

.event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-title a:hover {
    color: #8B4513;
}

.event-info {
    margin-bottom: 20px;
    flex-grow: 1;
}

.event-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 157, 66, 0.05);
}

.event-meta:hover {
    background-color: rgba(255, 157, 66, 0.1);
    transform: translateX(-5px);
}

.event-meta i {
    margin-left: 12px;
    color: var(--secondary);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.event-meta span {
    font-weight: 500;
}

.add-calendar {
    background-color: transparent;
    color: var(--secondary-dark);
    border: 2px solid var(--secondary);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    text-align: center;
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.add-calendar:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-dark), var(--secondary));
    transition: width 0.4s ease;
    z-index: -1;
}

.add-calendar:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 33, 0.2);
}

.add-calendar:hover:before {
    width: 100%;
}

.see-more-container1 {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.see-more {
    background: linear-gradient(45deg, var(--secondary-dark), var(--secondary));
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease; /* Simpler transition, no animation */
    font-family: 'Tajawal', sans-serif;
    font-size: 1.2rem;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(230, 126, 33, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: none !important; /* Remove animation */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .events-grid {
        max-width: 100%;
        /* padding: 0 10px; */
    }
    
    .event-card {
        /* flex: 1 1 240px;
        max-width: 300px; */
    }
}

@media (max-width: 992px) {
    .events-grid {
        justify-content: center;
    }
    
    .event-card {
        /* flex: 0 0 calc(50% - 20px);
        max-width: 400px; */
    }
}

@media (max-width: 768px) {
    .events-header h1 {
        font-size: 2.5rem;
    }
    
    .event-card {
        /* flex: 0 0 calc(100% - 40px);
        max-width: 450px; */
    }
}

@media (max-width: 480px) {
    .events-header h1 {
        font-size: 2rem;
    }
    
    .month-selector .current-month {
        font-size: 1.2rem;
    }
}

/* Decorative elements */
/* Additional decorative elements */
.decorative-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20,10 Q30,0 40,10 T60,10 M0,10 Q10,0 20,10 M20,10 Q30,20 40,10 M0,30 Q10,20 20,30 T40,30 T60,30 M20,30 Q30,40 40,30 M0,50 Q10,40 20,50 T40,50 T60,50 M20,50 Q30,60 40,50' fill='none' stroke='%23FF9D42' stroke-width='1' opacity='0.05'/%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.3;
}

.floating-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    background: var(--secondary-light);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}




/* Modern accents */
.modern-accent {
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--secondary-light), transparent);
    z-index: -1;
}

.accent-1 {
    top: 30px;
    left: 5%;
    transform: rotate(-45deg);
}

.accent-2 {
    bottom: 50px;
    right: 5%;
    transform: rotate(45deg);
}

/* Animation effects */
/* Enhanced animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 157, 66, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 157, 66, 0.4); }
}

.event-card {
    animation: fadeIn 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.3s; }
.event-card:nth-child(3) { animation-delay: 0.5s; }
.event-card:nth-child(4) { animation-delay: 0.7s; }

.see-more {
    animation: pulse 3s infinite ease-in-out;
}

.event-date {
    animation: glow 5s infinite ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}




  /* General Reset and Base Styles */
  body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    overflow-x: hidden;
  }
  
  .next-gen-header {
    position: relative;
    width: 100%;
    z-index: 1000;
  }
  
  .events-container{
    padding-top: 25px;
  }
  
  @media (min-width: 1400px) {
    .events-container .container {
          width: 1400px;
          margin: 0 auto;
      }
  }
  /* Top Bar Styles - Retained from original */
  .top-bar {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 13px;
  }
  
  .top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .language-selector {
    display: flex;
    gap: 15px;
  }
  
  .language-item {
    color: var(--text-light);
    opacity: 0.8;
    text-decoration: none;
    transition: var(--transition-fast);
  }
  
  .language-item:hover,
  .language-item.active {
    opacity: 1;
    text-decoration: none;
  }
  
  .quick-links {
    display: flex;
    gap: 20px;
  }
  
  .quick-link {
    color: var(--text-light);
    opacity: 0.8;
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .quick-link:hover {
    opacity: 1;
    transform: translateY(-2px);
  }
  
  .social-links {
    display: flex;
    gap: 15px;
  }
  
  .social-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
    opacity: 0.8;
  }
  
  .social-link:hover {
    opacity: 1;
    transform: scale(1.2);
  }
  
  /* Main Header Styles - Simplified */
  .main-header {
    background-color: var(--background-white);
    padding: 20px 0;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-normal);
  }
  
  .main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 0;
    box-shadow: var(--shadow-medium);
    animation: slideDown 0.5s forwards;
    z-index: 1000;
  }
  
  @keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
  }
  
  .main-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .branding {
    flex: 0 0 200px;
  }
  
  .logo {
    display: block;
  }
  
  .logo img {
    max-height: 40px;
    width: auto;
    transition: var(--transition-normal);
  }
  
  .sticky .logo-default {
    display: none;
  }
  
  .logo-sticky {
    display: none;
  }
  
  .sticky .logo-sticky {
    display: block;
    max-height: 40px;
  }
  
  .header-contact {
    display: flex;
    gap: 30px;
  }
  
  .contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(var(--primary-light-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    transition: var(--transition-normal);
  }
  
  .pulse {
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
  }
  
  .contact-info span {
    font-size: 12px;
    color: var(--text-muted);
  }
  
  .contact-info a {
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
  }
  
  .contact-info a:hover {
    color: var(--primary);
  }
  
  .publications-dropdown {
    position: relative;
  }
  
  .publications-toggle {
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .publications-toggle::after {
    content: '\f107';
    font-family: 'FontAwesome';
    font-weight: normal;
    font-size: 12px;
  }
  
  .publications-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background-white);
    box-shadow: var(--shadow-medium);
    border-radius: var(--radius-sm);
    padding: 10px 0;
    min-width: 200px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    z-index: 7000;
  }
  
  .publications-dropdown:hover .publications-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .publication-link {
    display: block;
    padding: 8px 15px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
  }
  
  .publication-link:hover {
    background-color: var(--background-light);
    color: var(--primary);
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .search-toggle, 
  .menu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
  }
  
  .search-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  
  .menu-toggle {
    gap: 8px;
    background-color: rgba(var(--primary-light-rgb), 0.05);
  }
  
  .menu-toggle .menu-text {
    font-size: 15px;
    font-weight: 500;
    position: relative;
  }
  
  .search-toggle:hover, 
  .menu-toggle:hover {
    color: var(--primary);
    background-color: rgba(var(--primary-light-rgb), 0.1);
  }
  
  .menu-toggle:hover {
    color: var(--secondary);
    background-color: rgba(var(--secondary-rgb), 0.1);
  }
  
  /* Responsive Adjustments for Menu Text */
  @media (max-width: 767px) {
    .menu-toggle {
      padding: 8px;
    }
    
    .menu-toggle .menu-text {
      display: none;
    }
    
    .menu-toggle {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: transparent;
    }
  }
  
  /* Search Overlay */
  .search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
  }
  
  .search-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .search-form {
    width: 80%;
    max-width: 800px;
    position: relative;
  }
  
  .search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--text-light);
    padding: 15px 50px 15px 0;
    font-size: 32px;
    color: var(--text-light);
    outline: none;
  }
  
  .search-submit {
    background: none;
    border: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
  }
  
  .search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
  }
  
  .search-close:hover {
    transform: rotate(90deg);
  }
  
  /* Updated Glass Menu Overlay Styles with Improved Colors */
  .glass-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    display: flex;
    justify-content: flex-end;
  }
  
  .glass-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .glass-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(5, 43, 74, 0.65);
    transition: var(--transition-normal);
    opacity: 0;
  }
  
  .glass-menu-overlay.active .glass-menu-backdrop {
    opacity: 1;
  }
  
  .glass-menu-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 43, 74, 0.9), rgba(10, 77, 122, 0.85));
    background-image: 
      linear-gradient(135deg, rgba(5, 43, 74, 0.9), rgba(10, 77, 122, 0.85)),
      url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="none"/><path d="M0,0l100,100M0,20l100,80M0,40l100,60M0,60l100,40M0,80l100,20M0,100l100,0M20,0l80,100M40,0l60,100M60,0l40,100M80,0l20,100" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  
  .glass-menu-overlay.active .glass-menu-container {
    transform: translateY(0);
    opacity: 1;
  }
  
  .glass-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  
  .glass-menu-logo img {
    height: 45px;
    filter: brightness(0) invert(1);
  }
  
  .glass-menu-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  .glass-menu-close:hover {
    background: var(--secondary);
    transform: rotate(90deg);
  }
  
  .glass-menu-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  
  .glass-menu-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .glass-menu-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    align-content: start;
  }
  
  /* Category Styling with Better Colors */
  .glass-menu-category {
    margin-bottom: 30px;
    animation: fadeInUp 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Staggered animation for categories */
  .glass-menu-category:nth-child(1) { animation-delay: 0.1s; }
  .glass-menu-category:nth-child(2) { animation-delay: 0.2s; }
  .glass-menu-category:nth-child(3) { animation-delay: 0.3s; }
  .glass-menu-category:nth-child(4) { animation-delay: 0.4s; }
  .glass-menu-category:nth-child(5) { animation-delay: 0.5s; }
  .glass-menu-category:nth-child(6) { animation-delay: 0.6s; }
  
  .category-title,
  .access-title {
    font-size: 22px;
    color: #fff;
    margin: 0 0 15px;
    padding-bottom: 10px;
    position: relative;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .category-title::after,
  .access-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
    box-shadow: 0 2px 4px rgba(230, 126, 33, 0.3);
  }
  
  .glass-menu-category:hover .category-title::after,
  .glass-menu-quick-access:hover .access-title::after {
    width: 80px;
  }
  
  .category-links {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .category-link-item {
    margin-bottom: 8px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .category-link-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
    z-index: 1;
  }
  
  .category-link-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-light), transparent);
    opacity: 0.15;
    transition: width 0.3s ease;
    z-index: -1;
  }
  
  .category-link-item a:hover {
    color: #fff;
    padding-left: 20px;
  }
  
  .category-link-item a:hover::before {
    width: 100%;
  }
  
  .category-link-item.has-children a i {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: var(--secondary);
  }
  
  .category-link-item.has-children:hover a i {
    transform: rotate(90deg);
  }
  
  .subcategory-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 10px 10px;
    margin-top: -5px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  
  .category-link-item.has-children:hover .subcategory-container {
    max-height: 500px;
    transition: max-height 1s ease-in-out;
  }
  
  .subcategory-links {
    list-style: none;
    margin: 0;
    padding: 10px 0 10px 20px;
    border-left: 2px solid var(--secondary);
    margin-left: 15px;
  }
  
  .subcategory-link-item {
    margin: 8px 0;
  }
  
  .subcategory-link-item a {
    padding: 8px 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: normal;
    border-radius: 6px;
  }
  
  .subcategory-link-item a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  /* Quick Access Section with Enhanced Colors */
  .glass-menu-quick-access {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 25px;
    animation: fadeInRight 0.6s forwards 0.4s;
    opacity: 0;
    transform: translateX(20px);
    height: fit-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  @keyframes fadeInRight {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .quick-access-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .quick-access-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .quick-access-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-light), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .quick-access-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  .quick-access-link:hover::after {
    opacity: 0.2;
  }
  
  .quick-access-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(255, 157, 66, 0.4);
  }
  
  .quick-access-link span {
    margin-top: 10px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    z-index: 1;
  }
  
  /* Contact Info Section with Better Visual Appeal */
  .glass-menu-contact {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
    animation: fadeInUp 0.6s forwards 0.6s;
    opacity: 0;
  }
  
  .contact-info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .contact-info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .contact-info-item i {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(255, 157, 66, 0.3);
  }
  
  .contact-info-item a,
  .contact-info-item span {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
  }
  
  .contact-info-item a:hover {
    color: var(--secondary);
  }
  
  .contact-social-row {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .contact-social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .contact-social-link:hover {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 157, 66, 0.3);
  }
  
  /* Additional Refinements and Fixes */
  .glass-menu-content::-webkit-scrollbar {
    width: 8px;
  }
  
  .glass-menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
  }
  
  .glass-menu-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
  }
  
  .glass-menu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  
  /* Fix for RTL and Responsive */
  html[lang="ar"] .glass-menu-overlay {
    justify-content: flex-start;
  }
  
  html[lang="ar"] .glass-menu-container {
    border-left: none;
    border-right: var(--glass-border);
    transform: translateX(-100%);
  }
  
  html[lang="ar"] .glass-menu-overlay.active .glass-menu-container {
    transform: translateX(0);
  }
  
  html[lang="ar"] .category-link-item a:hover {
    padding-left: 10px;
    padding-right: 15px;
  }
  
  html[lang="ar"] .subcategory-links {
    border-left: none;
    border-right: 2px solid var(--secondary);
    padding-left: 0;
    padding-right: 15px;
  }
  
  html[lang="ar"] .category-link-item.has-children a i {
    transform: rotate(180deg);
  }
  
  html[lang="ar"] .category-link-item.has-children:hover a i {
    transform: rotate(90deg);
  }
  
  /* Responsive Styles */
  @media (max-width: 1200px) {
    .header-contact {
      gap: 15px;
    }
    
    .contact-card {
      font-size: 14px;
    }
    
    .glass-menu-grid {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
  }
  
  @media (max-width: 991px) {
    .header-contact {
      display: none;
    }
    
    .glass-menu-container {
      width: 90%;
    }
  }
  
  @media (max-width: 767px) {
    .top-bar-inner {
      flex-wrap: wrap;
    }
    
    .language-selector {
      order: 1;
      margin-bottom: 10px;
    }
    
    .quick-links {
      order: 3;
      width: 100%;
      margin-top: 10px;
      justify-content: center;
    }
    
    .social-links {
      order: 2;
    }
    
    .glass-menu-container {
      width: 100%;
    }
    
    .glass-menu-grid {
      grid-template-columns: 1fr;
    }
    
    .quick-access-row,
    .contact-info-row {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .quick-link span {
      display: none;
    }
    
    .quick-links {
      display: none;
    }
    
    .cta-button {
      display: none;
    }
    
    .glass-menu-container {
      width: 100%;
    }
    
    .glass-menu-content {
      padding: 20px 15px;
    }
    
    .quick-access-row,
    .contact-info-row {
      grid-template-columns: 1fr;
    }
  }
  
  /* Pulse animation for quick access icons */
  .quick-access-icon {
    animation: subtle-pulse 3s infinite;
  }
  
  @keyframes subtle-pulse {
    0% { box-shadow: 0 8px 20px rgba(255, 157, 66, 0.4); }
    50% { box-shadow: 0 12px 25px rgba(255, 157, 66, 0.6); }
    100% { box-shadow: 0 8px 20px rgba(255, 157, 66, 0.4); }
  }
  
  /* Category hover effects enhancement */
  .category-link-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(5px);
  }
  
  /* Enhanced Glass Menu Overlay Styles */
  .glass-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: visibility 0.4s, opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    justify-content: flex-end;
    perspective: 2000px;
  }
  
  .glass-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .glass-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(5, 43, 74, 0.75);
    transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    transform: translateZ(0); /* Force GPU acceleration */
    will-change: opacity;
  }
  
  .glass-menu-overlay.active .glass-menu-backdrop {
    opacity: 1;
  }
  
  .glass-menu-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                  rgba(5, 43, 74, 0.85), 
                  rgba(10, 77, 122, 0.8));
    transform-style: preserve-3d;
    transform: translateX(100px) rotateY(-5deg);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1),
                opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    will-change: transform, opacity;
  }
  
  .glass-menu-overlay.active .glass-menu-container {
    transform: translateX(0) rotateY(0);
    opacity: 1;
  }
  
  /* Decorative elements for enhanced visual appeal */
  .decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
  }
  
  .floating-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: translateZ(-100px);
    will-change: transform;
  }
  
  .shape-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    left: -100px;
    animation: floatShape1 25s infinite alternate ease-in-out;
    opacity: 0.3;
  }
  
  .shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: 10%;
    animation: floatShape2 20s infinite alternate-reverse ease-in-out;
    opacity: 0.2;
  }
  
  .shape-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 25%;
    animation: floatShape3 30s infinite alternate ease-in-out;
    opacity: 0.15;
  }
  
  @keyframes floatShape1 {
    0%, 100% { transform: translateZ(-100px) translateY(0) scale(1); }
    50% { transform: translateZ(-100px) translateY(-50px) scale(1.1); }
  }
  
  @keyframes floatShape2 {
    0%, 100% { transform: translateZ(-100px) translateY(0) translateX(0) scale(1); }
    50% { transform: translateZ(-100px) translateY(30px) translateX(-30px) scale(1.05); }
  }
  
  @keyframes floatShape3 {
    0%, 100% { transform: translateZ(-100px) translateY(0) rotate(0); }
    50% { transform: translateZ(-100px) translateY(-20px) rotate(10deg); }
  }
  
  .glowing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    will-change: transform;
  }
  
  .orb-1 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at center, rgba(255, 157, 66, 0.6), rgba(255, 157, 66, 0));
    top: 15%;
    right: 10%;
    animation: pulseOrb 8s infinite alternate ease-in-out;
  }
  
  .orb-2 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at center, rgba(33, 212, 253, 0.5), rgba(33, 212, 253, 0));
    bottom: 15%;
    left: 20%;
    animation: pulseOrb 10s infinite alternate-reverse ease-in-out;
  }
  
  @keyframes pulseOrb {
    0%, 100% { transform: scale(1) translateZ(0); opacity: 0.6; }
    50% { transform: scale(1.2) translateZ(0); opacity: 0.8; }
  }
  
  .glowing-line {
    position: absolute;
    height: 1px;
    width: 50%;
    background: linear-gradient(90deg, 
      transparent, 
      rgba(255, 255, 255, 0.3), 
      rgba(255, 255, 255, 0.5), 
      rgba(255, 255, 255, 0.3), 
      transparent);
    animation: moveLine 15s infinite alternate ease-in-out;
    filter: blur(1px);
    opacity: 0.6;
    transform-origin: left center;
    will-change: transform, opacity;
  }
  
  .line-1 {
    top: 30%;
    left: 0;
    animation-delay: 0s;
  }
  
  .line-2 {
    bottom: 40%;
    left: 0;
    animation-delay: 5s;
  }
  
  @keyframes moveLine {
    0% { transform: scaleX(0.8) translateY(0); opacity: 0.2; }
    50% { transform: scaleX(1) translateY(-10px); opacity: 0.6; }
    100% { transform: scaleX(0.8) translateY(0); opacity: 0.2; }
  }
  
  .mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><defs><linearGradient id="g1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="rgba(255,255,255,0.03)" /><stop offset="50%" stop-color="rgba(255,255,255,0)" /><stop offset="100%" stop-color="rgba(255,255,255,0.03)" /></linearGradient></defs><rect width="100%" height="100%" fill="url(%23g1)" /></svg>');
    opacity: 0.5;
  }
  
  /* Enhanced Glass Menu Header */
  .glass-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(5, 43, 74, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
  }
  
  .glass-menu-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
      transparent, 
      var(--secondary), 
      rgba(255, 255, 255, 0.8), 
      var(--secondary), 
      transparent);
    opacity: 0.4;
    filter: blur(1px);
  }
  
  .glass-menu-logo {
    position: relative;
  }
  
  .glass-menu-logo img {
    height: 45px;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 1;
    transform: translateZ(20px);
  }
  
  .logo-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.4), transparent 70%);
    filter: blur(10px);
    opacity: 0.5;
    animation: logoGlow 3s infinite alternate ease-in-out;
  }
  
  @keyframes logoGlow {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.5; transform: scale(1.1); }
  }
  
  .glass-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
  }
  
  .close-button-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0.9);
    opacity: 0;
  }
  
  .glass-menu-close:hover {
    background: var(--secondary);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px var(--secondary-glow);
  }
  
  .glass-menu-close:hover .close-button-ring {
    transform: scale(1.2);
    opacity: 1;
    border-color: var(--secondary);
  }
  
  /* Enhanced Animations for Menu Items */
  .glass-menu-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
    background: rgba(5, 43, 74, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  
  .glass-menu-overlay.active .glass-menu-content {
    opacity: 1;
    transform: translateY(0);
  }
  
  .category-link-item {
    margin-bottom: 8px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
  }
  
  .category-link-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
  }
  
  .category-link-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-light), transparent);
    opacity: 0.15;
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: 12px;
  }
  
  .category-link-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.4s ease;
    z-index: 0;
    box-shadow: 0 0 10px var(--secondary-glow);
  }
  
  .category-link-item a:hover::after {
    width: 100%;
  }
  
  .category-link-item a:hover {
    color: #fff;
    padding-left: 24px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    transform: translateZ(5px);
  }
  
  .category-link-item a:hover::before {
    width: 100%;
  }
  
  .category-link-item.has-children a i {
    font-size: 12px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
    color: var(--secondary);
    opacity: 0.7;
  }
  
  .category-link-item.has-children:hover a i {
    transform: rotate(90deg);
    opacity: 1;
    color: var(--secondary-light);
  }
  
  .category-title::after,
  .access-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 3px;
    box-shadow: 0 0 15px var(--secondary-glow);
  }
  
  .glass-menu-category:hover .category-title::after,
  .glass-menu-quick-access:hover .access-title::after {
    width: 100px;
  }
  
  /* Scrollbar Styling Enhancements */
  .glass-menu-content::-webkit-scrollbar {
    width: 8px;
    background: rgba(255, 255, 255, 0.03);
  }
  
  .glass-menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    backdrop-filter: blur(10px);
  }
  
  .glass-menu-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgba(255, 157, 66, 0.5), rgba(230, 126, 33, 0.5));
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.05);
  }
  
  .glass-menu-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, rgba(255, 157, 66, 0.7), rgba(230, 126, 33, 0.7));
  }
  
  /* RTL Support for Enhanced Menu */
  html[lang="ar"] .glass-menu-container {
    transform: translateX(-100px) rotateY(5deg);
  }
  
  /* Enhanced Header Actions Styling */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .action-button,
  .cta-button,
  .search-toggle, 
  .menu-toggle {
    font-size: 15px;
    color: var(--text-dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
  }
  
  .action-button {
    background-color: rgba(var(--primary-light-rgb), 0.1);
    padding: 8px 15px;
    gap: 8px;
    color: var(--primary);
  }
  
  .action-button:hover {
    background-color: rgba(var(--primary-light-rgb), 0.2);
    transform: translateY(-2px);
  }
  
  .cta-button {
    background-color: var(--secondary);
    color: var(--text-dark);
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.3);
    position: relative;
    overflow: hidden;
    gap: 8px;
    z-index: 1;
  }
  
  .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--secondary-dark);
    transition: all 0.3s ease;
    z-index: -1;
  }
  
  .cta-button:hover {
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.5);
  }
  
  .cta-button:hover::before {
    width: 100%;
  }
  
  .cta-button i {
    font-size: 16px;
  }
  
  .search-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    background-color: transparent;
  }
  
  .phone-button {
    order: 1;
  }
  
  .cta-button {
    order: 2;
  }
  
  .search-toggle {
    order: 3;
  }
  
  .menu-toggle {
    order: 4;
    gap: 8px;
    background-color: rgba(var(--primary-light-rgb), 0.05);
    padding: 8px 12px;
  }
  
  .menu-toggle .menu-text {
    font-size: 15px;
    position: relative;
  }
  
  .search-toggle:hover {
    color: var(--primary);
    background-color: rgba(var(--primary-light-rgb), 0.1);
  }
  
  .menu-toggle:hover {
    color: var(--secondary);
    background-color: rgba(var(--secondary-rgb), 0.1);
  }
  
  /* RTL Support */
  html[lang="ar"] .cta-button::before {
    left: auto;
    right: 0;
  }
  
  /* Responsive Design for Header Actions */
  @media (max-width: 991px) {
    .header-actions {
      gap: 8px;
    }
    
    .action-button .button-text {
      display: none;
    }
    
    .action-button {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      padding: 0;
      justify-content: center;
    }
    
    .cta-button {
      padding: 8px 15px;
    }
  }
  
  @media (max-width: 767px) {
    .menu-toggle .menu-text {
      display: none;
    }
    
    .menu-toggle {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: transparent;
      padding: 0;
    }
    
    .cta-button span {
      display: none;
    }
    
    .cta-button {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      padding: 0;
    }
  }
  
  @media (max-width: 480px) {
    .cta-button {
      display: flex; /* Override the previous display: none */
    }
  }


  
/* Chalkboard-themed Statistics Section */
.edu-statistics-section {
  background-color: rgba(0, 0, 0, 0.75);
  background-image: url('https://png.pngtree.com/background/20210710/original/pngtree-childhood-blackboard-green-hand-drawn-banner-poster-background-picture-image_1026953.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
  direction: rtl;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.6);
  isolation: isolate;
}

.edu-statistics-section * {
  box-sizing: border-box;
}

.statistics-wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

.stat-box {
  flex: 1;
  text-align: center;
  padding: 15px 5px;
  position: relative;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  animation: statFadeIn 0.6s ease-out forwards;
  opacity: 0;
  margin: 0 3px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: visible;
}

@keyframes statFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-box:nth-child(1) { animation-delay: 0.1s; }
.stat-box:nth-child(2) { animation-delay: 0.2s; }
.stat-box:nth-child(3) { animation-delay: 0.3s; }
.stat-box:nth-child(4) { animation-delay: 0.4s; }
.stat-box:nth-child(5) { animation-delay: 0.5s; }
.stat-box:nth-child(6) { animation-delay: 0.6s; }
.stat-box:nth-child(7) { animation-delay: 0.7s; }
.stat-box:nth-child(8) { animation-delay: 0.8s; }
.stat-box:nth-child(9) { animation-delay: 0.9s; }
.stat-box:nth-child(10) { animation-delay: 1s; }

.stat-box:hover {
  transform: translateY(-5px);
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  overflow: visible;
}

.stat-icon i {
  color: white;
  font-size: 24px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
  transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
  display: inline-block;
  width: auto;
  visibility: visible;
  opacity: 1;
}

.stat-box:hover .stat-icon i {
  transform: scale(1.2);
  color: rgb(255, 115, 22);
  filter: drop-shadow(0 0 8px rgba(175, 132, 76, 0.7));
}

.stat-number {
  font-family: 'Comic Sans MS', 'Cairo', sans-serif;
  font-size: 22px;
  line-height: 1.2;
  margin-top: 10px;
  display: inline-block;
  min-height: 30px;
  font-weight: 700;
  color: white;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 10px rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
}

.stat-label {
  font-family: 'Comic Sans MS', 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 5px rgba(255, 255, 255, 0.3);
  margin-top: 5px;
}

.chalk-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,248,220,0.3) 0%, rgba(255,248,220,0) 70%);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(0.5);
  pointer-events: none;
}

.stat-box:hover .chalk-glow {
  opacity: 0.8;
  transform: scale(1.5);
}

.chalk-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-box:hover .chalk-border {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
  box-shadow: 
    0 0 10px 1px rgba(255, 255, 255, 0.2),
    inset 0 0 10px 1px rgba(255, 255, 255, 0.1);
  animation: chalkBorderGlow 2s infinite alternate;
}

@keyframes chalkBorderGlow {
  0% { box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.2), inset 0 0 5px 1px rgba(255, 255, 255, 0.1); }
  100% { box-shadow: 0 0 15px 1px rgba(255, 255, 255, 0.3), inset 0 0 15px 1px rgba(255, 255, 255, 0.2); }
}

@keyframes chalkPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.chalk-particle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: floatChalk linear infinite;
  filter: blur(1px);
  z-index: 0;
}

@keyframes floatChalk {
  0% {
    transform: translate(0, 0) rotate(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translate(var(--random-x, 50px), -80px) rotate(var(--random-rot, 360deg));
    opacity: 0;
  }
}

/* Fix for specific icons */
.stat-box:nth-child(5) .stat-icon i {
  font-family: 'FontAwesome' !important;
}


/* Responsive adjustments */
@media (max-width: 992px) {
  .statistics-wrapper {
    flex-wrap: wrap;
  }
  
  .stat-box {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media (max-width: 768px) {
  .stat-box {
    flex: 0 0 25%;
    max-width: 25%;
    min-height: 110px;
    padding-bottom: 5px;
  }
  
  .stat-icon {
    margin-bottom: 5px;
    width: 40px;
    height: 40px;
  }
  
  .stat-icon i {
    font-size: 18px;
  }
  
  .stat-number {
    font-size: 18px;
    min-height: 22px;
  }
  
  .stat-label {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .stat-box {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }
}

@media (max-width: 480px) {
  .edu-statistics-section {
    padding: 30px 0;
  }
  
  .statistics-wrapper {
    gap: 2px;
  }
  
  .stat-box {
    padding: 10px 3px;
    margin: 0 2px;
  }
}