/* 365HUAT Malaysia SEO Portal — Updated Stylesheet */
:root {
  --brand-primary: #1f897d;
  --brand-dark: #145e57;
  --brand-darker: #0a2e2a;
  --brand-accent: #e3ad2f;
  --brand-accent-hover: #c9961d;
  --brand-gradient: linear-gradient(135deg, #25a395 0%, #145e57 100%);
  --brand-soft: #e8f7f5;
  --tile-bg: #0b2220;
  --tile-border: #1b4f4a;
  --gold-gradient: linear-gradient(135deg, #ffd43b 0%, #e3ad2f 100%);
  --bg-body: #f5f7f9;
  --bg-white: #ffffff;
  --text-main: #1d2730;
  --text-muted: #5a6875;
  --border-light: #e4e9ee;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(0, 30, 24, 0.06);
  --shadow-md: 0 8px 28px rgba(0, 30, 24, 0.10);
  --container-max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg-body); color: var(--text-main); line-height: 1.65; font-size: 15px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--brand-dark); }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 18px; }
.section { padding: 44px 0; }
.section-white { background: var(--bg-white); }
.section-dark { background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand-dark) 100%); color: #fff; }

.compliance-strip { background: var(--brand-darker); color: #d1e3da; font-size: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.compliance-strip .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.compliance-strip a { color: var(--brand-accent); text-decoration: underline; }

.gradient-title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; line-height: 1.25; margin-bottom: 14px; background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-dark .gradient-title { background: linear-gradient(90deg, #ffe066 0%, var(--brand-accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 14px; }
.site-logo img { height: 42px; width: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; list-style: none; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 9px 13px; border-radius: 8px; font-size: 14px; font-weight: 700; color: #161d24; white-space: nowrap; }
.nav-link:hover { background: var(--brand-soft); color: var(--brand-primary); }
.nav-link.active { background: var(--brand-gradient); color: #fff !important; box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.has-dropdown .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 215px; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; box-shadow: var(--shadow-md); padding: 6px; list-style: none; z-index: 99; }
.has-dropdown:hover .dropdown-menu, .has-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-main); }
.dropdown-menu a:hover { background: var(--brand-soft); color: var(--brand-primary); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 10px; font-size: 14px; font-weight: 800; letter-spacing: 0.3px; border: none; cursor: pointer; transition: transform 0.18s ease, filter 0.2s ease; text-transform: uppercase; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-primary { background: var(--brand-gradient); color: #fff !important; box-shadow: 0 5px 16px rgba(0,0,0,0.22); }
.btn-gold { background: var(--gold-gradient); color: #11181c !important; box-shadow: 0 5px 16px rgba(212,168,58,0.35); }
.btn-outline { background: transparent; border: 2px solid var(--brand-primary); color: var(--brand-primary) !important; }
.btn-outline:hover { background: var(--brand-primary); color: #fff !important; }
.burger-btn { display: none; background: none; border: 1px solid var(--border-light); border-radius: 8px; padding: 7px 10px; font-size: 20px; cursor: pointer; color: var(--text-main); }

.hero-banner-section { background: var(--brand-darker); padding: 14px 0 18px; }
.hero-slider-wrap { position: relative; width: 100%; max-width: 1160px; margin: 0 auto; overflow: hidden; border-radius: 14px; background: #000; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.hero-slides { display: flex; align-items: center; transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1); }
.hero-slide { min-width: 100%; display: flex; align-items: center; justify-content: center; background: #000; }
.hero-slide img { width: 100%; height: auto; max-height: 460px; object-fit: contain; margin: 0 auto; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; border: none; font-size: 20px; cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center; }
.slider-arrow:hover { background: var(--brand-primary); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; flex-wrap: wrap; justify-content: center; }
.slider-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.45); border: none; cursor: pointer; }
.slider-dot.active { background: var(--brand-accent); width: 22px; border-radius: 99px; }

.static-banner-box { max-width: 1160px; margin: 14px auto 0; border-radius: 12px; overflow: hidden; }
.static-banner-box img { width: 100%; height: auto; }

.marquee-bar { background: var(--brand-darker); color: #fff; padding: 10px 0; overflow: hidden; border-bottom: 2px solid var(--brand-accent); border-top: 1px solid rgba(255,255,255,0.08); }
.marquee-track { display: flex; width: max-content; gap: 60px; animation: marqueeScroll 38s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { font-size: 13.5px; font-weight: 600; white-space: nowrap; color: #f1f5f7; }
.marquee-item strong { color: var(--brand-accent); }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.lobby-split { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.rec-card, .tabs-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.rec-carousel { position: relative; overflow: hidden; border-radius: 12px; }
.rec-track { display: flex; transition: transform 0.45s ease; }
.rec-slide { min-width: 100%; display: block; }
.rec-slide img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; }

.tabs-nav { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab-btn { padding: 9px 18px; border-radius: 8px; border: 1px solid var(--border-light); background: #f4f7f8; color: var(--text-main); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.tab-btn.active { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.provider-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.provider-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.provider-tile { display: block; background: var(--tile-bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--tile-border); transition: transform 0.2s ease; text-align: center; }
.provider-tile:hover { transform: translateY(-4px); }
.provider-tile img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.provider-tile.wide img { aspect-ratio: 16/9; object-fit: contain; background: var(--tile-bg); padding: 6px; }
.provider-tile span { display: block; padding: 7px 6px; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand-gradient); }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero-h1 { font-size: clamp(25px, 3.3vw, 36px); font-weight: 900; line-height: 1.22; color: var(--brand-darker); margin-bottom: 16px; }
.lead-text { font-size: 15.5px; color: var(--text-muted); margin-bottom: 22px; }
.rounded-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; height: auto; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.info-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--brand-darker); }
.info-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.info-card-meta { font-size: 12px; color: var(--brand-primary); font-weight: 700; margin-bottom: 6px; text-transform: uppercase; }
.info-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; color: var(--brand-darker); line-height: 1.35; }
.info-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; flex: 1; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border-light); background: #fff; margin: 16px 0; }
.seo-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.seo-table th { background: var(--brand-primary); color: #fff; font-weight: 700; padding: 12px 14px; text-align: left; font-size: 13.5px; }
.seo-table td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.seo-table tr:nth-child(even) td { background: #f8fbfb; }

.page-hero { background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand-primary) 100%); color: #fff; padding: 44px 0; border-bottom: 3px solid var(--brand-accent); }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.78); margin-bottom: 10px; }
.breadcrumb a { color: var(--brand-accent); }
.page-hero h1 { font-size: clamp(24px, 3.5vw, 38px); font-weight: 900; margin-bottom: 12px; line-height: 1.25; }
.page-hero p { max-width: 780px; color: #e2eff0; font-size: 15.5px; }

.prose-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.prose-card h2 { font-size: 21px; color: var(--brand-primary); margin: 24px 0 10px; }
.prose-card h2:first-child { margin-top: 0; }
.prose-card p, .prose-card li { color: var(--text-muted); margin-bottom: 10px; font-size: 15px; }
.prose-card ul, .prose-card ol { padding-left: 22px; margin-bottom: 14px; }

.social-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--bg-white); border: 1px solid var(--border-light); font-size: 13px; font-weight: 700; color: var(--text-main); }
.social-pill:hover { border-color: var(--brand-primary); background: var(--brand-soft); color: var(--brand-primary); }

.site-footer { background: var(--brand-darker); color: #cdd8db; padding: 48px 0 24px; border-top: 3px solid var(--brand-accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 0.9fr; gap: 28px; margin-bottom: 32px; }
.footer-col h3 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.footer-col p { font-size: 13.5px; line-height: 1.7; color: #b7c6ca; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #b7c6ca; font-size: 13.5px; }
.footer-links a:hover { color: var(--brand-accent); }
.payment-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-grid img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #fff; padding: 2px; }
.license-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.license-row img { height: 34px; width: auto; background: rgba(255,255,255,0.08); padding: 4px 8px; border-radius: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #8fa3a8; }

@media (max-width: 1024px) {
  .lobby-split { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid, .cards-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .burger-btn { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border-light); box-shadow: var(--shadow-md); padding: 14px 18px; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 6px; }
  .has-dropdown .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
  .two-col, .cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .provider-grid, .provider-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .prose-card { padding: 20px; }
}
