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

body {
  font-family: 'Open Sans', sans-serif;
  color: #1d1d1d;
  line-height: 1.6;
  background: #fff;
}

a { color: #0367bf; text-decoration: none; }
a:hover { color: #024a8a; text-decoration: underline; }

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

.container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img { max-width: 180px; }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #1d1d1d;
  letter-spacing: 0.5px;
  padding: 8px 0;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active { color: #0367bf; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1d1d1d;
}

/* ===== Hero Slider ===== */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1a1a2e;
}

.hero-slider .slides {
  display: flex;
  transition: transform 0.5s ease;
}

.hero-slider .slide {
  min-width: 100%;
  position: relative;
  height: 400px;
  background-size: 50% auto;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

.hero-slider .slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.hero-slider .slide-overlay h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  max-width: 700px;
}

.hero-slider .slide-overlay .btn {
  display: inline-block;
  padding: 10px 28px;
  background: #0367bf;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.2s;
}

.hero-slider .slide-overlay .btn:hover {
  background: #024a8a;
  text-decoration: none;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 12px 16px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.slider-arrow:hover { background: rgba(0,0,0,0.7); }
.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.slider-dots .dot.active { background: #fff; }

/* ===== Page Title ===== */
.page-title {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.page-title h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1d1d1d;
}

/* ===== Content Layout ===== */
.content-wrap {
  display: flex;
  gap: 30px;
  padding: 40px 0;
}

.main-content { flex: 1; min-width: 0; }

.sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* ===== Article Grid (Homepage) ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.article-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.article-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.article-card .card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card .card-body { padding: 18px; }

.article-card .card-meta {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}

.article-card h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.article-card h3 a { color: #1d1d1d; }
.article-card h3 a:hover { color: #0367bf; }

.article-card .card-excerpt {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.article-card .read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}

/* ===== Single Article ===== */
.article-single { max-width: 100%; }

.article-single .article-meta {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

.article-single .featured-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 24px;
}

.article-single h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-single h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: #1d1d1d;
}

.article-single h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 10px;
}

.article-single p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}

.article-single ul, .article-single ol {
  margin: 16px 0;
  padding-left: 28px;
}

.article-single li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
}

.article-single blockquote {
  border-left: 4px solid #0367bf;
  padding: 16px 20px;
  margin: 20px 0;
  background: #f8f9fa;
  font-style: italic;
  color: #333;
}

.article-single strong { font-weight: 700; }

/* ===== Article Navigation ===== */
.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding: 12px 0;
  margin: 16px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
}

.article-nav a {
  font-weight: 600;
  color: #0367bf;
  text-decoration: none;
  transition: color 0.2s;
}

.article-nav a:hover { color: #024a8a; }

.article-nav .nav-prev {
  display: block;
  text-align: left;
}

.article-nav .nav-next {
  display: block;
  text-align: right;
  margin-left: auto;
}

.article-nav .nav-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #6c757d;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* ===== Sidebar ===== */
.sidebar-widget {
  margin-bottom: 24px;
}

.sidebar-widget img {
  width: 100%;
  border-radius: 4px;
}

.sidebar-widget a { display: block; }

/* ===== About / Contact Pages ===== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-content h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-content h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 28px 0 12px;
}

.page-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}

.page-content blockquote {
  border-left: 4px solid #0367bf;
  padding: 16px 20px;
  margin: 20px 0;
  background: #f8f9fa;
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
}

.contact-info {
  background: #f8f9fa;
  padding: 28px;
  border-radius: 6px;
  margin: 24px 0;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 16px;
}

.contact-info strong { color: #0367bf; }

/* ===== Footer ===== */
.site-footer {
  background: #476c98;
  color: #c8d6e5;
  padding: 36px 0 20px;
  margin-top: 40px;
}

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

.footer-links ul {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #c8d6e5;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: #c8d6e5;
  font-size: 18px;
  transition: color 0.2s;
}

.footer-social a:hover { color: #fff; text-decoration: none; }

.footer-copy {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  color: #a0b4c8;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .content-wrap {
    flex-direction: column;
  }

  .sidebar { width: 100%; }

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

@media (max-width: 700px) {
  .nav-toggle { display: block; }

  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 20px;
    gap: 12px;
  }

  .main-nav.open ul { display: flex; }

  .hero-slider .slide img { height: 220px; }

  .hero-slider .slide-overlay h2 { font-size: 20px; }

  .page-title h1 { font-size: 28px; }

  .article-single h1 { font-size: 26px; }
}
