/*
 * premium.css — Premium UI Override
 * กองทุนสวัสดิการอุดร
 * Overrides main.css for a premium, polished appearance
 */

/* =====================================================
   1. CSS VARIABLES — Logo Palette (กส.อด.)
   Maroon border + Orange-red pot + Amber glow + Navy text
===================================================== */
:root {
  /* Primary: Maroon (ขอบวงกลม logo) */
  --p-dark:    #7b1818;
  --p-mid:     #a32626;
  --p-bright:  #bd5e2d;   /* สีหม้อดินเผา Terracotta */

  /* Warm tints */
  --p-light:   #fde8d8;
  --p-xlight:  #fff8f3;

  /* Gold / Amber (แสงทองหลังหม้อ) */
  --p-gold:    #d48a0a;
  --p-gold-lt: #fff3d6;

  /* Navy (สีตัวอักษรใน logo) */
  --p-navy:    #1d2e7a;
  --p-navy-lt: #2a3f9e;

  /* Neutrals */
  --p-gray-1:  #1c1c1e;
  --p-gray-2:  #3a3a3c;
  --p-gray-3:  #6e6e73;
  --p-gray-4:  #aeaeb2;
  --p-gray-5:  #f5f5f7;

  /* Override main.css */
  --color-accent:        #c94b0c;
  --color-text:          #2d2d2d;
  --color-heading:       #6b1212;
  --nav-link:            #2d2d2d;
  --nav-link-hover:      #c94b0c;
  --nav-dropdown-hover:  #c94b0c;
  --nav-dropdown-link:   #2d2d2d;

  /* Shadows — warm maroon tinted */
  --shadow-sm:  0 2px 8px rgba(107,18,18,.08);
  --shadow-md:  0 8px 32px rgba(107,18,18,.14);
  --shadow-lg:  0 20px 60px rgba(107,18,18,.2);
  --shadow-xl:  0 32px 80px rgba(107,18,18,.25);

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
}

/* =====================================================
   2. BASE
===================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', system-ui, sans-serif;
  color: var(--p-gray-1);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  color: var(--p-dark);
  line-height: 1.3;
}

a { transition: color 0.25s, opacity 0.25s; }

/* =====================================================
   3. PRELOADER
===================================================== */
#preloader {
  background: var(--p-dark);
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader::before {
  content: '';
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin-preloader 0.8s linear infinite;
  top: auto;
  left: auto;
  position: static;
}

/* =====================================================
   4. SCROLL TO TOP
===================================================== */
.scroll-top {
  background: linear-gradient(135deg, var(--p-bright), var(--p-dark));
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: var(--shadow-md);
  bottom: 24px;
  right: 24px;
  transition: transform 0.3s, opacity 0.3s;
}

.scroll-top:hover {
  background: linear-gradient(135deg, var(--p-dark), var(--p-bright));
  transform: translateY(-3px);
}

.scroll-top i { font-size: 22px; }

/* =====================================================
   5. HEADER — Glassmorphism
===================================================== */
.header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(107,18,18,.08), 0 4px 24px rgba(107,18,18,.06);
  border-bottom: 1px solid rgba(201,75,12,.1);
  transition: background 0.4s, box-shadow 0.4s;
}

.header .branding {
  min-height: 68px;
  padding: 10px 0;
}

.header .logo {
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--p-dark);
  letter-spacing: -0.01em;
}

.header .logo img {
  max-height: 40px;
  border-radius: 8px;
}

.header .cta-btn,
.header .cta-btn:focus {
  background: linear-gradient(135deg, var(--p-bright), var(--p-dark));
  border-radius: 50px;
  padding: 9px 22px;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(201,75,12,.35);
  transition: transform 0.25s, box-shadow 0.25s;
  border: none;
}

.header .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,75,12,.45);
  background: linear-gradient(135deg, var(--p-dark), var(--p-bright));
}

/* Navigation refinement */
.navmenu a, .navmenu a:focus {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 20px 14px;
}

.navmenu li:hover > a,
.navmenu .active,
.navmenu .active:focus {
  color: var(--p-bright);
}

.navmenu .dropdown ul {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201,75,12,.1);
  padding: 8px;
}

.navmenu .dropdown ul a {
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 0.875rem;
}

.navmenu .dropdown ul a:hover,
.navmenu .dropdown ul .active:hover,
.navmenu .dropdown ul li:hover > a {
  background: var(--p-xlight);
  color: var(--p-bright);
}

/* =====================================================
   6. HERO — Cinematic Full-screen
===================================================== */
.hero { padding: 0; }

.hero .carousel {
  min-height: 85vh;
}

.hero img {
  filter: none;
}

.hero .carousel-item {
  justify-content: center;
  align-items: center;
}

/* Remove the boxed white container, replace with full-width gradient */
.hero .container {
  background: transparent;
  border-top: none;
  margin-bottom: 0;
  padding: 40px 24px;
  text-align: center;
}

/* No overlay — show image at full colour */
.hero .carousel-item::after { display: none; }

.hero .container { z-index: 4; }

.hero h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero p {
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
  max-width: 600px;
  margin: 0 auto 28px;
}

.hero .btn-get-started {
  background: linear-gradient(135deg, var(--p-gold), var(--p-bright));
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 24px rgba(201,75,12,.5);
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero .btn-get-started:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(201,75,12,.6);
  color: #fff;
}

/* Carousel controls */
.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.hero .carousel-control-prev:hover .carousel-control-prev-icon,
.hero .carousel-control-next:hover .carousel-control-next-icon {
  background: var(--p-gold);
  border-color: var(--p-gold);
}

.hero .carousel-indicators li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: 2px solid rgba(255,255,255,.7);
  transition: all 0.3s;
}

.hero .carousel-indicators li.active {
  background: #fff;
  width: 24px;
  border-radius: 50px;
}

/* =====================================================
   7. SECTION TITLE — Premium
===================================================== */
.section-title {
  padding-bottom: 32px;
}

.section-title h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--p-dark);
  padding-bottom: 10px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.section-title h2::after {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--p-bright), var(--p-gold));
  border-radius: 4px;
  bottom: 0;
}

.section-title p {
  color: var(--p-gray-3);
  font-size: 0.9rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =====================================================
   8. FEATURED SERVICES
===================================================== */
.featured-services .service-item {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  border: 1px solid rgba(201,75,12,.08);
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.featured-services .service-item::before {
  background: linear-gradient(135deg, var(--p-bright), var(--p-dark));
  border-radius: var(--radius-lg);
}

.featured-services .service-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.featured-services .service-item .icon i {
  font-size: 40px;
  color: var(--p-bright);
}

.featured-services .service-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.featured-services .service-item:hover h4 a,
.featured-services .service-item:hover .icon i,
.featured-services .service-item:hover p {
  color: rgba(255,255,255,.95);
}

/* =====================================================
   9. CALL TO ACTION
===================================================== */
.call-to-action {
  background: linear-gradient(135deg, var(--p-dark) 0%, var(--p-mid) 50%, var(--p-bright) 100%);
  position: relative;
  overflow: hidden;
}

.call-to-action::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");
}

.call-to-action h3 {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
}

.call-to-action p { color: rgba(255,255,255,.85); }

.call-to-action .cta-btn {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  border-radius: 50px;
  padding: 13px 38px;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.call-to-action .cta-btn:hover {
  background: #fff;
  color: var(--p-dark);
  border-color: #fff;
  transform: translateY(-2px);
}

/* committee carousel on CTA */
.call-to-action .swiper-pagination-bullet {
  background: rgba(255,255,255,.5);
  opacity: 1;
}
.call-to-action .swiper-pagination-bullet-active {
  background: #fff;
}
.call-to-action .section-title h2::after {
  background: rgba(255,255,255,.4);
}

/* =====================================================
   10. ABOUT
===================================================== */
.about .content h3 {
  color: var(--p-dark);
  font-size: 1.6rem;
  font-weight: 700;
}

.about .content ul i {
  color: var(--p-bright);
  font-size: 1.2rem;
}

/* =====================================================
   11. STATS
===================================================== */
.stats .stats-item {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,75,12,.08);
  padding: 16px 18px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stats .stats-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stats .stats-item i {
  color: var(--p-bright);
  font-size: 40px;
  background: var(--p-xlight);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats .stats-item span {
  color: var(--p-dark);
  font-size: 2rem;
  font-weight: 700;
}

.stats .stats-item p {
  color: var(--p-gray-3);
  font-size: 0.875rem;
  font-weight: 500;
}

/* =====================================================
   12. FEATURES
===================================================== */
.features h3 {
  color: var(--p-dark);
  font-size: 1.6rem;
}

.features h3::after {
  background: linear-gradient(90deg, var(--p-bright), transparent);
  height: 3px;
  border-radius: 3px;
}

.features .icon-box i {
  color: var(--p-bright);
  background: var(--p-xlight);
  border-radius: var(--radius-sm);
  box-shadow: none;
  border: 1px solid var(--p-light);
  width: 52px;
  height: 52px;
  font-size: 24px;
}

.features .icon-box:hover i {
  background: linear-gradient(135deg, var(--p-bright), var(--p-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(201,75,12,.3);
}

.features .icon-box h4 a { color: var(--p-dark); }
.features .icon-box h4 a:hover { color: var(--p-bright); }

/* =====================================================
   13. FORMS (แบบฟอร์มดาวน์โหลด)
===================================================== */
.services.section { background: var(--p-xlight); }

.services .service-item {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,75,12,.08);
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 1rem 1rem 3rem !important;
}

.services .service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.services .service-item .icon {
  background: var(--p-xlight);
  color: var(--p-bright);
  border: 1.5px solid var(--p-light);
  border-radius: var(--radius-sm);
  width: 48px;
  height: 48px;
  font-size: 22px;
  margin-bottom: 10px;
  box-shadow: none;
}

.services .service-item h3::after {
  background: linear-gradient(90deg, var(--p-bright), transparent);
  border-radius: 2px;
}

/* =====================================================
   14. PRICING
===================================================== */
.pricing .pricing-item {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(201,75,12,.1);
  padding: 0 0 24px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing .pricing-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing .pricing-item h3 {
  background: var(--p-xlight);
  color: var(--p-dark);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1.5px solid rgba(201,75,12,.1);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pricing .pricing-item h4 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--p-dark);
  padding: 20px 20px 8px;
}

.pricing .pricing-item h4 sup {
  font-size: 1.1rem;
  color: var(--p-gray-3);
}

.pricing .pricing-item h4 span {
  color: var(--p-gray-3);
  font-size: 0.85rem;
}

.pricing .pricing-item ul {
  padding: 8px 20px 16px;
  font-size: 0.875rem;
  text-align: left;
}

.pricing .pricing-item ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(26,122,74,.07);
  line-height: 1.5;
}

.pricing .pricing-item ul li:last-child { border-bottom: none; }

.pricing .pricing-item ul i { color: var(--p-bright); }

.pricing .featured h3 {
  background: linear-gradient(135deg, var(--p-bright), var(--p-dark));
  color: #fff;
  border-bottom-color: transparent;
}

.pricing .featured {
  border-color: var(--p-bright);
  box-shadow: var(--shadow-md);
}

.pricing .advanced {
  background: linear-gradient(135deg, var(--p-navy), #2a3d9e);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 3px;
}

/* =====================================================
   15. STAFF / DOCTORS
===================================================== */
.doctors .team-member {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26,122,74,.08);
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
}

.doctors .team-member:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.doctors .team-member .member-img { position: relative; overflow: hidden; }

.doctors .team-member .member-img img {
  transition: transform 0.5s ease;
}

.doctors .team-member:hover .member-img img {
  transform: scale(1.06);
}

.doctors .team-member .social {
  bottom: 20px;
}

.doctors .team-member .social a {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  color: var(--p-dark);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 0.9rem;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.doctors .team-member .social a:hover {
  background: linear-gradient(135deg, var(--p-bright), var(--p-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(201,75,12,.4);
}

.doctors .team-member .member-info {
  padding: 12px 14px;
  background: #fff;
}

.doctors .team-member .member-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--p-dark);
  margin-bottom: 4px;
}

.doctors .team-member .member-info span {
  font-size: 0.8rem;
  color: var(--p-gray-3);
  font-weight: 400;
}

/* =====================================================
   16. TESTIMONIALS (ศูนย์ประสาน)
===================================================== */
.testimonials .testimonial-item {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,75,12,.1);
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 16px !important;
}

.testimonials .testimonial-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonials .testimonial-img {
  border: 3px solid var(--p-light) !important;
  box-shadow: 0 4px 12px rgba(26,122,74,.2);
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  border-color: var(--p-bright);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--p-bright);
}

/* =====================================================
   17. GALLERY
===================================================== */
.gallery .swiper-slide-active {
  border-color: var(--p-bright) !important;
  border-radius: var(--radius-sm);
}

.gallery .swiper-pagination .swiper-pagination-bullet {
  border-color: var(--p-bright);
}

.gallery .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--p-bright);
}

/* =====================================================
   18. CONTACT
===================================================== */
.contact .info-item {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,75,12,.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact .info-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact .info-item i {
  color: var(--p-bright);
  border-color: var(--p-light);
  background: var(--p-xlight);
  border-style: solid;
}

.contact .php-email-form {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,75,12,.08);
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: var(--radius-sm) !important;
  border-color: rgba(201,75,12,.2) !important;
  font-size: 0.9rem;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--p-bright) !important;
  box-shadow: 0 0 0 3px rgba(201,75,12,.12) !important;
}

.contact .php-email-form button[type="submit"] {
  background: linear-gradient(135deg, var(--p-bright), var(--p-dark));
  border-radius: 50px;
  padding: 11px 36px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(201,75,12,.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.contact .php-email-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,75,12,.45);
}

/* =====================================================
   19. APPOINTMENT FORM
===================================================== */
.appointment .php-email-form input,
.appointment .php-email-form textarea,
.appointment .php-email-form select {
  border-radius: var(--radius-sm) !important;
  border-color: rgba(201,75,12,.2) !important;
  font-size: 0.9rem;
  background: #fff;
}

.appointment .php-email-form input:focus,
.appointment .php-email-form textarea:focus,
.appointment .php-email-form select:focus {
  border-color: var(--p-bright) !important;
  box-shadow: 0 0 0 3px rgba(201,75,12,.12) !important;
}

.appointment .php-email-form button[type="submit"] {
  background: linear-gradient(135deg, var(--p-bright), var(--p-dark));
  border-radius: 50px;
  padding: 12px 40px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(201,75,12,.3);
  transition: transform 0.25s, box-shadow 0.25s;
}

.appointment .php-email-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,75,12,.45);
}

/* =====================================================
   20. TABS
===================================================== */
.tabs .nav-link {
  border-right-width: 3px;
  font-size: 0.9rem;
  padding: 14px 16px 14px 0;
  color: var(--p-gray-2);
  border-radius: 0;
  font-weight: 500;
}

.tabs .nav-link:hover { color: var(--p-bright); }

.tabs .nav-link.active {
  color: var(--p-bright);
  border-color: var(--p-bright);
}

/* =====================================================
   21. FOOTER — Dark Premium
===================================================== */
.footer {
  background: linear-gradient(135deg, var(--p-dark) 0%, var(--p-mid) 50%, var(--p-bright) 100%) !important;
  color: rgba(255,255,255,.85) !important;
  --color-bg: var(--p-dark);
  --color-text: rgba(255,255,255,.85);
  --color-heading: #fff;
  position: relative;
  overflow: hidden;
}

.footer::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;
}

.footer .footer-top {
  padding-top: 36px;
  padding-bottom: 12px;
}

.footer .footer-about .logo .sitename {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer .footer-about p,
.footer .footer-contact p {
  color: rgba(255,255,255,.6);
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 14px;
  position: relative;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--p-bright);
  border-radius: 2px;
}

.footer .footer-links ul a {
  color: rgba(255,255,255,.55);
  font-size: 0.875rem;
  transition: color 0.25s, padding-left 0.25s;
}

.footer .footer-links ul a:hover {
  color: var(--p-bright);
  padding-left: 6px;
}

.footer .footer-links ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.footer .footer-links ul li:first-child { border-top: 1px solid rgba(255,255,255,.05); }

.footer .social-links a {
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.footer .social-links a:hover {
  background: linear-gradient(135deg, var(--p-bright), var(--p-dark));
  border-color: var(--p-bright);
  color: #fff;
  transform: translateY(-2px);
}

.footer .copyright {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
}

.footer .copyright p {
  color: rgb(255, 255, 255);
  font-size: 0.82rem;
  margin: 0;
}

.footer .copyright .sitename {
  color: rgba(255,255,255,.7);
}

/* =====================================================
   22. LIGHT BACKGROUND SECTIONS
===================================================== */
.light-background {
  --color-bg: var(--p-xlight);
  background-color: var(--p-xlight) !important;
}

/* =====================================================
   23. SECTION GLOBAL
===================================================== */
section, .section { padding: 20px 0; }

/* =====================================================
   24. MISC — AOS, Badges, Inputs
===================================================== */
.badge {
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 50px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0faf5; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--p-bright), var(--p-dark)); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--p-dark); }

/* Selection color */
::selection { background: var(--p-light); color: var(--p-dark); }

/* =====================================================
   25. RESPONSIVE POLISH
===================================================== */
@media (max-width: 768px) {
  .hero .carousel { min-height: 70vh; }
  .hero h2 { font-size: 1.75rem; }
  section, .section { padding: 32px 0; }
  .section-title { padding-bottom: 20px; }
  .footer .footer-top { padding-top: 24px; }
}

@media (max-width: 480px) {
  .hero .carousel { min-height: 60vh; }
  .header .cta-btn { padding: 8px 16px; font-size: 0.8rem; }
}

/* =====================================================
   21. CUSTOM HEADER & NAV (Matching Reference)
===================================================== */
.header-custom-top {
  background-color: #fcfcfc;
  background-image: 
    linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.02) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.02) 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.header-custom-top .logo img {
  max-height: 120px;
  width: auto;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,0.15));
  transition: transform 0.3s ease;
}
.header-custom-top .logo:hover img { transform: scale(1.05); }

.site-title-premium {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--p-navy);
  line-height: 1.2;
  margin: 0;
  /* Text outline effect */
  text-shadow: 
    -2px -2px 0 #fff,  
     2px -2px 0 #fff,
    -2px  2px 0 #fff,
     2px  2px 0 #fff,
     0px 4px 10px rgba(29, 46, 122, 0.2);
  letter-spacing: -0.01em;
}

.nav-bar-premium {
    background: linear-gradient(135deg, #661206 0%, #d87c1e 100%);  border-radius: 18px;
  padding: 15px 10px;
  margin-top: -25px;
  position: relative;
  z-index: 100;
  box-shadow: 0 15px 35px rgba(29,46,122,0.3);
  border: 2.5px solid var(--p-gold); /* Gold border from logo */
}

.nav-list-premium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(10px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item-premium {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.nav-item-premium i {
  font-size: 2.2rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-item-premium span {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.95;
}

.nav-item-premium:hover {
  transform: translateY(-8px);
  color: var(--p-gold);
}
.nav-item-premium:hover i { color: var(--p-gold); }

.nav-item-premium::after {
  content: '';
  position: absolute;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--p-gold);
  transition: width 0.3s ease;
}
.nav-item-premium:hover::after { width: 100%; }

/* Premium Dropdown */
.nav-list-premium li { position: relative; }
.nav-dropdown-premium {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 12px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
  border: 1px solid var(--p-gold);
}
/* Hover Bridge to prevent closing on gap */
.nav-dropdown-premium::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 0;
  right: 0;
  height: 25px;
  background: transparent;
}
.nav-list-premium li:hover .nav-dropdown-premium {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(15px);
}
.nav-dropdown-premium a {
  display: block;
  padding: 10px 18px;
  color: var(--p-navy);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.nav-dropdown-premium li:last-child a { border-bottom: none; }
.nav-dropdown-premium a:hover {
  background: var(--p-xlight);
  color: var(--p-dark);
  padding-left: 22px;
}

@media (max-width: 991px) {
  .nav-list-premium { gap: 15px; flex-wrap: wrap; }
  .nav-item-premium i { font-size: 1.6rem; }
  .nav-item-premium span { font-size: 0.75rem; }
  .site-title-premium { text-align: center; margin-top: 15px; }
  .nav-dropdown-premium { display: none; }
}
