/* ============================================================
   PACS Full Visual Overhaul — 2026-06-15
   Brand: Forest Green #057338 | Teal #64A1C0 | Gold #ffd700
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --green:      #057338;
  --green-dark: #03421f;
  --green-mid:  #0a8a4a;
  --teal:       #64A1C0;
  --teal-dark:  #2e7d9e;
  --gold:       #ffd700;
  --gold-dark:  #e6ac00;
  --cream:      #f8fdf5;
  --white:      #ffffff;
  --text:       #1a2e1a;
  --text2:      #3d5a3d;
  --muted:      #6b8c6b;
  --border:     rgba(5,115,56,0.15);
  --shadow:     0 4px 20px rgba(5,115,56,0.12);
  --shadow-lg:  0 8px 40px rgba(5,115,56,0.18);
  --radius:     10px;
  --grad:       linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--teal-dark) 100%);
  --grad-gold:  linear-gradient(135deg, var(--green) 0%, var(--gold-dark) 100%);
}

/* ---------- Base Reset Improvements ---------- */
body {
  background: var(--cream) !important;
  color: var(--text) !important;
  font-family: 'Montserrat', 'Segoe UI', sans-serif !important;
}

a { transition: all 0.25s ease; }

/* ---------- HEADER: Solid Dark Green (uniform, no white clash) ---------- */
.header-area,
.header-area * {
  box-sizing: border-box;
}
.header-area {
  background: #03421f !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3) !important;
}
.header-middle,
.header-middle.bg-2 {
  background: #03421f !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid rgba(255,215,0,0.2) !important;
}
/* Left column: banner image framed cleanly */
.header-middle .col-md-8 .logo {
  padding: 0 0 0 12px;
}
.header-middle .col-md-8 .logo img,
.header-middle .col-md-8 .logo a img {
  max-height: 100px;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,215,0,0.25);
  padding: 4px;
  display: block;
}
/* Right column: pacs seal + address */
.header-middle .col-md-4 .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 16px;
  justify-content: flex-end;
}
.header-middle .col-md-4 .logo img {
  max-height: 80px;
  width: auto;
  border-radius: 50%;
  border: 3px solid rgba(255,215,0,0.5);
  background: rgba(255,255,255,0.1);
  padding: 3px;
  flex-shrink: 0;
}
.header-middle .col-md-4 .logo br {
  display: none;
}
.header-middle label,
.header-middle .col-md-4 label {
  color: rgba(255,255,255,0.88) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  display: block !important;
  text-align: right;
}
.header-middle label b {
  color: var(--gold) !important;
  font-size: 12.5px;
  letter-spacing: 0.4px;
}

/* ---------- NAVBAR — override amber with max specificity ---------- */
.header-area .header-bottom,
.header-area .header-bottom.navbar-affixed-top,
div.header-bottom,
#sticky-header {
  background: #03421f !important;
  background-color: #03421f !important;
  border-top: 2px solid rgba(255,215,0,0.4) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35) !important;
  padding: 0 !important;
}
.menu-navbar-container > ul {
  justify-content: center !important;
}
.mainmenu > li > a {
  color: rgba(255,255,255,0.92) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 15px 20px !important;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  position: relative;
}
.mainmenu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--gold);
  transition: all 0.3s ease;
}
.mainmenu > li:hover > a::after,
.mainmenu > li.current-menu-item > a::after {
  left: 0; right: 0;
}
.mainmenu > li:hover > a,
.mainmenu > li.current-menu-item > a,
.mainmenu > li.current_page_item > a {
  color: var(--gold) !important;
  background: rgba(255,255,255,0.05) !important;
}
.mainmenu > li > ul.sub-menu {
  background: var(--green-dark) !important;
  border-top: 3px solid var(--gold) !important;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35) !important;
  min-width: 220px;
}
.mainmenu > li > ul.sub-menu li a {
  color: rgba(255,255,255,0.85) !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mainmenu > li > ul.sub-menu li:hover > a {
  background: var(--green) !important;
  color: #fff !important;
  padding-left: 26px !important;
}

/* ---------- HERO SECTION (first page-section) ---------- */
.page-section:first-of-type {
  background: linear-gradient(180deg, #e8f5ed 0%, var(--cream) 100%) !important;
  padding: 60px 0 40px !important;
  position: relative;
  overflow: hidden;
}
.page-section:first-of-type::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5,115,56,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-section:first-of-type::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,161,192,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-section:first-of-type h1 {
  font-size: 2.4rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: var(--green-dark) !important;
  margin-bottom: 20px !important;
  position: relative;
}
.page-section:first-of-type h1::after {
  content: '';
  display: block;
  width: 60px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 14px;
}
.page-section:first-of-type p {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: var(--text2) !important;
  margin-bottom: 28px !important;
}

/* Hero CTA Button */
.page-section:first-of-type .btn-primary {
  background: var(--grad) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 13px 32px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 18px rgba(5,115,56,0.4);
  transition: all 0.3s ease;
}
.page-section:first-of-type .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(5,115,56,0.5) !important;
  background: var(--green-dark) !important;
  color: var(--gold) !important;
}

/* Carousel polish */
#myCarousel {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(5,115,56,0.15);
}
.carousel-control-prev i,
.carousel-control-next i {
  color: var(--gold) !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ---------- STATS BAR ---------- */
.pacs-stats {
  background: var(--grad);
  padding: 36px 0;
  position: relative;
  overflow: hidden;
}
.pacs-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.pacs-stats .stat-item {
  text-align: center;
  color: #fff;
  padding: 10px 20px;
  position: relative;
}
.pacs-stats .stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: rgba(255,255,255,0.25);
}
.pacs-stats .stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -1px;
  font-family: 'Montserrat', sans-serif;
}
.pacs-stats .stat-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}
.pacs-stats .stat-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  opacity: 0.85;
}

/* ---------- SERVICES SECTION ---------- */
#services {
  background: var(--cream) !important;
  padding: 70px 0 !important;
}
#services .section-heading {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: var(--green-dark) !important;
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 12px !important;
}
#services .section-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 70px; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 2px;
}
#services .section-subheading {
  font-size: 15px !important;
  color: var(--muted) !important;
  margin-bottom: 50px !important;
}

/* Loan service cards — replace portfolio */
.portfolio-item {
  padding: 12px !important;
  margin-bottom: 0 !important;
}
.portfolio-link {
  display: block !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  position: relative !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-shadow: 0 2px 12px rgba(5,115,56,0.10) !important;
  border: 2px solid transparent !important;
  transition: all 0.35s ease !important;
}
.portfolio-link:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 8px 30px rgba(5,115,56,0.22) !important;
  transform: translateY(-4px) !important;
}
.portfolio-link img,
.portfolio-link picture {
  display: block;
  width: 100%;
}
.portfolio-link .portfolio-hover {
  background: linear-gradient(180deg, transparent 30%, rgba(3,66,31,0.85) 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.35s ease !important;
}
.portfolio-link:hover .portfolio-hover {
  opacity: 1 !important;
}
.portfolio-hover-content {
  bottom: 20px !important;
  top: auto !important;
  margin-top: 0 !important;
  color: var(--gold) !important;
}
.portfolio-caption {
  background: #fff !important;
  border-top: 3px solid var(--green) !important;
  padding: 16px 18px !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
  max-width: 100% !important;
  transition: background 0.3s;
}
.portfolio-item:hover .portfolio-caption {
  background: var(--green-dark) !important;
}
.portfolio-caption h4 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--green-dark) !important;
  margin: 0 0 4px !important;
  transition: color 0.3s;
}
.portfolio-item:hover .portfolio-caption h4 {
  color: var(--gold) !important;
}
.portfolio-caption p {
  font-size: 12.5px !important;
  color: var(--muted) !important;
  margin: 0 !important;
  transition: color 0.3s;
}
.portfolio-item:hover .portfolio-caption p {
  color: rgba(255,255,255,0.75) !important;
}

/* ---------- SECTION HEADING GLOBAL ---------- */
.section-heading {
  font-weight: 800 !important;
  color: var(--green-dark) !important;
  position: relative;
  padding-bottom: 18px;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 70px; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 2px;
}

/* ---------- NOTICE PAGE HERO ---------- */
.notice-hero {
  background: linear-gradient(135deg, #03421f 0%, #057338 60%, #2e7d9e 100%);
  padding: 40px 0 36px;
  border-bottom: 4px solid rgba(255,215,0,0.4);
}
.notice-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.notice-hero-icon {
  width: 70px; height: 70px;
  background: rgba(255,215,0,0.15);
  border: 2px solid rgba(255,215,0,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 28px;
  color: var(--gold);
}
.notice-hero-title {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 0 6px !important;
  line-height: 1.2 !important;
}
.notice-hero-sub {
  color: rgba(255,255,255,0.8) !important;
  font-size: 14px !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* ---------- NOTICE PAGE BODY ---------- */
.notice-page-body {
  background: var(--cream);
  padding: 40px 0 60px;
}

/* Section sub-headers */
.notice-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 18px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.notice-section-icon {
  font-size: 16px;
  opacity: 0.9;
}

/* Individual notice rows */
.notice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid rgba(5,115,56,0.12);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 8px;
  gap: 12px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 6px rgba(5,115,56,0.06);
}
.notice-row:hover {
  border-left-color: var(--gold);
  background: #f5fff8;
  box-shadow: 0 4px 16px rgba(5,115,56,0.12);
  transform: translateX(3px);
}
.notice-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.notice-pdf-icon {
  font-size: 22px;
  color: #c0392b;
  flex-shrink: 0;
}
.notice-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.notice-badge.badge-new {
  background: #c0392b;
  animation: pulse-badge 2s infinite;
}
.notice-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.4;
}
.notice-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.notice-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.notice-btn:hover {
  background: var(--green-dark);
  color: var(--gold) !important;
  border-color: var(--gold);
}
.notice-btn-teal {
  background: #2e7d9e !important;
}
.notice-btn-teal:hover {
  background: #03421f !important;
}
.notice-row-event {
  border-left-color: #2e7d9e;
  background: #f0f8ff;
}
.notice-row-event:hover {
  border-left-color: #64A1C0;
  background: #e8f4fb;
}

/* Keep old page-section styles for other pages */
.page-section {
  background: var(--cream) !important;
  padding: 60px 0 !important;
}
.page-section h3 {
  font-size: 1.7rem !important;
  font-weight: 800 !important;
  color: var(--green-dark) !important;
  border-left: 5px solid var(--green) !important;
  padding: 6px 0 6px 16px !important;
  margin-bottom: 30px !important;
  background: linear-gradient(90deg, rgba(5,115,56,0.06), transparent);
  border-radius: 0 6px 6px 0;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--green-dark) !important;
  padding: 24px 0 !important;
  border-top: 4px solid var(--gold) !important;
}
.footer .copyright {
  color: rgba(255,255,255,0.8) !important;
  font-size: 13px !important;
}
.footer a {
  color: var(--gold) !important;
  font-size: 13px !important;
  font-weight: 600;
}
.footer a:hover { color: #fff !important; }
.footer p { color: rgba(255,255,255,0.7) !important; font-size: 13px; }

/* ---------- TICKER BANNER ---------- */
.footer-ticker {
  background: #022d15 !important;
  color: rgba(255,255,255,0.88) !important;
  padding: 11px 0 !important;
  font-size: 13.5px !important;
  overflow: hidden;
  border-top: 1px solid rgba(255,215,0,0.2);
}
.footer-ticker .ticker-inner {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  padding-left: 100%;
}
.footer-ticker .ticker-inner:hover { animation-play-state: paused; }
.footer-ticker a { color: var(--gold) !important; font-weight: 700 !important; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes countUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-badge {
  0%,100% { opacity:1; transform: scale(1); }
  50%      { opacity:0.8; transform: scale(1.05); }
}
.notice-card .notice-badge.badge-new {
  animation: pulse-badge 2s infinite !important;
}
.pacs-stats .stat-item {
  animation: fadeInUp 0.6s ease both;
}
.pacs-stats .stat-item:nth-child(1) { animation-delay: 0.1s; }
.pacs-stats .stat-item:nth-child(2) { animation-delay: 0.2s; }
.pacs-stats .stat-item:nth-child(3) { animation-delay: 0.3s; }
.pacs-stats .stat-item:nth-child(4) { animation-delay: 0.4s; }

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .header-middle .col-md-4 { display: none; }
  .page-section:first-of-type h1 { font-size: 1.7rem !important; }
  .pacs-stats .stat-number { font-size: 2rem; }
  .pacs-stats .stat-item + .stat-item::before { display: none; }
  .pacs-stats .stat-item { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .mainmenu { display: none; }
}
