/* =========================================================
   main.css
   Purpose: Global styles for the site
   Author: Your Name
   ========================================================= */

/* =========================================================
   1. Modern CSS Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", "Noto Sans", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  color: #0f172a;
  background: #f8fafc;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  -webkit-tap-highlight-color: transparent;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }

/* =========================================================
   2. Design Tokens (Variables)
   ========================================================= */
:root {
  --container-max: 1200px;
  --radius: 16px;
  --shadow-1: 0 4px 12px rgba(15,23,42,.08);
  --shadow-2: 0 12px 30px rgba(15,23,42,.12);

  /* spacing scale (rem) */
  --space-0: 0;
  --space-1: .25rem;  /* 4px */
  --space-2: .5rem;   /* 8px */
  --space-3: .75rem;  /* 12px */
  --space-4: 1rem;    /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem;  /* 24px */
  --space-8: 2rem;    /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem;   /* 48px */
  --space-16: 4rem;   /* 64px */

  /* brand */
  --brand: #2563eb;          /* blue-600 */
  --brand-contrast: #1d4ed8; /* blue-700 */
  --text-muted: #475569;     /* slate-600 */
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --footer-bg: #0f172a;      /* slate-900 */
  --footer-text: #cbd5e1;    /* slate-300 */
  --glass: rgba(255,255,255,0.7);
}

/* =========================================================
   3. Layout Helpers (container, sections)
   ========================================================= */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
}
.section {
  padding-block: clamp(var(--space-10), 8vw, var(--space-16));
}

/* =========================================================
   4. Spacing Utilities
   ========================================================= */
.p-4{padding:var(--space-4);} 
.p-6{padding:var(--space-6);} 
.p-8{padding:var(--space-8);} 
.p-10{padding:var(--space-10);} 
.p-12{padding:var(--space-12);} 
.p-16{padding:var(--space-16);} 

.px-4{padding-inline:var(--space-4);} 
.px-6{padding-inline:var(--space-6);} 
.px-8{padding-inline:var(--space-8);} 
.px-10{padding-inline:var(--space-10);} 

.py-4{padding-block:var(--space-4);} 
.py-6{padding-block:var(--space-6);} 
.py-8{padding-block:var(--space-8);} 
.py-12{padding-block:var(--space-12);} 
.py-16{padding-block:var(--space-16);} 

.m-0{margin:0;} 
.mt-2{margin-top:var(--space-2);} 
.mt-4{margin-top:var(--space-4);} 
.mt-6{margin-top:var(--space-6);} 
.mt-8{margin-top:var(--space-8);} 
.mt-12{margin-top:var(--space-12);} 
.mb-4{margin-bottom:var(--space-4);} 
.mb-6{margin-bottom:var(--space-6);} 
.mb-8{margin-bottom:var(--space-8);} 
.mx-auto{margin-inline:auto;}


/* =========================================================
   5. Header / Navigation
   ========================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffffee;
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border, #e2e8f0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header.hide {
  transform: translateY(-100%);
  box-shadow: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px; /* Increased height for better spacing */
  max-width: 1280px; /* Slightly wider max-width */
  margin: 0 auto;
  padding: 0 24px; /* Increased padding */
}

/* Separate nav section styling */
.nav-section {
  display: flex;
  align-items: center;
  gap: var(--space-8, 32px); /* Increased gap for better spacing */
}

/* Separate brand image styling */
.brand-logo {
  /* width: 36px;  Slightly larger logo */
  height: 36px;
  /*border-radius: 14px;  Adjusted for larger size */
  object-fit: cover;
  /*box-shadow: var(--shadow-1, 0 2px 4px rgba(0, 0, 0, 0.1));*/
  display: inline-block;
  margin-right: var(--space-4, 16px); /* Added margin for separation */
}
.nav-left {
  display: flex;
  align-items: center;
  gap: var(--space-8, 32px); /* Increased gap */
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.375rem; /* Slightly larger font */
  color: #0f172a;
  text-decoration: none;
  padding: 6px 6px; /* Added padding for better click area */
}

.nav-section ul {
  display: flex;
  gap: clamp(var(--space-5, 20px), 4vw, var(--space-10, 40px)); /* Adjusted gap range */
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-section a {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Slightly larger gap */
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem; /* Slightly larger font */
  padding: 16px 14px; /* Increased padding for better click area */
  border-radius: 10px; /* Slightly larger radius */
  transition: all 0.2s ease;
}

/* Keep hover for nav links but exclude brand */
.nav a:hover:not(.brand) {
  color: var(--brand, #2563eb);
  background: rgba(37, 99, 235, 0.08);
}

/* Ensure brand logo has no hover effect */
.brand:hover {
  color: inherit;        /* Keeps original color */
  background: transparent; /* Removes background */
}


.nav a .material-symbols-outlined {
  font-size: 24px;
  transition: transform 0.3s ease-out;
}

.nav li:hover > a .material-symbols-outlined {
  transform: rotate(180deg);
}

/* Dropdown */
.nav li {
  position: relative;
}

.nav li .submenu {
  display: none;
  position: absolute;
  top: 80%;
  left: 0;
  background: var(--card-bg, #ffffff);
  border-radius: 12px;
  min-width: 220px;
  box-shadow: var(--shadow-2, 0 4px 12px rgba(0, 0, 0, 0.15));
  padding: 8px;
  border: 1px solid var(--border, #e2e8f0);
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}

.nav li:hover > .submenu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(6px);
  animation: fadeInScale 0.3s ease-out forwards;
}

/* CTA button */
.mc-cta-btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--brand, #2563eb);
  color: white;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-1, 0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.mc-cta-btn:hover {
  background: var(--brand-contrast, #1e40af);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2, 0 4px 12px rgba(0, 0, 0, 0.15));
}


/* CTA button */
.cta-btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--brand, #2563eb);
  color: white;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-1, 0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.cta-btn:hover {
  background: var(--brand-contrast, #1e40af);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2, 0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Right-side container */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}


@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(6px) scale(1);
  }
}

.submenu li {
  padding: 0;
}

.submenu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  color: #0f172a;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.submenu a:hover {
  background: #f1f5f9;
  color: var(--brand, #2563eb);
}

/* Nested submenu (flyout) */
.submenu .submenu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0;
  transform-origin: left center;
}

/* hamburger */
.hamburger {
  display:none;
  align-items:center;
  justify-content:center;
  width:44px; height:44px;
  border-radius:50%;
  cursor:pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: background .12s ease, border-color .12s, transform .12s ease;
}
.hamburger:hover { background: rgba(15,23,42,0.04); border-color: var(--border); transform: scale(1.05); }
.hamburger .material-symbols-outlined { font-size: 34px; color: #0f172a; }

/* =========================================================
   6. Hero Section
   ========================================================= */
.hero {
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(var(--space-6), 5vw, var(--space-12));
  align-items:center;
}
.hero-inner {
  max-width: 56ch;
}
.hero h1 {
  font-size:clamp(1.875rem, 3.5vw + 1rem, 3rem);
  line-height:1.06; margin:0;
  letter-spacing: -0.02em;
}
.hero p { color: var(--text-muted); margin-top: var(--space-4); font-size:1.025rem; }

/* card on right */
.hero .card {
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-8);
  box-shadow: var(--shadow-2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero .card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,.16); }


/* =========================================================
   7. Features Grid with Animation
   ========================================================= */
.mc_features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.mc_feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);

  /* Scroll animation start state */
  opacity: 0;
  transform: translateY(40px);
}

.mc_feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

/* Active state when in viewport */
.mc_feature-card.mc_in-view {
  opacity: 1;
  transform: translateY(0);
}

.mc_feature-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mc_feature-header img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.mc_feature-card h3 {
  margin: 0;
  font-size: 1.125rem;
}

.mc_feature-card p {
  margin: 0;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
  .mc_features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .mc_features {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   8. Content + Sidebar Layout
   ========================================================= */
.content {
  display:grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: clamp(var(--space-6), 5vw, var(--space-12));
}
.prose {
  background: var(--card-bg);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-8);
}
.sidebar {
  position:sticky; top: 96px; align-self:start;
  background: var(--card-bg);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
}
.sidebar ul { list-style:none; padding:0; margin:0; /* display:grid;*/ gap: var(--space-3); }
.sidebar a { color:#0f172a; text-decoration:none; transition: color 0.2s ease; }
.sidebar a:hover { color:var(--brand); }

/* =========================================================
   9. CTA Band
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding: var(--space-6) 0;
}
.cta-wrap {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap: var(--space-6);
}

/* =========================================================
   10. Footer
   ========================================================= */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 30px;
}

.footer-inner {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(12, 1fr);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
}

.footer-brand {
  grid-column: span 5;
}

.footer-cols {
  grid-column: span 7;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}

.footer-cols h4 {
  margin: 0 0 var(--space-4);
  color: #e2e8f0;
  font-size: 1rem;
}

.footer-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.footer-cols a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-cols a:hover {
  color: #ffffff;
}

/* Medium screens */
@media (max-width: 880px) {
  .footer-brand {
    grid-column: span 12;
  }
  .footer-cols {
    grid-column: span 12;
  }
}

/* Small screens */
@media (max-width: 520px) {
  .footer-brand {
    grid-column: span 12;
  }
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   10.1 Footer Bottom Bar
   ========================================================= */
.footer-bottom {
  border-top: 1px solid #33445b;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  max-width: var(--container-max);
  margin: 0 auto;
  margin-top: 20px;
}

.footer-bottom .terms-policy a {
  color: var(--footer-text);
  margin-left: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom .terms-policy a:hover {
  color: #ffffff;
}

/* Stack on small screens */
@media (max-width: 520px) {
  .footer-bottom {
    flex-direction: column;
    gap: 0px;
    text-align: center;
  }
  .footer-bottom .terms-policy a {
    margin-left: 8px;
  }
}


/* =========================================================
   Mobile / responsiveness / utilities
   ========================================================= */
@keyframes fadeInUp { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform:none; } }

/* Mobile menu (off-canvas) */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 86%;
  max-width: 380px;
  height: 100%;
  background: var(--card-bg);
  z-index: 120;
  transition: left .28s cubic-bezier(.2,.9,.2,1), opacity .28s ease, transform .28s ease;
  display:flex;
  flex-direction:column;
  box-shadow: 10px 0 30px rgba(10,20,40,0.12);
  opacity: 0;
  transform: translateX(-20px);
}
.mobile-menu.active { left: 0; opacity: 1; transform: translateX(0); }
.mobile-menu-header {
  display:flex; align-items:center; justify-content:space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-list { padding: 14px; overflow-y: auto; flex: 1; transition: opacity 0.2s ease; }
.mobile-menu-list ul { list-style:none; padding:0; margin:0; display:grid; gap: 6px; }
.mobile-menu-list a { display:flex; justify-content:space-between; align-items:center; padding: 12px 14px; border-radius: 10px; text-decoration:none; color:#0f172a; background: transparent; border:1px solid transparent; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.mobile-menu-list a:active, .mobile-menu-list a:hover { background: #f8fafc; border-color: var(--border); transform: translateX(4px); }
.home-link, .back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  background: var(--button-bg, #f0f0f0);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color, #333);
  font-size: 14px;
  transition: background 0.2s;
}

.home-link:hover, .back-link:hover {
  background: var(--button-hover-bg, #e0e0e0);
}

.home-link .material-symbols-outlined,
.back-link .material-symbols-outlined {
  margin-right: 8px;
}
.mobile-menu-footer { padding: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
/* overlay */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,8,24,0.48);
  z-index: 110;
  opacity: 0;
  transition: opacity .28s ease;
}
.overlay.active { display:block; opacity:1; }

/* show hamburger at <= 992px */
@media (max-width: 992px) {
  .nav ul { display: none; }
  .hamburger { display:flex; }
  .cta-btn { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero .card { order: 3; margin-top: var(--space-6); }
  .features { grid-template-columns: repeat(6, 1fr); }
  .feature-card { grid-column: span 6; }
  .content { grid-template-columns: 1fr; }
  .sidebar { position: static; top: auto; }
}

/* micro responsive tweaks */
@media (max-width: 520px) {
  .nav { padding-inline: var(--space-4); height: 64px; }
  .brand { font-size: 1rem; }
  .hamburger { width:40px; height:40px; }
  .hero h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
}

/* Separate brand image styling */
.mobile-brand-logo {
  /* width: 36px;  Slightly larger logo */
  height: 28px;
  /*border-radius: 14px;  Adjusted for larger size */
  object-fit: cover;
  /*box-shadow: var(--shadow-1, 0 2px 4px rgba(0, 0, 0, 0.1));*/
  display: inline-block;
  margin-right: var(--space-4, 16px); /* Added margin for separation */
}


.custom-list-container {
    width: 100%;
    margin: 2px auto;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
    border-radius: 15px;
    padding: 2px;
    /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); */
    font-family: 'Arial', sans-serif;
}
.custom-list {
    list-style-type: none;
    padding: 0;
}
.custom-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.custom-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.custom-check {
    background: linear-gradient(45deg, #4CAF50, #2E7D32);
    color: #ffffff;
    font-size: 1.3em;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border-radius: 50%;
    flex-shrink: 0;
}
.custom-text {
    flex: 1;
    line-height: 1.5;
    color: #333;
    font-size: 14px;
    word-break: break-word;
}
.custom-link {
    color: #1976D2;
    text-decoration: none;
    font-weight: 600;
}
.custom-link:hover {
    text-decoration: underline;
}





