/* Presence Section Styles */

:root {
  --presence-bg: var(--surface-color);
  --presence-accent: var(--accent-color);
  --presence-gold: var(--nosel-color);
  --presence-light: var(--bg-color);
}

#regional-presence {
    padding: 60px 0;
    background: linear-gradient(rgb(255 255 255 / 0%)), url(/static/img/about/map-background.png) center / cover no-repeat;
    /* background-attachment: fixed; */
    /* position: absolute;*/

}

.presence-wrapper {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.presence-left {
  flex: 1 1 460px;
  max-width: 640px;
}

.presence-right {
  flex: 1 1 420px;
  display: none;
  align-items: center;
  justify-content: center;
}

.presence-sub {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--presence-accent);
  letter-spacing: 1px;
  margin: 0 0 12px 0;
}

.presence-title {
  font-size: 3rem;
  margin: 0 0 12px 0;
  color: var(--presence-accent);
  font-weight: 800;
  line-height: 1;
}

.presence-desc {
  color: var(--text-light);
  margin-bottom: 24px;
  max-width: 70%;
}

/* Stats */
.presence-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    min-width: 240px;
    text-align: center;
    border-right: 1px solid var(--presence-gold);
}
.stat:last-child {
  border-right: none;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--contrast-color);
  color: var(--presence-gold);
  border: 2px solid var(--presence-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
}

.stat-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.stat-text .stat-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--presence-accent);
}

.stat-text .stat-label {
  font-size: 0.92rem;
  color: var(--presence-accent);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Countries */
.countries-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem 1.5rem;
  margin-top: 20px;
  width: 100%;
}

.country-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0.5rem;
  background: transparent;
  text-align: center;
}

.flag {
    width: 64px;
    height: 63px;
    border-radius: 81px;
    background: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    border: none;
    overflow: hidden;
}

/* Egypt Flag */
.flag.flag-egypt {
  background-image: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-json@1.0.5/dist/images/EG.svg');
}

/* Saudi Arabia Flag */
.flag.flag-saudi-arabia {
  background-image: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-json@1.0.5/dist/images/SA.svg');
}

/* Kuwait Flag */
.flag.flag-kuwait {
  background-image: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-json@1.0.5/dist/images/KW.svg');
}

/* UAE Flag */
.flag.flag-uae {
  background-image: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-json@1.0.5/dist/images/AE.svg');
}

/* Oman Flag */
.flag.flag-oman {
  background-image: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-json@1.0.5/dist/images/OM.svg');
}

/* Iraq Flag */
.flag.flag-iraq {
  background-image: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-json@1.0.5/dist/images/IQ.svg');
}

.flag.fi {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.country-icon {
  display: none;
}

.country-icon i {
  font-size: 1.2rem;
  color: var(--presence-accent);
}

.country-name {
  font-weight: 800;
  color: var(--presence-accent);
  font-size: 0.8rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.country-name::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--presence-gold);
  border-radius: 2px;
}

.country-desc {
    font-size: 10px;
  color: var(--presence-accent);
  line-height: 1.35;
  max-width: 180px;
}
.country-item:not(:last-child) {
    border-right: 1px solid var(--presence-gold);
}

@media (min-width: 1400px) {
  .countries-list {
    grid-template-columns: repeat(7, minmax(0,1fr));
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .countries-list {
    grid-template-columns: repeat(7, minmax(0,1fr));
  }
}

@media (max-width: 991px) {
  .countries-list {
    grid-template-columns: repeat(7, minmax(0, 1fr));

  }
}

@media (max-width: 575px) {
  .countries-list {
    grid-template-columns: 1fr;
  }
}

/* Map card */
.map-card {
  width: 100%;
  max-width: 560px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  background: var(--contrast-color);
  padding: 28px;
}

.map-area {
  position: relative;
  height: 320px;
  background: var(--light-gray);
  border-radius: 8px;
  overflow: hidden;
}

.map-region {
  position: absolute;
  right: 6%;
  top: 10%;
  width: 68%;
  height: 80%;
  background: var(--presence-accent);
  border-radius: 6px;
  opacity: 0.95;
}

.map-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--presence-gold);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: 3px solid var(--contrast-color);
}

.map-marker.m-egy { left: 22%; top: 62%; }
.map-marker.m-sa { left: 48%; top: 56%; }
.map-marker.m-kw { left: 66%; top: 36%; }
.map-marker.m-ae { left: 72%; top: 42%; }
.map-marker.m-om { left: 78%; top: 58%; }
.map-marker.m-iq { left: 68%; top: 36%; transform: translateY(-12px);} 

/* Features bar */
.features-bar {
  margin-top: 28px;
  background: var(--presence-accent);
  color: var(--contrast-color);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 8px;
  flex-wrap: wrap;
}

.features-bar .feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--contrast-color);
}

.feature-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: var(--contrast-color);
  font-size: 1rem;
}

.features-bar .feature:not(:last-child) {
  position: relative;
  padding-right: 1rem;
}

.features-bar .feature:not(:last-child):after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.15);
}

/* Responsive */
@media (max-width: 991px) {
  .presence-wrapper { flex-direction: column-reverse; }
  .countries-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .map-area { height: 260px; }
}

@media (max-width: 575px) {
  .presence-title { font-size: 3rem; }
  .presence-subtitle{ font-size: 2.5rem; }
  .presence-sub { font-size: 0.85rem; }
  .countries-list { grid-template-columns: 1fr; }
  .stat-icon { width: 48px; height: 48px; }
}

.presence-subtitle {
    font-size: 2.5rem;
    margin: 0 0 12px 0;
    color: var(--presence-gold);
    font-weight: 600;
    border-bottom: 3px solid var(--presence-gold);
    box-sizing: border-box;
    width: 20%;
}


.countries-list img {
    object-fit: fill;
    width: 100%;
    height: 100%;
}