:root {
  --petrol: #0e6251; /* vert pétrole subtil */
  --petrol-600: #0b4f41;
  --petrol-100: #e3f2ef;
}

/* Accents doux, sans changer la palette d'origine */
.text-petrol { color: var(--petrol) !important; }
.bg-petrol { background-color: var(--petrol) !important; }

.btn-petrol {
  color: #fff;
  background-color: var(--petrol);
  border-color: var(--petrol);
}
.btn-petrol:hover {
  color: #fff;
  background-color: var(--petrol-600);
  border-color: var(--petrol-600);
}

/* Liens et hover subtils */
a:hover { color: var(--petrol); }

/* Souligner certains titres (centrés) */
.section-title { position: relative; display: table; margin-left: auto; margin-right: auto; text-align: center; }
.section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -8px; transform: translateX(-50%);
  width: 60%; height: 3px;
  background: var(--petrol);
  border-radius: 2px;
}

/* Bordures discrètes pour cartes */
.card.shadow-soft {
  box-shadow: 0 8px 24px rgba(14, 98, 81, 0.08);
  border: 1px solid rgba(14, 98, 81, 0.06);
}

/* Badges catégorie */
.badge-petrol { background: var(--petrol); }


/* ===== Custom Home Enhancements (Index) ===== */
/* Palette addition and theme accents */
:root {
  --primary-color: #00a8cc;
  --secondary-color: #2d8f47;
  --accent-color: #f39c12;
  --primary-gradient: linear-gradient(135deg, #0b1e2a, #0e3042);
  --section-bg: #f8fafc;
  --text-on-dark: #eaf2f8;
}

/* Global spacing improvements */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section-title { margin-bottom: 10px; letter-spacing: .2px; }
.section-subtitle { margin-bottom: 24px; color: #64748b; }
.container .row.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
/* Hide legacy spinner when custom preloader is present */
#spinner { display: none !important; }

/* Preloader */
.preloader { position: fixed; inset: 0; background: #ffffff; z-index: 1050; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: opacity .4s ease, transform .4s ease; text-align: center; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.preloader.fade-out { opacity: 0; visibility: hidden; }
.preloader-content { position: relative; z-index: 2; text-align: center; color: #0b1e2a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px 12px; margin: 0 auto; max-width: 92vw; }
.preloader-logo { width: clamp(64px, 18vw, 96px); height: clamp(64px, 18vw, 96px); object-fit: contain; }
.preloader-text { font-weight: 600; letter-spacing: .3px; margin-bottom: 6px; max-width: 90vw; margin-left: auto; margin-right: auto; font-size: clamp(0.95rem, 2.6vw, 1.1rem); }
.preloader-spinner { width: clamp(28px, 6vw, 36px); height: clamp(28px, 6vw, 36px); border: 3px solid rgba(255,255,255,.25); border-top-color: #00a8cc; border-radius: 50%; margin: 6px auto 0; animation: spin 1s linear infinite; }
#preloader-particles { position: absolute; inset: 0; opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Compact tweaks for small screens (without overshrinking) */
@media (max-width: 576px) {
  .preloader { padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); display: grid; place-items: center; }
  .preloader-content { width: 100%; max-width: 420px; }
}

/* Scholarship banner */
.scholarship-banner { position: sticky; top: 0; z-index: 1030; background: #0f3d4a; color: #fff; padding: 10px 0; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.scholarship-banner .banner-content { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.banner-close { background: transparent; border: 0; color: #fff; opacity: .85; transition: opacity .2s ease; }
.banner-close:hover { opacity: 1; }

/* Ensure navbar doesn't get hidden by the banner */
#scholarshipBanner { --banner-h: 48px; }
.container-fluid.sticky-top { z-index: 1020; }
#scholarshipBanner ~ .container-fluid.sticky-top { top: var(--banner-h, 48px); }
body.banner-closed .container-fluid.sticky-top { top: 0 !important; }

/* Navbar scroll effect */
.navbar.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); background: #ffffff !important; }
.navbar.scrolled .nav-link { color: #0b1e2a !important; }
.navbar.scrolled .nav-link:hover { color: var(--primary-color) !important; }
.navbar .navbar-toggler-line { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

/* Navbar toggler visibility/fix for white background */
.navbar .navbar-toggler { border: none; outline: none; box-shadow: none !important; padding: .35rem .5rem; cursor: pointer; }
.navbar .navbar-toggler:focus { box-shadow: none; }
.navbar .navbar-toggler .fa-bars { color: #0b1e2a; font-size: 1.25rem; line-height: 1; }
.navbar .navbar-toggler:hover .fa-bars { color: var(--primary-color); }
.navbar.scrolled .navbar-toggler .fa-bars { color: #0b1e2a; }

/* Mobile collapse background for readability */
@media (max-width: 991.98px) {
  .navbar .navbar-collapse { background: #ffffff; padding: .75rem 1rem; border-radius: .5rem; box-shadow: 0 10px 24px rgba(0,0,0,.06); }
  .navbar .nav-link { color: #0b1e2a !important; }
  .navbar .nav-link:hover { color: var(--primary-color) !important; }
}

/* Hero carousel */
.hero-carousel { position: relative; min-height: 70vh; }
.hero-carousel .carousel-item { position: relative; min-height: 70vh; background-size: cover; background-position: center; }
.carousel-overlay { position: absolute; inset: 0; background:
  /* uniform soft dark veil (darker) */
  linear-gradient(0deg, rgba(0,0,0,.22), rgba(0,0,0,.22)),
  /* stronger vertical gradient for readability (darker) */
  linear-gradient(180deg, rgba(0,0,0,.78) 0%, rgba(11,30,42,.65) 40%, rgba(0,0,0,.52) 100%),
  /* subtle brand tint */
  radial-gradient(1200px 400px at 20% 10%, rgba(0,168,204,.22), transparent 60%);
  backdrop-filter: blur(2px);
}
.carousel-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; padding: 0 6%; max-width: 900px; margin: 0 auto; text-align: center; }
.hero-carousel .carousel-indicators { bottom: 12px; margin: 0; padding: 0; }
.hero-carousel .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.65); border: 0; margin: 0 5px; }
.hero-carousel .carousel-indicators .active { background: #fff; }

/* Lower only the first slide content a bit */
.hero-carousel .carousel-item .carousel-content {
  transform: translateY(clamp(20px, 13vh, 106px));
}
.hero-title { color: #00a8cc; font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 800; letter-spacing: .5px; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero-subtitle { font-size: clamp(1rem, 2.2vw, 1.4rem); opacity: .95; margin-bottom: 10px; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.hero-text { font-size: 1.05rem; opacity: .95; margin: 12px 0 22px; max-width: 60ch; }
.btn-hero { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #00a8cc, #0090b0); color: #fff; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; box-shadow: 0 8px 20px rgba(0,168,204,.25); }
.btn-hero:hover { filter: brightness(.95); color: #fff; }
.btn-hero-outline { background: transparent; border: 2px solid #fff; }
#particles-js { position: absolute; inset: 0; z-index: 0; }
.hero-bubbles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-carousel .carousel-item > .carousel-content { position: relative; z-index: 3; }
.carousel-overlay { z-index: 1; }

/* Carousel indicators & controls */
.hero-carousel .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); }
.hero-carousel .carousel-indicators .active { background: #fff; }
.hero-carousel .carousel-control-prev-icon, .hero-carousel .carousel-control-next-icon { filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }

/* Cards and stats */
.card-custom, .program-card, .news-card, .management-card-modern { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.06); height: 100%; }
.card-icon, .program-icon { font-size: 2rem; color: #00a8cc; margin-bottom: 10px; }
.program-card .program-title { margin-bottom: 10px; }
.program-card .program-list li { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.program-card .program-list i { color: var(--secondary-color); }
.stats-section { background: var(--primary-color); color: #fff; }
.stat-item { text-align: center; padding: 20px 10px; }
.stat-number { font-size: 2rem; font-weight: 800; display: block; }
.stat-label { opacity: .85; }

/* Management */
.management-photo { position: relative; width: 100%; padding-top: 100%; border-radius: 14px; overflow: hidden; background: #0f2230; }
.management-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.management-photo-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9ecae1; font-size: 2rem; }
.management-social-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; background: rgba(0,0,0,.35); transition: opacity .2s ease; }
.management-photo:hover + .management-social-overlay, .management-photo:hover ~ .management-social-overlay, .management-photo-container:hover .management-social-overlay { opacity: 1; }
.social-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #00a8cc; text-decoration: none; }

/* Contact */
.contact-section { background: var(--section-bg); padding: clamp(60px, 8vw, 100px) 0; }
.section#programs { background: var(--section-bg); }
.contact-hero { text-align: center; margin-bottom: 24px; }
.contact-form { background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.06); padding: 20px; }
.contact-info { background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.06); padding: 18px; margin-bottom: 16px; }
.contact-icon-big { font-size: 1.6rem; color: #00a8cc; margin-bottom: 8px; }
.btn-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border: 0; border-radius: 999px; background: #00a8cc; color: #fff; font-weight: 600; }
.btn-submit.loading { opacity: .8; pointer-events: none; }

/* Contact details lists (phones & emails) */
.contact-phones, .contact-emails { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
@media (min-width: 992px) {
  .contact-phones { grid-template-columns: 1fr; }
  .contact-emails { grid-template-columns: 1fr; }
}
.contact-phones a, .contact-emails a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; text-decoration: none;
  background: #f1f5f9; border: 1px solid #e2e8f0; color: #0b1e2a;
  transition: background .2s ease, border-color .2s ease;
}
.contact-phones a i, .contact-emails a i { color: var(--primary-color); }
.contact-phones a:hover, .contact-emails a:hover { background: #e8eef5; border-color: #d5dee7; }

/* Official Reference Styles */
.official-reference {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.reference-number {
  padding: 10px 12px;
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #2d3748;
  text-align: center;
  letter-spacing: 0.5px;
}

.motto-quote {
  padding: 12px 15px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  font-style: italic;
  color: #1e40af;
  text-align: center;
  line-height: 1.4;
}

.motto-quote i {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.location-info {
  padding: 10px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-align: center;
  color: #475569;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.location-info i {
  color: var(--primary-color);
}

/* Responsive adjustments for official reference */
@media (max-width: 768px) {
  .reference-number {
    font-size: 0.8rem;
    padding: 8px 10px;
  }
  
  .motto-quote {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .location-info {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

/* Footer modern */
.footer { background: #0b1e2a; color: #c9d6df; }
.footer .footer-title { color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer .footer-logo { width: 46px; height: 46px; margin-right: 10px; }
.footer .footer-content { padding: 50px 0 20px; }
.footer .footer-links a { color: #c9d6df; text-decoration: none; display: block; margin-bottom: 10px; transition: color .2s ease; }
.footer .footer-links a:hover { color: #ffffff; }
.footer .footer-links a i { width: 18px; text-align: center; margin-right: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; text-align: center; color: #aab8c2; }

/* Back to Top */
#backToTop { position: fixed; right: 16px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: #00a8cc; color: #fff; border: 0; display: grid; place-items: center; box-shadow: 0 10px 20px rgba(0,0,0,.15); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s; z-index: 1040; }
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .12s ease, transform .12s ease, visibility 0s; }

/* Soft element spacing refinements */
.news-card .news-content { padding-top: 12px; }
.news-card .news-title { line-height: 1.25; }
.news-card .news-excerpt { line-height: 1.55; }

/* ===== NEWS SECTION IMPROVEMENTS - MODERN DESIGN FROM NEWS.PHP ===== */

/* News Cards Modern Design */
.news-card-modern {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #f0f0f0;
}

.news-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00a8cc, #00d4ff);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.news-card-modern:hover::before {
  transform: scaleX(1);
}

.news-card-modern:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 168, 204, 0.15);
  border-color: #e0f7fa;
}

.news-card-modern .card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.news-card-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card-modern:hover img {
  transform: scale(1.1);
}

.news-card-modern .card-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-card-modern:hover .card-img-overlay {
  opacity: 1;
}

.news-card-modern .card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-modern .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.news-card-modern .badge-category {
  background: linear-gradient(135deg, #00a8cc 0%, #0090b0 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.news-card-modern .badge-category:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 168, 204, 0.3);
}

/* Category Colors */
.badge-category.cat-education { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; }
.badge-category.cat-event { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important; }
.badge-category.cat-announcement { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important; }
.badge-category.cat-research { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important; }

.news-card-modern .card-date {
  color: #8b95a7;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-card-modern .card-date i {
  color: #00a8cc;
}

.news-card-modern .card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-modern:hover .card-title {
  color: #00a8cc;
}

.news-card-modern .card-text {
  color: #6c757d;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-modern .card-footer {
  padding: 20px 25px;
  background: transparent;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-read-more {
  background: transparent;
  color: #00a8cc;
  border: 2px solid #00a8cc;
  border-radius: 25px;
  padding: 8px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #00a8cc;
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-read-more:hover::before {
  left: 0;
}

.btn-read-more:hover {
  color: #fff;
  transform: translateX(5px);
}

.btn-read-more i {
  transition: transform 0.3s ease;
}

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

/* Share Buttons Mini */
.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #6c757d;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.share-btn-mini:hover {
  transform: translateY(-3px);
  color: #fff;
}

.share-btn-mini:hover.share-btn-mini[href*="facebook"] {
  background: #1877f2;
}

.share-btn-mini:hover.share-btn-mini[href*="twitter"] {
  background: #1da1f2;
}

.share-btn-mini:hover.share-btn-mini[href*="whatsapp"] {
  background: #25d366;
}

/* Loading Animation */
@keyframes newsCardLoad {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-card-modern {
  animation: newsCardLoad 0.6s ease forwards;
  opacity: 0;
}

.news-card-modern:nth-child(1) { animation-delay: 0.1s; }
.news-card-modern:nth-child(2) { animation-delay: 0.2s; }
.news-card-modern:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design for News Cards */
@media (max-width: 768px) {
  .news-card-modern .card-img-wrapper {
    height: 180px;
  }
  
  .news-card-modern .card-footer {
    flex-direction: column;
    gap: 15px;
  }
  
  .share-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* ===== OLD NEWS SECTION STYLES (DEPRECATED) ===== */
/* News card image handling - Reduced height */
.news-card .news-image {
  position: relative;
  width: 100%;
  height: 180px; /* Reduced from 220px */
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

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

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

/* Fallback design with logo */
.news-card .news-image-fallback {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00a8cc 0%, #0090b0 100%);
  overflow: hidden;
}

.news-card .news-logo-fallback {
  width: 80px;
  height: 80px;
  object-fit: contain;
  z-index: 2;
  position: relative;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.news-card .news-fallback-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(45deg, 
      transparent 30%, 
      rgba(255, 255, 255, 0.1) 50%, 
      transparent 70%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Alternative pattern background for fallback */
.news-card .news-image-fallback::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.05) 10px,
      rgba(255, 255, 255, 0.05) 20px
    );
  z-index: 1;
}

/* Hover effect for fallback image */
.news-card:hover .news-logo-fallback {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.news-card:hover .news-fallback-overlay {
  background: 
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.15) 100%),
    linear-gradient(45deg, 
      transparent 30%, 
      rgba(255, 255, 255, 0.15) 50%, 
      transparent 70%);
}

.news-card .news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
}

/* Share dropdown improvements */
.news-share.dropdown {
  position: relative;
}

.news-share .share-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.news-share .share-btn:hover {
  background: #00a8cc;
  border-color: #00a8cc;
  color: #fff;
  transform: rotate(15deg);
}

/* Dropdown positioning for dropup */
.news-share.dropup .dropdown-menu {
  bottom: 100% !important;
  top: auto !important;
  margin-bottom: 10px;
  transform-origin: bottom center;
}

.news-share .share-dropdown {
  min-width: 220px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-share .dropdown-header {
  font-weight: 600;
  color: #495057;
  padding: 10px 16px;
  font-size: 0.9rem;
}

.news-share .share-link {
  padding: 10px 16px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.news-share .share-link:hover {
  background: #f8f9fa;
  padding-left: 20px;
}

.news-share .share-link i {
  width: 20px;
  text-align: center;
}

/* Copy link feedback */
.news-share .copy-link {
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
}

.news-share .copy-link:hover {
  background: #f8f9fa;
}

.news-share .copy-link.copied {
  background: #d4edda !important;
  color: #155724 !important;
}

.news-share .copy-link.copied i {
  color: #155724 !important;
}

/* Copy tooltip */
.copy-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-bottom: 5px;
}

.copy-tooltip.show {
  opacity: 1;
}

.copy-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
}

/* News card responsive improvements */
@media (max-width: 768px) {
  .news-card .news-image {
    height: 150px; /* Even smaller on mobile */
  }
  
  .news-share .share-dropdown {
    min-width: 200px;
  }
}

@media (min-width: 1200px) {
  .news-card .news-image {
    height: 200px; /* Slightly larger on big screens */
  }
}

/* News card hover effects */
.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* News footer alignment */
.news-card .news-footer {
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
  margin-top: auto;
}

/* ===== ABOUT SECTION - PROFESSIONAL REDESIGN ===== */

/* About Section Main Container */
.about-section {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 100px 0;
  overflow: hidden;
}

.about-background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(0, 168, 204, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(45, 143, 71, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.about-section .container {
  z-index: 2;
}

/* Section Header */
.about-header {
  margin-bottom: 80px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #00a8cc, #0090b0);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 168, 204, 0.3);
}

.about-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.title-decoration {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #00a8cc, #0090b0);
  margin: 0 auto;
  border-radius: 2px;
}

/* Vision Section - Compact Design */
.vision-section {
  margin-bottom: 60px;
}

.vision-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 168, 204, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00a8cc, #0090b0, #2d8f47);
}

.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 168, 204, 0.12);
}

.vision-header {
  text-align: center;
  margin-bottom: 30px;
}

.vision-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.vision-icon-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(0, 168, 204, 0.1), rgba(45, 143, 71, 0.1));
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.vision-icon {
  position: relative;
  z-index: 2;
  font-size: 2.2rem;
  color: #00a8cc;
}

.vision-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
}

/* Vision Points - Compact */
.vision-points {
  margin-bottom: 30px;
}

.vision-point {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 15px;
  background: rgba(0, 168, 204, 0.02);
  border-radius: 12px;
  border-left: 3px solid #00a8cc;
  transition: all 0.3s ease;
}

.vision-point:hover {
  background: rgba(0, 168, 204, 0.05);
  transform: translateX(5px);
}

.point-icon {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #00a8cc, #0090b0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.point-icon i {
  color: white;
  font-size: 0.9rem;
}

.vision-point p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #4a5568;
}

/* Vision Highlight - Compact */
.vision-highlight {
  background: linear-gradient(135deg, #00a8cc, #0090b0);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vision-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

.highlight-content {
  position: relative;
  z-index: 2;
}

.highlight-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.highlight-icon i {
  font-size: 1.5rem;
  color: white;
}

.vision-highlight h4 {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.vision-highlight p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* Audience & Benefits Section */
.audience-section {
  margin-bottom: 80px;
}

.audience-card, .benefits-card {
  background: white;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 168, 204, 0.1);
  height: 100%;
  overflow: hidden;
  transition: all 0.3s ease;
}

.audience-card:hover, .benefits-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.card-header-custom {
  background: linear-gradient(135deg, #00a8cc, #0090b0);
  padding: 30px;
  text-align: center;
  position: relative;
}

.benefits-card .card-header-custom {
  background: linear-gradient(135deg, #2d8f47, #22c55e);
}

.card-icon-wrapper {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.card-icon-wrapper i {
  font-size: 2rem;
  color: white;
}

.card-header-custom h4 {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.card-body-custom {
  padding: 30px;
}

/* Audience Items */
.audience-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.audience-item:hover {
  background: rgba(0, 168, 204, 0.05);
}

.audience-item .item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(0, 168, 204, 0.1), rgba(0, 168, 204, 0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.audience-item .item-icon i {
  color: #00a8cc;
  font-size: 1rem;
}

.audience-item p {
  margin: 0;
  color: #4a5568;
  line-height: 1.5;
}

/* Benefits Items */
.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: rgba(45, 143, 71, 0.05);
}

.benefit-item .item-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2d8f47, #22c55e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.benefit-item p {
  margin: 0;
  color: #4a5568;
  line-height: 1.5;
}

/* Distinguishes Section */
.distinguishes-section {
  margin-bottom: 80px;
}

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

.distinguishes-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 15px;
}

.distinguishes-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0;
}

.distinguish-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  height: 100%;
  position: relative;
  border: 1px solid rgba(0, 168, 204, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.distinguish-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00a8cc, #0090b0);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.distinguish-card:hover::before {
  transform: scaleX(1);
}

.distinguish-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 168, 204, 0.15);
  border-color: rgba(0, 168, 204, 0.2);
}

.distinguish-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(0, 168, 204, 0.1), rgba(0, 168, 204, 0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

.distinguish-card:hover .distinguish-icon {
  background: linear-gradient(135deg, #00a8cc, #0090b0);
  transform: scale(1.1);
}

.distinguish-icon i {
  font-size: 2rem;
  color: #00a8cc;
  transition: color 0.3s ease;
}

.distinguish-card:hover .distinguish-icon i {
  color: white;
}

.distinguish-card h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 15px;
}

.distinguish-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

.card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  background: rgba(0, 168, 204, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #00a8cc;
  font-size: 0.9rem;
}

/* Official Section - Compact Design */
.official-section {
  margin-bottom: 40px;
}

.official-card {
  background: linear-gradient(135deg, #1a202c, #2d3748);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  position: relative;
  transition: all 0.3s ease;
}

.official-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00a8cc, #0090b0, #f39c12);
}

.official-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.official-header {
  background: rgba(0, 168, 204, 0.1);
  padding: 25px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.official-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #00a8cc, #0090b0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.official-icon i {
  font-size: 1.8rem;
  color: white;
}

.official-header h4 {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.official-content {
  padding: 30px;
  text-align: center;
}

.reference-number {
  margin-bottom: 20px;
}

.reference-number .label {
  color: #a0aec0;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 5px;
}

.reference-number .number {
  color: #00a8cc;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

.motto {
  margin-bottom: 20px;
  padding: 18px;
  background: rgba(0, 168, 204, 0.05);
  border-radius: 12px;
  border-left: 4px solid #00a8cc;
}

.motto i {
  color: #00a8cc;
  font-size: 1rem;
  margin: 0 8px;
}

.motto span {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
}

.location {
  color: #a0aec0;
  font-size: 0.95rem;
}

.location i {
  color: #00a8cc;
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-section {
    padding: 80px 0;
  }
  
  .vision-card {
    padding: 40px 30px;
  }
  
  .distinguish-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 60px 0;
  }
  
  .about-header {
    margin-bottom: 60px;
  }
  
  .vision-card {
    padding: 30px 20px;
  }
  
  .vision-point {
    flex-direction: column;
    text-align: center;
  }
  
  .point-icon {
    margin: 0 auto 15px;
  }
  
  .vision-highlight {
    padding: 30px 20px;
  }
  
  .card-body-custom {
    padding: 20px;
  }
  
  .official-content {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .about-title {
    font-size: 2rem;
  }
  
  .about-subtitle {
    font-size: 1rem;
  }
  
  .vision-title {
    font-size: 1.5rem;
  }
  
  .distinguishes-title {
    font-size: 2rem;
  }
  
  .distinguish-card {
    padding: 30px 20px;
  }
}

/* ===== Social links (Contact + Footer) ===== */
/* Base brand variable per platform */
.social-link { --brand: var(--primary-color); }
.social-link.facebook { --brand: #1877f2; }
.social-link.twitter { --brand: #1da1f2; }
.social-link.instagram { --brand: #e1306c; }
.social-link.whatsapp { --brand: #25d366; }
.social-link.tiktok { --brand: #111111; }
.social-link.linkedin { --brand: #0a66c2; }

/* Contact section chips */
.contact-section .social-links { gap: 12px; }
.contact-section .social-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 999px; text-decoration: none;
  background: #f1f5f9; border: 1px solid #e2e8f0; color: #0b1e2a;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.contact-section .social-link i { color: var(--brand); font-size: 1rem; }
.contact-section .social-link:hover { background: var(--brand); border-color: transparent; color: #fff; transform: translateY(-1px); }
.contact-section .social-link:hover i { color: #fff; }

/* Footer round icons */
.footer .social-links { gap: 10px; }
.footer .social-link {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.footer .social-link:hover { background: var(--brand); border-color: transparent; color: #fff; transform: translateY(-1px); }
.footer .social-link i { font-size: 0.95rem; }

/* ===== Hero content centering & compact spacing ===== */
.hero-carousel .carousel-content > div { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-carousel .carousel-indicators { bottom: 14px; }
@media (max-width: 576px) {
  .hero-carousel { min-height: 60vh; }
  .hero-carousel .carousel-content { padding: 0 5%; }
  .hero-text { margin: 8px 0 16px; }
  /* Hide prev/next controls on small screens */
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next { display: none !important; }
  /* Keep back-to-top fully visible on small screens / notch devices */
  #backToTop { 
    right: max(8px, env(safe-area-inset-right)); 
    right: max(8px, constant(safe-area-inset-right));
    bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px));
    bottom: max(12px, calc(constant(safe-area-inset-bottom) + 8px));
    width: 40px; height: 40px;
  }
}
