/* /assets/css/public.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #4f46e5;
  --primary-d: #3730a3;
  --accent:    #06b6d4;
  --bg:        #f8fafc;
  --card-bg:   #ffffff;
  --text:      #1e293b;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.08);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); }

/* ===== SITE HEADER ===== */
.site-header-wrap {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  width: 100%;
}
.site-header-wrap > * {
  width: 100%;
  display: flex;
  align-items: center;
}
.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-brand img {
  max-height: 50px;
  width: auto;
  margin: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  transition: all .2s ease;
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(15, 23, 42, 0.05);
  color: var(--primary);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(6, 182, 212, 0.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(6, 182, 212, 0.24);
}
.site-header-wrap a {
  display: inline-block;
  white-space: nowrap;
}
.mobile-menu-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  z-index: 200;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
@media (max-width: 992px) {
  .site-header {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .site-brand {
    flex: 0 0 auto;
    min-width: 0;
  }
  .site-brand img {
    max-height: 44px;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 2;
    margin-left: auto;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    order: 3;
  }
  .site-header-wrap.mobile-open .site-nav {
    display: flex;
  }
  .site-nav a {
    padding: 0.95rem 1rem;
    width: 100%;
    text-align: center;
    border-radius: 12px;
  }
  .header-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0;
  }
  .site-header-wrap {
    padding: 0 1rem;
  }
}


/* ===== MAIN ===== */
.main-content { min-height: 80vh; }

/* ===== FOOTER ===== */
.site-footer-wrap {
  background: #0f172a;
  color: #dbeafe;
  margin-top: 4rem;
  padding: 3rem 0;
}
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.site-footer-columns {
  display: grid;
  gap: 2rem;
  align-items: start;
  justify-items: stretch;
  grid-auto-rows: minmax(0, auto);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  width: 100%;
}
.site-footer-column {
  min-height: 1px;
  min-width: 0;
  line-height: 1.8;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-wrap: break-word;
  word-break: break-word;
}
.site-footer-column > * {
  margin-top: 0;
}
.site-footer-column img {
  display: block;
  margin: 0 0 1rem;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.site-footer-column h1,
.site-footer-column h2,
.site-footer-column h3,
.site-footer-column h4,
.site-footer-column h5,
.site-footer-column h6 {
  color: #f8fafc;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.site-footer-column p,
.site-footer-column li {
  margin: 0 0 1rem;
}
.site-footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.site-footer-column a {
  color: #bfdbfe;
  text-decoration: none;
}
.site-footer-column a:hover {
  color: #ffffff;
}
.site-footer-wrap > div {
  width: 100%;
  display: block;
  padding: 0;
  background: transparent;
  color: inherit;
}
.site-footer-wrap img {
  max-height: 70px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}
.site-footer-wrap a {
  color: #bfdbfe;
}
@media (max-width: 960px) {
  .site-footer {
    padding: 0 1rem;
  }
  .site-footer-wrap {
    padding: 3rem 1rem;
  }
  .site-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .site-footer {
    padding: 0 0.75rem;
  }
  .site-footer-wrap {
    padding: 2rem 0.75rem;
  }
  .site-footer-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
.site-header-wrap a:hover {
  color: #cbd5e1;
}

/* ===== MAIN NAVIGATION ===== */
.main-nav {
  background: #fff;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 99;
}

.main-nav__list {
  list-style: none;
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-nav__item {
  margin: 0;
}

.main-nav__link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.main-nav__link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.main-nav__link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ===== HERO =====*/
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff; text-align: center; padding: 5rem 1.5rem;
}
.hero h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; }
.hero p  { font-size: 1.1rem; opacity: .85; margin-top: .75rem; }

/* ===== BLOG GRID ===== */
.blog-section { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }
.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 2rem; position: relative; }
.section-title::after {
  content: ''; display: block; width: 48px; height: 4px;
  background: var(--primary); border-radius: 2px; margin-top: .4rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.13); }

.blog-card__thumb { width: 100%; height: 200px; object-fit: cover; }
.blog-card__thumb-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--primary);
}
.blog-card__body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__date { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.blog-card__title { font-size: 1.1rem; font-weight: 700; line-height: 1.4; margin-bottom: .75rem; flex: 1; }
.blog-card__title a { color: var(--text); }
.blog-card__title a:hover { color: var(--primary); }
.blog-card__excerpt { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.blog-card__link {
  display: inline-block; padding: .45rem 1rem;
  background: var(--primary); color: #fff; border-radius: 6px;
  font-size: .875rem; font-weight: 600; transition: background .2s;
}
.blog-card__link:hover { background: var(--primary-d); color: #fff; }

/* ===== LOAD MORE ===== */
.load-more-wrap { text-align: center; margin-top: 2.5rem; }
.btn-load-more {
  padding: .75rem 2.5rem; background: transparent;
  border: 2px solid var(--primary); color: var(--primary);
  border-radius: 8px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.btn-load-more:hover { background: var(--primary); color: #fff; }
.btn-load-more:disabled { opacity: .5; cursor: not-allowed; }

/* ===== SINGLE BLOG PAGE ===== */
.blog-single { max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem; }
.blog-single__thumb { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; max-height: 420px; object-fit: cover; }
.blog-single__meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; color: var(--muted); font-size: .9rem; }
.blog-single__title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 1.5rem; line-height: 1.3; }
.blog-single__content { font-size: 1.05rem; line-height: 1.85; }
.blog-single__content h2, .blog-single__content h3 { margin: 1.5rem 0 .75rem; }
.blog-single__content p  { margin-bottom: 1rem; }
.blog-single__content img { max-width: 100%; border-radius: 8px; }
.blog-single__content ul, .blog-single__content ol { padding-left: 1.5rem; margin-bottom: 1rem; }

.doc-download {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 2rem; padding: .65rem 1.4rem;
  background: var(--accent); color: #fff; border-radius: 8px;
  font-weight: 600; transition: opacity .2s;
}
.doc-download:hover { opacity: .85; color: #fff; }

/* ===== NOTIFICATIONS ===== */
.notification {
  position: fixed; top: 1.25rem; right: 1.25rem; z-index: 9999;
  padding: 1rem 1.5rem; border-radius: 10px; font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,.15); animation: slideIn .3s ease;
  max-width: 340px;
}
.notification.success { background: #22c55e; color: #fff; }
.notification.error   { background: #ef4444; color: #fff; }
.notification.info    { background: var(--primary); color: #fff; }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1rem; }
}

/* ===== GALLERY PAGE ===== */

/* Gallery Header Section */
.gallery-header-section {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}
.gallery-header-section > * {
  max-width: 1200px;
  margin: 0 auto;
}

/* Gallery Footer Section */
.gallery-footer-section {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}
.gallery-footer-section > * {
  max-width: 1200px;
  margin: 0 auto;
}

/* Gallery Page Container */
.gallery-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.gallery-title {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-title h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.gallery-title p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Gallery page styles moved to assets/css/gallery.css */
