﻿:root {
  --brand: #d9534f;
  --brand-dark: #b93431;
  --ink: #1c1c1c;
  --muted: #4f5563;
  --surface: #ffffff;
  --panel: #f9fbff;
  --line: #e4e7ee;
  --nav-height: 80px;
  --page-gutter: clamp(28px, 6vw, 96px);

  /* New Background Palette for Smooth Transitions */
  --bg-white: #ffffff;
  --bg-light-blue: #f4f7fb;
  --bg-light-gray: #f9fafb;
  --bg-brand-tint: #fff9f9; /* Extremely subtle red/pink to match your brand */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(
    --bg-white
  ); /* Removed gradient to allow sections to control bg */
}

/* =========================================
   Navigation Bar Styling 
========================================= */
.navbar {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: #222;
  text-decoration: none;
}
.logo span {
  color: var(--brand);
}

.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-menu > li {
  position: relative;
  margin: 0 15px;
}
.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 0;
  display: block;
  transition: color 0.3s;
}
.nav-menu a:hover {
  color: var(--brand);
}

/* Dropdowns */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  top: 100%;
  left: 0;
  border: 1px solid var(--line);
  z-index: 1001;
  padding: 8px;
}
.dropdown-content li {
  list-style: none;
}
.dropdown-content a {
  color: #444;
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid #f8f9fa;
  border-radius: 6px;
}
.dropdown-content a:hover {
  background-color: #f4f7fb;
  color: var(--brand);
}
.nav-menu li:hover .dropdown-content {
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #22304f;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.nav-toggle:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
.sign-in-btn {
  color: #333;
  font-weight: bold;
  text-decoration: none;
}
.nav-order-btn {
  background-color: var(--brand);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition:
    background 0.3s,
    transform 0.2s;
}
.nav-order-btn:hover {
  background-color: var(--brand-dark);
  transform: translateY(-2px);
}

/* =========================================
   Global Section Layout & Backgrounds 
========================================= */
header,
main > section,
footer {
  width: 100%;
  max-width: none;
  margin: 0;
}

main > section {
  padding: clamp(50px, 8vw, 80px) var(--page-gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Removed borders to make colors flow smoothly into each other */
  border: none;
}

/* Background Utility Classes */
.bg-white {
  background-color: var(--bg-white);
}
.bg-light-blue {
  background-color: var(--bg-light-blue);
}
.bg-light-gray {
  background-color: var(--bg-light-gray);
}
.bg-brand-tint {
  background-color: var(--bg-brand-tint);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

h2 {
  color: #22304f;
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 20px;
  border-bottom: none;
}
h3 {
  color: #1c1c1c;
  font-size: 20px;
}

/* =========================================
   Hero Section 
========================================= */
.hero {
  min-height: calc(100vh - var(--nav-height));
  padding: clamp(34px, 6vw, 70px) var(--page-gutter);
  position: relative;
  display: flex;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(255, 255, 255, 0.3),
      transparent 35%
    ),
    radial-gradient(
      circle at 86% 12%,
      rgba(255, 154, 149, 0.45),
      transparent 40%
    ),
    linear-gradient(120deg, #111827 0%, #1f2f56 52%, #a83f3b 100%);
  color: #ffffff;
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
}
.hero h1 {
  margin: 15px 0;
  max-width: 760px;
  line-height: 1.15;
  font-size: clamp(34px, 5vw, 56px);
}
.hero-subtext {
  margin: 0 0 30px;
  max-width: 600px;
  font-size: clamp(16px, 2.2vw, 18px);
  color: rgba(255, 255, 255, 0.9);
}

.cta-button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  background: #ffffff;
  color: #17233f;
  text-decoration: none;
  transition: 0.3s;
}
.cta-button:hover {
  background: #f5f7ff;
  transform: translateY(-2px);
}
.cta-secondary {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-left: 10px;
  transition: 0.3s;
}
.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-metrics {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-metrics li {
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

/* Hero Form Styling */
.hero-form-wrap {
  background: linear-gradient(180deg, #f3e7cd 0%, #eedab0 100%);
  border-radius: 12px;
  padding: 10px;
  width: 100%;
  max-width: 550px;
  justify-self: end;
}
.hero-form {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  color: #1f2937;
}
.hero-form h2 {
  font-size: 21px;
  margin-top: 0;
  color: #111;
}
.hero-form-points {
  margin: 10px 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 15px;
  font-size: 13px;
  font-weight: bold;
  color: #555;
}

.hero-form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-form input,
.hero-form select,
.hero-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  background: #f8f9fb;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  outline: none;
}
.hero-phone-row {
  display: flex;
  gap: 10px;
}
.hero-phone-row select {
  width: 35%;
}
.hero-phone-row input {
  width: 65%;
}

.pages-counter {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fb;
  border: 1px solid #ccc;
  padding: 5px 10px;
  border-radius: 5px;
  width: max-content;
}
.pages-counter button {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  font-weight: bold;
}
.pages-counter span {
  font-weight: bold;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.hero-submit-btn {
  margin-top: 20px;
  width: 100%;
  border: none;
  border-radius: 7px;
  padding: 15px;
  background: #f97316;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}
.hero-submit-btn:hover {
  background: #ea580c;
}

/* Channel Actions Buttons Styling */
.hero-channel-actions {
  margin-top: 15px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.hero-channel-label {
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  margin-right: 2px;
}

.hero-channel-btn {
  min-width: 138px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.hero-channel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
}

.hero-channel-symbol {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.hero-channel-text {
  letter-spacing: 0.2px;
}

.hero-whatsapp-btn {
  background: #25d366;
  border-color: rgba(22, 163, 74, 0.25);
}
.hero-whatsapp-btn:hover {
  background: #1ebe5d;
}

.hero-email-btn {
  background: #ea4335;
  border-color: rgba(220, 38, 38, 0.25);
}
.hero-email-btn:hover {
  background: #d93025;
}

/* Icon Styling for Channel Buttons */
.hero-channel-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Makes icons white for better visibility */
}

.hero-channel-btn:hover img {
  filter: brightness(0) invert(1);
}

/* =========================================
   Prices & Freebies Card Styling
========================================= */
.freebies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  /* Removed the white background and border from the grid wrapper so they act as separate cards */
}

.freebies-card {
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.freebies-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
}

.freebies-icon {
  font-size: 45px;
  line-height: 1;
  margin-bottom: 20px;
  text-align: center; /* Centers the emoji */
}

.freebies-card h3 {
  margin-top: 0;
  font-size: 22px;
  margin-bottom: 20px;
  color: #111;
  text-align: center; /* Centers the title */
  border-bottom: none;
}

.freebies-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.freebies-card li {
  margin-bottom: 12px;
}

/* Pricing List Specifics */
.price-list {
  margin: 0;
}

.price-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #e4e7ee;
  padding: 14px 0;
}

.price-list div:last-child {
  border-bottom: none; /* Removes the dashed line under the last item */
}

.price-list dt {
  font-weight: 700;
  color: #333;
}

.price-list dd {
  margin: 0;
  color: var(--muted);
}

.price-list strong {
  font-size: 24px;
  color: #111;
}

.paper-format-grid {
  display: flex;
  flex-direction: column;
}

/* =========================================
   Turnitin Promo Banner Styling
========================================= */
.turnitin-promo-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 12px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  margin-top: 30px;
  box-shadow: 0 10px 25px rgba(156, 46, 43, 0.25); /* Subtle brand-colored shadow */
  color: #ffffff;
}

.promo-text {
  max-width: 650px;
}

.promo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.promo-text h3 {
  color: #ffffff;
  margin: 0 0 10px 0;
  font-size: 24px;
  border-bottom: none;
}

.promo-text p {
  margin: 0;
  font-size: 16px;
  opacity: 0.95;
}

.promo-btn {
  background: #ffffff;
  color: var(--brand-dark);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.promo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsiveness for the Banner */
@media (max-width: 768px) {
  .turnitin-promo-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 25px 20px;
  }

  .promo-text h3 {
    font-size: 20px;
  }
}

/* =========================================
   NEW Elements: Banner, Subject Cards, Reviews 
========================================= */

/* Trusted Banner */
.trusted-banner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0.6;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}
.find-uni {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  margin-top: 20px;
}

/* =========================================
   Software Expertise Section
========================================= */
.software-expertise-section {
  position: relative;
  overflow: hidden;
  padding-top: 24px;
}

.software-expertise-section::before {
  content: none;
}

.software-command-stage {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.software-command-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
  pointer-events: none;
}

.software-expertise-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 26px;
}

.software-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(217, 83, 79, 0.08);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(217, 83, 79, 0.12);
}

.software-expertise-intro h2 {
  max-width: 620px;
  margin-top: 16px;
  margin-bottom: 18px;
  line-height: 1.15;
  color: #111827;
}

.software-lead {
  max-width: 620px;
  margin: 0 0 24px;
  color: #475569;
  font-size: 17px;
}

.software-impact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.software-impact-chip {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.software-impact-chip:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  background: #ffffff;
}

.software-impact-chip strong {
  display: block;
  color: #111827;
  font-size: 20px;
  margin-bottom: 4px;
}

.software-impact-chip span {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.software-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.software-proof-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px 20px;
  backdrop-filter: blur(10px);
  min-height: 118px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.software-proof-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  background: #ffffff;
}

.software-proof-card strong {
  display: block;
  color: #111827;
  font-size: 16px;
  margin-bottom: 8px;
}

.software-proof-card p {
  margin: 0;
  color: #64748b;
  font-size: 14.5px;
}

.software-logo-stage {
  min-height: 360px;
  border-radius: 24px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.software-logo-stage-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #111827;
}

.software-logo-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #64748b;
}

.software-logo-stage-head strong {
  font-size: 20px;
  line-height: 1.2;
}

.software-logo-marquee {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 16px 0;
  min-height: 132px;
}

.software-logo-track {
  display: flex;
  gap: 14px;
  width: max-content;
}

.software-logo-marquee-left .software-logo-track {
  animation: software-logo-scroll-left 28s linear infinite;
}

.software-logo-marquee-right .software-logo-track {
  animation: software-logo-scroll-right 30s linear infinite;
}

.software-logo-marquee:hover .software-logo-track {
  animation-play-state: paused;
}

.software-logo-card {
  width: 116px;
  min-height: 110px;
  padding: 14px 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.software-logo-card:hover {
  transform: translateY(-5px);
  background: #f8fafc;
  border-color: #cbd5e1;
}

.software-logo-card img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.software-logo-card span {
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

.software-expertise-board {
  display: grid;
  gap: 24px;
}

.software-command-panel {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.software-command-panel:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 30px 54px rgba(15, 23, 42, 0.12);
}

.software-command-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  border-bottom: 1px solid #e5e7eb;
}

.software-panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
}

.software-command-body {
  padding: 22px;
}

.software-command-line {
  margin: 0 0 18px;
  color: #111827;
  font-weight: 700;
  font-size: 17px;
}

.software-command-line span {
  color: #22c55e;
}

.software-command-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.software-command-metrics div {
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.software-command-metrics strong {
  display: block;
  color: #111827;
  margin-bottom: 5px;
  font-size: 15px;
}

.software-command-metrics span {
  color: #64748b;
  font-size: 13.5px;
}

.software-command-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.software-command-tags span {
  padding: 9px 12px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

.software-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.software-skill-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.software-skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  border-color: rgba(96, 165, 250, 0.36);
}

.software-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.software-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.software-card-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #0f172a;
}

.software-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 14.5px;
}

.software-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.software-pill-list span,
.software-marquee-track span {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.software-dev-card .software-icon {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.software-data-card .software-icon {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.software-design-card .software-icon {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.software-cyber-card .software-icon {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.software-ai-card .software-icon {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.software-dev-card .software-pill-list span {
  background: #eff6ff;
  color: #1d4ed8;
}

.software-data-card .software-pill-list span {
  background: #ecfdf5;
  color: #047857;
}

.software-design-card .software-pill-list span {
  background: #fff7ed;
  color: #c2410c;
}

.software-cyber-card .software-pill-list span {
  background: #f8fafc;
  color: #334155;
}

.software-ai-card .software-pill-list span {
  background: #fdf2f8;
  color: #be185d;
}

.software-delivery-card .software-icon {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.software-delivery-card .software-pill-list span {
  background: #f5f3ff;
  color: #6d28d9;
}

.software-marquee {
  width: 100%;
  overflow: hidden;
  padding: 16px 0 4px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.software-marquee-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation: software-marquee-scroll 38s linear infinite;
}

.software-marquee:hover .software-marquee-track {
  animation-play-state: paused;
}

.software-marquee-track span {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  white-space: nowrap;
  gap: 8px;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.software-marquee-track span img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.software-marquee-track span:hover {
  transform: translateY(-3px);
  background: #f8fafc;
  border-color: #cbd5e1;
}

@keyframes software-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes software-logo-scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes software-logo-scroll-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* Interactive Subject Cards Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.service-card {
  background: #ffffff;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: var(--brand);
}
.service-icon {
  font-size: 40px;
  margin-bottom: 15px;
}
.service-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #22304f;
}
.service-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}
.service-link {
  display: inline-block;
  font-weight: bold;
  color: var(--brand);
  text-decoration: none;
  transition: 0.2s;
}
.service-link:hover {
  color: var(--brand-dark);
  padding-left: 5px;
}

/* Review Cards Grid */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.review-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
}
.stars {
  color: #ffb800;
  font-size: 18px;
  margin-bottom: 15px;
  letter-spacing: 2px;
}
.review-card h4 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #111;
}
.review-card p {
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}
.review-author {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #eee;
  padding-top: 15px;
}
.review-author strong {
  color: #222;
}
.review-author span {
  font-size: 13px;
  color: #888;
}

/* AI-proof preview image fader block */
.ai-proof-card {
  background: var(--panel);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ai-proof-fader-frame {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
  aspect-ratio: 210 / 297;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e8eef7;
}

.ai-proof-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.ai-proof-slide.active {
  opacity: 1;
}

.ai-proof-fader-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.ai-proof-score-strip {
  margin-top: 12px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #22c55e;
}

.ai-proof-score-strip span + span::before {
  content: "|";
  margin-right: 10px;
  color: #16a34a;
}

@media (max-width: 900px) {
  .ai-proof-fader-frame {
    width: min(100%, 380px);
  }
}

/* Freebies Section Styling */
.freebies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  background: transparent; /* Removes the white background */
  padding: 0; /* Removes the inner spacing */
  border: none; /* Removes the outer outline */
  box-shadow: none; /* Removes the outer shadow */
}
.freebies-col h2 {
  margin-top: 0;
  border-bottom: none;
  font-size: 24px;
  margin-bottom: 15px;
}
.freebies-col ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.freebies-col li {
  margin-bottom: 8px;
}
.price-list {
  margin: 0;
}
.price-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #ccc;
  padding: 12px 0;
}
.price-list dt {
  font-weight: bold;
  color: #333;
}
.price-list dd {
  margin: 0;
  color: var(--muted);
}
.price-list strong {
  font-size: 22px;
  color: #111;
}

/* =========================================
   Footer 
========================================= */
footer {
  padding: 30px var(--page-gutter);
  text-align: center;
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* =========================================
   Mobile Responsiveness 
========================================= */
@media (max-width: 990px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero h1 {
    margin: 15px auto;
  }
  .hero-subtext {
    margin: 0 auto 30px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-metrics {
    justify-content: center;
  }
  .hero-form-wrap {
    max-width: 100%;
    margin: 0 auto;
    justify-self: center;
  }

  .trusted-banner {
    gap: 20px;
    font-size: 15px;
  }

  .nav-menu,
  .nav-actions {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .navbar {
    justify-content: space-between;
    position: relative;
  }
  .navbar.nav-open {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 18px;
  }
  .navbar.nav-open .nav-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    gap: 4px;
  }
  .navbar.nav-open .nav-menu > li {
    margin: 0;
  }
  .navbar.nav-open .nav-menu > li > a {
    padding: 10px 0;
  }
  .navbar.nav-open .dropdown-content {
    display: block;
    position: static;
    min-width: 100%;
    box-shadow: none;
    border: 1px solid var(--line);
    margin-top: 6px;
  }
  .navbar.nav-open .nav-actions {
    display: flex;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  main > section {
    padding: 40px 20px;
  }
  .hero {
    padding: 40px 20px;
  }
  .hero-form {
    padding: 15px;
  }
  .hero-phone-row {
    flex-direction: column;
  }
  .hero-phone-row select,
  .hero-phone-row input {
    width: 100%;
  }
}
/* Fix to keep radio buttons and checkboxes in a single line */
.hero-form input[type="radio"],
.hero-form input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}
/* =========================================
   FIX: Single Line Radio Buttons
========================================= */
.hero-form-options {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center;
  flex-wrap: nowrap !important; /* Forces them to stay on one line */
  gap: 10px;
  width: 100%;
}

.hero-form-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  white-space: nowrap;
}

/* Stops the radio dots from stretching to 100% width */
.hero-form-options input[type="radio"] {
  width: auto !important;
  margin: 0 !important;
  cursor: pointer;
}

/* =========================================
   FIX: Split Name & Email Side-by-Side
========================================= */
.hero-split-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  grid-column: 1 / -1; /* Ensures it spans across the whole form width */
}

.hero-split-row input {
  flex: 1; /* Makes both inputs take exactly 50% of the space */
  width: 100%;
}

/* =========================================
   Our Experts Carousel Styling
========================================= */
.experts-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 40px; /* Room for arrows */
}

.experts-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: auto; /* Must be auto for smooth JS scrolling */
  scrollbar-width: none; /* Firefox */
  padding: 15px 5px;
}

.experts-track::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.expert-card {
  flex: 0 0 320px; /* Fixed width so they slide nicely */
  display: flex;
  flex-direction: column; /* Pushes the button to the bottom */
  background: #ffffff;
  padding: 35px 25px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  text-align: center;
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.expert-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
}

.expert-avatar {
  width: 80px;
  height: 80px;
  background: var(--brand);
  color: white;
  font-size: 28px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.expert-name {
  margin: 0 0 5px 0;
  color: #111;
  font-size: 22px;
}
.expert-title {
  color: var(--brand);
  font-weight: 600;
  margin: 0 0 15px 0;
  font-size: 15px;
}

.expert-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #444;
  font-weight: 600;
  background: #f8f9fb;
  padding: 12px;
  border-radius: 8px;
}

.expert-divider {
  border: none;
  border-top: 1px dashed #ccc;
  margin: 20px 0;
}
.expert-bio {
  font-size: 14.5px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* The Hire Button */
.hire-writer-btn {
  margin-top: auto; /* Forces button to the very bottom of the card */
  display: block;
  width: 100%;
  background: var(--brand);
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 12px;
  border-radius: 6px;
  transition: 0.3s;
}
.hire-writer-btn:hover {
  background: var(--brand-dark);
}

/* Arrow Buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.carousel-arrow:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.left-arrow {
  left: -10px;
}
.right-arrow {
  right: -10px;
}

@media (max-width: 768px) {
  .experts-carousel-wrapper {
    padding: 0;
  }
  .carousel-arrow {
    display: none; /* Hide arrows on mobile, they can just swipe */
  }
  .expert-card {
    flex: 0 0 280px;
  } /* Slightly smaller on mobile */
}
/* =========================================
   Carousel Fade Effect (Left & Right)
========================================= */
.experts-carousel-wrapper::before,
.experts-carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px; /* How wide the fade effect is */
  z-index: 5; /* Sits above the cards, but below the arrows (z-index: 10) */
  pointer-events: none; /* Ensures the fade doesn't block you from clicking the cards underneath! */
}

/* Left side fade */
.experts-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--bg-light-gray) 10%,
    transparent 100%
  );
}

/* Right side fade */
.experts-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--bg-light-gray) 10%,
    transparent 100%
  );
}

/* Hide the fade on mobile screens to save screen space */
@media (max-width: 768px) {
  .experts-carousel-wrapper::before,
  .experts-carousel-wrapper::after {
    display: none;
  }
}
/* =========================================
   Free Academic Tools Grid Styling
========================================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.tool-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.tool-card:hover {
  border-color: var(--brand);
  /* Adds a very subtle brand-colored glow on hover */
  box-shadow: 0 10px 30px rgba(217, 83, 79, 0.08);
  transform: translateY(-4px);
}

.tool-icon {
  font-size: 32px;
  margin-bottom: 15px;
  background: var(--panel);
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.tool-card h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #111;
}

.tool-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 25px;
  line-height: 1.5;
}

.tool-link {
  display: inline-block;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s;
}

.tool-link:hover {
  color: var(--brand-dark);
  padding-left: 5px; /* Creates a nice little sliding arrow effect */
}
/* =========================================
   Comprehensive Footer Styling
========================================= */
.site-footer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--line);
  padding: 60px 0 0 0; /* Only top padding; bottom handled by the legal bar */
  color: var(--muted);
  font-size: 15px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; /* Brand column takes up 2x the space */
  gap: 40px;
  padding-bottom: 50px;
}

.footer-col h3 {
  color: #111;
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: var(--muted);
  text-decoration: none;
  transition:
    color 0.2s,
    padding-left 0.2s;
  display: inline-block;
}

/* Slide right and turn brand-color on hover */
.footer-col ul a:hover {
  color: var(--brand);
  padding-left: 5px;
}

/* Brand Column Specifics */
.brand-col .logo {
  margin-bottom: 15px;
}
.brand-col .logo a {
  font-size: 24px;
}

.footer-desc {
  margin-bottom: 25px;
  line-height: 1.6;
  max-width: 90%;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

/* Social icons bounce and color-fill on hover */
.social-links a:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(217, 83, 79, 0.2);
}

/* =========================================
   Footer Bottom (Legal Bar)
========================================= */
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px var(--page-gutter);
  background-color: var(--bg-light-gray);
}

.bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.copyright {
  margin: 0;
  font-size: 14px;
}

.legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.legal-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* =========================================
   Responsive Footer Rules
========================================= */
@media (max-width: 990px) {
  .footer-top {
    grid-template-columns: 1fr 1fr; /* 2 columns on tablets */
  }
  .brand-col {
    grid-column: span 2; /* Brand description takes full width above lists */
  }
  .footer-desc {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr; /* 1 column stacked on mobile */
    gap: 30px;
  }
  .brand-col {
    grid-column: span 1;
  }
  .bottom-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .legal-links {
    justify-content: center;
    gap: 15px;
  }
}
/* =========================================
   UK Landing Page Specific Styles
========================================= */

/* UK Hero Section */
.uk-hero {
  padding: 60px var(--page-gutter);
}

.uk-hero-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.uk-hero-text {
  flex: 1;
}

.uk-hero-text h1 {
  font-size: clamp(32px, 4vw, 48px);
  color: #111;
  margin: 15px 0;
  line-height: 1.2;
}

.uk-hero-list {
  list-style: none;
  padding: 0;
  margin-top: 25px;
}

.uk-hero-list li {
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
}

/* Single Image Fader */
.uk-hero-image-fader {
  flex: 1;
  max-width: 500px;
}

.fader-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 5px solid white;
}

.fader-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out; /* Smooth crossfade */
}

.fader-slide.active {
  opacity: 1;
}

.fader-caption {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

/* Infinite Auto-Scroll Marquee */
.uni-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
}

/* Fade edges of the marquee */
.uni-marquee-wrapper::before,
.uni-marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}
.uni-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, white 0%, transparent 100%);
}
.uni-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, white 0%, transparent 100%);
}

.uni-marquee-track {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  width: max-content;
  /* The animation that moves it infinitely */
  animation: scroll-left 35s linear infinite;
}

.uni-marquee-track:hover {
  animation-play-state: paused; /* Pauses when user looks at a card */
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* Scrolls exactly half the duplicated track */
}

.uni-floating-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 15px 25px;
  border-radius: 12px;
  font-size: 16px;
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  white-space: nowrap;
  transition: transform 0.3s;
  cursor: default;
}

.uni-floating-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: 0 8px 25px rgba(217, 83, 79, 0.1);
}

.uni-logo {
  font-size: 24px;
  background: var(--panel);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* University Search & Samples */
.uni-search-box select {
  width: 100%;
  max-width: 400px;
  padding: 15px;
  font-size: 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  background: white;
  transition: border-color 0.3s;
}

.uni-search-box select:focus {
  border-color: var(--brand);
}

.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.sample-card {
  background: white;
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.sample-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: #ccc;
}

.sample-subject {
  display: inline-block;
  background: var(--panel);
  color: var(--brand);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
}

.sample-card h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.4;
}

.sample-uni {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.sample-meta {
  display: flex;
  justify-content: space-between;
  background: #f8f9fb;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #444;
  margin-bottom: 20px;
}

.sample-btn {
  display: block;
  text-align: center;
  background: white;
  color: #333;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: 0.2s;
}

.sample-card:hover .sample-btn {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .uk-hero-container {
    flex-direction: column;
    text-align: center;
  }
  .uk-hero-list {
    display: inline-block;
    text-align: left;
  }
}
/* =========================================
   Citation Generator CTA Banner
========================================= */
.citation-cta-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
}

.citation-cta-text {
  flex: 1.2;
}

.citation-cta-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 15px 0;
  color: #111;
}

.citation-cta-text p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.citation-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.citation-features li {
  font-size: 14.5px;
  font-weight: 600;
  color: #333;
  background: var(--bg-light-gray);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

/* CSS Mock Document Graphic */
.citation-cta-visual {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

.mock-document {
  background: #ffffff;
  width: 260px;
  height: 320px;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}

.citation-cta-box:hover .mock-document {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 20px 45px rgba(217, 83, 79, 0.15); /* Brand colored glow */
}

.mock-line {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  width: 100%;
}

.mock-line.title {
  height: 14px;
  background: #cbd5e1;
  width: 60%;
  margin-bottom: 10px;
}

.mock-line.short {
  width: 75%;
}

.mock-citation-box {
  margin-top: auto;
  background: var(--bg-brand-tint);
  border: 1px dashed var(--brand);
  padding: 15px;
  border-radius: 6px;
  color: var(--brand-dark);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .software-expertise-shell {
    grid-template-columns: 1fr;
  }

  .software-impact-row,
  .software-proof-grid,
  .software-command-metrics,
  .software-cards-grid {
    grid-template-columns: 1fr;
  }

  .software-marquee-track {
    animation-duration: 26s;
  }

  .software-logo-card {
    width: 102px;
    min-height: 102px;
  }

  .software-command-stage {
    padding: 22px;
    border-radius: 24px;
  }

  .software-lead {
    font-size: 16px;
  }

  .citation-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 35px 25px;
  }

  .citation-features {
    justify-content: center;
  }

  .citation-cta-visual {
    display: none; /* Hide graphic on small screens to save space */
  }
}
/* =========================================
   University Hub & Visible Resources
========================================= */
.university-hub-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--line);
  /* Changed from hidden to visible so the dropdown can escape the box */
  overflow: visible;
}

.hub-search-area {
  background: var(--bg-light-blue);
  padding: 30px 40px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  /* Added to keep the blue background corners rounded since we removed overflow:hidden */
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.hub-search-label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 15px;
}

.advanced-search-box select {
  width: 100%;
  max-width: 500px;
  padding: 16px 20px;
  font-size: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.advanced-search-box select:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.1);
}

.advanced-search-box optgroup {
  font-weight: bold;
  color: var(--brand);
  font-size: 14px;
  background: #f8f9fb;
}

.hub-resources-area {
  padding: 35px 40px;
}

#dashboard-title {
  text-align: center;
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 25px;
  color: #333;
}

.highlight-text {
  color: var(--brand);
  font-weight: bold;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.resource-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  background: var(--bg-brand-tint);
}

.res-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.resource-card h4 {
  margin: 0 0 8px 0;
  color: #22304f;
  font-size: 16px;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  .hub-search-area,
  .hub-resources-area {
    padding: 25px 20px;
  }
}

/* =========================================
   Auto-Scrolling Technical Portfolio Carousel
========================================= */
.tech-portfolio-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0; /* Gives shadow room to breathe */
}

.tech-portfolio-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth; /* Crucial for smooth card-jumping */
  scroll-snap-type: x mandatory; /* Makes manual swiping snap to cards */
  scrollbar-width: none; /* Firefox */
  padding: 15px 5px;
}

.tech-portfolio-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Force cards to keep a specific width so they slide instead of squishing */
.tech-portfolio-track .tech-task-card {
  flex: 0 0 350px;
  scroll-snap-align: start;
}

@media (max-width: 600px) {
  .tech-portfolio-track .tech-task-card {
    flex: 0 0 300px; /* Slightly smaller on mobile */
  }
}
/* =========================================
   Tech Portfolio Navigation Arrows
========================================= */
.tech-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tech-arrow:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* Position arrows slightly inset over the cards */
.tech-left-arrow {
  left: 5px;
}
.tech-right-arrow {
  right: 5px;
}

/* Optional: Add a white fade to the edges so the text doesn't clash with the arrows */
.tech-portfolio-wrapper::before,
.tech-portfolio-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 5;
  pointer-events: none; /* Let's you click the cards underneath the fade */
}

.tech-portfolio-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-white) 10%, transparent 100%);
}

.tech-portfolio-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-white) 10%, transparent 100%);
}

/* Hide arrows on mobile so users can natively swipe with their fingers */
@media (max-width: 768px) {
  .tech-arrow {
    display: none;
  }
  .tech-portfolio-wrapper::before,
  .tech-portfolio-wrapper::after {
    display: none;
  }
}
/* =========================================
   Technical Portfolio Cards (Exact UI Match)
========================================= */
.tech-task-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.tech-task-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.tech-task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}

.course-code {
  font-family: inherit;
  background: #1e293b; /* Dark Navy from screenshot */
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.task-type {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand); /* Red text from screenshot */
  letter-spacing: 0.5px;
}

.tech-task-card h3 {
  font-size: 20px;
  margin: 0 0 15px 0;
  color: #111;
  line-height: 1.3;
}

.tech-task-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1;
}

.software-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.software-tags span {
  background: #ffffff;
  color: #3b82f6;
  border: 1px solid #bfdbfe; /* Thin blue outline from screenshot */
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.software-tags span::before {
  content: "⚙️";
  margin-right: 6px;
  font-size: 12px;
}

.tech-task-footer {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 18px;
  font-size: 14px;
  color: #333;
}

.task-deliverable {
  margin-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1; /* Dotted line from screenshot */
  padding-bottom: 12px;
}

.task-grade {
  color: #444;
}

.task-grade strong {
  color: #16a34a; /* Green grade text from screenshot */
}
/* /* =========================================
   Interactive Subjects & Tasks Tabs
========================================= */
.subject-tabs-container {
  display: flex;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  min-height: 400px;
}

.subject-tabs-list {
  flex: 0 0 280px;
  background: var(--bg-light-gray);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.subject-tab {
  padding: 20px 25px;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.subject-tab:last-child {
  border-bottom: none;
}

.subject-tab:hover {
  background: #f1f5f9;
  color: #111;
}

.subject-tab.active {
  background: #ffffff;
  color: var(--brand);
  font-weight: 700;
}

/* Adds a brand-colored left border highlight to the active tab */
.subject-tab.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--brand);
}

.subject-panels-wrapper {
  flex: 1;
  padding: 40px;
  position: relative;
}

.subject-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.subject-panel.active {
  display: block;
}

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

.subject-panel h3 {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 10px;
  color: #111;
}

.panel-desc {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 30px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 35px;
}

.panel-box {
  background: var(--panel);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.panel-box h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  color: #22304f;
}

.panel-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.panel-box li {
  margin-bottom: 8px;
  font-size: 14px;
}

.panel-box a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.panel-box a:hover {
  text-decoration: underline;
}

.panel-cta {
  display: inline-block;
  padding: 14px 30px;
  font-size: 16px;
}

/* Mobile Responsiveness for Tabs */
@media (max-width: 800px) {
  .subject-tabs-container {
    flex-direction: column;
  }
  .subject-tabs-list {
    flex: auto;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    scrollbar-width: none; /* Hide scrollbar Firefox */
  }
  .subject-tabs-list::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
  }
  .subject-tab {
    border-bottom: none;
    border-right: 1px solid var(--line);
    padding: 15px 20px;
  }
  .subject-tab.active::before {
    width: 100%;
    height: 4px;
    top: auto;
    bottom: 0;
    left: 0;
  }
  .subject-panels-wrapper {
    padding: 25px 20px;
  }
  .panel-grid {
    grid-template-columns: 1fr; /* Stacks the tasks and resources on mobile */
  }
}
/* =========================================
   Interactive Assignment Finder
========================================= */
.assignment-finder-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.assignment-finder-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.finder-university-sidebar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.finder-sidebar-head h3 {
  margin: 10px 0 8px;
  font-size: 24px;
  color: #111;
}

.finder-sidebar-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.finder-sidebar-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(217, 83, 79, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.finder-search-box {
  max-width: none;
  margin: 0;
}

.finder-uni-search {
  width: 100%;
  padding: 16px 18px;
  font-size: 15px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.finder-uni-search:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.1);
}

.uni-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
}

.uni-list-btn {
  width: 100%;
  text-align: left;
  border: 1px solid #dbe4f0;
  background: #f8fafc;
  color: #22304f;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.uni-list-btn:hover,
.uni-list-btn.is-active {
  border-color: var(--brand);
  background: rgba(217, 83, 79, 0.08);
  color: var(--brand);
  transform: translateY(-1px);
}

.finder-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  background: var(--bg-light-gray);
  padding: 30px 40px;
  border-bottom: 1px solid var(--line);
}

.filter-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #22304f;
  margin-bottom: 8px;
}

.filter-group select {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.filter-group select:focus {
  border-color: var(--brand);
}

.finder-results {
  padding: 40px;
  animation: fadeIn 0.4s ease;
}

.result-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.result-header h3 {
  font-size: 26px;
  margin: 0 0 5px 0;
  color: #111;
}

.result-header p {
  margin: 0;
  color: var(--brand);
  font-weight: 600;
  font-size: 16px;
}

.result-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.result-section h4 {
  font-size: 18px;
  color: #22304f;
  margin-top: 0;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.result-section li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--muted);
}

/* Custom checkmarks for the lists */
.result-section.tasks li::before {
  content: "📝";
  position: absolute;
  left: 0;
  top: 0px;
}
.result-section.resources li::before {
  content: "📚";
  position: absolute;
  left: 0;
  top: 0px;
}

.result-section a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.result-section a:hover {
  text-decoration: underline;
}

.finder-cta-wrap {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px dashed var(--line);
  text-align: left;
}

@media (max-width: 768px) {
  .assignment-finder-shell {
    grid-template-columns: 1fr;
  }
  .finder-university-sidebar {
    padding: 24px 20px;
  }
  .finder-controls {
    padding: 25px 20px;
  }
  .finder-results {
    padding: 25px 20px;
  }
  .result-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* =========================================
   Custom Searchable University Dropdown
========================================= */
.advanced-search-box {
  position: relative; /* CRITICAL: Keeps the dropdown attached to the input */
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.custom-select-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  font-family: inherit;
  font-weight: 600;
  cursor: text;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.custom-select-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.1);
}

.custom-select-input::placeholder {
  color: #555;
  font-weight: 600;
}

.custom-select-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
  max-height: 350px;
  overflow-y: auto;
  z-index: 1000;
  text-align: left;
}

.custom-select-group {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  background: #f8f9fb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-select-item {
  padding: 12px 20px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition:
    background 0.2s,
    padding-left 0.2s;
}

.custom-select-item:hover {
  background: #f1f5f9;
  color: var(--brand);
  font-weight: 600;
  padding-left: 25px;
}

.custom-select-no-result {
  padding: 15px 20px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}
/* =========================================
   Past HD Sample Button
========================================= */
.sample-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--brand);
  border: 1px solid #cbd5e1;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 15px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.sample-download-btn:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(217, 83, 79, 0.15);
  transform: translateY(-2px);
}
/* Needs to be tested */
/* =========================================
   Document Preview Modal & Blur Effect
========================================= */
.doc-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    15,
    23,
    42,
    0.85
  ); /* Dark semi-transparent background */
  backdrop-filter: blur(5px);
  overflow-y: auto;
  padding: 40px 20px;
}

.doc-modal-content {
  background-color: #f1f5f9;
  margin: 0 auto;
  max-width: 850px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.doc-close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #888;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  z-index: 10;
}

.doc-close-btn:hover {
  color: #111;
}

.doc-viewer-header {
  background: #ffffff;
  padding: 20px 30px;
  border-bottom: 1px solid var(--line);
}

.doc-viewer-header h3 {
  margin: 0 0 5px 0;
  color: #111;
}

.doc-viewer-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.doc-viewer-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Safety net for document pages (Fixes Landscape Issues) */
.doc-page {
  width: 100%;
  max-width: 700px;
  height: auto; /* Allows natural height */
  min-height: 200px; /* Reduced so landscape isn't forced to be super tall */
  background: #f8f9fb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  object-fit: contain; /* CRITICAL: Scales image naturally without squishing or cropping */
  object-position: top;
}

/* The magic blur wrapper */
.doc-blur-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  min-height: 500px; /* CRITICAL: Ensures the white CTA box always has room to breathe */
  display: flex;
  justify-content: center;
}

.blurred-page {
  filter: blur(6px); /* Blurs the image */
  opacity: 0.6;
}

/* The gradient overlay that fades to white at the bottom */
.doc-blur-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(241, 245, 249, 0) 0%,
    rgba(241, 245, 249, 1) 80%
  );
  pointer-events: none;
}

.doc-cta-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--brand);
  z-index: 5;
}

.doc-cta-overlay h2 {
  margin-top: 0;
  font-size: 24px;
  color: #111;
}

.doc-cta-overlay p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .doc-viewer-body {
    padding: 20px;
  }
  .doc-cta-overlay {
    width: 95%;
    padding: 25px;
  }
  .doc-cta-overlay h2 {
    font-size: 20px;
  }
}

/* =========================================
   Video Modal Arrows
========================================= */
.vid-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.vid-arrow:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.vid-left-arrow {
  left: 15px;
}
.vid-right-arrow {
  right: 15px;
}

@media (max-width: 768px) {
  .vid-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .vid-left-arrow {
    left: 5px;
  }
  .vid-right-arrow {
    right: 5px;
  }
  .doc-viewer-body {
    padding: 40px 10px;
  } /* Gives arrows room on mobile */
}

/* =========================================
   BLOG PAGE STYLES
========================================= */

/* Blog Header */
.blog-header {
  text-align: center;
  padding: 60px 20px;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.blog-header h1 {
  font-size: 36px;
  color: #0f172a;
  margin-bottom: 10px;
}

.blog-header p {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Blog Layout (Grid) */
.blog-container {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 2/3 for posts, 1/3 for sidebar */
  gap: 40px;
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

/* Blog Post Cards */
.blog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  margin-bottom: 30px;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card.featured {
  border-top: 5px solid #3b82f6; /* Blue highlight for main post */
}

.blog-card h2 {
  font-size: 24px;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card .meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card p {
  color: #334155;
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Sidebar Styling */
.blog-sidebar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 25px;
  height: fit-content;
  position: sticky;
  top: 20px; /* Sticks to the top as they scroll down */
}

.blog-sidebar h3 {
  font-size: 18px;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.blog-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-sidebar li {
  margin-bottom: 12px;
}

.blog-sidebar a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.blog-sidebar a:hover {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .blog-container {
    grid-template-columns: 1fr; /* Stacks the sidebar under the posts on phones */
    gap: 20px;
  }

  .blog-header {
    padding: 40px 20px;
  }

  .blog-header h1 {
    font-size: 28px;
  }
}

/* =========================================
   MODERN BLOG GRID & CARDS (Light Theme)
========================================= */

/* Header Area */
.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 50px auto 40px auto;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.hub-title-area h1 {
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 10px 0;
  letter-spacing: -1px;
  color: #0f172a; /* Dark slate */
}

.hub-title-area p {
  color: #64748b; /* Medium slate */
  margin: 0;
  font-size: 18px;
}

.explore-btn {
  background: #ffffff;
  color: #3b82f6; /* Brand Blue */
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #3b82f6;
  transition: all 0.3s ease;
}

.explore-btn:hover {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Grid Layout */
.modern-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

/* Card Styling */
.hub-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #334155;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Soft, elegant shadow */
  border: 1px solid #e2e8f0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hub-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* Lifts up nicely */
  border-color: #cbd5e1;
}

/* Image & Badge */
.hub-card-image {
  position: relative;
  height: 220px;
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
}

.hub-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #3b82f6; /* Brand Blue */
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

/* Content Inside Card */
.hub-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  min-height: 225px;
}

.hub-read-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0;
  text-transform: uppercase;
}

.hub-card-content h3 {
  font-size: 22px;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
  min-height: 86px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-card-content p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  min-height: 96px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer (Read More) */
.hub-card-footer {
  padding: 20px 25px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc; /* Very light gray footer */
}

.read-more-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0f172a;
  transition: color 0.2s ease;
}

.hub-card-footer .arrow {
  color: #3b82f6;
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.hub-card:hover .read-more-text {
  color: #3b82f6;
}

.hub-card:hover .arrow {
  transform: translateX(5px);
}

/* --- PDF Splitter Tool Styles --- */
.pdf-tool-main {
  /* Keeps the tool on a single screen without overall page scrolling */
  height: calc(100vh - 160px);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #f8f9fb;
}

.pdf-workspace {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  height: 100%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Single State (Before Upload) */
.pdf-workspace.single {
  justify-content: center;
  max-width: 600px;
}

.pdf-workspace.single .middle-panel,
.pdf-workspace.single .right-panel {
  display: none;
  opacity: 0;
  width: 0;
  transform: scale(0.95);
}

.pdf-workspace.single .left-panel {
  width: 100%;
}

/* Multi State (After Upload - 3 Columns) */
.pdf-workspace.multi .middle-panel,
.pdf-workspace.multi .right-panel {
  display: flex;
  opacity: 1;
  width: auto;
  transform: scale(1);
  transition:
    opacity 0.4s ease 0.2s,
    transform 0.4s ease 0.2s;
}

/* Panels */
.panel {
  background: #fff;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  overflow-y: auto;
}

.left-panel {
  flex: 1;
  min-width: 300px;
}
.middle-panel {
  flex: 2;
  min-width: 400px;
  padding: 0;
  overflow: hidden;
}
.right-panel {
  flex: 1;
  min-width: 300px;
}

.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid #dbe4f2;
  background: #fdfdfd;
}
.panel-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a;
}

/* Drag & Drop Zone */
.upload-zone {
  border: 2px dashed #3b82f6;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: #f0f6ff;
  transition: all 0.3s ease;
  cursor: pointer;
}
.upload-zone.dragover {
  background: #dbeafe;
  border-color: #2563eb;
  transform: scale(1.02);
}
.upload-zone h2 {
  margin: 15px 0 5px;
  font-size: 1.2rem;
  color: #1e293b;
}
.upload-zone p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

/* Progress Bar */
.progress-container {
  display: none;
  margin-top: 20px;
}
.progress-container p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #64748b;
}
.progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: #3b82f6;
  transition: width 0.1s linear;
}

/* Controls */
.split-controls {
  display: none;
  margin-top: 20px;
  animation: fadeIn 0.5s ease;
}
.split-controls h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #0f172a;
}
.hint-text {
  color: #10b981;
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 500;
}
.input-group {
  margin-bottom: 20px;
  text-align: left;
}
.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #475569;
}
.input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.input-group input:focus {
  border-color: #3b82f6;
}

/* Iframe & Output */
.pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #e2e8f0;
}
.output-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.placeholder-text {
  color: #94a3b8;
  text-align: center;
  margin-top: 40px;
  font-style: italic;
}

.download-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.3s ease;
}
.download-card span {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}
.download-btn {
  background: #10b981;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  transition: background 0.3s;
}
.download-btn:hover {
  background: #059669;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile fallback */
@media (max-width: 992px) {
  .pdf-tool-main {
    height: auto;
    min-height: auto;
  }
  .pdf-workspace {
    flex-direction: column;
    height: auto;
  }
  .middle-panel {
    height: 500px;
  }
}
