/* ForumSec-inspired layout layer (overrides). */
:root{
  --fs-surface:#ffffff;
  --fs-ink:#0f172a;
  --fs-muted:#64748b;
  --fs-border:rgba(15,23,42,.12);
  --fs-primary:#059669;   /* professional green */
  --fs-secondary:#0ea5e9; /* sky blue */
  --fs-accent:#0b4aa2;   /* deep blue for accents */
  --fs-hero:#0f172a;     /* dark for hero */
  --fs-card-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --fs-radius:8px;
  --fs-font-family:'Inter', 'Poppins', sans-serif;
}

html, body { 
  color: var(--fs-ink); 
  font-family: var(--fs-font-family);
  overflow-x: hidden;
  max-width: 100%;
}
body{ background:#f8fafc; }
* { 
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .2s ease, transform .3s ease; 
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

/* Top utility bar (ForumSec-like) */
.fs-topbar{
  background: var(--fs-hero);
  color: rgba(255,255,255,.9);
  font-size: .95rem;
}

/* Prevent images from causing overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Global overflow protection - ensure rows don't overflow */
.row {
  max-width: 100%;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6,
.col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
  max-width: 100%;
}

/* Ensure flex containers wrap */
.d-flex {
  flex-wrap: wrap;
}

/* Fix for slick carousel */
.slick-slider {
  max-width: 100%;
}
.fs-topbar a{ 
  color: rgba(255,255,255,.9); 
  text-decoration: none;
  transition: color .25s ease;
}
.fs-topbar a:hover{ 
  color: #fff; 
  text-decoration: none;
}
.fs-topbar .btn{ border-radius: 999px; }
.fs-topbar .fs-topbar-link{ opacity:.95; }
.fs-topbar .fs-topbar-link + .fs-topbar-link{ margin-left: 14px; }

/* Main header / nav */
.fs-header{
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(255,255,255,.10), rgba(255,255,255,0) 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(10,122,90,.20), rgba(255,255,255,0) 65%),
    linear-gradient(135deg, rgba(11,47,102,0.85), rgba(5, 150, 105, 0.85)),
    url('../img/carousel2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-bottom: none;
  position: relative;
  z-index: 1000;
}

.fs-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 47, 102, 0.5);
  z-index: -1;
}

.fs-header .navbar{
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  min-height: auto !important;
  background: transparent !important;
  position: relative;
  z-index: 1;
  max-width: 100%;
}

/* Ensure containers don't overflow and have proper padding */
.container, .container-fluid {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container, .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .container, .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Navbar collapse should not overflow */
.navbar-collapse {
  max-width: 100%;
}

.fs-header .navbar-light .navbar-nav .nav-link{
  padding: 12px 0 !important;
  margin-right: 22px !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  font-family: inherit !important;
  transition: color .25s ease;
  position: relative;
}

.fs-header .navbar-light .navbar-nav .nav-link::after{
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 1);
  transition: width .3s ease;
}

.fs-header .navbar-light .navbar-nav .nav-link:hover::after,
.fs-header .navbar-light .navbar-nav .nav-link.active::after{
  width: 100%;
}

.fs-header .navbar-light .navbar-nav .nav-link:hover,
.fs-header .navbar-light .navbar-nav .nav-link.active{
  color: rgba(255, 255, 255, 1) !important;
}

.fs-brand{
  display:flex; align-items:center; gap:12px;
}

.fs-brand img{ max-height: 56px; }

.fs-brand .fs-brand-text{
  line-height: 1.15;
}

.fs-brand .fs-brand-title{ font-weight: 700; color: rgba(255, 255, 255, 1); font-size: 1.05rem; margin:0; }

.fs-brand .fs-brand-sub{ color: rgba(255, 255, 255, 0.85); font-size: .9rem; margin:0; }

/* Override conflicting navbar styles */
.fs-header .navbar-light .navbar-brand img {
  max-height: 56px !important;
}

.fs-header .navbar-nav {
  align-items: center;
}

.fs-header .navbar-light .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.fs-header .navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Override sticky navbar styles */
.fs-header.sticky-top .navbar-light .navbar-nav .nav-link {
  padding: 15px 0 !important;
}

/* Dropdown styles */
.fs-header .navbar-light .navbar-nav .nav-item.dropdown .nav-link::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.75rem;
  margin-left: 6px;
  display: inline-block;
  transition: transform .3s ease;
  color: rgba(255, 255, 255, 0.95);
}

.fs-header .navbar-light .navbar-nav .nav-item.dropdown .nav-link[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.fs-header .navbar-light .navbar-nav .dropdown-menu {
  border: 1px solid var(--fs-border);
  border-radius: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background: var(--fs-surface);
  padding: 0;
  min-width: 100vw;
  width: 100vw;
  max-width: 100%;
  min-height: 350px;
  height: 350px;
  animation: dropdownSlide .2s ease;
  display: grid;
  grid-template-columns: repeat(4, 25%);
  gap: 0;
  left: 0 !important;
  right: 0 !important;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  /* Desktop: show on hover */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

/* Desktop hover - show dropdown */
.fs-header .navbar-light .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Desktop: hide on click toggle (Bootstrap) by keeping it visible on hover */
.fs-header .navbar-light .navbar-nav .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.image-col {
  background: #ffffff;
}

.fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.text-col {
  background: #ffffff;
}

.fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.text-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fs-ink);
  margin: 0 0 8px 0;
}

.fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.text-col p {
  font-size: 0.9rem;
  color: var(--fs-muted);
  margin: 0;
  line-height: 1.5;
}

.fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.menu-col {
  background: #ffffff;
  border-right: 1px solid var(--fs-border);
}

.fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.empty-col {
  background: #ffffff;
}

.fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.menu-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-item {
  color: var(--fs-ink);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 0;
  transition: all .25s ease;
  border-left: 3px solid transparent;
  display: block;
  text-decoration: none;
  width: 100%;
  margin: 0;
  background: none;
}

.fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-item:hover,
.fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-item.active {
  background: rgba(5, 150, 105, 0.05);
  color: var(--fs-primary);
  border-left-color: var(--fs-primary);
  padding-left: 10px;
}

/* Button styling for navbar */
.fs-header .fs-btn {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--fs-primary) !important;
  border: none !important;
  font-weight: 600;
}

.fs-header .fs-btn:hover {
  background: rgba(255, 255, 255, 1) !important;
  transform: translateY(-2px);
}

.fs-header .fs-btn-primary {
  background: rgba(5, 150, 105, 1) !important;
  color: white !important;
}

.fs-header .fs-btn-primary:hover {
  background: rgba(5, 150, 105, 0.9) !important;
}

/* Hero */
.fs-hero{
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(255,255,255,.10), rgba(255,255,255,0) 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(10,122,90,.20), rgba(255,255,255,0) 65%),
    linear-gradient(135deg, rgba(11,47,102,0.85), rgba(5, 150, 105, 0.85)),
    url('../img/carousel2.jpg');
  color:#fff;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 0;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Full-screen hero for index.html */
.fs-hero.fs-hero-fullscreen{
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(255,255,255,.10), rgba(255,255,255,0) 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(10,122,90,.20), rgba(255,255,255,0) 65%),
    linear-gradient(135deg, rgba(11,47,102,0.85), rgba(5, 150, 105, 0.85)),
    url('../img/carousel2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fs-hero .breadcrumb{ --bs-breadcrumb-divider: '>'; }
.fs-hero .breadcrumb .breadcrumb-item a{ color: rgba(255,255,255,.85); text-decoration:none; }
.fs-hero .breadcrumb .breadcrumb-item a:hover{ color:#fff; text-decoration:underline; }
.fs-hero .breadcrumb .breadcrumb-item.active{ color: rgba(255,255,255,.75); }
.fs-hero .container {
  width: 100%;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .fs-hero .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1200px) {
  .fs-hero .container {
    padding: 0 2rem;
  }
}
.fs-hero-fullscreen .container{
  max-width: 1200px;
  margin: 0 auto;
}
.fs-hero-title{ 
  color: var(--fs-surface);
  font-weight: 800; 
  letter-spacing: -.02em;
  line-height: 1.2;
  font-size: clamp(2rem, 5vw, 3.5rem);
}
.fs-hero-lead{ 
  color: rgba(255,255,255,.88); 
  max-width: 65ch;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Sections / cards */
.fs-section{
  padding: 60px 0;
}
.fs-section:first-of-type{
  padding-top: 80px;
}

@media (min-width: 768px) {
  .fs-section{
    padding: 70px 0;
  }
  .fs-section:first-of-type{
    padding-top: 90px;
  }
}

@media (min-width: 992px) {
  .fs-section{
    padding: 80px 0;
  }
  .fs-section:first-of-type{
    padding-top: 100px;
  }
}
.fs-section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--fs-border);
}

@media (min-width: 768px) {
  .fs-section-title{
    margin-bottom: 38px;
    padding-bottom: 24px;
  }
}

@media (min-width: 992px) {
  .fs-section-title{
    margin-bottom: 42px;
    padding-bottom: 28px;
  }
}
.fs-section-title h2{
  margin:0;
  font-weight: 800;
  letter-spacing: -.015em;
  font-size: 2rem;
  line-height: 1.3;
}
.fs-section-title p{
  margin:0;
  color: var(--fs-muted);
  max-width: 70ch;
}
.fs-card{
  background: var(--fs-surface);
  border: 1px solid var(--fs-border);
  border-radius: 16px;
  box-shadow: var(--fs-card-shadow);
  overflow: hidden;
  height: auto;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.fs-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(2, 6, 23, .15);
  border-color: var(--fs-primary);
}
.fs-card .fs-card-body{ padding: 20px; }

@media (min-width: 768px) {
  .fs-card .fs-card-body{ padding: 24px; }
}

@media (min-width: 992px) {
  .fs-card .fs-card-body{ padding: 28px; }
}
.fs-card .fs-card-kicker{
  color: var(--fs-primary);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.fs-card h3{
  font-size: 1.25rem;
  font-weight: 800;
  margin:0 0 14px;
  line-height: 1.4;
}
.fs-card p{ 
  color: var(--fs-muted); 
  margin:0 0 16px;
  line-height: 1.6;
  font-size: 0.975rem;
}
.fs-card .fs-meta{ color: rgba(71,85,105,.95); font-size: .95rem; }
.fs-card .fs-card-link{
  font-weight: 700;
  text-decoration: none;
  color: var(--fs-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease;
}
.fs-card .fs-card-link:hover{ 
  text-decoration: underline;
  gap: 10px;
}
.fs-card .fs-card-link::after{
  content: '';
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--fs-accent), #0a5fb8);
  mask: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22%3E%3Cline x1=%225%22 y1=%2218%22 x2=%2218%22 y2=%225%22%3E%3C/line%3E%3Cpolyline points=%229 5 19 5 19 15%22%3E%3C/polyline%3E%3C/svg%3E');
  mask-size: contain;
}

/* Buttons */
.btn.fs-btn{
  border-radius: 999px !important;
  font-weight: 700;
  padding: .6rem 1.05rem;
}
.btn.fs-btn-primary{
  background: var(--fs-primary) !important;
  border-color: var(--fs-primary) !important;
  color: #fff !important;
  transition: all .3s ease;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}
.btn.fs-btn-primary:hover{
  filter: brightness(.95);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
  transform: translateY(-2px);
}
.btn.fs-btn-outline{
  border: 1px solid rgba(255,255,255,.35) !important;
  color: #fff !important;
  background: transparent !important;
  transition: all .3s ease;
}
.btn.fs-btn-outline:hover{
  border-color: rgba(255,255,255,.8) !important;
  background: rgba(255,255,255,.12) !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Form styling */
.form-control, .form-select {
  border: 1px solid var(--fs-border);
  border-radius: 8px;
  padding: 10px 14px;
  transition: all .25s ease;
  font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--fs-primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}
.form-control::placeholder {
  color: var(--fs-muted);
}

/* Search input improvements */
.input-group .form-control {
  border-right: none;
}
.input-group .input-group-text {
  border-left: none;
  background: transparent;
  border: 1px solid var(--fs-border);
  color: var(--fs-muted);
  cursor: pointer;
  transition: all .25s ease;
}
.input-group:focus-within .input-group-text {
  border-color: var(--fs-primary);
  color: var(--fs-primary);
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Utility classes */
.fade-in {
  animation: fadeIn .6s ease-out;
}

.slide-in-up {
  animation: slideInUp .6s ease-out;
}

/* Text utilities */
.text-accent { color: var(--fs-accent); }
.text-accent-2 { color: var(--fs-accent-2); }
.text-muted { color: var(--fs-muted); }

/* Link styling */
a:not(.btn):not(.nav-link):not(.fs-topbar-link):not(.fs-card-link):not(.breadcrumb-item) {
  color: var(--fs-primary);
  text-decoration: none;
  transition: color .25s ease;
}

a:not(.btn):not(.nav-link):not(.fs-topbar-link):not(.fs-card-link):not(.breadcrumb-item):hover {
  color: var(--fs-secondary);
  text-decoration: underline;
}

/* Responsive tweaks */
.fs-footer{
  background: #061b3a;
  color: rgba(255,255,255,.86);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 60px 0 30px;
}

@media (min-width: 768px) {
  .fs-footer{
    padding: 70px 0 35px;
  }
}

@media (min-width: 992px) {
  .fs-footer{
    padding: 80px 0 40px;
  }
}
.fs-footer a{ 
  color: rgba(255,255,255,.86); 
  text-decoration: none;
  transition: color .25s ease;
}
.fs-footer a:hover{ 
  color: #fff; 
  text-decoration: none;
}
.fs-footer h4{
  color:#fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.fs-footer .fs-footer-brand{
  font-weight: 800;
  color:#fff;
  margin: 0 0 8px;
}
.fs-footer .fs-footer-muted{ 
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
}

/* Keep template pieces from overpowering */
.container-fluid.footer,
.container-fluid.copyright{
  display:none; /* replaced by fs-footer on updated pages */
}

/* Responsive tweaks */
@media (max-width: 991.98px){
  .fs-header{
    background: linear-gradient(135deg, rgba(11,47,102,0.95), rgba(5, 150, 105, 0.95)) !important;
  }
  .fs-header::before{
    display: none;
  }
  /* Enhanced mobile navbar */
  .fs-header .navbar{
    padding: 10px 0 !important;
  }
  .fs-brand img{
    max-height: 45px !important;
  }
  .fs-brand .fs-brand-title{
    font-size: 0.95rem !important;
  }
  /* Better hamburger button */
  .fs-header .navbar-light .navbar-toggler{
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
  }
  .fs-header .navbar-light .navbar-toggler:hover{
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #fff !important;
  }
  .fs-header .navbar-light .navbar-toggler:focus{
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
  }
  /* Slide-in mobile menu */
  .fs-header .navbar-collapse{
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #fff !important;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    z-index: 1050;
    padding: 70px 0 20px;
    overflow-y: auto;
    display: block !important;
  }
  .fs-header .navbar-collapse.show{
    right: 0;
  }
  /* Backdrop overlay */
  .fs-header .navbar-collapse::before{
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: -1;
    pointer-events: none;
  }
  .fs-header .navbar-collapse.show::before{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    right: 320px;
  }
  /* Close button for mobile menu */
  .fs-header .navbar-collapse .navbar-nav{
    position: relative;
    padding: 0 20px;
  }
  .fs-header .navbar-collapse .navbar-nav::before{
    content: '\f00d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -50px;
    right: 15px;
    color: var(--fs-ink);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1051;
  }
  /* Mobile nav links styling */
  .fs-header .navbar-light .navbar-nav .nav-link{
    margin-right: 0 !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #e9ecef;
    color: var(--fs-ink) !important;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .fs-header .navbar-light .navbar-nav .nav-link::after{
    display: inline-block !important;
    margin-left: auto;
    color: var(--fs-muted);
  }
  .fs-header .navbar-light .navbar-nav .nav-link:hover{
    color: var(--fs-primary) !important;
    padding-left: 10px !important;
  }
  .fs-header .navbar-light .navbar-nav .nav-item:last-child .nav-link{
    border-bottom: none;
  }
  /* Mobile dropdown - collapsed by default */
  /* Mobile/Tablet: click-only dropdown, disable hover */
  .fs-header .navbar-light .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  
  .fs-header .navbar-light .navbar-nav .nav-item.dropdown .dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  
  .fs-header .navbar-light .navbar-nav .dropdown-menu{
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    box-shadow: none !important;
    border: none !important;
    background: #f8f9fa !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
    display: none;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .fs-header .navbar-light .navbar-nav .dropdown-menu.show{
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  /* Mobile dropdown items */
  .fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column{
    width: 100% !important;
    padding: 0 !important;
  }
  /* Hide image and text columns on mobile */
  .fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.image-col,
  .fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.text-col,
  .fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.empty-col{
    display: none !important;
  }
  .fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.menu-col{
    display: block !important;
    background: transparent !important;
  }
  .fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.menu-col ul{
    padding: 0;
    margin: 0;
  }
  .fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.menu-col ul li{
    border-bottom: 1px solid #dee2e6;
  }
  .fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-column.menu-col ul li:last-child{
    border-bottom: none;
  }
  .fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-item{
    padding: 12px 15px 12px 25px !important;
    border-left: none !important;
    color: var(--fs-muted) !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
  }
  .fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-item:hover,
  .fs-header .navbar-light .navbar-nav .dropdown-menu .dropdown-item.active{
    background: rgba(5, 150, 105, 0.1) !important;
    color: var(--fs-primary) !important;
    padding-left: 30px !important;
  }
  /* Section title adjustments */
  .fs-section{
    padding: 40px 0;
  }
  .fs-section:first-of-type{
    padding-top: 60px;
  }
  .fs-section-title{
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 32px;
  }
  .fs-section-title .btn{
    align-self: flex-start;
  }
}

@media (max-width: 768px){
  .fs-hero-title{
    font-size: 1.75rem;
  }
  .fs-hero-lead{
    font-size: 1rem;
  }
  .fs-hero .row{
    flex-direction: column;
  }
  .fs-hero .col-lg-4{
    margin-top: 20px;
  }
  .fs-card .fs-card-body{
    padding: 16px;
  }
  .fs-topbar{
    font-size: 0.85rem;
  }
}

/* Achievement section styles */
.achievement-img-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--fs-radius);
  box-shadow: var(--fs-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Prevent card overlapping */
.row.g-3 .col-6,
.row.g-3 .col-md-4,
.row.g-3 .col-lg-3 {
  display: flex;
  flex-direction: column;
}

.row.g-3 .col-6 > div,
.row.g-3 .col-md-4 > div,
.row.g-3 .col-lg-3 > div {
  flex: 1;
}

.achievement-img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.achievement-img-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

/* Fallback for wow animations - ensure elements are visible if animation fails */
.wow {
  visibility: visible !important;
  opacity: 1 !important;
}

.achievement-img-card:hover img {
  transform: scale(1.05);
}

.achievement-content {
  padding: 20px 0;
}

.achievement-item {
  padding: 15px;
  background: rgba(5, 150, 105, 0.05);
  border-radius: var(--fs-radius);
  border-left: 3px solid var(--fs-primary);
}

.achievement-item h5 {
  color: var(--fs-ink);
  margin-bottom: 8px;
  font-weight: 600;
}

.achievement-item p {
  color: var(--fs-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Publication cards styling */
.publication-card {
  background: var(--fs-surface);
  border-radius: var(--fs-radius);
  box-shadow: var(--fs-card-shadow);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--fs-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.publication-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.publication-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.publication-card:hover .publication-image img {
  transform: scale(1.05);
}

.publication-content {
  padding: 25px 25px 15px 25px;
  flex-grow: 1;
}

.publication-footer {
  padding: 0 25px 25px 25px;
  margin-top: auto;
}

.publication-footer .btn {
  width: 100%;
  font-weight: 600;
  padding: 10px 20px;
  border-width: 2px;
  color: #000 !important;
  border-color: #000;
}

.publication-footer .btn:hover {
  background: var(--fs-primary);
  border-color: var(--fs-primary);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.publication-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.publication-meta .badge {
  font-size: 0.75rem;
  padding: 5px 10px;
}

.publication-meta .date {
  font-size: 0.85rem;
  color: var(--fs-muted);
}

.publication-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fs-ink);
  margin-bottom: 12px;
  line-height: 1.4;
}

.publication-excerpt {
  color: var(--fs-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Document page styling */
.document-card {
  background: var(--fs-surface);
  border-radius: var(--fs-radius);
  box-shadow: var(--fs-card-shadow);
  border: 1px solid var(--fs-border);
  overflow: hidden;
}

.document-header {
  padding: 40px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(11, 74, 162, 0.05));
  border-bottom: 1px solid var(--fs-border);
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.document-icon {
  width: 80px;
  height: 80px;
  background: rgba(5, 150, 105, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.document-icon i {
  font-size: 36px;
  color: var(--fs-primary);
}

.document-info h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--fs-ink);
  margin-bottom: 12px;
}

.document-body {
  padding: 40px;
}

.document-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  text-align: justify;
}

.document-body .lead {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--fs-ink);
}

.document-hero-image {
  border-radius: var(--fs-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.document-hero-image img {
  transition: transform 0.5s ease;
}

.document-hero-image:hover img {
  transform: scale(1.02);
}

.document-preview {
  text-align: center;
  padding: 40px;
  background: #f8fafc;
  border-radius: var(--fs-radius);
  margin: 25px 0;
}

.document-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Related documents */
.related-documents h4 {
  font-weight: 600;
  color: var(--fs-ink);
}

.related-doc-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--fs-surface);
  border-radius: var(--fs-radius);
  border: 1px solid var(--fs-border);
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-doc-card:hover {
  border-color: var(--fs-primary);
  box-shadow: var(--fs-card-shadow);
}

.related-doc-card i {
  width: 45px;
  height: 45px;
  background: rgba(5, 150, 105, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--fs-primary);
}

.related-doc-card h6 {
  margin: 0;
  color: var(--fs-ink);
  font-weight: 500;
}

@media (max-width: 768px) {
  .publication-card {
    padding: 20px;
  }
  
  .document-header {
    flex-direction: column;
    padding: 25px;
  }
  
  .document-body {
    padding: 25px;
  }
  
  .document-actions {
    flex-direction: column;
  }
  
  .document-actions .btn {
    width: 100%;
  }
}

