/* =====================================================
   INCOIS Marine Services Portal — style.css
   ===================================================== */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 15px; scroll-behavior: smooth; }
body  { font-family: 'Source Sans 3', sans-serif; background: #f0f4f8; color: #1a2a3a; line-height: 1.6; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button{ cursor: pointer; border: none; background: none; font-family: inherit; }
img   { max-width: 100%; display: block; }





/* ── Variables ── */
:root {
  --navy:    #003366;
  --teal:    #006699;
  --teal2:   #0088bb;
  --accent:  #91610F;
  --gold:    #ffaa00;
  --white:   #ffffff;
  --light:   #e8f0f7;
  --muted:   #5a7a99;
  --border:  #c8daea;
  --shadow:  0 2px 12px rgba(0,51,102,0.12);
  --shadow2: 0 4px 24px rgba(0,51,102,0.18);
  --radius:  6px;
  /* Column widths — mirror hero split so panels align */
  --col-left:  73%;   /* slider column  */
  --col-right: 27%;   /* app-promo column */
}

/* =====================================================
   HEADER
   ===================================================== */
.main-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); box-shadow: var(--shadow2);
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 24px; gap: 12px; border-bottom: 2px solid var(--light);
}

/* Branding */
.branding { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }

/*
.logo-circle {
  width: 62px; height: 62px; border-radius: 50%;
  border: 3px solid var(--teal); overflow: hidden; flex-shrink: 0;
  background: var(--light); display: flex; align-items: center; justify-content: center;
}
.logo-circle img { width: 100%; height: 100%; object-fit: contain; }
.logo-placeholder { font-size: 24px; color: var(--teal); }
.title-group h1 { font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.title-group p  { font-size: 0.74rem; color: var(--muted); margin-top: 1px; }*/

    .logo-circle {
      width: 72px; height: 72px; border-radius: 50%;
      overflow: hidden; flex-shrink: 0;
      background: var(--light); display: flex; align-items: center; justify-content: center;
    }
    
    .logo-circle img { width: 100%; height: 100%; object-fit: contain; }
    .logo-placeholder { font-size: 28px; color: var(--teal); }
    .title-group h1 { font-size: 1.15rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
    .title-group p  { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* Header utils — desktop only */
.header-utils { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.header-utils > span { font-size: 0.78rem; }
.header-utils > span a { color: var(--teal); margin: 0 4px; transition: color .2s; }
.header-utils > span a:hover { color: var(--accent); }
.a11y-tools { display: flex; align-items: center; gap: 5px; }
.a11y-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 4px; font-size: 0.78rem; font-weight: 700;
  background: var(--light); color: var(--navy); cursor: pointer;
  border: 1px solid var(--border); transition: background .2s, color .2s;
}
.a11y-btn:hover { background: var(--teal); color: var(--white); }

/* Social dropdown */
.social-dropdown { position: relative; }
.social-menu {
  position: absolute; right: 0; top: 34px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow2); min-width: 160px; z-index: 600;
  display: none; flex-direction: column; overflow: hidden;
}
.social-menu.open { display: flex; }
.social-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 0.8rem; color: var(--navy); transition: background .15s; }
.social-menu a:hover { background: var(--light); }
.social-menu a i { width: 18px; text-align: center; font-size: 1rem; }
.fa-facebook  { color: #1877f2; }
.fa-x-twitter { color: #111;    }
.fa-youtube   { color: #ff0000; }
.fa-instagram { color: #e1306c; }
.fa-linkedin  { color: #0a66c2; }

/* Mobile hamburger */
.mob-toggle {
  display: none; font-size: 1.3rem; color: var(--navy);
  background: var(--light); border-radius: 4px; padding: 6px 10px;
  border: 1px solid var(--border); align-items: center; justify-content: center;
}

/* =====================================================
   NAV BAR
   ===================================================== */
.nav-bar { background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%); }
.nav-container { display: flex; align-items: stretch; max-width: 100%; margin: 0; padding: 0 16px; }

.nav-link, .nav-item-label {
  display: flex; align-items: center; gap: 5px; padding: 10px 14px;
  font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.92);
  white-space: nowrap; cursor: pointer; transition: background .2s, color .2s;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.nav-link:hover, .nav-item-label:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-link.home { font-size: 0.95rem; }

/* Dropdown */
.nav-item { position: relative; }
.nav-item .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 190px;
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--accent); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow2); z-index: 300; display: none;
}
.nav-item.has-drop:hover .dropdown { display: block; }
.nav-item.open > .dropdown          { display: block; }
.dropdown li a {
  display: block; padding: 8px 16px; font-size: 0.8rem; color: var(--navy);
  border-bottom: 1px solid var(--light); transition: background .15s, color .15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--light); color: var(--teal); padding-left: 22px; }
.drop-arrow { font-size: 0.6rem; margin-left: 4px; transition: transform .25s; display: inline-block; }
.nav-item.open > .nav-item-label .drop-arrow { transform: rotate(180deg); }
.nav-plus { margin-left: auto; padding: 10px 14px; font-size: 1.1rem; color: rgba(255,255,255,0.8); transition: background .2s; }
.nav-plus:hover { background: rgba(255,255,255,0.15); color: #fff; }
.mob-close  { display: none; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }


/* =====================================================
   HERO  —  full viewport width, reduced height
   ===================================================== */
.hero-section {
  display: grid;
  grid-template-columns: var(--col-left) var(--col-right);
  width: 100%;
  height: 400px;
}

/* ── Slider ── */
.slider-viewport {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: #001a33;
}

.slider-track { position: relative; width: 100%; height: 100%; }

.slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.7s ease; overflow: hidden;
}
.slide.active { opacity: 1; }

.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 8s ease;
}
.slide.active .slide-bg { transform: scale(1.04); }

/* Info — bottom-left */
.slide-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 22px 28px;
  display: flex; flex-direction: column; gap: 6px;
}
.slide-info p {
  font-size: 0.8rem; color: rgba(255,255,255,0.8);
  max-width: 360px; line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dots */
.slider-dots {
  position: absolute; bottom: 10px; right: 14px;
  display: flex; gap: 6px; z-index: 10;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 2px solid rgba(255,255,255,0.55);
}
.dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

/* Arrows */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.3);
  color: white; width: 32px; height: 32px;
  border-radius: 50%;
}
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }

/* ── App Promo ── */
.app-promo {
  background: linear-gradient(160deg, #001020 0%, #002244 50%, #003a66 100%);
  padding: 18px 22px;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  height: 100%;
}

.app-promo h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  color: var(--gold);
  text-align: center;
}

/* ===== INNER GRID (UNCHANGED STYLE) ===== */
.app-promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  gap: 12px;
  align-items: center;
}

/* LEFT SIDE */
.app-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* RIGHT SIDE */
.app-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  overflow: hidden;

  /* ✅ SEPARATOR ADDED */
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 14px;
}

.app-right h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ===== FACEBOOK SAFE FIX (NO BREAK, NO BLANK) ===== */
.app-right .fb-page {
  width: 100%;
  max-width: 100%;
}

/* Facebook renders inside span → must control */
.app-right span {
  width: 100% !important;
}

/* iframe control WITHOUT breaking render */
.app-right iframe {
  max-width: 100% !important;
} 



/* ICON */
.app-icon {
  width: 120px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon img {
  width: 100%;
  height: auto;
}

/* TEXT */
.app-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  text-align: center;
  max-width: 200px;
}

/* QR */
.qr-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 8px 0;
  flex: 1;
}

.qr img { width: 55px; }

.qr-badge {
  font-size: 0.58rem;
  background: var(--accent);
  color: #fff;
  padding: 1px 6px;
  border-radius: 8px;
}

/* BUTTONS */
.app-store-btns {
  display: flex;
  gap: 7px;
  width: 100%;
}

.app-store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 6px 8px;
  color: #fff;
  font-size: 0.72rem;
  flex: 1;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    height: auto;
  }

  .app-promo-inner {
    grid-template-columns: 1fr;
  }

  .app-right {
    border-left: none;
    padding-left: 0;
    margin-top: 15px;
  }
}




/* =====================================================
   TICKER
   ===================================================== */
.ticker { display: flex; align-items: stretch; background: var(--navy); overflow: hidden; border-top: 2px solid var(--teal2); }
.ticker-label { background: var(--accent); color: #fff; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.1em; padding: 7px 12px; white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 5px; }
.ticker-wrap  { flex: 1; overflow: hidden; padding: 0 10px; display: flex; align-items: center; }
.ticker-content { display: inline-flex; white-space: nowrap; animation: ticker-scroll 40s linear infinite; color: rgba(255,255,255,0.88); font-size: 0.8rem; }
.ticker-content span { padding-right: 20px; }
.ticker-content:hover { animation-play-state: paused; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =====================================================
   DASHBOARD  —  full width, two cols matching hero split
   ===================================================== */
.dashboard {
  display: grid;
  grid-template-columns: var(--col-left) var(--col-right);
  gap: 0;          /* flush, no gap — border separates them */
  width: 100%;
  margin: 0;
  padding: 0;
}

.panel { background: var(--white); overflow: hidden; border-top: 3px solid var(--border); }
/* Left panel gets a right border to mirror the hero divider */
.panel:first-child { border-right: 3px solid var(--border); }

.panel-title {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--white); padding: 10px 18px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; background: var(--light); border-bottom: 2px solid var(--border); }
.tab-btn, .n-btn {
  padding: 8px 12px; font-size: 0.72rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0.03em; text-transform: uppercase;
  border-bottom: 3px solid transparent; transition: all .2s; white-space: nowrap; background: transparent;
}
.tab-btn:hover, .n-btn:hover { color: var(--teal); background: rgba(0,102,153,0.06); }
.tab-btn.active, .n-btn.active { color: var(--navy); border-bottom-color: var(--accent); background: var(--white); font-weight: 700; }

/* ── Service Cards — desktop auto-fill grid ── */
.panel-body.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; padding: 14px;
}

.card {
  display: flex; flex-direction: column; align-items: center;
  border-radius: var(--radius); background: var(--light); border: 1px solid var(--border);
  overflow: hidden; text-decoration: none; color: var(--navy);
  transition: border-color .2s, transform .2s, box-shadow .2s; cursor: pointer;
}
.card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 5px 16px rgba(0,51,102,0.14); }
.card-img {
  width: 100%; height: 80px; overflow: hidden;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.card:hover .card-img img { transform: scale(1.07); }
.card-img .fallback-icon { font-size: 1.8rem; color: rgba(255,255,255,0.9); }
.card-label { padding: 6px 6px 8px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.card-label span { font-size: 0.73rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.card:hover .card-label span { color: var(--teal); }
.card-tag { font-size: 0.58rem; background: var(--teal); color: white; padding: 1px 6px; border-radius: 8px; font-weight: 600; }

/* Swipe hint — mobile only */
.scroll-hint { display: none; align-items: center; gap: 6px; padding: 5px 14px 2px; font-size: 0.7rem; color: var(--muted); }
.scroll-hint i { color: var(--accent); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* ── News List ── */
.panel-body.list { padding: 0; }
.panel-body.list ul { padding: 2px 0; }
.panel-body.list li {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 8px 14px; font-size: 0.78rem; color: var(--navy);
  border-bottom: 1px solid var(--light); transition: background .15s; cursor: pointer;
}
.panel-body.list li:last-child { border-bottom: none; }
.panel-body.list li:hover { background: var(--light); }
.news-dot { font-size: 0.42rem; color: var(--accent); margin-top: 5px; flex-shrink: 0; }
.news-new { font-size: 0.6rem; background: var(--accent); color: white; padding: 1px 6px; border-radius: 8px; font-weight: 700; flex-shrink: 0; margin-left: auto; white-space: nowrap; }

/* =====================================================
   GALLERY  —  centered, full width
   ===================================================== */

.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--navy);
  padding: 14px 10px;
  width: 100%;
  overflow: hidden;
}

/* ===== Buttons ===== */
.gallery button {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
}

/* ===== SCROLL (MAIN FIX) ===== */
#gS {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 12px;
  width: 100%;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}
#gS::-webkit-scrollbar {
  display: none;
}

/* ===== ITEMS ===== */
#gS .g-item {
  flex: 0 0 auto !important;
  min-width: 140px !important;
  width: auto !important;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgb(255, 255, 255);
  border: 1px solid  rgba(255,255,255,0.2);
  border-radius: 1px;
  padding: 5px;
}

#gS .g-item img {
  height: 80px;
  width: auto;
}

/* ===== DESKTOP CENTER ===== */
@media (min-width: 769px) {
  #gS {
    justify-content: center;
  }
}

/* ===== MOBILE SLIDER ===== */
@media (max-width: 768px) {
  .gallery {
    justify-content: space-between;
  }

  #gS {
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
  }

  #gS .g-item {
    scroll-snap-align: center;
  }
}



/* =====================================================
   BOTTOM BAR
   ===================================================== */
.bottom {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #001122; color: rgba(255,255,255,0.6);
  padding: 10px 22px; font-size: 0.75rem;
}
.bottom span { cursor: pointer; transition: color .2s; }
.bottom span:hover { color: var(--white); }
.ssl { margin-left: auto; color: #4caf50; font-weight: 600; display: flex; align-items: center; gap: 5px; }

/* =====================================================
   HIGH CONTRAST
   ===================================================== */
body.high-contrast { filter: invert(1) hue-rotate(180deg); }

/* =====================================================
   ANIMATIONS
   ===================================================== */
.card          { animation: fadeUp .3s ease both; }
.panel-body.list li { animation: fadeUp .25s ease both; }
@keyframes fadeUp { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }

/* =====================================================
   RESPONSIVE  —  TABLET  ≤ 960px
   ===================================================== */
@media (max-width: 960px) {
  .hero-section { grid-template-columns: 1fr; height: auto; }
  .slider-viewport { height: 260px; }
  .app-promo {
    flex-direction: row; flex-wrap: wrap; justify-content: center;
    padding: 16px; border-left: none; border-top: 1px solid rgba(255,255,255,0.1);
  }
  .dashboard { grid-template-columns: 1fr; }
  .panel:first-child { border-right: none; border-bottom: 3px solid var(--border); }
}

/* =====================================================
   RESPONSIVE  —  MOBILE  ≤ 720px
   ===================================================== */
@media (max-width: 720px) {
  /* Header */
  .title-group h1 { font-size: 0.88rem; }
  .title-group p  { font-size: 0.68rem; }
  .header-utils   { display: none; }
  .mob-toggle     { display: flex; }

  /* Nav drawer */
  .nav-bar {
    position: fixed; top: 0; left: -100%; width: 82%; max-width: 300px;
    height: 100vh; overflow-y: auto; z-index: 1000;
    transition: left .3s ease; box-shadow: 4px 0 24px rgba(0,0,0,0.45);
  }
  .nav-bar.open { left: 0; }
  .nav-overlay.open { display: block; }
  .mob-close {
    display: flex; align-items: center; gap: 8px;
    padding: 13px 18px; color: rgba(255,255,255,0.85); font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.15); width: 100%;
  }
  .nav-container { flex-direction: column; padding: 0; }
  .nav-link, .nav-item-label { padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; }
  .nav-item { width: 100%; }

  /* Mobile dropdown — inline static */
  .nav-item .dropdown {
    position: static !important; box-shadow: none !important;
    border: none !important; border-top: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 0 !important; background: rgba(0,0,0,0.25) !important;
    display: none !important; width: 100%;
  }
  .nav-item.open > .dropdown { display: block !important; }
  .dropdown li a { color: rgba(255,255,255,0.8) !important; border-bottom-color: rgba(255,255,255,0.08) !important; padding-left: 32px !important; }
  .dropdown li a:hover { background: rgba(255,255,255,0.1) !important; color: white !important; padding-left: 38px !important; }
  .nav-plus { padding: 12px 18px; }

  /* Hero */
  .slider-viewport { height: 230px; }
  .slide-info h2  { font-size: 1rem; }
  .slide-info p   { font-size: 0.74rem; -webkit-line-clamp: 2; }

  /* Service cards: horizontal scroll */
  .panel-body.grid {
    display: flex; flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 10px; padding: 12px 12px 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 51, 102, 0.4) transparent;
  }
  .panel-body.grid::-webkit-scrollbar { height: 6px; }
  .panel-body.grid::-webkit-scrollbar-thumb { background-color: rgba(0, 51, 102, 0.4); border-radius: 4px; }
  .card { flex: 0 0 calc(50% - 5px); min-width: calc(50% - 5px); scroll-snap-align: start; animation: none; }
  .card-img { height: 80px; }
  .scroll-hint { display: flex; }

  /* Gallery */
  .g-scroll { flex-wrap: wrap; justify-content: center; }
}

/* =====================================================
   RESPONSIVE  —  SMALL MOBILE  ≤ 480px
   ===================================================== */
@media (max-width: 480px) {
  .header-top  { padding: 7px 12px; }
  .logo-circle { width: 48px; height: 48px; }
  .title-group h1 { font-size: 0.8rem; }
  .dashboard   { padding: 0; margin: 0; }
  .panel       { border-radius: 0; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 calc(50% - 5px); min-width: calc(50% - 5px); }
  .card-img { height: 72px; }
  .card-label span { font-size: 0.68rem; }
}

