/* ===== UI Theme - Based on UI.html ===== */

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #00414b;
  --gold: #9cc53e;
  --light-blue: #eef5e6;
  --white: #FFFFFF;
  --dark-text: #00414b;
  --gray-text: #5a6d60;
  --border-gold: #9cc53e;
  --card-shadow: 0px 0px 15px 8px rgba(0,65,75,0.06);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: var(--white);
  z-index: 999;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: all 0.3s;
}
.site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
}

/* Nav link gold underline animation */
.site-header .nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-text) !important;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s;
}
.site-header .nav-link:hover {
  color: var(--gold) !important;
}
.site-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.site-header .nav-link:hover::after {
  width: 100%;
}

/* Header social icons */
.header-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light-blue);
  color: var(--dark-text);
  font-size: 14px;
  transition: all 0.3s;
}
.header-social a:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

/* Logo styling */
.logo-box {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #9cc53e, #7ba82e);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== BUTTONS ===== */
.btn-primary-ui {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(156,197,62,0.35);
}
.btn-primary-ui:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(156,197,62,0.45);
}

.btn-secondary-ui {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F5F3F3;
  color: var(--dark-text);
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #ECECEC;
  transition: all 0.3s;
}
.btn-secondary-ui:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ===== CARDS ===== */
.ui-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border-bottom: 4px solid var(--gold);
  transition: all 0.3s;
}
.ui-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* News card */
.ui-news-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: all 0.3s;
  border-bottom: 4px solid var(--gold);
}
.ui-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Feature card (asymmetric border-radius) */
.ui-feature-card {
  background: var(--white);
  border-radius: 5px 5px 40px 5px;
  padding: 18px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  border: 1px solid rgba(234,234,234,0.42);
  transition: all 0.3s;
}
.ui-feature-card:hover {
  transform: translateY(-3px);
}

/* Service card */
.ui-service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 24px 14px 14px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border-bottom: 4px solid var(--gold);
  transition: all 0.4s;
}
.ui-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}
.ui-service-card .card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: var(--light-blue);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--gold);
}

/* ===== SECTION HEADERS ===== */
.ui-section-header {
  text-align: center;
  margin-bottom: 50px;
}
.ui-section-header h2 {
  font-size: 27px;
  font-weight: 700;
  color: var(--dark-text);
}
.ui-section-header h2 span {
  color: var(--gold);
}
.ui-section-header p {
  font-size: 16px;
  color: var(--gray-text);
  margin-top: 8px;
}

/* ===== CTA BANNER ===== */
.cta-banner-ui {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.cta-banner-ui::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0V4h20V0h2v4h18v10h-18v2h18v2H22v2.5z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ===== HERO ===== */
.hero-bg-pattern {
  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.02'%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");
  opacity: 0.5;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(156,197,62,0.18);
  border: 1px solid rgba(156,197,62,0.4);
  color: var(--gold);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ===== WAVE DIVIDER ===== */
.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
}
.wave-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 110%;
  height: 100%;
}

/* ===== FOOTER ===== */
.ui-footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 20px 30px;
  position: relative;
}
.ui-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0V4h20V0h2v4h18v10h-18v2h18v2H22v2.5z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.12;
  pointer-events: none;
}

.footer-col-title {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 16px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* Footer links */
.ui-footer ul a,
.ui-footer .footer-bottom a {
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.ui-footer ul a:hover,
.ui-footer .footer-bottom a:hover {
  color: var(--gold);
}

.footer-social-ui a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  transition: all 0.3s;
}
.footer-social-ui a:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ===== FLOATING ACTION BUTTONS ===== */
.floating-actions {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-text);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.3s;
  border-top: 3px solid var(--dark-text);
  text-decoration: none;
}
.float-btn:hover {
  background: #F5F3F3;
  transform: translateY(-2px);
}

/* ===== CATEGORY MENU BAR ===== */
.category-bar {
  background: #1a1d2e;
  border-radius: 16px;
  padding: 14px 18px;
  overflow: hidden;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.category-bar-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}
.category-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #252a3a;
  border: 1px solid #333850;
  border-radius: 50px;
  padding: 12px 24px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  text-decoration: none;
}
.category-bar-item:hover {
  background: #2f3549;
  border-color: #4a5070;
  transform: translateY(-1px);
}
.category-bar-item span {
  color: #d0d3de;
  font-size: 15px;
  font-weight: 500;
}
.category-bar-item .cat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Parent item - bolder style */
.category-bar-parent {
  background: #2d3350;
  border-color: #4a5070;
}
.category-bar-parent span {
  font-weight: 700;
  color: #fff;
}
.category-bar-parent .cat-dot {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 6px currentColor;
}

/* Child item */
.category-bar-child {
  padding: 10px 20px;
}
.category-bar-child span {
  font-size: 13px;
}
@media (max-width: 768px) {
  .category-bar { padding: 10px 12px; border-radius: 12px; }
  .category-bar-item { padding: 10px 18px; }
  .category-bar-item span { font-size: 13px; }
}

/* ===== SLIDE TEXT ANIMATION ===== */
.slide-text {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-text.slide-text-active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ANIMATIONS ===== */
@keyframes slideZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes uiFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes uiBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Scroll-triggered fade-in */
.ui-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.ui-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CUSTOM SCROLLBAR (gold) ===== */
.gold-scrollbar::-webkit-scrollbar { height: 6px; }
.gold-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.gold-scrollbar::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* ===== RESPONSIVE ===== */

/* === Tablet (max-width: 1024px) === */
@media (max-width: 1024px) {
  .site-header .header-inner { padding: 10px 20px; }
  .header-social { display: none !important; }
}

/* === Mobile landscape / Small tablet (max-width: 768px) === */
@media (max-width: 768px) {
  .site-header .header-inner { padding: 8px 12px; }

  /* Section headers */
  .ui-section-header { margin-bottom: 30px; }
  .ui-section-header h2 { font-size: 20px; }
  .ui-section-header p { font-size: 13px; }

  /* Buttons */
  .btn-primary-ui { padding: 12px 28px; font-size: 14px; }
  .btn-secondary-ui { padding: 8px 20px; font-size: 13px; }

  /* Cards */
  .ui-card:hover { transform: translateY(-3px); }
  .ui-news-card:hover { transform: translateY(-2px); }

  /* CTA Banner */
  .cta-banner-ui .cta-banner-inner {
    flex-direction: column !important;
    text-align: center !important;
    padding: 30px 20px !important;
    gap: 20px !important;
  }
  .cta-banner-ui .cta-banner-text {
    border-right: none !important;
    padding-right: 0 !important;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 15px;
  }
  .cta-banner-ui .cta-banner-text h3 { font-size: 20px !important; }
  .cta-banner-ui .cta-banner-text p { font-size: 15px !important; }

  /* Floating actions */
  .floating-actions { bottom: 10px; left: 10px; }
  .float-btn { font-size: 12px; padding: 8px 12px; }
  .float-btn span:last-child { display: none; }
  .float-btn { padding: 10px; border-radius: 50%; }
  .float-btn svg, .float-btn .material-icons-outlined { margin: 0; }

  /* Wave divider */
  .wave-divider { height: 50px; }

  /* Feature card */
  .ui-feature-card { padding: 14px; }
}

/* === Mobile portrait (max-width: 480px) === */
@media (max-width: 480px) {
  .site-header .header-inner { padding: 6px 10px; }

  .ui-section-header { margin-bottom: 24px; }
  .ui-section-header h2 { font-size: 18px; }

  .btn-primary-ui { padding: 10px 24px; font-size: 13px; }

  /* News cards - full width */
  .ui-news-card { min-width: 260px !important; width: 260px !important; }

  /* Category bar */
  .category-bar { padding: 8px 10px; border-radius: 10px; }
  .category-bar-item { padding: 8px 14px; }
  .category-bar-item span { font-size: 12px; }
  .category-bar-parent .cat-dot { width: 10px; height: 10px; }

  /* Wave divider even smaller */
  .wave-divider { height: 40px; }
}
