@font-face {
  font-family: 'NotoSans';
  src: url('../fonts/noto-sans/NotoSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Cairo';
  src: url('../fonts/static/Cairo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'poppins';
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "poppins", sans-serif;
}


body {
    background: #fff;
    overflow-x: hidden;
}

body, html {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* sponsor bar */
.sponsor-bar{
    width: 100%;
    background: #f4f6fb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 0;
    font-size: 13px;
    border-bottom: 1px solid #e5e5e5;
    height: 120px;
    margin-top: 80px;
    margin-bottom: 20px;
}

.sponsor-text{
    font-size: 18px;
    color: black;
    font-weight: 400;
    font-family: "Cairo", sans-serif;
}

.sponsor-logos{
    display: flex;
    align-items: center;
    gap: 140px;
}

.sponsor-logos img{
    height: 50px;
    width: auto;
    object-fit: contain;
}

header .header-logo {
    position: relative;
    width: 140px;
    height: auto;
}

header .header-logo img:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    transition: opacity 0.3s;
    opacity: 1; 
}

header .header-logo .logo-blue {
    top: 0;
    left: 0;
    width: 140px;
    transition: opacity 0.3s;
    opacity: 0; 
}

header.scrolled .header-logo img:first-child {
    opacity: 0; 
}

header.scrolled .header-logo .logo-blue {
    opacity: 1; 
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: 0.3s;
    background: transparent;
    border-bottom: 0px solid transparent;
    background-color: #1f2f5c;
}

header.scrolled {
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header.scrolled::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;

    background: linear-gradient(
        to right,
        #ee7319 0%,
        #ee7319 33%,
        #09a660 33%,
        #09a660 66%,
        #ffc10f 0%,
        #ffc10f 33%
    );
    z-index: 0;
    pointer-events: none;
}

header .container {
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    font-size: 14px;
    color: #fff;
    transition: 0.3s;
    position: relative;
    padding-bottom: 6px;
}

header.scrolled nav ul li a {
    color: #000;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    border-radius: 10px;

    background: linear-gradient(
        to right,
        #ee7319 0%,
        #ee7319 33%,
        #09a660 33%,
        #09a660 66%,
        #ffc10f 66%,
        #ffc10f 100%
    );

    transition: width 0.3s ease;
}

/* عند المرور */
nav ul li a:hover::after {
    width: 100%;
}

.triangle-btn-wrapper {
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.triangle-btn-wrapper div {
  width: 100%;
  height: 4px;
  background-color: white; 
  transition: 0.3s;
}


header.scrolled .triangle-btn-wrapper div {
  background-color: #033d83;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 25px;
    left: 0;
    background: #ffffff;
    padding: 10px 0;
    border-radius: 6px;
    display: none;
    min-width: 170px;
    top: calc(120% - 5px);
}

.dropdown-menu li a {
    color: #000 !important;
    display: block;
    padding: 8px 15px;
    text-decoration: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

main {
  padding: 20px;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.pagination a{
  background-color: #1f2f5c;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
}

.content-wrapper {
  display: flex;
  gap: 20px;
}

.filter-section {
  min-width: 180px;
}

.filter-dropdown {
  width: 200px;
  padding: 10px;
  border: 1px solid #1f2f5c;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  cursor: pointer;
}

.option-box {
  background-color: white;
  border: 1px solid #1f2f5c;
  border-radius: 8px;
  padding: 20px;
}


.option-lable {
  font-size: 14px;
  color: #333;
}

.cards-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  flex: 1;
  justify-items: stretch;
}

.company-card {
  background-color: white;
  border: 1px solid #1f2f5c;
  border-radius: 10px;
  padding: 10px;
  text-align: right;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.company-card:hover {
  transform: scale(1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.logo {
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  max-height: 110%;
  max-width: 100%;
  object-fit: contain;
}

.company-card > div {
  margin-bottom: 6px;
  font-size: 14px;
}

.company-name {
  text-align: center;
  font-style: oblique;
  font-size: 16px;
}

.manager, .company-specialty, .phone, .address, .email{
    text-align: left;
    font-style: oblique;
    font-size: 16px;
}

.email a{
    text-decoration: none;
}

.email a:hover{
    text-decoration: underline;
}

.social{
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.social div{
    display: inline-block;
}

.social .facebook .icon-facebook{
    color: #000;
    transition: color 0.3s;
    font-size: 20px;
}

.social .instagram .icon-instagram{
    color: #000;
    transition: color 0.3s;
    font-size: 20px;
}

.social .instagram .icon-instagram:hover{
    color: #e1306c;
}

.social .facebook .icon-facebook:hover{
    color: blue;
}

.pagination2 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.pagination2 a{
  background-color: #1f2f5c;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
}







/*================== footer ==================*/

.footer {
    background: #0a2955;
    padding: 50px 80px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    direction: ltr;
}


.footer-logo {
    display: flex;
    flex-direction: column; 
}

.logo-wrapper {
    display: flex;
    flex-direction: column; 
    gap: 10px; 
    align-items: flex-start; 
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; 
    height: 32px;
    border-radius: 50%;
    border:1px solid white;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
}

.social-icons a img {
    width: 22px;  
    height: 20px;
    display: block;
}

.social-icons a:hover {
    background: #0a2955;
    transform: scale(1.1);
}

.footer-section h3 , p{
    margin-bottom: 10px;
    color: white;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin: 8px 0;
    color: #444;
    padding-left: 20px;
    position: relative;
}

.footer-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px; 
    height: 8px;
    background-color: white; 
    border-radius: 50%; 
}

.footer-section ul li a{
    text-decoration: none;
    color: white;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.map-box {
    width: 140px;
    height: 120px;
}

.bottom-bar {
    background: #0a2955;
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 14px;
}

.bottom-bar a{
    color: white;
}

.bottom-bar a:hover{
    color: #ffcb05;
}

.back-to-top{
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 46px;
    height: 46px;
    background: #fff;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    color: #25356b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s ease;
}

.back-to-top polyline:last-child{
    stroke: #1e1400; 
}

.back-to-top.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover{
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-30%); }
}

@media (min-width: 992px) {
  .triangle-btn-wrapper {
    display: none;
  }
}

@media screen and (max-width: 480px) {

    .sponsor-logos{
        gap: 25px;
    }

    .sponsor-logos img{
        height: 40px;
    }
    
    nav {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: #fff;
        transition: 0.3s;
        padding-top: 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        border-bottom: 1px solid #eee;
    }

    nav ul li a {
        display: block;
        padding: 14px 20px;
        font-size: 15px;
        color: black;
    }

    nav.active {
        right: 0;
    }

    .dropdown-menu {
        position: static;
        display: none;
        background: #f6f9fc;
        border-radius: 0;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .filter-section {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .filter-dropdown {
        width: 80%;
    }
    
    .option-box {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        padding: 10px;
    }
    
    .option-box tr {
        display: inline-block;
    }
    
    .toggle-row {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .cards-section {
        grid-template-columns: 1fr;
        justify-items: center; /* ðŸ‘ˆ ÙŠØ®Ù„ÙŠÙ‡Ø§ Ø¨Ø§Ù„Ù†Øµ */
    }
    
    .company-card {
        width: 90%;  /* Ø¨Ø¯Ù„ Ù…Ø§ ØªØ§Ø®Ø° Ø¹Ø±Ø¶ ÙƒØ§Ù…Ù„ */
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }




    .footer {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 24px 12px !important;
        grid-template-columns: none !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
    
    .footer * {
        box-sizing: border-box !important;
        max-width: 100%;
    }
    
    .footer > .logo-wrapper,
    .footer > .footer-logo,
    .footer > :nth-child(1) {
        width: 100% !important;
        flex: 0 0 100% !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .footer > :nth-child(n+2) {
        flex: 0 0 45% !important;    
        max-width: 48% !important;
        width: 48% !important;
        min-width: 140px !important;
    }
    
    .footer img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .footer-section {
        width: 48% !important;
        max-width: 48% !important;
        flex: 0 0 48% !important;
        padding: 8px 6px !important;
    }
    
    .footer-section h3 {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }
    
    .footer-section p,
    .footer-section ul li {
        font-size: 13px !important;
    }
    
    .social-icons {
        justify-content: center !important;
        margin-top: 12px !important;
    }

    .social-icons a img {
        width: 15px; 
    }
    
    .footer > * {
        display: block !important;
    }

}    