/* assets/css/main.css
   Mobile-first, RTL, Vazir font assumed enqueued in functions.php
*/

/* Variables */
:root{
  --accent: #1e3a8a;
  --muted: #6b7280;
  --bg: #ffffff;
  --card: #ffffff;
  --accent-2: #facc15;
}

/* Reset / base */
* { box-sizing: border-box; }
html,body { height:100%; }
body.lt-body {
  margin: 0;
  font-family: Vazir, "Vazir FD", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: var(--bg);
  color: #111827;
  direction: rtl;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

@font-face {
    font-family: 'Nastaliq';
    src: url('../fonts/IranNastaliq.woff2') format('woff2'),
         url('../fonts/IranNastaliq.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


/* Regular (400) */
@font-face {
  font-family: 'Vazir';
  src: url('../fonts/Vazir.woff2') format('woff2'),
       url('../fonts/Vazir.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Bold (700) */
@font-face {
  font-family: 'Vazir';
  src: url('../fonts/Vazir-Bold.woff2') format('woff2'),
       url('../fonts/Vazir-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

h1, h2, h3 { font-family: 'Vazir', sans-serif; margin: .1rem 0; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.2rem; }

@media (max-width: 768px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.1rem; }
}

/* Page wrapper: wider than before but still centered */
.lt-page-wrap {
  width: 100%;
  max-width: 900px;  /* wider final width */
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* ---------- HERO & SLIDER (revised) ---------- */
.lt-hero {
  position: relative;
  width: 100vw;      /* full viewport width */
  left: 50%;
  margin-left: -50vw; /* full-bleed trick */
  min-height: 50vh;
  height: 50vh;
  overflow: hidden;
}

.lt-hero-articles {
  position: relative;
  width: 100vw;      /* full viewport width */
  left: 50%;
  margin-left: -50vw; /* full-bleed trick */
  min-height: 30vh;
  height: 30vh;
  overflow: hidden;
}

.lt-hero-article {
  position: relative;
  width: 100vw;      /* full viewport width */
  left: 50%;
  margin-left: -50vw; /* full-bleed trick */
  min-height: 30vh;
  height: 30vh;
  overflow: hidden;
}

/* Slider base */
.lt-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.lt-slide {
  position: absolute;
  inset: 0;
  background-size: cover;      /* zoom/crop to fill container */
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.8s ease, transform 1s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* keep content on right */
}


/* Active slide */
.lt-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Dim overlay for readability */
.lt-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(49, 47, 47, 0.4), rgba(0,0,0,0.25));
  z-index: 0;
}


/* inner container for slide content */
.lt-slide-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 16px;
}

/* Content is placed within right half */
.lt-slide-content {
  width: 100%;
  /* max-width: 400px; */
  text-align: right;
  color: #fff;
  /* padding: 30px; */
  margin-right: 5%;
  position: relative;
  z-index: 1;
}

/* Force content to right half visually */
.lt-slide-content--right {
  margin-left: auto;  /* push it to visual right */
}

/* Profile mini */
.lt-profile-mini {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.06);
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 10px;
}

.lt-profile-mini img { width:100%; height:100%; object-fit:cover; }

/* Text */
.lt-name { font-size: 3rem; font-weight:400; line-height: 1.5rem; margin-top: .5rem;}

@media (max-width: 760px) {
  .lt-name { font-size: 1.5rem; margin-top: 1.5rem; line-height: 1.2rem;}
}

.lt-name.small { font-size: 1rem; margin-top: 6px; }
.lt-title { margin: 0 0 8px 0; margin-top: .8rem; font-size: 1rem; color: rgba(255,255,255,0.9); font-weight:400; }
.lt-slogan { 
  font-size: 1.4rem; font-weight:500; line-height:1; margin-bottom:10px; color:#fff; 
}
.lt-name,
.lt-title,
.lt-slogan
 {
    font-family: 'Nastaliq', 'Vazir', serif;
}

.lt-phone {
  display:inline-block;
  background: rgba(0,0,0,0.22);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight:700;
}

.lt-phone-small {
  display:inline-block;
  background: rgba(0,0,0,0.22);
  padding: 4px 6px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 400;
  margin-top: 1px;
}

.lt-contact-link {
  margin-top: 20px;
  display:inline-block;
  background: rgba(0,0,0,0.22);
  padding: 2px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight:700;
}

.lt-row-text .lt-contact-link {
    float: left;           /* move link to the left */
    text-align: left;      /* ensure text inside aligns left */
}

.lt-contact-link-title {
  text-align: right;      /* ensure text inside aligns left */
}

/* Controls (left area visually because of RTL, but we keep simple) */
.lt-controls {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lt-prev, .lt-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}
.lt-prev:hover, .lt-next:hover {
  background: rgba(255,255,255,0.4);
}


/* Dots */
.lt-dots {
  display: none;
  gap: 6px;
}
.lt-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.lt-dot.active {
  background: var(--accent-2);
  transform: scale(1.2);
}

/* MAIN: body rows */
.lt-main { padding: 12px 0 40px; }

/* Row container: image-left (visually left), text-right */
.lt-row {
  display:flex;
  gap: 18px;
  align-items: start;
  background: var(--card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(16,24,40,0.04);
}

/* image column (left) */
.lt-row-image {
  flex: 0 0 34%;
  max-width: 100%;
  text-align: left; /* visual left for images */
  margin: 0 auto;
}
.lt-row-image img {
  width: 100%;
  height: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
}

/* text column (right) */
.lt-row-text { flex: 1 1 66%; text-align: right; }
.lt-row-text h3 { margin: 0 0 10px; color: var(--accent); }
.lt-row-text p {
  margin:0; line-height: 1.8; color: #222; 
  text-align: justify;       /* justifies the paragraph text */
  text-justify: inter-word;  /* improves spacing for languages like Persian */
}

/* CONTACT */
.lt-contact {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(16,24,40,0.04);
  margin-bottom: 18px;
}
.lt-contact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.lt-contact-main { text-align: right; }
.lt-contact-name { margin: 0 0 6px 0; color: var(--accent); font-weight:700; font-size: 1.1rem; }
.lt-contact-title { margin: 0 0 8px 0; color: var(--muted); }
.lt-contact-items { display:grid; gap:8px; }
.lt-contact-item { font-size: 0.95rem; }

/* map embed */
.lt-contact-map {
  margin-top: 2.5rem; /* increases vertical distance from above contact sections */
  border-radius: 12px;
  overflow: hidden;
}
.lt-contact-map iframe { width:100%; height:220px; border:0; border-radius:8px; }

/* footer */
.lt-footer { padding: 10px 0 26px; text-align:center; color: var(--muted); }

/* Responsive: small screens stack things */
@media (max-width: 760px) {
  .lt-page-wrap {
     width: 100%;
     /* padding: 0 6px; */
    }
  /* .lt-slide-content { width: 78%; margin-right: 6%; } */
  .lt-slide-content {
    text-align: right;  /* maintain RTL alignment */
    width: 100%;
    /* padding: 24px; more space on mobile */
    /* margin-right: 5%; maintain visual margin */
  }
  /* .lt-hero { height: 60vh; min-height: 50vh; } */
  .lt-hero {
    width: 100%;
    left: 0;
    margin-left: 0;
  }
  .lt-row { flex-direction: column;   padding: .7rem;}
  .lt-row-image { max-width: 100%; flex-basis: auto; }
  .lt-row-image img { max-height: 280px; width: 90vw; }
}

@media (max-width: 760px) {

  /* .lt-hero { height: 60vh; min-height: 50vh; } */
  .lt-hero-articles {
    width: 100%;
    left: 0;
    margin-left: 0;
    min-height: 30vh;
    height: 30vh;
  }
  .lt-hero-article {
    width: 100%;
    left: 0;
    margin-left: 0;
    min-height: 40vh;
    height: 40vh;
  }
}

/* Larger desktops keep the centered narrow column (we already limited max-width) */
@media (min-width: 1200px) {
  .lt-page-wrap { max-width: 900px; }
}

/* For wider screens, shift background upward */
/* @media (min-width: 1200px) {
/*   .lt-slide {
    /* still cover, but align top instead of center */
/*     background-position: center top;
/*     background-size: cover;
/*   }
/* }

/* ---------- Desktop (wider than 768px) ---------- */
@media (min-width: 769px) {
  .lt-hero {
    width: 100%;      /* override full-bleed */
    left: 0;
    margin-left: 0;   /* reset negative margin */
    max-width: 900px; /* constrain hero width */
    margin-right: auto;
    margin-left: auto; /* center horizontally */
    border-radius: 0;
  }

  .lt-slide-inner {
    width: 100%;        /* inside hero wrapper */
    max-width: 100%;    /* match hero width */
    padding: 0 0;       /* optional */
    justify-content: flex-end;
  }
}

@media (min-width: 769px) {
  .lt-hero-articles {
    width: 100%;      /* override full-bleed */
    left: 0;
    margin-left: 0;   /* reset negative margin */
    max-width: 900px; /* constrain hero width */
    margin-right: auto;
    margin-left: auto; /* center horizontally */
    border-radius: 0;
  }
  .lt-hero-article {
    width: 100%;      /* override full-bleed */
    left: 0;
    margin-left: 0;   /* reset negative margin */
    max-width: 900px; /* constrain hero width */
    margin-right: auto;
    margin-left: auto; /* center horizontally */
    border-radius: 0;
  }
}

/* --- Contact Section --- */
.lt-contact {
  margin-top: 2rem;
  padding: 2rem 1rem;
}

.lt-contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Profile section */
.lt-contact-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  order: 1; /* show first on mobile */
}

/* Office & socials section */
.lt-contact-left {
  order: 2; /* show second on mobile */
}

/* Remove box styling */
.lt-contact-left,
.lt-contact-right {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

/* Profile info */
.lt-profile-info {
  flex: 1;
}

.lt-contact-item {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.cv-contact-item {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.lt-contact-item a {
  color: var(--lt-accent, #0072b1);
  text-decoration: none;
}

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

/* Social icons */
.lt-social {
  display: flex;
  justify-content: center;  /* horizontally center the icons */
  align-items: center;      /* vertically center them */
  gap: 0.75rem;             /* space between icons */
  margin-top: 1rem;
  flex-wrap: wrap;          /* allows wrapping on small screens */
}

.lt-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lt-social a img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.lt-social svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.lt-social a:hover img {
  transform: scale(1.1);
}

/* --- Desktop layout --- */
@media (min-width: 768px) {
  .lt-contact-grid {
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: space-between;
  }

  .lt-contact-right,
  .lt-contact-left {
    flex: 1 1 48%;
    order: initial;
  }
}

/* Profile container */
.lt-profile-mini.large.centered {
  width: 140px;              /* larger on mobile */
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem auto; /* bottom margin for spacing with contact info */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ddd;    /* optional border */
}

/* Profile image itself */
.lt-profile-mini.large.centered img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --- Optional: make profile image even larger on mobile if desired */
@media (max-width: 767px) {
  .lt-profile-mini.large.centered {
    width: 160px;
    height: 160px;
  }
}

/* --- Desktop sizes --- */
@media (min-width: 768px) {
  .lt-profile-mini.large.centered {
    width: 120px;
    height: 120px;
  }
}

@media (min-width: 768px) {
  .lt-slogan{
    font-size: 2.2rem;
    font-weight: 500;
  }
  .lt-title {
    font-size: 2rem;
  }
}

.parsi-vakil-logo {
    height: 2em; /* Twice the text height */
    vertical-align: middle; /* Keep it centered with text */
    margin-right: 0.3em; /* Space between logo and text */
    margin: 10px;
}

.lt-contact-item.a.svg {
    width: 32px;
    height: 32px;
}



/* // Nav bar css */
/* ============================================
   Hamburger Menu inside Hero (top-left corner)
   ============================================ */
.lt-hamburger-menu {
  position: absolute;  /* inside the hero */
  top: 20px;
  left: 20px;          /* top-left corner */
  z-index: 1000;       /* above overlays */
  direction: rtl;
}

/* Hamburger Button */
.lt-hamburger-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.lt-hamburger-toggle span {
  display: block;
  height: 3px;
  background-color: #fff; /* white to contrast hero */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation: turn into X */
.lt-hamburger-menu.active .lt-hamburger-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.lt-hamburger-menu.active .lt-hamburger-toggle span:nth-child(2) {
  opacity: 0;
}
.lt-hamburger-menu.active .lt-hamburger-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Dropdown panel */
.lt-hamburger-list {
  position: absolute;
  top: 30px;
  left: 0; /* under the hamburger */
  width: 220px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 0;
  padding: 6px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Show when active */
.lt-hamburger-menu.active .lt-hamburger-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Menu links */
.lt-hamburger-list a {
  display: block;
  padding: 6px 6px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  border-radius: 3px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lt-hamburger-list a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  /* transform: translateX(3px); */
}






/* Articles CSS */
.lt-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.lt-article-content {
  margin-top: 1rem;
  text-align: justify;
}

.lt-article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.lt-article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.lt-article-card .lt-article-text {
  padding: 1rem;
}

.lt-article-single .lt-row-text {
  max-width: 800px;
  margin: auto;
}

.lt-article-single img {
  width: 100%;
  border-radius: 12px;
}

/* ----- Banner Styling (Unified with Homepage Layout) ----- */
/* Banner: constrained content area that visually matches .lt-row cards */
/* ----- Banner Styling (Unified with Homepage Layout) ----- */
/* Banner: constrained content area that visually matches .lt-row cards */
.lt-banner {
  align-items: center;     /* vertical centering */
  width: 100%;
  position: relative;
  /* no width:100% forcing full-bleed; background may look wide but content is constrained */
  background-color: var(--accent);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* border-radius: 14px; */
  /* margin: 18px 0 24px; */
  /* overflow: hidden; */
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  direction: rtl;
  font-family: Vazir, 'Vazir FD', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, serif;
  text-align: center;
  align-items: center !important;
}

/* overlay for contrast */
.lt-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(224, 179, 179, 0.1);
  z-index: 1;
}

/* This inner container constrains banner text to the same max-width as page content */
.lt-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;    /* match .lt-page-wrap max-width */
  margin: 0 auto;
  padding: 2.2rem 1rem; /* vertical + horizontal padding */
  box-sizing: border-box;
  text-align: center;
  align-items: center;
  color: #fff;
  bottom: 0;
  /* margin-bottom: 0; */
}

/* banner title & small details */
.lt-banner-title {
    text-align: center;
    z-index: 999;
    position: absolute;
    bottom: 20px;      /* adjust this value if needed */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    backdrop-filter: blur(2px);
    background: rgba(0,0,0,0.35);
    min-width: 80%;
}


/* phone/profile small block inside banner */
.lt-banner .lt-phone { margin-top: 6px; display:inline-block; }

/* Small-screen tweaks */
@media (max-width: 760px) {
  .lt-banner-inner { padding: 1.4rem 1rem; }
  .lt-banner-title { font-size: 1rem;  min-width: 80%;}
}

/* Article date */
.article-meta {
  direction: rtl;
  font-family: "Vazir", "Vazir FD", "Noto Sans", sans-serif;
  color: #777;
  font-size: 0.7rem;
  text-align: right; /* stays visually left even in RTL layout */
  margin-top: 0.3rem;   /* closer to image */
  margin-bottom: 1.2rem; /* farther from article content */
  display: block;
}

@media (max-width: 760px) {
  .article-meta {
    margin-top: 0.1rem;   /* closer to image */
    margin-bottom: 0.2rem; /* farther from article content */
  }
}

@media (min-width: 760px) {
  .article-meta {
    margin-top: 0.1rem;   /* closer to image */
    margin-bottom: 0.2rem; /* farther from article content */
    font-size: 1rem;   /* closer to image */
  }
}


/* ============================================
   Banner Logo (mirrors hamburger position)
   ============================================ */
.lt-banner-logo {
  position: absolute;
  top: 20px;          /* same vertical offset as navbar */
  right: 30px;        /* opposite side */
  z-index: 1000;      /* same stacking level */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;       /* roughly equal visual height to hamburger (22 px + gaps) */
  width: auto;
}

.lt-banner-logo img {
  height: 100%;
  width: auto;
  transition: transform 0.25s ease;
}

.lt-banner-logo img:hover {
  transform: scale(1.08);
}

/* Responsive tweak */
@media (max-width: 768px) {
  .lt-banner-logo {
    top: 18px;
    right: 18px;
    height: 32px;
  }
}


.hero-right-link {
  position: absolute;
  right: auto;
  text-align: center;
  z-index: 100;
  margin: 1rem;
}

@media (max-width: 768px) {
  .hero-right-link {
      margin: 1rem;
      font-size: 1rem;
  }

}

.hero-right-link a {
  display: inline-block;
  background: rgba(0,0,0,0.35);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
  backdrop-filter: blur(2px);
}

@media (max-width: 768px) {

  .hero-right-link a {
    font-weight: 400;
    font-size: 0.65rem;
  }

}

.hero-right-link a:hover {
  background: rgba(0,0,0,0.55);
}

a {
  color: var(--lt-accent, #0072b1);
  text-decoration: none;
}


.lt-pagination ul {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.lt-pagination li a,
.lt-pagination li span {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #ccc;
    transition: 0.3s;
}

.lt-pagination li a:hover {
    background: #333;
    color: #fff;
}

.lt-pagination .current {
    background: #333;
    color: #fff;
    font-weight: bold;
}

p a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.lt-article-content * {
  box-sizing: border-box;
}