/* =========================================================
   GLOBAL RESET & VARIABLES
========================================================= */
:root {
    --primary: #0056d2;
    --primary-dark: #002d62;
    --accent: #0ea5e9;
    --bg-light: #f8fafc;
    --bg-soft: #f1f5f9;
    --text-dark: #0b1f38;
    --text-muted: #475569;
    --border-soft: #e2e8f0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   CONTAINER
========================================================= */
.container {
    width: 92%;
    max-width: 1240px;
    margin: auto;
}

/* =========================================================
   BUTTON SYSTEM
========================================================= */
.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    box-shadow: 0 12px 28px rgba(0, 86, 210, 0.35);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 86, 210, 0.45);
}

.btn.secondary {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.35);
}

.btn.secondary:hover {
    background: rgba(255,255,255,0.25);
}

.btn.large {
    padding: 16px 36px;
    font-size: 17px;
}

/* ============================================================================
   HEADER – Clean, Compact, Responsive
============================================================================ */
.header {
    width: 100%;
    padding: 10px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    height: 75px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
}

/* ============================================================================
   NAVIGATION MENU
============================================================================ */
.navbar .nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: #002D62;
    padding: 8px 0;
    transition: 0.25s;
}

.navbar ul li a:hover {
    color: #0096FF;
}

/* ============================================================================
   STABLE DROPDOWN (DESKTOP)
============================================================================ */
.dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 55px;
    left: 0;
    width: 250px;
    padding: 20px 25px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.dropdown:hover .mega-menu,
.dropdown.hover-active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    height: 25px;
}

.mega-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #002D62;
    margin-bottom: 10px;
}

.mega-menu a {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #002D62;
    text-decoration: none;
    transition: 0.2s ease;
}

.mega-menu a:hover {
    color: #0096FF;
    padding-left: 5px;
}

/* ============================================================================
   MOBILE MENU ICON
============================================================================ */
.mobile-menu-icon {
    display: none;
    font-size: 32px;
    cursor: pointer;
}

/* ============================================================================
   MOBILE RESPONSIVE
============================================================================ */
@media (max-width: 900px) {

    .mobile-menu-icon {
        display: block;
    }

    .navbar .nav-links {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #ffffff;
        padding: 20px 0;

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: all 0.35s ease;
    }

    .nav-links.nav-active {
        max-height: 700px;
        opacity: 1;
        pointer-events: auto;
        border-bottom: 1px solid #eee;
    }

    .dropdown:hover .mega-menu {
        display: none;
    }

    .dropdown.open .mega-menu {
        display: block !important;
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto;
        padding: 12px 20px;
        background: #f4f8ff;
        border-radius: 10px;
        box-shadow: none;
    }
}

/* =====================================================
   SPLIT HERO – LEFT CONTENT / RIGHT IMAGE
===================================================== */
.hero-split {
  background: linear-gradient(135deg, #002d62, #0056b3);
  padding: 160px 0 120px;
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}

/* LEFT CONTENT */
.hero-content {
  max-width: 620px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  margin: 20px 0;
}

.hero-content p {
  font-size: 19px;
  line-height: 1.6;
  opacity: 0.95;
}

/* BADGE */
.badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 8px 22px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

/* CTA */
.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* FORCE ALL CTA BLUE */
.hero-cta .btn {
  background: linear-gradient(135deg, #0b84ff, #0056d2);
  color: #ffffff;
  padding: 16px 34px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(11,132,255,0.35);
  transition: all 0.3s ease;
}

.hero-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(11,132,255,0.45);
}

/* RIGHT IMAGE */
.hero-image img {
  width: 100%;
  max-width: 620px;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

/* =====================================================
   MOBILE RESPONSIVE
===================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image img {
    max-width: 100%;
    margin-top: 40px;
  }
}

/* =========================================================
   INTRO SECTION
========================================================= */
.templates-intro {
    padding: 100px 0 80px;
    background: var(--white);
    text-align: center;
}

.templates-intro h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 14px;
}

.templates-intro p {
    max-width: 860px;
    margin: auto;
    color: var(--text-muted);
    font-size: 17px;
}

/* =========================================================
   TEMPLATE GRID
========================================================= */
.templates-grid-section {
    padding: 110px 0;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 34px;
}

.template-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 34px 32px;
    border: 1px solid var(--border-soft);
    box-shadow:
        0 20px 40px rgba(2, 8, 23, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.6);
    transition: all 0.35s ease;
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 60px rgba(2, 8, 23, 0.12);
}

.template-card h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.template-card ul {
    list-style: none;
}

.template-card ul li {
    padding: 10px 0;
    font-size: 15.5px;
    color: #334155;
    border-bottom: 1px dashed var(--border-soft);
}

.template-card ul li:last-child {
    border-bottom: none;
}

/* =========================================================
   ACCESS SECTION
========================================================= */
.templates-access {
    background: linear-gradient(180deg, var(--white), var(--bg-soft));
    padding: 110px 0;
    text-align: center;
}

.templates-access h2 {
    font-size: 34px;
    font-weight: 800;
}

.templates-access p {
    max-width: 860px;
    margin: 16px auto 60px;
    color: var(--text-muted);
}

.access-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.access-box {
    background: var(--white);
    padding: 36px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 36px rgba(2, 8, 23, 0.08);
    transition: all 0.3s ease;
}

.access-box:hover {
    transform: translateY(-6px);
}

.access-box h4 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* =========================================================
   FINAL CTA
========================================================= */
.templates-final-cta {
    background: linear-gradient(135deg, var(--primary-dark), #001a3a);
    padding: 120px 0;
    color: var(--white);
    text-align: center;
}

.templates-final-cta h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 14px;
}

.templates-final-cta p {
    max-width: 760px;
    margin: auto auto 36px;
    opacity: 0.9;
    font-size: 17px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 992px) {
    .templates-hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .templates-hero {
        padding: 120px 0 90px;
    }

    .templates-hero h1 {
        font-size: 32px;
    }

    .templates-intro h2,
    .templates-access h2 {
        font-size: 28px;
    }

    .templates-final-cta h2 {
        font-size: 30px;
    }
}

/* FORCE BOTH CTA BUTTONS BLUE */
.btn.primary,
.btn.secondary {
    background: linear-gradient(135deg, #0b84ff, #0056d2);
    color: #ffffff;
    border: none;
    box-shadow: 0 12px 28px rgba(11, 132, 255, 0.35);
}

/* Hover effect (same for both) */
.btn.primary:hover,
.btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(11, 132, 255, 0.45);
}

