/*
Theme Name: Hello Elementor (Revamped)
Theme URI: https://takafulandinsurance.com/
Description: Ultra-fast, modern, professional theme for Takaful & Insurance Malaysia. Zero plugin overhead, fully responsive, vibrant logo blue design system.
Author: Takaful & Insurance Team
Author URI: https://takafulandinsurance.com/
Version: 4.2.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-elementor
*/

/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS (LOGO BLUE PALETTE #37B4FF)
   ========================================================================== */
:root {
  --logo-blue: #37b4ff;        /* Vibrant Logo Cyan / Sky Blue */
  --logo-blue-hover: #1ea4f2;
  --primary: #0078bf;          /* Deep Corporate Azure */
  --primary-dark: #00375c;     /* Deep Navy Contrast */
  --primary-darker: #00223b;   /* Footer Deep Navy */
  --primary-light: #48beff;
  --secondary: #0088dd;        /* Mid Azure */
  --secondary-dark: #0066aa;
  --secondary-light: #e6f5ff;  /* Soft Ice Blue */
  --accent: #ff9900;           /* Warm Amber for high conversion CTAs */
  --accent-hover: #e68500;
  --accent-light: #fff5e6;
  --text-dark: #0f1e2e;        /* Dark Slate Blue */
  --text-muted: #526b82;       /* Muted Slate Blue */
  --text-light: #ffffff;
  --bg-body: #f4f9fd;          /* Very subtle cool blue tint */
  --bg-card: #ffffff;
  --bg-alt: #eaf4fb;           /* Light Sky Tint */
  --border-color: #d1e7f6;
  --border-focus: #37b4ff;
  --shadow-sm: 0 1px 3px 0 rgb(0 120 191 / 0.08);
  --shadow-md: 0 4px 10px -1px rgb(0 120 191 / 0.12), 0 2px 4px -2px rgb(0 120 191 / 0.08);
  --shadow-lg: 0 10px 20px -3px rgb(0 120 191 / 0.16), 0 4px 6px -4px rgb(0 120 191 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 55 92 / 0.2), 0 8px 10px -6px rgb(0 55 92 / 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1200px;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
  color: #1e354b;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Container */
.tni-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
}

.btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 120, 191, 0.35);
}

.btn-secondary {
  background: var(--logo-blue);
  color: #002b47 !important;
}

.btn-secondary:hover {
  background: var(--logo-blue-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(55, 180, 255, 0.4);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff !important;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: #bcd9ef;
  color: var(--primary) !important;
}

.btn-outline:hover {
  background: var(--secondary-light);
  border-color: var(--primary);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 55, 92, 0.08);
  border-bottom: 2px solid var(--logo-blue);
  transition: var(--transition);
}

.tni-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.tni-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.tni-brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.tni-brand-text {
  display: flex;
  flex-direction: column;
}

.tni-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tni-brand-tagline {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Nav Menu */
.tni-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tni-nav-item {
  position: relative;
}

.tni-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.tni-nav-link:hover,
.tni-nav-item:hover > .tni-nav-link {
  color: var(--primary);
  background: var(--secondary-light);
}

/* Dropdown */
.tni-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 275px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--logo-blue);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  list-style: none;
  z-index: 1010;
}

.tni-nav-item:hover .tni-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tni-dropdown-link {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition);
}

.tni-dropdown-link:hover {
  background: var(--secondary-light);
  color: var(--primary);
  padding-left: 1.5rem;
}

/* Header Action */
.tni-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Toggle */
.tni-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* ==========================================================================
   HERO SECTION (LOGO BLUE GRADIENT)
   ========================================================================== */
.tni-hero {
  background: linear-gradient(135deg, #002f52 0%, #005a94 45%, #0284c7 80%, #37b4ff 100%);
  color: #ffffff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.tni-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 85% 15%, rgba(55, 180, 255, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

.tni-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tni-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  color: #d8f1ff;
  border: 1px solid rgba(55, 180, 255, 0.4);
  margin-bottom: 1.25rem;
}

.tni-hero-title {
  color: #ffffff;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.tni-hero-subtitle {
  color: #d6eefc;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.tni-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tni-hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.5rem;
}

.tni-trust-item {
  display: flex;
  flex-direction: column;
}

.tni-trust-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--logo-blue);
  line-height: 1;
}

.tni-trust-label {
  font-size: 0.8rem;
  color: #c0e3f8;
  margin-top: 0.25rem;
}

/* Quick Quote Card */
.tni-quote-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  color: var(--text-dark);
  border-top: 4px solid var(--logo-blue);
}

.tni-quote-card-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.tni-quote-card-header h3 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.tni-quote-card-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Form Controls */
.tni-form-group {
  margin-bottom: 1rem;
}

.tni-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.tni-form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.925rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-dark);
  font-family: inherit;
  transition: var(--transition);
}

.tni-form-control:focus {
  outline: none;
  border-color: var(--logo-blue);
  box-shadow: 0 0 0 3px rgba(55, 180, 255, 0.25);
}

/* ==========================================================================
   DYNAMIC MULTI-STEP / DECLUTTERED FORM
   ========================================================================== */
#form,
#tniQuoteSection {
  scroll-margin-top: 100px;
}

.tni-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--border-color);
  border-top: 5px solid var(--logo-blue);
  margin-top: 2rem;
}

.tni-stepper-wrap {
  margin-bottom: 2rem;
}

.tni-stepper-track {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.tni-stepper-line {
  position: absolute;
  top: 17px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.tni-stepper-progress {
  height: 100%;
  width: 0%;
  background: var(--logo-blue);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tni-step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  cursor: pointer;
  flex: 1;
}

.tni-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.4rem;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.tni-step-item.active .tni-step-circle {
  background: var(--logo-blue);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(55, 180, 255, 0.2);
}

.tni-step-item.completed .tni-step-circle {
  background: #10b981;
  color: #ffffff;
}

.tni-step-label {
  font-size: 0.775rem;
  font-weight: 600;
  color: #64748b;
  display: block;
  transition: color 0.2s ease;
}

.tni-step-item.active .tni-step-label {
  color: var(--primary-dark);
  font-weight: 700;
}

.tni-step-item.completed .tni-step-label {
  color: #10b981;
}

.tni-step-pane {
  display: none;
  animation: tniStepFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tni-step-pane.active {
  display: block;
}

@keyframes tniStepFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tni-step-header {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--logo-blue);
}

.tni-step-header h4 {
  color: var(--primary-dark);
  font-size: 0.975rem;
  margin: 0 0 0.2rem;
  font-weight: 700;
}

.tni-step-header p {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0;
}

.tni-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.tni-col-full {
  grid-column: 1 / -1;
}

.tni-address-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

.tni-file-card {
  background: #f8fafc;
  border: 1.5px dashed #93c5fd;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.tni-summary-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.tni-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
  color: var(--text-dark);
}

.tni-nav-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

@media (max-width: 640px) {
  .tni-form-card {
    padding: 1.5rem 1rem;
  }
  .tni-form-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .tni-address-subgrid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .tni-summary-grid {
    grid-template-columns: 1fr;
  }
  .tni-step-circle {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  .tni-step-label {
    font-size: 0.7rem;
  }
  .tni-nav-actions {
    flex-direction: column-reverse;
  }
  .tni-nav-actions button {
    width: 100% !important;
    justify-content: center;
  }
}

/* ==========================================================================
   PILLARS & SECTIONS
   ========================================================================== */
.tni-section {
  padding: 4.5rem 0;
}

.tni-section-alt {
  background: var(--bg-alt);
}

.tni-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.tni-section-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: #daf1ff;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.tni-section-title {
  font-size: 2.15rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.tni-section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Dual Gateway Cards */
.tni-gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.tni-gateway-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tni-gateway-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--logo-blue);
}

.tni-gateway-card.corporate::before {
  background: var(--primary-dark);
}

.tni-gateway-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 120, 191, 0.15);
  border-color: var(--logo-blue);
}

.tni-gateway-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: #e6f5ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.tni-gateway-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.tni-gateway-desc {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-bottom: 1.5rem;
}

.tni-gateway-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.tni-gateway-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.925rem;
  color: #1e354b;
  padding: 0.4rem 0;
}

.tni-gateway-list li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   PRODUCT CARDS GRID
   ========================================================================== */
.tni-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.tni-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.tni-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(55, 180, 255, 0.2);
  border-color: var(--logo-blue);
}

.tni-card-header {
  padding: 1.5rem 1.5rem 0.75rem;
  position: relative;
}

.tni-card-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: #e6f5ff;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.tni-card-badge.popular {
  background: #daf1ff;
  color: #005080;
  border: 1px solid var(--logo-blue);
}

.tni-card-badge.syariah {
  background: #d8f6ff;
  color: #006699;
}

.tni-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.tni-card-title a {
  color: var(--primary-dark);
}

.tni-card-title a:hover {
  color: var(--primary);
}

.tni-card-body {
  padding: 0 1.5rem 1.25rem;
  flex-grow: 1;
}

.tni-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.tni-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #edf5fa;
  padding-top: 0.75rem;
}

.tni-card-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: #314d68;
  margin-bottom: 0.35rem;
}

.tni-card-footer {
  padding: 1rem 1.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   ARTICLE & CONTENT LAYOUT
   ========================================================================== */
.tni-content-wrapper {
  padding: 3rem 0 4.5rem;
}

.tni-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #cce8fc;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tni-breadcrumb a {
  color: #cce8fc;
}

.tni-breadcrumb a:hover {
  color: var(--logo-blue);
}

.tni-page-layout {
  display: block;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.tni-article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e354b;
  width: 100%;
}

.tni-article-body h2 {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  color: var(--primary-dark);
}

.tni-article-body h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.tni-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.925rem;
}

.tni-article-body th,
.tni-article-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.tni-article-body th {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.tni-article-body tr:nth-child(even) {
  background: var(--bg-alt);
}

/* Sidebar Widgets (Removed) */
.tni-sidebar {
  display: none !important;
}

.tni-widget {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.tni-widget-title {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--logo-blue);
}

/* Responsive Layout Helpers for Product Detail Pages */
.tni-grid-2x1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.tni-grid-3x1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 820px) {
  .tni-grid-2x1,
  .tni-grid-3x1 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}

/* Consultation Box */
.tni-consult-box {
  background: linear-gradient(135deg, #00375c 0%, #0078bf 70%, #37b4ff 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  text-align: center;
}

.tni-consult-box h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.tni-consult-box p {
  color: #d8edfc;
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   FOOTER (LOGO BLUE + DEEP NAVY)
   ========================================================================== */
.site-footer {
  background: var(--primary-darker);
  color: #badcf5;
  padding: 3.75rem 0 0;
  margin-top: auto;
  font-size: 0.85rem;
  border-top: 3px solid var(--logo-blue);
}

.tni-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.25rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(55, 180, 255, 0.15);
}

.tni-footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.tni-footer-col p {
  color: #a4cbef;
  font-size: 0.815rem;
  line-height: 1.55;
}

.tni-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tni-footer-links li {
  margin-bottom: 0.5rem;
  font-size: 0.815rem;
}

.tni-footer-links a {
  color: #a4cbef;
  transition: var(--transition);
  font-size: 0.815rem;
}

.tni-footer-links a:hover {
  color: var(--logo-blue);
  padding-left: 0.35rem;
}

.tni-footer-bottom {
  padding: 1.25rem 0;
  font-size: 0.775rem;
  color: #729ebf;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Archive Pagination */
.navigation.pagination .nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.navigation.pagination a.page-numbers:hover {
  border-color: var(--primary);
  background: var(--secondary-light);
  color: var(--primary);
}

.navigation.pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Floating WhatsApp Button */
.tni-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25d366;
  color: #ffffff !important;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: var(--transition);
}

.tni-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.65);
}

.tni-whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Related Protection Plans Grid (Side by Side) */
.tni-related-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem;
  margin-top: 1rem;
}

.tni-related-grid > p {
  display: none !important;
}

.tni-related-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tni-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.tni-related-card h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f2c59;
  line-height: 1.35;
  min-height: 2.6rem;
}

.tni-related-card p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.tni-related-card .btn {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
}

@media (max-width: 640px) {
  .tni-related-grid {
    grid-template-columns: 1fr;
  }
  .tni-related-card h4 {
    min-height: auto;
  }
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .tni-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .tni-page-layout {
    grid-template-columns: 1fr;
  }
  
  .tni-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .tni-gateway-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tni-nav {
    display: none;
  }
  
  .tni-menu-toggle {
    display: block;
  }
  
  .tni-header-actions .btn {
    display: none;
  }
  
  .tni-hero-title {
    font-size: 2rem;
  }
  
  .tni-hero-trust {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .tni-footer-grid {
    grid-template-columns: 1fr;
  }
  
  .tni-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   STUDENT GROUP PA (INSURAN KELOMPOK PELAJAR) & SCHOOL PA STYLES
   All boxes strictly side by side - no vertical stacking
   ========================================================================== */
.tni-plan-schedule-grid,
.tni-download-boxes-grid,
.tni-side-by-side-2 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

.tni-plan-schedule-grid > div,
.tni-download-boxes-grid > div,
.tni-side-by-side-2 > div {
  flex: 1 1 50% !important;
  width: calc(50% - 0.75rem) !important;
  max-width: calc(50% - 0.75rem) !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.tni-side-by-side-3 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

.tni-side-by-side-3 > div {
  flex: 1 1 33.333% !important;
  width: calc(33.333% - 0.67rem) !important;
  max-width: calc(33.333% - 0.67rem) !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.tni-side-by-side-sub3 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.75rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

.tni-side-by-side-sub3 > div {
  flex: 1 1 33.333% !important;
  width: calc(33.333% - 0.5rem) !important;
  max-width: calc(33.333% - 0.5rem) !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.tni-side-by-side-4 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

.tni-side-by-side-4 > div {
  flex: 1 1 25% !important;
  width: calc(25% - 0.75rem) !important;
  max-width: calc(25% - 0.75rem) !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* 4x2 Grid for 8 Keistimewaan & Skop Perlindungan Menyeluruh */
.tni-grid-4x2 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 1.5rem !important;
}

.tni-grid-4x2 > div {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

/* Eliminate all rogue <p> tags generated by WordPress wpautop inside grids/flex containers */
.tni-plan-schedule-grid > p,
.tni-download-boxes-grid > p,
.tni-side-by-side-2 > p,
.tni-side-by-side-3 > p,
.tni-side-by-side-4 > p,
.tni-side-by-side-sub3 > p,
.tni-grid-2x1 > p,
.tni-grid-2x1 > br,
.tni-grid-4x2 > p,
.tni-grid-4x2 > br,
.tni-grid-2x2 > p {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  width: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* 2x2 Grid for 4 Peringkat Hayat (Pelan Perlindungan Bayi) */
.tni-grid-2x2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 1.5rem !important;
}

.tni-grid-2x2 > div {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

@media (max-width: 640px) {
  .tni-side-by-side-2 {
    flex-direction: column !important;
    flex-wrap: wrap !important;
  }
  .tni-side-by-side-2 > div {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .tni-grid-2x2 {
    grid-template-columns: 1fr !important;
  }
}

/* Form 6051, 6011, 5574, 5622, 5942 & 5555 Clean Alignment & DOB Flex */
#wpforms-form-6051 br,
#wpforms-form-6011 br,
#wpforms-form-5574 br,
#wpforms-form-5622 br,
#wpforms-form-5942 br,
#wpforms-form-5555 br {
  display: none !important;
}
#wpforms-form-6051 p,
#wpforms-form-6011 p,
#wpforms-form-5574 p,
#wpforms-form-5622 p,
#wpforms-form-5942 p,
#wpforms-form-5555 p {
  margin: 0 !important;
  padding: 0 !important;
}
.tni-dob-group {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.5rem !important;
  width: 100% !important;
  align-items: center !important;
}
.tni-dob-group select {
  min-width: 0 !important;
  box-sizing: border-box !important;
  height: 44px !important;
}
.tni-dob-group select#wpforms-6051-dob-day,
.tni-dob-group select#wpforms-6011-dob-day {
  flex: 1 1 28% !important;
  width: 28% !important;
}
.tni-dob-group select#wpforms-6051-dob-month,
.tni-dob-group select#wpforms-6011-dob-month {
  flex: 1.4 1 42% !important;
  width: 42% !important;
}
.tni-dob-group select#wpforms-6051-dob-year,
.tni-dob-group select#wpforms-6011-dob-year {
  flex: 1.1 1 30% !important;
  width: 30% !important;
}

/* ==========================================================================
   KRITIKAL PROTECTOR EXCLUSIVE GRID LAYOUTS (3x2 & 3x1)
   ========================================================================== */
.tni-grid-3x2 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  width: 100% !important;
}

.tni-grid-3x1 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.25rem !important;
  width: 100% !important;
}

/* Eliminate any stray wpautop elements from breaking the grid cell count */
.tni-grid-3x2 > p,
.tni-grid-3x1 > p,
.tni-grid-3x2 > br,
.tni-grid-3x1 > br {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  width: 0 !important;
  position: absolute !important;
}

.tni-grid-3x2 > div,
.tni-grid-3x1 > div {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .tni-grid-3x2,
  .tni-grid-4x2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  .tni-grid-3x1 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 520px) {
  .tni-grid-3x2,
  .tni-grid-4x2 {
    grid-template-columns: 1fr !important;
  }
  .tni-grid-3x1 {
    grid-template-columns: 1fr !important;
  }
}





