/* ============================================
   IT Pro Source - Styles (matches current site)
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-dark: #0b3d91;
  --blue-primary: #1565c0;
  --blue-medium: #1976d2;
  --blue-light: #2196f3;
  --blue-accent: #42a5f5;
  --navy: #0d2137;
  --navy-light: #152d47;
  --white: #ffffff;
  --gray-50: #f5f5f5;
  --gray-100: #eeeeee;
  --gray-600: #757575;
  --gray-800: #333333;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}


/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 55px;
  width: auto;
}

.nav-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.nav-email {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.nav-email:hover {
  color: var(--white);
}

.nav-phone {
  display: inline-block;
  background: var(--blue-primary);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: var(--font-heading);
  transition: background 0.2s;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.nav-phone:hover {
  background: var(--blue-light);
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--blue-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
  border-color: var(--blue-primary);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

/* Hero CTA - floating with border */
.btn-hero-cta {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  margin-top: 10px;
  padding: 16px 44px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  letter-spacing: 0.3px;
  animation: float 3s ease-in-out infinite;
}

.btn-hero-cta:hover {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
  animation: none;
  transform: translateY(14px);
}

@keyframes float {
  0%, 100% { transform: translateY(20px); }
  50% { transform: translateY(14px); }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../assets/images/hero-bg.jpg') center center / cover no-repeat;
  text-align: center;
}

.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 145, 0.80);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 28px;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.4);
}

/* --- Section dividers --- */
.section-divider {
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue-primary) 25%, var(--blue-light) 50%, var(--blue-primary) 75%, transparent);
  border-radius: 50%;
  box-shadow: 0 1px 8px rgba(21, 101, 192, 0.25);
}

/* --- Sections --- */
.section {
  padding: 70px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.4;
}

/* --- Intro --- */
.intro {
  background: var(--white);
  padding: 60px 0;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.intro-text p {
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.7;
}

.intro-image {
  position: relative;
}

.intro-image img {
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  border: 3px solid var(--blue-primary);
}

/* --- Testimonials --- */
.testimonials {
  position: relative;
  background: url('../assets/images/testimonials-bg.jpg') center center / cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 70px 0;
}

.testimonials .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 145, 0.95);
}

.testimonials-inner {
  position: relative;
  z-index: 1;
}

.testimonials .section-title {
  color: var(--white);
}

.testimonial-carousel {
  max-width: 800px;
  margin: 0 auto 30px;
  position: relative;
}

.testimonial-slides-wrapper {
  position: relative;
  overflow: hidden;
}

.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  font-family: Georgia, serif;
}

.quote-mark.open {
  text-align: left;
}

.quote-mark.close {
  text-align: right;
}

.testimonial-slide {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: opacity 0.6s ease-in-out;
  visibility: hidden;
}

.testimonial-slide.active {
  opacity: 1;
  position: relative;
  visibility: visible;
}

.testimonial-slide.measure {
  position: absolute;
  visibility: hidden;
  opacity: 0;
}

.testimonial-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.9;
  padding: 0 20px;
  font-style: italic;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.testimonial-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}

.testimonial-dots .dot.active {
  background: var(--white);
}

.testimonial-dots .dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.testimonials .btn {
  margin-top: 10px;
}

/* --- Services --- */
.services {
  background: var(--white);
  padding: 70px 0;
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.services-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 24px;
  line-height: 1.3;
}

.services-col h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.services-col ul {
  list-style: disc;
  padding-left: 20px;
}

.services-col ul li {
  font-size: 0.95rem;
  color: var(--gray-800);
  margin-bottom: 8px;
  line-height: 1.5;
}

.services-col ul li::marker {
  color: var(--blue-primary);
}

.services-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 3px solid var(--blue-primary);
}

/* --- Cybersecurity --- */
.cybersecurity {
  background: var(--gray-50);
  padding: 70px 0;
}

.cyber-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.cyber-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 3px solid var(--blue-primary);
}

.cyber-text h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 16px;
}

.cyber-text ul {
  list-style: disc;
  padding-left: 20px;
}

.cyber-text ul li {
  font-size: 0.95rem;
  color: var(--gray-800);
  margin-bottom: 8px;
  line-height: 1.5;
}

.cyber-text ul li::marker {
  color: var(--blue-primary);
}

/* --- About --- */
.about {
  position: relative;
  background: url('../assets/images/about-bg.jpg') center center / cover no-repeat;
  padding: 80px 0;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 145, 0.9);
}

.about-inner {
  position: relative;
  z-index: 1;
}

.about-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 50px;
  max-width: 900px;
  margin: 0 auto;
}

.about-box h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

.about-box p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-box p:last-child {
  margin-bottom: 0;
}

/* --- CTA --- */
.cta {
  background: var(--white);
  padding: 70px 0;
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--gray-800);
  margin-bottom: 24px;
}

.cta-inner .btn {
  display: block;
  max-width: 300px;
  margin: 0 auto 12px;
}

/* --- Footer --- */
.footer {
  background: linear-gradient(180deg, var(--blue-dark) 0%, var(--navy) 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.8fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.footer-label {
  font-weight: 700;
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-top: 16px;
  margin-bottom: 4px;
}

.footer-label:first-of-type {
  margin-top: 0;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--blue-accent);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--blue-accent);
}

.footer-links a:hover {
  color: var(--white);
}

.hours-table {
  width: 100%;
  font-size: 0.9rem;
  border-collapse: collapse;
}

.hours-table td {
  padding: 3px 0;
}

.hours-table td:last-child {
  text-align: right;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Hero Badges --- */
.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

/* --- Why Choose Us --- */
.why-us {
  background: var(--gray-50);
  padding: 70px 0;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: 8px;
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--blue-primary);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.why-icon {
  color: var(--blue-primary);
  margin-bottom: 14px;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.why-card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-primary);
  transition: color 0.2s;
}

.why-card-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* --- Services Expanded --- */
.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 700px;
  margin: -20px auto 50px;
}

.services-expanded {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.service-detail-content p {
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-detail-content ul {
  list-style: disc;
  padding-left: 20px;
}

.service-detail-content ul li {
  font-size: 0.9rem;
  color: var(--gray-800);
  margin-bottom: 6px;
  line-height: 1.5;
}

.service-detail-content ul li::marker {
  color: var(--blue-primary);
}

.service-detail-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 3px solid var(--blue-primary);
}

/* --- Cybersecurity features --- */
.cyber-feature {
  margin-bottom: 24px;
}

.cyber-feature:last-child {
  margin-bottom: 0;
}

.cyber-feature h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.cyber-feature p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* --- Cybersecurity card grid --- */
.cyber-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.cyber-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--blue-primary);
  border-radius: 6px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.cyber-card-icon {
  color: var(--blue-primary);
  margin-bottom: 14px;
}

.cyber-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.cyber-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.cyber-card ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 12px;
}

.cyber-card ul li {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 4px;
  line-height: 1.5;
}

.cyber-card ul li::marker {
  color: var(--blue-primary);
}

/* --- Service Areas --- */
.service-areas {
  background: var(--white);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.area-card {
  background: var(--blue-dark);
  color: var(--white);
  padding: 32px 24px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.area-card .area-phone {
  margin-top: auto;
}

.area-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.area-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 16px;
}

.area-phone {
  display: inline-block;
  background: var(--blue-primary);
  color: var(--white);
  padding: 8px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: background 0.2s;
}

.area-phone:hover {
  background: var(--blue-light);
}

/* --- FAQ --- */
.faq {
  background: var(--gray-50);
  padding: 70px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--blue-primary);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--blue-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-item a {
  color: var(--blue-primary);
  font-weight: 600;
}

.faq-item a:hover {
  text-decoration: underline;
}

/* --- Contact Form CTA --- */
.contact-cta {
  background: var(--white);
  padding: 70px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.contact-main-phone {
  margin-bottom: 16px;
}

.contact-main-phone a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-primary);
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.6;
  margin-bottom: 8px;
}

.contact-details {
  margin-top: 24px;
}

.contact-details a {
  color: var(--blue-primary);
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--gray-200, #ddd);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.contact-form .btn {
  grid-column: 1 / -1;
  padding: 14px;
  font-size: 1rem;
}

/* --- Mobile CTA --- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: var(--blue-primary);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.4);
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.mobile-cta:hover {
  background: var(--blue-dark);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .why-us-grid,
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-contact {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 16px 24px;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a {
    border-bottom-color: transparent;
  }

  .nav-toggle {
    display: flex;
  }


  .hero {
    min-height: 350px;
  }

  .intro-layout,
  .service-detail,
  .service-detail.reverse,
  .cyber-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-detail.reverse {
    direction: ltr;
  }

  .why-us-grid,
  .areas-grid,
  .cyber-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: 1;
  }

  .contact-form .btn {
    grid-column: 1;
  }

  .about-box {
    padding: 30px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mobile-cta {
    display: flex;
  }
}

/* --- Blog --- */
.blog-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../assets/images/hero-bg.jpg') center center / cover no-repeat;
  text-align: center;
}

.blog-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 145, 0.80);
}

.blog-hero .hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 24px;
}

.blog-hero .hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 12px;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.4);
}

.blog-hero .hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* Blog listing grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--blue-primary);
  border-radius: 8px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

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

.blog-card-tag {
  display: inline-block;
  background: rgba(21, 101, 192, 0.1);
  color: var(--blue-primary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
  width: fit-content;
}

.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card h3 a {
  color: inherit;
  transition: color 0.2s;
}

.blog-card h3 a:hover {
  color: var(--blue-primary);
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-family: var(--font-body);
  margin-top: auto;
}

.blog-card-meta span + span::before {
  content: '\00b7';
  margin: 0 6px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.breadcrumb a {
  color: var(--blue-primary);
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 6px;
  color: var(--gray-600);
}

/* Article layout */
.article-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.article-header {
  margin-bottom: 32px;
}

.article-header .blog-card-tag {
  margin-bottom: 16px;
}

.article-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.3;
  margin-bottom: 14px;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.article-meta span + span::before {
  content: '\00b7';
  margin: 0 6px;
}

/* Article body prose */
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 36px 0 14px;
  line-height: 1.3;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 28px 0 10px;
  line-height: 1.4;
}

.article-body p {
  font-size: 1rem;
  color: var(--gray-800);
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  font-size: 1rem;
  color: var(--gray-800);
  line-height: 1.7;
  margin-bottom: 8px;
}

.article-body li::marker {
  color: var(--blue-primary);
}

.article-body strong {
  color: var(--gray-800);
}

.article-body a {
  color: var(--blue-primary);
  font-weight: 600;
}

.article-body a:hover {
  text-decoration: underline;
}

/* Article CTA box */
.article-cta {
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 8px;
  padding: 36px 32px;
  text-align: center;
  margin-top: 40px;
}

.article-cta h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.article-cta p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  line-height: 1.6;
}

.article-cta .btn {
  margin-right: 12px;
  margin-bottom: 8px;
}

.article-cta .btn-primary {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
}

.article-cta .btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.article-cta .btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.article-cta .btn-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
}

/* Blog responsive */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    min-height: 220px;
  }

  .article-cta {
    padding: 28px 20px;
  }

  .article-cta .btn {
    display: block;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
}
