<!-- File: assets/css/styles.css -->
/* Minimal system: pure CSS, responsive, accessible focus states. */
:root{
  --bg: #ffffff;
  --bg-muted: #f5f7fb;
  --text: #0f172a;
  --muted: #5b6474;
  --line: #e6e9f0;
  --brand: #0b3a6a;
  --brand-2: #0b6aa6;

  --radius: 14px;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);

  --container: 1120px;
  --gutter: 18px;

  --h1: clamp(1.4rem, 2.2vw, 2.1rem);
  --h2: clamp(1.2rem, 1.6vw, 1.6rem);
  --h3: 1.05rem;
  --p: 0.98rem;
  --lh: 1.6;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh);
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--text);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 10px; }

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.brand-mark{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display:grid;
  place-items:center;
  color:#fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand-text{ display:flex; flex-direction:column; line-height: 1.1; }
.brand-title{ font-weight: 800; letter-spacing: 0.4px; }
.brand-subtitle{ font-size: 0.88rem; color: var(--muted); }

.nav{
  display:flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.nav a{
  padding: 8px 8px;
  border-radius: 10px;
}
.nav a:focus-visible,
.search input:focus-visible,
.search button:focus-visible,
.btn:focus-visible,
.back-to-top:focus-visible{
  outline: 3px solid rgba(11, 106, 166, 0.35);
  outline-offset: 2px;
}
.search{
  display: none;
}

/* Hero */
.hero{ position: relative; }
.hero-media{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-media img{
  width: 100%;
  height: clamp(220px, 34vw, 440px);
  object-fit: cover;
}
.hero-badge{
  position:absolute;
  right: 8%;
  top: 22%;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, #1f3b5b, #0b6aa6);
  box-shadow: var(--shadow);
  display:grid;
  place-items:center;
  color:#fff;
  font-weight: 800;
  letter-spacing: 1px;
}
.hero-curve{
  height: 60px;
  background:
    radial-gradient(110% 100% at 50% 0%, rgba(11,58,106,0.18) 0%, rgba(11,58,106,0.0) 60%),
    linear-gradient(#fff, #fff);
  border-bottom: 1px solid var(--line);
}
.hero-content{
  padding: 22px 0 10px;
  text-align: center;
}
.hero-title{
  margin: 0;
  font-size: var(--h1);
  font-weight: 800;
  color: var(--brand-2);
}
.hero-lead{
  margin: 10px auto 0;
  max-width: 880px;
  color: var(--muted);
  font-size: var(--p);
}
.divider{
  width: min(720px, 92%);
  height: 1px;
  background: var(--line);
  margin: 18px auto 0;
}

/* Sections */
.section{ padding: 44px 0; }
.section-muted{ background: var(--bg-muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title{
  text-align:center;
  font-size: var(--h2);
  margin: 0 0 18px;
  font-weight: 800;
}
.center-note{ text-align:center; color: var(--muted); margin: 0 0 18px; }

.cols-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service{
  padding: 14px 8px;
  text-align:center;
}
.service h2{
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #1b2a41;
}
.service p{ margin: 0; color: var(--muted); font-size: 0.95rem; }

/* News */
.news-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.news-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.news-card img{ aspect-ratio: 5/3; object-fit: cover; }
.news-card h3{
  margin: 12px 12px 6px;
  font-size: 0.96rem;
}
.news-card p{
  margin: 0 12px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Featured article */
.article{
  max-width: 980px;
}
.article-title{
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  margin: 0 0 8px;
  font-weight: 900;
}
.article-meta{ margin: 0 0 14px; color: var(--muted); }
.article-body p{ margin: 0 0 12px; color: #223048; }
.article-cta{ display:flex; justify-content:center; padding-top: 10px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  border: 1px solid rgba(0,0,0,0);
  text-decoration: none;
}
.btn:hover{ text-decoration:none; filter: brightness(1.02); }
.btn-outline{
  background: #fff;
  color: var(--brand);
  border-color: var(--line);
}

/* Reviews */
.reviews{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.review-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.stars{ font-weight: 900; }
.review-card p{ margin: 10px 0; color: var(--muted); }
.reviewer{ font-weight: 700; }

/* Booking placeholder */
.booking-placeholder{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.booking-head{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.booking-avatar{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff;
  display:grid;
  place-items:center;
  font-weight: 900;
}
.booking-body{ padding: 14px; }
.booking-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.booking-box{
  border: 1px dashed #cfd6e4;
  border-radius: 12px;
  padding: 16px;
  min-height: 140px;
  display:grid;
  place-items:center;
}
.muted{ color: var(--muted); }

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.contact-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

/* Footer */
.site-footer{
  background: #0b1220;
  color: #e7eaf0;
  padding: 34px 0 18px;
}
.footer-inner{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.site-footer h3{ margin: 0 0 10px; font-size: 1rem; }
.footer-links{ margin: 0; padding: 0; list-style: none; }
.footer-links li{ margin: 6px 0; }
.site-footer a{ color: #e7eaf0; }
.footer-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(230,233,240,0.12);
  display:flex;
  justify-content: space-between;
  align-items:center;
}
.site-footer .muted{ color: rgba(231,234,240,0.72); }

/* Back-to-top */
.back-to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  display:grid;
  place-items:center;
  box-shadow: var(--shadow);
}
.back-to-top:hover{ text-decoration:none; }

/* Responsive */
@media (max-width: 980px){
  .header-inner{ grid-template-columns: 1fr; }
  .nav{ justify-content: flex-start; }
  .cols-3{ grid-template-columns: 1fr; }
  .news-grid{ grid-template-columns: repeat(2, 1fr); }
  .reviews{ grid-template-columns: 1fr; }
  .booking-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; gap: 10px; align-items:flex-start; }
}
@media (max-width: 560px){
  .news-grid{ grid-template-columns: 1fr; }
  .hero-badge{ display:none; }
}
.hero-badge-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-badge{
  position: absolute;
  right: 8%;
  top: 22%;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, #1f3b5b, #0b6aa6);
  box-shadow: var(--shadow);
  overflow: hidden; /* critical: stops overflow */
  display: grid;
  place-items: center;
  padding: 12px; /* gives breathing room */
}

.hero-badge-img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* keeps full icon visible */
  display: block;
}

.booking-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.booking-embed iframe {
  display: block;
  width: 100%;
  height: 700px;
  border: 0;
}

.booking-fallback { margin-top: 14px; display:flex; justify-content:center; }

/* Testimonials Auto-Slider */
.testimonials {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px 0;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 24px;
  animation: slide-left 60s linear infinite;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.t-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.5;
  flex-grow: 1;
}

.testimonial-card .reviewer {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

@keyframes slide-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 12px));
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    animation: none;
    width: auto;
    overflow-x: auto;
    scroll-behavior: smooth;
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 280px;
    padding: 16px;
  }
  
  .t-avatar {
    width: 64px;
    height: 64px;
  }
  
  .testimonial-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    flex: 0 0 240px;
    padding: 12px;
  }
  
  .t-avatar {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }
  
  .testimonial-card p {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }
}

/* File: assets/css/styles.css (ADD THESE STYLES AT THE END) */

.page-hero{ position: relative; }
.page-hero-media{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero-media img{
  width: 100%;
  height: clamp(220px, 34vw, 440px);
  object-fit: cover;
}
.page-hero-badge{
  position:absolute;
  right: 6%;
  top: 28%;
  width: 92px;
  height: 92px;
  border-radius: 18px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, #1f3b5b, #0b6aa6);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 10px;
}
.page-hero-curve{
  height: 60px;
  background:
    radial-gradient(110% 100% at 50% 0%, rgba(11,58,106,0.18) 0%, rgba(11,58,106,0.0) 60%),
    linear-gradient(#fff, #fff);
  border-bottom: 1px solid var(--line);
}

.studio-layout{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: start;
}
.studio-title{
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 900;
}
.studio-intro{ margin: 0 0 18px; }
.studio-sections h2{
  margin: 18px 0 8px;
  font-size: 1.02rem;
  font-weight: 900;
}
.studio-sections p{ margin: 0 0 12px; color: #223048; }
.studio-list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: #223048;
}
.studio-list li{ margin: 8px 0; }
.studio-cta-note{ margin-top: 16px; }

.portrait-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.portrait{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.portrait-meta{
  padding: 14px;
}
.portrait-name{
  font-weight: 900;
  margin-bottom: 6px;
}
.portrait-links{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-row{
  margin-top: 18px;
  display: flex;
  gap: 8px;
}
.share-btn{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

@media (max-width: 980px){
  .studio-layout{ grid-template-columns: 1fr; }
  .page-hero-badge{ display:none; }
}

/* Contact page styles */
.contact-layout{
  padding: 40px 0;
}
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form-col h2,
.contact-info-col h2{
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
}
.form-row{
  margin-bottom: 16px;
}
.form-row label{
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.form-row input,
.form-row select,
.form-row textarea{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
}
.form-row textarea{
  resize: vertical;
}
.hp-field{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.form-status{
  margin-top: 10px;
  color: var(--muted);
}
.form-status.error{
  color: #b42318;
}
.form-status.success{
  color: #067647;
}
.btn:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}
.cta-bar{
  background: var(--bg-muted);
  padding: 20px 0;
  text-align: center;
}

/* Responsive for contact */
@media (max-width: 768px){
  .contact-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .thankyou-buttons{
    flex-direction: column;
    align-items: center;
  }
}

/* Thank you page styles */
.thankyou-section{
  padding: 80px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thankyou-card{
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  padding: 34px 28px;
  text-align: center;
}
.thankyou-icon{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 2.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.thankyou-card h1{
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 16px;
  color: var(--brand-2);
  font-weight: 900;
}
.thankyou-card p{
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}
.thankyou-redirect-msg{
  font-size: 0.95rem;
  color: #999;
  margin: 12px 0 24px !important;
}
.thankyou-buttons{
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 640px){
  .thankyou-card{
    padding: 24px 20px;
  }
  .thankyou-icon{
    width: 72px;
    height: 72px;
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .thankyou-buttons{
    flex-direction: column;
    gap: 12px;
  }
  .thankyou-buttons .btn{
    width: 100%;
  }
}

/* Page styles for domiciliazioni.html */
.page-title-large{
  padding: 40px 0;
  text-align: center;
}
.page-title-large h1{
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--brand-2);
  margin: 0;
}
.page-content{
  padding: 40px 0;
}
.page-content .container{
  max-width: 800px;
}
.page-content p{
  margin-bottom: 1.5em;
}
.cta-row{
  padding: 40px 0;
  text-align: center;
}
.cta-row .btn{
  font-size: 1.1rem;
  padding: 14px 24px;
}

/* Safe overrides to prevent form clipping */
.contact-layout,
.contact-grid,
.contact-form-col,
#form,
#contact-form {
  height: auto;
  max-height: none;
  overflow: visible;
}
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row textarea {
  min-height: 160px;
}

#contact-form > .btn{ align-self:center; margin-top:6px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

/* --- FORCE submit button + textarea to be visible on contatti page --- */
#contact-form textarea{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 180px !important;
}

#contact-form button[type="submit"]{
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  align-self: center !important; /* center */
  margin-top: 12px !important;
  z-index: 1 !important;
}

/* make sure no parent is clipping */
.contact-layout,
.contact-grid,
.contact-form-col,
#form,
#contact-form{
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* DEBUG: give the form column a subtle background so you can see its bounds */
.contact-form-col{
  background: rgba(11, 58, 106, 0.03);
  border-radius: var(--radius);
  padding: 14px;
}

/* NEWS PAGE STYLES */

/* News Hero Title */
.news-hero-title{
  padding: 40px 0 30px;
  text-align: center;
}
.news-hero-title h1{
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 900;
  color: var(--brand-2);
  margin: 0 0 8px;
}
.news-hero-title p{
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

/* News Filters */
.news-filters-section{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-muted);
  padding: 16px 0;
}
.news-filters{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-label{
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.filter-btn{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s ease;
}
.filter-btn:hover{
  border-color: var(--brand-2);
  color: var(--brand-2);
  background: rgba(11, 106, 166, 0.05);
}
.filter-btn:focus-visible{
  outline: 3px solid rgba(11, 106, 166, 0.35);
  outline-offset: 2px;
}
.filter-reset{
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}
.filter-reset:hover{
  text-decoration: underline;
}

/* News Grid Section */
.news-grid-section{
  padding: 40px 0;
}
.news-grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card{
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}
.news-card:hover{
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.news-card-image{
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.news-card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-card:hover .news-card-image img{
  transform: scale(1.04);
}
.news-card-body{
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-date{
  font-size: 0.85rem;
  color: var(--brand-2);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.news-card h2{
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}
.news-card h2 a{
  color: var(--text);
  text-decoration: none;
}
.news-card h2 a:hover{
  color: var(--brand-2);
}
.news-excerpt{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}
.news-card-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.news-meta{
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}
.news-heart,
.news-comments{
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.news-read-more{
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.news-read-more:hover{
  text-decoration: underline;
}

/* Pagination */
.news-pagination-section{
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.pager{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.page{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.page:hover{
  border-color: var(--brand-2);
  color: var(--brand-2);
  background: rgba(11, 106, 166, 0.05);
}
.page:focus-visible{
  outline: 3px solid rgba(11, 106, 166, 0.35);
  outline-offset: 2px;
}
.page.active{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: var(--brand-2);
}
.page-ellipsis{
  color: var(--muted);
  padding: 0 4px;
}
.next-page{
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 600;
  margin-left: 8px;
}
.next-page:hover{
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 980px){
  .news-grid-3{
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .news-filters{
    gap: 10px;
  }
  .filter-btn,
  .filter-label{
    font-size: 0.85rem;
  }
}
@media (max-width: 640px){
  .news-grid-3{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .news-hero-title{
    padding: 30px 0 20px;
  }
  .news-hero-title h1{
    font-size: 1.8rem;
  }
  .news-filters{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .filter-btn,
  .filter-label{
    font-size: 0.85rem;
  }
  .pager{
    gap: 6px;
  }
  .page{
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

/* ===== ARTICLE PAGE STYLES ===== */

.article-content-section {
  padding: 60px 0;
}

.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article-back {
  margin-bottom: 40px;
}

.back-link {
  color: var(--brand);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-link:hover {
  text-decoration: none;
}

.article-header {
  margin-bottom: 40px;
  text-align: center;
}

.article-title-display {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.article-author {
  font-weight: 500;
  color: var(--brand);
}

.article-date {
  color: var(--muted);
}

.article-featured-image {
  margin: 40px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-featured-image img {
  width: 100%;
  height: auto;
}

.article-body {
  font-size: var(--p);
  line-height: var(--lh);
  color: var(--text);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  color: var(--text);
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.article-body h1 {
  font-size: 1.8rem;
}

.article-body h2 {
  font-size: 1.5rem;
}

.article-body h3 {
  font-size: 1.3rem;
}

.article-body p {
  margin: 1.5rem 0;
}

.article-body ul,
.article-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-body li {
  margin: 0.5rem 0;
}

.article-body blockquote {
  border-left: 4px solid var(--brand);
  padding-left: 20px;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted);
  background: var(--bg-muted);
  padding: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.article-body code {
  background: var(--bg-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9em;
}

.article-body pre {
  background: var(--bg-muted);
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 2rem 0;
}

.article-body pre code {
  background: none;
  padding: 0;
}

.related-posts-section {
  padding: 80px 0;
  background: var(--bg-muted);
}

.related-posts-section h2 {
  text-align: center;
  font-size: var(--h2);
  margin-bottom: 40px;
  color: var(--text);
}

.article-error {
  text-align: center;
  padding: 60px 0;
}

.article-error h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text);
}

.article-error p {
  color: var(--muted);
  margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-content {
    padding: 0 20px;
  }

  .article-meta {
    flex-direction: column;
    gap: 10px;
  }

  .article-title-display {
    font-size: 2rem;
  }

  .article-body {
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .article-content-section {
    padding: 40px 0;
  }

  .article-back {
    margin-bottom: 30px;
  }

  .article-header {
    margin-bottom: 30px;
  }

  .article-title-display {
    font-size: 1.8rem;
  }

  .related-posts-section {
    padding: 60px 0;
  }
}