/*
Theme Name: AK Lasbela LG
Theme URI: https://aklasbelalg.com
Author: AK Lasbela LG
Description: AK Lasbela LG - GeneratePress Style Theme with Between Posts Banner
Version: 5.0
License: GNU General Public License v2 or later
Text Domain: ak-lasbela-lg
Tags: blog, news, clean, white, sidebar
*/

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }

body {
  background: #f5f5f5;
  color: #3a3a3a;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a { color: #1565c0; text-decoration: none; }
a:hover { color: #0d47a1; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== TOP BAR ===== */
.top-bar {
  background: #222;
  color: #aaa;
  font-size: 12px;
  padding: 5px 0;
  text-align: center;
  letter-spacing: 0.5px;
}

.top-bar a { color: #ccc; }
.top-bar a:hover { color: #fff; }

/* ===== HEADER ===== */
#masthead {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-inside {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-branding:hover { text-decoration: none; }

.custom-logo { width: 80px !important; height: 80px !important; object-fit: cover; border-radius: 6px; }

.logo-default {
  width: 80px; height: 80px;
  background: #1565c0;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700; flex-shrink: 0;
}

.site-name { font-size: 22px; font-weight: 700; color: #222; display: block; }
.site-tagline { font-size: 12px; color: #888; }

/* Header search (optional) */
.header-search input[type="search"] {
  border: 1px solid #ddd; border-radius: 20px;
  padding: 7px 14px; font-size: 13px; outline: none; width: 200px;
}
.header-search input[type="search"]:focus { border-color: #1565c0; }

/* ===== NAVIGATION ===== */
#site-navigation {
  background: #222;
  border-bottom: 3px solid #000;
}

.nav-inside {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hamburger button */
.nav-toggle-wrap {
  display: none;
  width: 100%;
  text-align: center;
  padding: 6px 15px;
  background: #222;
}

.nav-toggle {
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 25px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 2px;
  width: 95%;
}

/* Nav UL - desktop horizontal */
#site-navigation ul {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

#site-navigation ul li a {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

#site-navigation ul li a:hover,
#site-navigation ul li.current-menu-item > a {
  background: rgba(255,255,255,0.12);
  border-bottom-color: #fff;
  text-decoration: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-toggle-wrap { display: block; }

  /* UL hidden on mobile - JS controls display */
  #site-navigation ul {
    display: none !important;
    flex-direction: column !important;
    width: 100% !important;
    background: #111;
  }

  #site-navigation ul li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  #site-navigation ul li:last-child {
    border-bottom: none;
  }

  #site-navigation ul li a {
    padding: 13px 20px;
    font-size: 14px;
    border-bottom: none !important;
    display: block;
    width: 100%;
  }
}

/* ===== LAYOUT - Full width, no sidebar ===== */
.site-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
}

/* ===== SECTION TITLE ===== */
.section-heading {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #1565c0;
  padding: 7px 14px;
  margin-bottom: 15px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== POST CARD ===== */
article.post-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.post-card-thumb img {
  width: 100%; max-height: 320px; object-fit: cover;
}

.post-card-body { padding: 15px 18px; }

.post-card-cat a {
  display: inline-block;
  background: #e3f2fd; color: #1565c0;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 2px;
  margin-bottom: 7px; text-decoration: none;
}

.post-card-title {
  font-size: 18px; font-weight: 700;
  margin-bottom: 5px; line-height: 1.3;
}

.post-card-title a { color: #1a1a1a; }
.post-card-title a:hover { color: #1565c0; text-decoration: none; }

.post-card-meta {
  font-size: 12px; color: #999;
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.post-card-meta a { color: #999; }

.post-card-content {
  font-size: 14px; color: #444;
  line-height: 1.8; margin-bottom: 12px;
}

.post-card-content p { margin-bottom: 8px; }
.post-card-content img { max-width: 100%; border-radius: 4px; margin: 8px auto; }
.post-card-content strong { color: #222; }
.post-card-content a { color: #1565c0; }

/* Visit link */
.visit-link-box {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #1565c0;
  border-radius: 3px;
  padding: 9px 13px;
  margin: 10px 0 0;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px;
}

.visit-link-box .label { color: #666; font-weight: 600; }
.visit-link-box a { color: #1565c0; font-weight: 700; }

.post-updated { font-size: 11px; color: #bbb; margin-top: 6px; }

/* ===== BETWEEN POSTS BANNER ===== */
.between-posts-banner {
  margin: 5px 0 18px;
  text-align: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.between-posts-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.between-posts-banner.size-small img { max-height: 120px; }
.between-posts-banner.size-medium img { max-height: 200px; }
.between-posts-banner.size-large img { max-height: 320px; }
.between-posts-banner.size-full img { max-height: none; }

/* ===== PAGINATION ===== */
.pagination-wrap {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 5px; margin: 15px 0 25px;
}

.pagination-wrap .page-numbers {
  background: #fff; border: 1px solid #ddd; color: #555;
  padding: 6px 12px; border-radius: 3px; font-size: 13px; font-weight: 600; transition: all 0.2s;
}

.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
  background: #1565c0; border-color: #1565c0; color: #fff; text-decoration: none;
}

/* ===== SIDEBAR ===== */
.sidebar-area .widget {
  background: #fff; border: 1px solid #e0e0e0;
  border-radius: 4px; margin-bottom: 18px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sidebar-area .widget-title {
  background: #1565c0; color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 8px 14px; text-transform: uppercase; letter-spacing: 1px;
}

.sidebar-area .widget-body { padding: 12px 14px; }

.sidebar-area .widget ul li {
  padding: 6px 0; border-bottom: 1px solid #f5f5f5; font-size: 13px;
}

.sidebar-area .widget ul li:last-child { border: none; }
.sidebar-area .widget ul li a { color: #333; }
.sidebar-area .widget ul li a:hover { color: #1565c0; }

/* Calendar */
.widget_calendar table { width: 100%; border-collapse: collapse; font-size: 12px; }
.widget_calendar caption { font-weight: 700; font-size: 13px; color: #333; margin-bottom: 6px; text-align: center; }
.widget_calendar th { text-align: center; color: #999; padding: 4px 2px; font-weight: 600; }
.widget_calendar td { text-align: center; padding: 3px 2px; color: #555; }
.widget_calendar td a { color: #fff; background: #1565c0; border-radius: 3px; display: block; padding: 1px 4px; font-weight: 700; text-decoration: none; }
.widget_calendar td#today { background: #e3f2fd; color: #1565c0; font-weight: 700; border-radius: 3px; }

/* ===== SINGLE POST ===== */
.single-wrap {
  background: #fff; border: 1px solid #e0e0e0;
  border-radius: 4px; padding: 22px; margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.single-wrap .post-cat a {
  display: inline-block; background: #e3f2fd; color: #1565c0;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 2px; margin-bottom: 8px; text-decoration: none;
}

.single-wrap .entry-title { font-size: 24px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; line-height: 1.2; }
.single-wrap .entry-meta { font-size: 12px; color: #999; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; display: flex; gap: 15px; flex-wrap: wrap; }
.single-wrap .entry-meta a { color: #999; }
.single-wrap .entry-content { font-size: 15px; color: #3a3a3a; line-height: 1.8; }
.single-wrap .entry-content p { margin-bottom: 14px; }
.single-wrap .entry-content img { max-width: 100%; border-radius: 4px; margin: 12px 0; }
.single-wrap .entry-content h2, .single-wrap .entry-content h3 { color: #1a1a1a; margin: 20px 0 10px; }

.post-nav { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0f0f0; gap: 10px; flex-wrap: wrap; font-size: 13px; }

/* ===== FOOTER ===== */
#colophon {
  background: #222; color: #aaa;
  padding: 25px 20px 15px; margin-top: 10px; text-align: center;
}

.footer-logo { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 5px; letter-spacing: 1px; }
.footer-desc { font-size: 12px; color: #666; margin-bottom: 15px; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { color: #aaa; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links a:hover { color: #fff; }
.site-info { font-size: 11px; color: #555; border-top: 1px solid #333; padding-top: 10px; }
.site-info a { color: #1565c0; }
