/* ===========================
   EMIRATES INVESTMENT BANK
   STYLE — Dark Premium Edition (Bright Text)
   =========================== */

/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  color: #fff;
  background-color: #0e031d;
  overflow-x: hidden;
}
/* ===== GLOBAL LUXURY EFFECTS ===== */

/* --- Hero Parallax Background --- */
.hero-section {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* --- Shimmering Gold Text --- */
.hero-title {
  position: relative;
  display: inline-block;
  color: #cda434;
  background: linear-gradient(90deg, #cda434 0%, #f8e6a0 50%, #cda434 100%);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s infinite linear;
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* --- Scroll Reveal Enhancements --- */
[data-aos] {
  transition-property: transform, opacity;
  will-change: transform, opacity;
}

/* Optional: Slight lift when hovering key cards or sections */
.section-card:hover {
  transform: translateY(-5px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(205, 164, 52, 0.25);
}

/* COLOR VARIABLES */
.text-gold { color: #cda434 !important; }
.text-purple { color: #cda434 !important; }

.btn-gold {
  background-color: #cda434;
  color: #0f0f13;
  border: none;
  transition: all 0.3s ease;
}
.btn-gold:hover {
  background-color: #e5c65a;
  color: #000;
}

.btn-outline-gold {
  border: 2px solid #cda434;
  color: #cda434;
  background: transparent;
  transition: all 0.3s ease;
}
.btn-outline-gold:hover {
  background-color: #cda434;
  color: #0f0f13;
}

/* NAVBAR */
.navbar-white {
  background: #100422be;
  box-shadow: 0 2px 20px rgba(255, 252, 255, 0.652);
}
.navbar .nav-link {
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar .nav-link:hover {
  color: #cda434;
}
.navbar .dropdown-menu {
  background: #1d1d27;
  border-radius: 10px;
  border: none;
  box-shadow: 0 6px 25px rgba(0,0,0,0.6);
}



/* --- CTA SECTION REFINEMENT --- */
.cta-section {
  background: linear-gradient(135deg, #280755, #1c0e2e);
  position: relative;
  z-index: 1;
  padding-bottom: 90px; /* adds safe space above fixed buttons */
}

/* Column headings */
.cta-section h5 {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Footer links */
.footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: #cda434; /* gold hover */
  transform: translateX(4px);
}

/* Footer bottom text */
.cta-section .text-white-70 {
  color: rgba(255, 255, 255, 0.7);
}

/* Ensure the floating buttons don't overlap */
.fixed-buttons {
  z-index: 9999;
}

footer, .cta-section {
  padding-bottom: 120px !important; /* ensures full visibility of footer text */
}


/* consistency */
.text-white-70 { color: #fff; }
.btn-signup-lg { background: linear-gradient(135deg,#4b0082,#cda434); color:#fff; border:none; border-radius:.75rem; padding:.75rem; }
.btn-signup-lg:hover { opacity:.95; transform: translateY(-2px); }

.modal-content.text-center { color:#fff; }
.btn-close-white { filter: invert(1); }

/* === Navbar Dropdown Text Fix === */
.navbar .dropdown-menu .dropdown-item {
  color: #f5f5f5 !important;  /* bright white for visibility */
  font-weight: 500;
  transition: color 0.3s ease, background 0.3s ease;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  color: #cda434 !important;  /* elegant gold accent */
  background-color: rgba(255, 255, 255, 0.05);  /* subtle hover background */
}


/* NAVBAR */
.navbar-white {
  background: #100422df;
  box-shadow: 0 2px 20px rgba(255,252,252,0.652);
}
.navbar .nav-link {
  color: #f8f8f8;
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar .nav-link:hover {
  color: #cda434;
}
.navbar .dropdown-menu {
  background: #1d1d27;
  border-radius: 10px;
  border: none;
  box-shadow: 0 6px 25px rgba(0,0,0,0.6);
}

@media (max-width: 991px) {
  .navbar .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
  }

  .navbar .dropdown-menu.show {
    max-height: 500px; /* adjust if needed */
    opacity: 1;
  }
}


/* --- LATEST NEWS SECTION --- */
.latest-news-section body {
  font-family: "Poppins", sans-serif;
  background-color: #141418;
  color: #eee;
}

.text-gold {
  color: #cda434;
}

.latest-news-section {
  padding: 80px 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-item {
  background: #1b1b22;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
}
.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.news-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.news-thumb {
  width: 250px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
}
.news-summary h4 {
  color: gold;
  margin-bottom: 0.4rem;
}
.news-summary p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.6rem;
}

.btn-read-more {
  background: transparent;
  border: 1px solid #cda434;
  color: #cda434;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-read-more:hover {
  background: #cda434;
  color: #141418;
}

.news-body {
  display: none;
  margin-top: 1rem;
  color: #ddd;
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
}

/* Active expanded section */
.news-item.active .news-body {
  display: block;
}

@media (max-width: 768px) {
  .news-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .news-thumb {
    width: 100%;
    height: 200px;
  }
}

/* LATEST NEWS IMAGES */
.news-img {
  height: 180px;
  overflow: hidden;
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-img img {
  transform: scale(1.08);
}
html {
  scroll-behavior: smooth;
}

/* In css/news-page.css */
.latest-news-section {
    /* Your existing styles here, if any */
    padding-top:5% !important; /* Increase the top padding to push content down */
    margin-top: 3rem; /* Add margin to completely clear the fixed-top navbar */
}

@media (max-width: 768px) {
  .latest-news-section {
    padding-top: 35% !important; /* moves it further down */
  margin-top: 3rem;
}
}


/* LIVE MARKET TICKER */
.ticker-wrap {
  position: sticky;
  top: 78px; 
  width: 100%;
  overflow: hidden;
  background: #fffbea; 
  border-bottom: 2px solid #d4af37; /* gold accent */
  color: #111;
  z-index: 999;
  padding: 0.3rem 0;
}

/* Push ticker down only on mobile */
@media (max-width: 768px) {
  .ticker-wrap {
    top: 148px !important; /* moves it further down */
  }
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
}

.ticker-item {
  display: inline-block;
  margin: 0 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.price {
  font-weight: 600;
}

.change.up {
  color: #16a34a; /* green for positive */
}

.change.down {
  color: #dc2626; /* red for negative */
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* === Navbar Dropdown Text Fix === */
.navbar .dropdown-menu .dropdown-item {
  color: #f5f5f5 !important;  /* bright white for visibility */
  font-weight: 500;
  transition: color 0.3s ease, background 0.3s ease;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  color: #cda434 !important;  /* elegant gold accent */
  background-color: rgba(255, 255, 255, 0.05);  /* subtle hover background */
}

/* === MOBILE NAVBAR (Majestic Animated Version) === */
@media (max-width: 991px) {
  .mobile-nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(16, 4, 34, 0.96);
    backdrop-filter: blur(8px);
    border-radius: 0 0 18px 18px;
    transform: translateY(-120%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1.2);
    z-index: 1049;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  }

  .mobile-nav.active {
    transform: translateY(0);
  }

  .mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
  }

  .mobile-nav .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-nav .nav-link {
    display: block;
    color: #f8f8f8;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeSlideIn 0.4s ease forwards;
  }

  /* make each link animate sequentially */
  .mobile-nav.active .nav-link:nth-child(1) { animation-delay: 0.05s; }
  .mobile-nav.active .nav-link:nth-child(2) { animation-delay: 0.1s; }
  .mobile-nav.active .nav-link:nth-child(3) { animation-delay: 0.15s; }
  .mobile-nav.active .nav-link:nth-child(4) { animation-delay: 0.2s; }
  .mobile-nav.active .nav-link:nth-child(5) { animation-delay: 0.25s; }

  @keyframes fadeSlideIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Dropdown animation */
  .mobile-nav .dropdown-menu {
    background: rgba(16, 4, 34, 0.96);
    border: none;
    box-shadow: inset 0 2px 15px rgba(255, 255, 255, 0.05);
    padding-left: 25px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1.2);
  }

  .mobile-nav .dropdown-menu.active {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav .dropdown-item {
    color: #f5f5f5;
    font-weight: 500;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
  }

  .mobile-nav .dropdown-menu.active .dropdown-item {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav .dropdown-item:hover {
    color: #cda434;
    background: none;
  }
}