

/* ===============================
   RICHSEA — Global Styles
   =============================== */

/* ===== CSS Variables (Theme) ===== */
:root{
  --bg-top:#001f3f;
  --bg-mid:#003a66;
  --bg-deep:#001429;
  --accent:#00ccff;
  --accent-2:#6af3ff;
  --accent-3:#7efff5;
  --glass: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.12);
  --text:#eaf6ff;
  --muted:#9fc2d8;
  --good:#2fe39a;
  --bad:#ff7d7d;
  --glow: 0 0 24px rgba(0,204,255,.35), 0 0 60px rgba(0,204,255,.15);
}

/* ===== Base ===== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  color:var(--text);
  background: linear-gradient(to bottom, var(--bg-top), var(--bg-mid) 40%, var(--bg-deep) 100%);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}

h1,h2,h3,h4,h5{margin:0 0 .6rem}
p{margin:.5rem 0 1rem; color:var(--text)}
a{color:var(--accent); text-decoration:none}
a:hover{opacity:.9}
.muted{color:var(--muted)}
small, .small { font-size:.9rem; color:var(--muted) }

/* Utilities */
.container{width:min(1200px, 92vw); margin:0 auto}
.row{display:flex; gap:1rem; flex-wrap:wrap}
.center{display:grid; place-items:center}
.hidden{display:none !important}

/* ===== Ocean background + Rays + Parallax ===== */
.ocean{
  position:fixed; inset:0; z-index:-2; pointer-events:none;
  background: radial-gradient(ellipse 180% 100% at 50% 0%,
    rgba(0, 224, 255, .05), transparent 40%);
}
.ray{
  position:absolute; top:-10vh; bottom:-10vh; width:40vw;
  background: radial-gradient(ellipse at top,
    rgba(255,255,255,.12), rgba(255,255,255,0) 60%);
  filter: blur(4px);
  mix-blend-mode: screen;
  animation: sway 10s ease-in-out infinite;
}
.ray-1{left:5vw; animation-delay:0s}
.ray-2{left:35vw; animation-delay:2s}
.ray-3{left:65vw; animation-delay:4s}
@keyframes sway{
  0%,100%{transform: translateY(-2%) rotate(-3deg)}
  50%{transform: translateY(2%) rotate(3deg)}
}

.parallax{position:absolute; inset:0; opacity:.2; background-repeat:repeat}
.layer1{background-image:radial-gradient(circle at 20% 80%, rgba(0,224,255,.12) 0 35%, transparent 36%)}
.layer2{background-image:radial-gradient(circle at 70% 60%, rgba(0,224,255,.09) 0 30%, transparent 31%); animation: drift 30s linear infinite}
.layer3{background-image:radial-gradient(circle at 40% 30%, rgba(0,224,255,.07) 0 25%, transparent 26%); animation: drift 45s linear infinite reverse}
@keyframes drift{from{background-position:0 0} to{background-position:600px 0}}
/* turbulence pulse effect */
.ocean.pulse{filter:contrast(105%) saturate(105%) drop-shadow(0 0 10px rgba(106,243,255,.12))}

/* ===== Navbar (sticky) ===== */
.nav-wrap{position:sticky; top:0; z-index:70; padding:10px 0; background:linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.0))}
.navbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:.75rem 1rem; margin:0 auto; width:min(1200px, 94vw);
  background: rgba(0,0,0,.35);
  border:1px solid var(--stroke);
  border-radius:14px; backdrop-filter: blur(10px);
}
.brand{display:flex; align-items:center; gap:.6rem}
.logo{width:40px; height:40px; object-fit:contain}
.brand-name{font-weight:800; letter-spacing:.6px}
.nav-links{display:flex; gap:.3rem; list-style:none; padding:0; margin:0}
.nav-links a{padding:.5rem .8rem; border-radius:10px}
.nav-links a.active, .nav-links a:hover{background:rgba(255,255,255,.08)}
/* Download button */
.btn-download{
  padding:.55rem .9rem; border-radius:999px; border:none;
  background:linear-gradient(45deg, var(--accent), var(--accent-2)); color:#00223a; font-weight:700; cursor:pointer
}

/* ===== Ticker ===== */
.ticker-bar{
  position:sticky; top:64px; z-index:60;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--stroke);
}
.ticker-inner{
  display:flex; gap:1rem; align-items:center;
  white-space:nowrap; overflow-x:auto; padding:.5rem 1rem;
}
.ticker-item{
  display:flex; gap:.5rem; align-items:center;
  padding:.25rem .75rem; border:1px solid var(--stroke);
  border-radius:999px; background:rgba(255,255,255,.05);
  font-size:.95rem;
}
.t-up{color:var(--good)}
.t-down{color:var(--bad)}
.spinner{
  width:18px; height:18px; border-radius:50%;
  border:3px solid rgba(255,255,255,.15);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* ===== Hero / Section 1 ===== */
.hero{
  text-align:center; padding: clamp(80px, 14vh, 160px) 1rem 2rem;
}
.welcome-badge{
  display:inline-block; padding:.35rem .7rem; border-radius:999px;
  border:1px dashed rgba(255,255,255,.25);
  background: rgba(0,0,0,.28);
  box-shadow: var(--glow);
  font-weight:700; letter-spacing:.4px;
}
.welcome-badge .rs{background:linear-gradient(45deg,#7ce9ff,#fff); -webkit-background-clip:text; background-clip:text; color:transparent; font-weight:900}
.hero h1{font-size: clamp(1.8rem, 4.6vw, 3.2rem)}
.grad{background: linear-gradient(45deg, #7ce9ff, #fff); -webkit-background-clip:text; background-clip:text; color:transparent}
.subtitle{color:var(--muted); max-width:780px; margin:.5rem auto 0}
.hero-cta{display:flex; gap:.7rem; justify-content:center; margin-top:1.1rem}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  padding:.75rem 1.05rem; border-radius:12px; border:1px solid var(--stroke);
  background:rgba(255,255,255,.06); color:var(--text); cursor:pointer;
}
.btn-primary{background:linear-gradient(45deg, var(--accent), var(--accent-2)); color:#00223a; border:none}
.btn-ghost{background:transparent}

/* ===== Cards / Grid ===== */
.card {
border:1px solid var(--stroke); border-radius:16px; padding:1rem;
  background: rgba(0,0,0,.25);
}
.glass{backdrop-filter: blur(12px); background: var(--glass)}
.grid-3{
  display:grid; gap:1rem; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  margin: 1.5rem;
}

/* ===== Token Widget ===== */
.token-widget{max-width:1100px; margin: 1rem auto}
.tw-row{display:grid; grid-template-columns: repeat(4,1fr); gap:1rem}
.tw-stat label{display:block; font-size:.9rem; color:var(--muted)}
.stat-value{font-size:1.25rem; font-weight:700}
.tw-actions{display:flex; gap:1rem; align-items:center; margin-top:.75rem}
.contract{font-size:.9rem; width: 100%; display: block; word-break: break-all; color:var(--muted); user-select:all; cursor:pointer}
.contract:hover{color:var(--text)}

/* ===== Feature (Lottie + Copy) ===== */
.feature{
  display:grid; grid-template-columns: 1fr 1fr; gap:1rem; align-items:center;
  padding: 1.5rem; margin: 1.5rem; border:1px solid var(--stroke);
  border-radius:16px; background: rgba(0,0,0,.22); backdrop-filter: blur(6px);
}
.feature.reverse{direction:rtl}
.feature.reverse > *{direction:ltr}
.feature .feature-copy p{color:var(--muted)}

/* ===== News Slider (Section 4 and News page) ===== */


/* ===== News Section ===== */
.news-rail {
  margin: 2rem auto;
  width: min(1200px, 92vw);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.news-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.news-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(0,0,0,.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 12px 30px rgba(0,0,0,.25);
}

/* Mobile: force 2 cards per row */
@media (max-width: 768px) {
  .news-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Videos Section ===== */
.videos-rail {
  margin: 2rem auto;
  width: min(1200px, 92vw);
}

.videos-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(50% - .5rem); /* 2 per screen mobile */
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
}

.video-card {
  scroll-snap-align: start;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: .8rem;
  background: rgba(0,0,0,.35);
}

.video-card iframe {
  border-radius: 10px;
  margin-bottom: .5rem;
}

/* Desktop: show 3 videos per screen */
@media (min-width: 1024px) {
  .videos-track {
    grid-auto-columns: calc(33.333% - .66rem);
  }
}




/* ===== Tokenomics 3D-ish Pie ===== */
#tokenPieWrap{
  margin: 1rem auto; width:min(1100px, 92vw);
  background: rgba(0,0,0,.28); border:1px solid var(--stroke);
  border-radius:16px; padding:1rem; backdrop-filter: blur(8px);
  box-shadow: var(--glow);
  position:relative;
}
#tokenPie{width:100%; max-width:760px; display:block; margin:0 auto}
.pie-legend{display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap:.6rem; margin-top:1rem}
.pie-item{display:flex; gap:.6rem; align-items:center}
.pie-dot{width:14px; height:14px; border-radius:50%}
.pie-tip{
  position:absolute; pointer-events:none; padding:.4rem .6rem; font-size:.9rem;
  background: rgba(0,0,0,.75); border:1px solid var(--stroke); border-radius:8px;
  transform: translate(-50%, -120%); white-space:nowrap; display:none;
}

/* ===== Footer Abyss ===== */
.abyss{position:relative; margin-top:3rem; padding:2rem 1rem 6rem; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.5))}
.ground{
  position:absolute; left:0; right:0; bottom:0; height:120px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.6), rgba(0,0,0,.9));
}

.creature{position:absolute; bottom:10px; width:60px; height:60px; opacity:.9}
.crab{left:10%; background: radial-gradient(circle at 50% 50%, #ff8a8a 0 60%, transparent 61%); animation: scuttle 7s ease-in-out infinite}
@keyframes scuttle{0%,100%{transform:translateX(0)}50%{transform:translateX(20px)}}
.angler{left:48%; width:70px; height:70px; background: radial-gradient(circle at 40% 40%, #f7ffb8 0 10%, #5bb4ff 11% 60%, transparent 61%); box-shadow:0 0 12px rgba(255,255,200,.5)}
.jelly{right:12%; width:50px; height:70px; background: radial-gradient(ellipse at 50% 30%, #d2b7ff 0 40%, transparent 41%); animation: float 6s ease-in-out infinite}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}

/* Footer links layout */
.footer-links{position:relative; z-index:2; display:grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap:1rem}
.footer-links h5{margin-bottom:.5rem}
.footer-links a{display:flex; color:var(--text); opacity:.9; margin:.2rem 0}
.footer-links a:hover{opacity:1}
.social-row{display:flex; gap:.6rem; margin-top:.4rem}
.social-row a{display:inline-flex; align-items:center; gap:.4rem; padding:.4rem .6rem; border:1px solid var(--stroke); border-radius:999px}

:root{
  --bg:#001f3f;
  --panel: #0f152b;
  --panel-2:#0b1228;
  --text:#eaf2ff;
  --muted:#9fb0d1;
  --line: rgba(255,255,255,.08);
  --accent:#00ccff;
  --accent-2:#6af3ff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
}

/* ===== Chatbot ===== */
.chat-fab{
  position:fixed; right:16px; bottom:16px; z-index:1200;
  width:56px; height:56px; border-radius:50%; border:1px solid var(--stroke);
  background:linear-gradient(45deg, var(--accent), var(--accent-2)); color:#00223a; cursor:pointer;
  display:grid; place-items:center; box-shadow: 0 10px 26px rgba(0,0,0,.35)
}
.chat-fab img{width:100px; height:100px; object-fit:align; margin-top:-20px; margin-left: -28px;}
.chat-panel{
  position:fixed; right:16px; bottom:84px; z-index:1200; width:min(92vw,380px); max-height:72vh;
  display:flex; flex-direction:column; border:1px solid var(--stroke); border-radius:16px;
  background: rgba(0,0,0,.78); backdrop-filter: blur(12px)
}
.chat-head{display:flex; align-items:center; justify-content:space-between; padding:.6rem .7rem; border-bottom:1px solid var(--stroke)}
.bot-id{display:flex; gap:.6rem; align-items:center}
.bot-avatar{width:36px; height:36px; border-radius:50%; background:
  radial-gradient(circle at 30% 35%, #fff 0 6px, transparent 7px),
  radial-gradient(circle at 66% 42%, #fff 0 6px, transparent 7px),
  radial-gradient(circle at 50% 70%, #f9a9bc 0 7px, transparent 8px),
  linear-gradient(#79e6ff, #2ecbff);
  box-shadow: inset 0 -6px 14px rgba(0,0,0,.25), 0 0 16px rgba(122, 238, 255, .4)
}
.bot-avatar.mouth{animation: speak .18s steps(2) infinite}
@keyframes speak{
  0% { box-shadow: inset 0 -6px 14px rgba(0,0,0,.25), 0 0 16px rgba(122, 238, 255, .4) }
  100%{ box-shadow: inset 0 -1px 4px rgba(0,0,0,.25), 0 0 16px rgba(122, 238, 255, .6) }
}
.head-controls .icon-btn{background:transparent; border:none; color:var(--text); font-size:1.05rem; cursor:pointer}
.chat-body{padding:.7rem; overflow:auto; display:flex; flex-direction:column; gap:.5rem}
.chat-msg{padding:.5rem .7rem; border-radius:12px; background: rgba(255,255,255,.07); max-width:90%}
.chat-msg.user{align-self:flex-end; background: rgba(0,224,255,.18)}
.chat-input{display:flex; gap:.5rem; padding:.6rem; border-top:1px solid var(--stroke)}
.chat-input input{flex:1; padding:.6rem .7rem; border-radius:10px; border:1px solid var(--stroke); background: rgba(0,0,0,.35); color:var(--text)}
/* ===============================
   Mobile Adaptations (Non-destructive)
   =============================== */

@media (max-width: 768px) {

  /* Prevent horizontal scroll */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Navbar & brand */
  .navbar {
    flex-wrap: wrap;
    gap: .6rem;
    padding: .6rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Hero */
  .hero-cta {
    flex-direction: column;
    gap: .6rem;
  }

  /* Token widget */
  .tw-row {
    grid-template-columns: 1fr 1fr !important;
    gap: .8rem;
  }
  .tw-actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* Feature blocks stack */
  .feature {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .feature img, .feature lottie-player {
    max-width: 80%;
    margin: 0 auto;
  }

  /* News & Videos sliders */
  .news-track {
    grid-auto-columns: 80% !important;
  }
  .videos-track {
    grid-auto-columns: 90% !important;
  }

  /* Tokenomics chart */
  #tokenPie {
    width: 100% !important;
    height: auto !important;
  }

  /* Footer */
  .footer-links {
    position: relative;
    z-index: 2;
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
  .ground {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
  }
  .social-row {
    justify-content: center;
  }

  /* Chatbot */
  .chat-panel {
    width: 95%;
    right: 2.5%;
    bottom: 100px;
    height: 80%;
    max-height: none;
  }
  .chat-body {
    max-height: calc(100% - 120px);
  }
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* pushes footer down */
}

footer {
  background: #001f3f; /* your footer color */
  color: white;
  padding: 20px;
  text-align: center;
}

footer {
  background: #000;       /* black box */
  color: white;
  padding: 30px 20px;
}

.footer-box {
  display: flex;
  flex-wrap: wrap;        /* make it mobile friendly */
  justify-content: space-around;
  text-align: left;
}

.footer-column {
  flex: 1 1 200px;        /* responsive column */
  margin: 10px;
}

.footer-column h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #00ccff;         /* accent color */
}

.footer-column p {
  margin: 5px 0;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 10px;
  font-size: 14px;
}

@media (max-width: 600px) {
  .chatbot-container {
    width: 95%;
    height: 80vh;
    bottom: 10px;
    right: 2.5%;
  }
}

/* ...existing code... */


.section-2 .logo {
  max-width: 100%;   /* prevent it from going outside the box */
  height: auto;      /* keeps correct aspect ratio */
  object-fit: contain;  /* makes it fit inside neatly */
  display: block;
  margin: 0 auto;    /* centers the image inside the box */
}






/* =======================
   Navigation Bar Styling
   ======================= */
nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
}

nav a {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 14px;
  color: white;
  text-decoration: none;
  min-width: 0;
}

@media (max-width: 480px) {
  nav a {
    font-size: 12px;
    padding: 6px;
  }
}






.richsea-live-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 10px;
  flex-wrap: wrap; /* Makes it responsive */
}

.richsea-info {
  flex: 1 1 250px;
  background: #0b1e3d;
  color: white;
  padding: 15px;
  border-radius: 10px;
}

.richsea-image {
  flex: 1 1 150px;
  text-align: center;
}

.richsea-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
   }





.contract-address {
  white-space: nowrap;
  display: block;
  font-family: monospace;
  font-size: clamp(0.7rem, 2.5vw, 1rem); /* Responsive font size */
}




.contract-address {
  white-space: nowrap;       /* Keep it in one line */
  overflow-x: auto;          /* Allow horizontal scrolling if needed */
  display: block;
  font-family: monospace;    /* Easier to read addresses */
  font-size: 0.85rem;        /* Slightly smaller for mobile */
  word-break: break-all;     /* Breaks if the container is very small */
}




.contract-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d1b2a;   /* dark background */
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  font-family: monospace;
}

#contract-address {
  white-space: nowrap;
  overflow-x: auto;
  font-size: clamp(0.7rem, 2.5vw, 1rem); /* responsive font */
  margin: 0;
}

.copy-btn {
  background: #1d4ed8; /* blue button */
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  background: #2563eb;
}

.copy-btn.copied {
  background: #16a34a; /* green when copied */
  transform: scale(1.05);
}





/* Assuming your header uses .site-header */
.contract-address {
  background-color: inherit;  /* use same color as header */
  color: #ffffff;             /* white text, same as header */
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;     /* clean look for addresses */
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* optional divider */
}

.contract-address button {
  background: #1a73e8;  /* or copy your header button style */
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.contract-address button:hover {
  background: #1669c1;
}




.tokenomics-section {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  padding: 30px 15px;
  border-radius: 16px;
  text-align: center;
  color: #fff;
  max-width: 600px;
  margin: auto;
}

.tokenomics-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

canvas {
  max-width: 100%;
  height: auto;
}






.tokenomics-section {
  background: radial-gradient(circle at center, #1e293b, #0f172a);
  padding: 40px 20px;
  border-radius: 16px;
  text-align: center;
  max-width: 800px;
  margin: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.tokenomics-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.chart-container {
  max-width: 600px;
  margin: auto;
}

canvas {
  filter: drop-shadow(6px 10px 12px rgba(0,0,0,0.6));
  margin-bottom: 20px;
  transform: perspective(1000px) rotateX(10deg);
  transition: transform 0.5s ease-in-out;
}

canvas:hover {
  transform: perspective(1000px) rotateX(0deg) scale(1.05);
}

.stats-container {
  margin-top: 20px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.stats-container h3 {
  margin-bottom: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}

.stats-grid li {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 15px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-grid li i {
  width: 18px;
  height: 18px;
  color: #38bdf8; /* cyan accent */
  flex-shrink: 0;
}

.last-updated {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 12px;
}










.news-glass {
  position: relative;   /* prevent overlapping */
  z-index: 1;           /* keep it above background only */
  margin-bottom: 20px;  /* space between news and video */
}

.video-slider {
  position: relative;   /* reset if it was absolute */
  z-index: 2;           /* make sure it shows properly */
}






.news-card {
  display: flex;              /* make the card a flex container */
  flex-direction: column;     /* stack items vertically */
  justify-content: space-between; /* push button to bottom */
  
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(0,0,0,.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 12px 30px rgba(0,0,0,.25);

  overflow: hidden;           
  word-wrap: break-word;
  word-break: break-word;
}

.news-actions {
  margin-top: auto;   /* ✅ ensures button stays at bottom */
  display: flex;
  justify-content: flex-start;
}








/* Force desktop-like horizontal news layout on mobile */
.latest-news {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;       /* enable horizontal scrolling */
  gap: 16px;              /* space between news cards */
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  scrollbar-width: none;  /* hide scrollbar in Firefox */
}
.latest-news::-webkit-scrollbar {
  display: none;          /* hide scrollbar in Chrome/Safari */
}

.latest-news .news-card {
  min-width: 280px;       /* keep card size readable */
  flex: 0 0 auto;         /* prevent shrinking */
     }





/* container */
.news-carousel {
  --nc-gap: 16px;
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  user-select: none;
}

/* viewport + scroll snap */
.nc-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* hide scrollbars */
  scrollbar-width: none;
}
.nc-viewport::-webkit-scrollbar { display: none; }

.nc-track {
  display: flex;
  gap: var(--nc-gap);
  padding: 4px; /* tiny pad so shadows aren’t clipped */
}

/* cards */
.nc-card {
  flex: 0 0 100%;            /* 1 per view on mobile */
  scroll-snap-align: start;
  background: linear-gradient(to bottom, #0d3b66, #003366);
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  box-sizing: border-box;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.nc-card h3 { margin: 0 0 8px; font-size: 18px; }
.nc-meta { margin: 0 0 10px; color: #cfd9e0; font-size: 13px; }
.nc-btn {
  margin-top: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: #0074D9;
  color: #fff;
  cursor: pointer;
}

/* responsive: 2 per view (tablet), 3 per view (desktop) */
@media (min-width: 600px) {
  .nc-card { flex-basis: calc((100% - var(--nc-gap)) / 2); }
}
@media (min-width: 900px) {
  .nc-card { flex-basis: calc((100% - var(--nc-gap) * 2) / 3); }
}

/* arrows */
.nc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.nc-prev { left: 6px; }
.nc-next { right: 6px; }

/* dots */
.nc-dots {
  text-align: center;
  margin-top: 10px;
}
.nc-dots .nc-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  background: #bdbdbd;
  margin: 0 4px;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.nc-dots .nc-dot.active {
  background: #0074D9;
  transform: scale(1.1);
   }







.images-rail {
  padding: 20px;
  font-family: sans-serif;
}

.section-title {
  margin-bottom: 10px;
  font-size: 24px;
}

.images-container {
  position: relative;
  display: flex;
  align-items: center;
}

.images-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 15px;
  padding: 10px 0;
  scrollbar-width: none; /* Firefox */
}

.images-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.image-card {
  flex: 0 0 auto;
  width: 250px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  text-align: center;
  background-color: #fff;
}

.image-card img {
  width: 100%;
  display: block;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  z-index: 2;
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

.scroll-btn:hover {
  background-color: rgba(0,0,0,0.8);
}


