/*
Theme Name: Build Buddy
Theme URI: https://buildbuddy.co.uk
Author: Build Buddy
Author URI: https://buildbuddy.co.uk
Description: Custom WordPress theme for Build Buddy - Professional House Renovations, Extensions, and Specialist Builds.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buildbuddy
Tags: business, landing-page, construction, custom-theme
*/

/* =========================================
   CSS VARIABLES
   ========================================= */
:root {
  --teal: #FF6B35;
  --teal-dark: #e55a25;
  --teal-light: #ff8555;
  --nav-bg: #2a3441;
  --footer-bg: #2a3441;
  --hero-bg: #f4f4f2;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-medium: #444444;
  --text-light: #666666;
  --card-border: #e8e8e8;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1160px;
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--border-radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  border: none;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74, 144, 144, 0.35);
  color: var(--white);
}

.btn-teal-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--teal);
  padding: 11px 26px;
}

.btn-teal-outline:hover {
  background: var(--teal);
  color: var(--white);
}

/* =========================================
   HEADER / NAVIGATION
   ========================================= */
#site-header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.site-logo {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.site-logo:hover {
  color: var(--teal-light);
}

/* Nav */
#primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.current-menu-item {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-links a.active-nav {
  color: var(--white);
}

.nav-links a.active-nav::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* Phone */
.header-phone {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--white);
}

/* Header CTA */
.header-cta {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

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

/* =========================================
   HERO SECTION
   ========================================= */
#hero {
  position: relative;
  min-height: 100vh;
  background-color: #1a2530;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20, 28, 36, 0.88) 0%,
    rgba(20, 28, 36, 0.65) 55%,
    rgba(20, 28, 36, 0.35) 100%
  );
  z-index: 1;
}

.hero-no-image-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a2530 0%, #2a3d3d 100%);
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 20px;
  border-left: 3px solid var(--teal);
  padding-left: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--border-radius);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  width: fit-content;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-stat-number {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  white-space: nowrap;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.hero-image-wrap { display: none; }
.hero-image-placeholder { display: none; }

/* =========================================
   SERVICES SECTION
   ========================================= */
#services {
  background: #ffffff;
  padding: 88px 0;
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
  padding-bottom: 40px;
  border-bottom: 1px solid #f0f0f0;
}

.services-header .section-title {
  color: var(--text-dark) !important;
}

.services-header .section-subtitle {
  color: var(--text-light) !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: #FFF4F0;
  border: 1px solid #FFD4C2;
}

.service-card:nth-child(odd) {
  background: #FF6B35;
  border-color: #FF6B35;
}

.service-number { display: none; }

.service-card-body {
  flex: 1;
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.service-card:nth-child(odd) .service-title {
  color: #ffffff;
}

.service-desc {
  font-size: 14px;
  color: #7a4020;
  line-height: 1.75;
}

.service-card:nth-child(odd) .service-desc {
  color: rgba(255,255,255,0.75);
}

/* =========================================
   WHY CHOOSE US SECTION
   ========================================= */
#why-us {
  background: var(--hero-bg);
  padding: 80px 0;
}

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

.why-us-item {
  text-align: center;
  padding: 20px;
}

.why-us-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 10px;
  font-family: var(--font-body);
  letter-spacing: -0.03em;
}

.why-us-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.why-us-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* =========================================
   CTA SECTION
   ========================================= */
#cta-section {
  background: var(--nav-bg);
  padding: 72px 0;
  text-align: center;
}

.cta-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
#contact {
  background: var(--white);
  padding: 80px 0;
}

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

.contact-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-medium);
  font-weight: 500;
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  stroke: var(--teal);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(74, 144, 144, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* =========================================
   FOOTER
   ========================================= */
#site-footer {
  background: var(--footer-bg);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  text-align: center;
}

.footer-copy {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

/* =========================================
   MOBILE NAVIGATION (hidden panel)
   ========================================= */
.mobile-nav {
  display: none;
  background: var(--nav-bg);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px 20px;
  flex-direction: column;
  gap: 4px;
}

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

.mobile-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-weight: 500;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .header-phone {
    display: none;
  }
}

@media (max-width: 768px) {
  #hero {
    min-height: 100svh;
  }

  .hero-container {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: clamp(34px, 8vw, 48px);
  }

  .hero-stats {
    gap: 18px;
    padding: 18px 20px;
    flex-wrap: wrap;
  }

  .hero-stat-divider {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .nav-links,
  .header-phone,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section-header {
    margin-bottom: 36px;
  }

  #services,
  #why-us,
  #contact {
    padding: 56px 0;
  }

  #cta-section {
    padding: 56px 0;
  }
}

/* =========================================
   WORDPRESS DEFAULT CLASSES
   ========================================= */
.wp-block-image img {
  border-radius: var(--border-radius);
}

.aligncenter {
  text-align: center;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* =========================================
   PROJECTS PAGE
   ========================================= */

/* Page Hero */
#projects-hero {
  background: var(--nav-bg);
  padding: 72px 0 56px;
}

.projects-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.projects-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.7;
}

/* =========================================
   TABS
   ========================================= */
#projects-tabs-section {
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 70px;
  z-index: 50;
}

.projects-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.projects-tabs::-webkit-scrollbar {
  display: none;
}

.projects-tab {
  display: inline-block;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.projects-tab:hover {
  color: rgba(255,255,255,0.8);
}

.projects-tab.is-active {
  color: #fff;
  border-bottom-color: var(--teal);
}

/* =========================================
   PROJECTS GRID
   ========================================= */
#projects-grid-section {
  padding: 56px 0 80px;
  background: var(--hero-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.project-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.project-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c8d8d8, #a0bcbc);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.project-type-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(42, 52, 65, 0.88);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.project-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--teal);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 4px;
}

.project-card-body {
  padding: 20px 22px 24px;
}

.project-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.project-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--teal);
  font-weight: 500;
}

.project-meta-item svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  flex-shrink: 0;
}

.project-card-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* =========================================
   EMPTY STATE
   ========================================= */
.projects-empty-state {
  text-align: center;
  max-width: 480px;
  margin: 60px auto;
  padding: 40px 0;
}

.projects-empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: block;
}

.projects-empty-state h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.projects-empty-state p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* =========================================
   PROJECTS – RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #projects-hero {
    padding: 48px 0 36px;
  }

  .projects-tab {
    padding: 14px 16px;
    font-size: 13px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  #projects-grid-section {
    padding: 40px 0 60px;
  }
}

/* =========================================
   SINGLE PROJECT PAGE
   ========================================= */

/* Hero */
#single-project-hero {
  position: relative;
  min-height: 520px;
  background-color: #1a2530;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,20,0.92) 0%, rgba(10,15,20,0.45) 60%, rgba(10,15,20,0.2) 100%);
}

.single-hero-container {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 56px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.back-link:hover { color: #fff; }

.back-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.single-hero-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.single-badge-type {
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
}

.single-badge-cat {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.single-project-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 700px;
}

.single-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.single-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.single-meta-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--teal);
  flex-shrink: 0;
}

/* Content grid */
#single-project-content {
  padding: 64px 0 72px;
  background: var(--white);
}

.single-project-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

.single-section-heading {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.single-project-body {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.8;
}

.single-project-body p { margin-bottom: 16px; }
.single-project-body p:last-child { margin-bottom: 0; }

/* Sidebar */
.sidebar-card {
  background: var(--hero-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 28px;
  margin-bottom: 20px;
}

.sidebar-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.sidebar-details-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-details-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
  gap: 16px;
}

.sidebar-details-list li:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.detail-value {
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 600;
  text-align: right;
}

.sidebar-cta {
  background: var(--nav-bg);
  border-radius: var(--border-radius);
  padding: 24px;
}

.sidebar-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 16px;
}

.btn-orange {
  background: var(--teal);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--border-radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: var(--font-body);
}

.btn-orange:hover { background: var(--teal-dark); color: #fff; }

.btn-orange-outline {
  background: transparent;
  color: rgba(255,255,255,0.75);
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-body);
}

.btn-orange-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* Photo gallery */
#single-project-gallery {
  padding: 0 0 72px;
  background: var(--white);
}

.project-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.project-photo-grid .photo-tile:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-tile {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.photo-tile:first-child {
  aspect-ratio: unset;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.photo-tile-overlay svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.photo-tile:hover .photo-tile-overlay {
  background: rgba(0,0,0,0.35);
}

.photo-tile:hover img { transform: scale(1.04); }
.photo-tile:hover .photo-tile-overlay svg { opacity: 1; }

/* Other projects */
#single-other-projects {
  padding: 0 0 80px;
  background: var(--hero-bg);
}

#single-other-projects .single-section-heading {
  margin-bottom: 32px;
}

/* =========================================
   SINGLE PROJECT – RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .single-project-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .single-project-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .sidebar-card { margin-bottom: 0; }
}

@media (max-width: 768px) {
  #single-project-hero { min-height: 400px; }

  .single-project-sidebar {
    grid-template-columns: 1fr;
  }

  .project-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-photo-grid .photo-tile:first-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }

  #single-project-content { padding: 40px 0 48px; }
}

@media (max-width: 480px) {
  .project-photo-grid {
    grid-template-columns: 1fr;
  }

  .project-photo-grid .photo-tile:first-child {
    grid-column: span 1;
  }
}

/* =========================================
   FLOATING SOCIAL BUTTONS
   ========================================= */
.social-float-stack {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.social-float {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-float:hover {
  transform: scale(1.12);
}

.social-float svg {
  width: 24px;
  height: 24px;
  color: #fff;
  flex-shrink: 0;
}

/* Individual colours */
.social-float--whatsapp {
  background: #25D366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}
.social-float--whatsapp:hover {
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.social-float--facebook {
  background: #1877F2;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.35);
}
.social-float--facebook:hover {
  box-shadow: 0 6px 24px rgba(24, 119, 242, 0.55);
}

.social-float--linkedin {
  background: #0A66C2;
  box-shadow: 0 4px 16px rgba(10, 102, 194, 0.35);
}
.social-float--linkedin:hover {
  box-shadow: 0 6px 24px rgba(10, 102, 194, 0.55);
}

/* Tooltip */
.social-float-tooltip {
  position: absolute;
  right: 62px;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-float-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: #1a1a1a;
}

.social-float:hover .social-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .social-float-stack {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }

  .social-float {
    width: 46px;
    height: 46px;
  }

  .social-float svg {
    width: 20px;
    height: 20px;
  }

  .social-float-tooltip {
    display: none;
  }
}

/* =========================================
   TESTIMONIALS CAROUSEL
   ========================================= */
#testimonials {
  background: var(--hero-bg);
  padding: 88px 0;
}

.testimonials-carousel {
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: #FF6B35;
  stroke: none;
  flex-shrink: 0;
}

.testimonial-quote {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  padding-left: 18px;
  border-left: 3px solid #FF6B35;
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--nav-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.testimonial-project {
  font-size: 12px;
  color: var(--teal);
  font-weight: 500;
}

/* Dot navigation */
.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.testimonials-dot.is-active {
  background: var(--teal);
  transform: scale(1.3);
}

@media (max-width: 1024px) {
  .testimonials-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .testimonials-track {
    grid-template-columns: minmax(0, 1fr);
  }
}

.btn-teal-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-teal-outline:hover {
  background: var(--teal);
  color: #fff;
}

/* =========================================
   DROPDOWN NAVIGATION
   ========================================= */
.nav-has-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 0;
  letter-spacing: 0;
}

.nav-dropdown-toggle:hover {
  color: #fff;
}

.nav-dropdown-toggle svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-dropdown-toggle.is-open svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  min-width: 210px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

.nav-dropdown.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-medium);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown li a:hover {
  background: #FFF4F0;
  color: var(--teal);
}

/* Mobile dropdowns */
.mobile-dropdown {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mobile-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: left;
}

.mobile-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.mobile-dropdown-toggle.is-open svg {
  transform: rotate(180deg);
}

.mobile-dropdown-items {
  display: none;
  flex-direction: column;
  padding-bottom: 6px;
}

.mobile-dropdown-items.is-open {
  display: flex;
}

.mobile-dropdown-items a {
  padding: 8px 0 8px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  border-bottom: none;
  display: block;
  transition: color 0.15s ease;
}

.mobile-dropdown-items a:hover {
  color: var(--teal-light);
}

/* =========================================
   SERVICE PAGE
   ========================================= */
#service-hero {
  background: var(--nav-bg);
  padding: 48px 0 56px;
}

.service-hero-container {
  padding-top: 80px;
}

.service-hero-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
}

.service-hero-icon {
  width: 72px;
  height: 72px;
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-hero-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--teal);
}

.service-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.service-hero-tagline {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

#service-content {
  padding: 64px 0 72px;
  background: var(--white);
}

.service-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.service-featured-image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.service-featured-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.service-body {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.8;
}

.service-body p { margin-bottom: 16px; }
.service-body h2, .service-body h3 { color: var(--text-dark); margin: 28px 0 12px; font-weight: 700; }

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-medium);
  font-weight: 500;
}

.service-features-list li svg {
  width: 16px;
  height: 16px;
  stroke: var(--teal);
  flex-shrink: 0;
}

.sidebar-services-list {
  display: flex;
  flex-direction: column;
}

.sidebar-services-list li a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-medium);
  font-weight: 500;
  border-bottom: 1px solid var(--card-border);
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.sidebar-services-list li:last-child a {
  border-bottom: none;
}

.sidebar-services-list li a:hover {
  color: var(--teal);
  padding-left: 6px;
}

#service-projects {
  padding: 0 0 80px;
  background: var(--hero-bg);
}

@media (max-width: 1024px) {
  .service-content-grid {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .sidebar-card { margin-bottom: 0; }
}

@media (max-width: 640px) {
  .service-sidebar {
    grid-template-columns: 1fr;
  }

  .service-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* =========================================
   UNIFIED PROJECT GALLERY SECTION
   ========================================= */
#project-gallery-section {
  padding: 0 0 72px;
  background: var(--hero-bg);
}

.gallery-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--card-border);
}

.gallery-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-body);
}

.gallery-tab svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

.gallery-tab:hover { color: var(--text-dark); }

.gallery-tab.is-active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.gallery-panel { display: block; }
.gallery-panel.is-hidden { display: none; }

/* ---- Photos grid ---- */
.project-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.project-photo-grid .photo-tile:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-tile {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.photo-tile:first-child { aspect-ratio: unset; }

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.photo-tile-overlay svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.photo-tile:hover .photo-tile-overlay { background: rgba(0,0,0,0.35); }
.photo-tile:hover img { transform: scale(1.04); }
.photo-tile:hover .photo-tile-overlay svg { opacity: 1; }

/* ---- Before / After ---- */
.ba-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.ba-carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ba-prev, .ba-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.ba-prev:hover, .ba-next:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.ba-prev:hover svg, .ba-next:hover svg { stroke: #fff; }
.ba-prev svg, .ba-next svg { width: 15px; height: 15px; stroke: var(--text-dark); }

.ba-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  min-width: 36px;
  text-align: center;
}

.ba-slide { display: none; }
.ba-slide.is-active { display: block; }

.ba-pair-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.ba-slider {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 10px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.ba-after, .ba-before { position: absolute; inset: 0; }

.ba-after img, .ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-before {
  width: 50%;
  overflow: hidden;
}

.ba-before img {
  width: auto;
  min-width: 100%;
  max-width: none;
}

.ba-label {
  position: absolute;
  bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  pointer-events: none;
}

.ba-label--after { right: 14px; background: var(--teal); color: #fff; }
.ba-label--before { left: 14px; background: rgba(0,0,0,0.55); color: #fff; backdrop-filter: blur(4px); }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.ba-handle-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.ba-handle-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  z-index: 1;
}

.ba-handle-circle svg { width: 16px; height: 16px; stroke: var(--teal); flex-shrink: 0; }

.ba-hint { font-size: 12px; color: var(--text-light); margin: 0; }

.ba-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.ba-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--card-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ba-dot.is-active { background: var(--teal); transform: scale(1.35); }

@media (max-width: 1024px) {
  .project-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .project-photo-grid .photo-tile:first-child { grid-column: span 2; aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .ba-slider { height: 260px; }
  .gallery-tab { padding: 12px 16px; font-size: 13px; }
  .project-photo-grid { grid-template-columns: 1fr; }
  .project-photo-grid .photo-tile:first-child { grid-column: span 1; }
}

/* =========================================
   NEWS PAGE
   ========================================= */
#news-hero {
  background: var(--nav-bg);
  padding: 72px 0 56px;
}

.news-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.news-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.7;
}

#news-grid-section {
  background: var(--hero-bg);
  padding: 56px 0 80px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

.news-card-image {
  display: block;
  overflow: hidden;
  height: 200px;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.news-date svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  flex-shrink: 0;
}

.news-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #FFF4F0;
  color: var(--teal);
  padding: 3px 10px;
  border-radius: 20px;
}

.news-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.35;
  flex: 1;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card-title a:hover { color: var(--teal); }

.news-card-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 18px;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  transition: gap 0.2s ease;
  align-self: flex-start;
}

.news-read-more:hover { gap: 10px; }

.news-read-more svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-medium);
  border: 1px solid var(--card-border);
  background: var(--white);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* Empty state */
.news-empty {
  text-align: center;
  padding: 60px 0;
  max-width: 400px;
  margin: 0 auto;
}

.news-empty svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: block;
}

.news-empty h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.news-empty p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Social CTA */
#news-social-cta {
  background: var(--nav-bg);
  padding: 56px 0;
}

.news-social-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.news-social-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.news-social-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
}

.news-social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.news-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.news-social-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.news-social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.news-social-btn--fb { background: #1877F2; color: #fff; }
.news-social-btn--li { background: #0A66C2; color: #fff; }

/* =========================================
   SINGLE POST
   ========================================= */
#news-single-hero {
  background: var(--nav-bg);
  padding: 48px 0 56px;
}

.news-single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  flex-wrap: wrap;
}

.news-single-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 800px;
}

#news-single-content {
  padding: 56px 0 72px;
  background: var(--white);
}

.news-single-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

.news-featured-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}

.news-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.news-post-content {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.85;
  margin-bottom: 40px;
}

.news-post-content p { margin-bottom: 18px; }
.news-post-content h2, .news-post-content h3 {
  color: var(--text-dark);
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.news-post-content img {
  border-radius: 8px;
  margin: 16px 0;
}
.news-post-content ul, .news-post-content ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
.news-post-content li { margin-bottom: 8px; }

/* Share row */
.news-share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--card-border);
  flex-wrap: wrap;
}

.news-share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.news-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.news-share-btn:hover { opacity: 0.85; }
.news-share-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.news-share-btn--fb { background: #1877F2; color: #fff; }
.news-share-btn--li { background: #0A66C2; color: #fff; }

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-single-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-social-inner { flex-direction: column; align-items: flex-start; }
}
