@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Instrument+Serif:ital@0;1&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

/* ==================== GLOBAL STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a73e8;
  --secondary-color: #34a853;
  --accent-color: #fbbc04;
  --dark-bg: #202124;
  --light-bg: #f8f9fa;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --border-color: #dadce0;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: rgb(224, 235, 223);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip;
}

/* Responsive Images */
.article-media img, .article-card img, .featured-news img, .article-image, .post header img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px;
  margin-top: 10px;
  width: 100%;
  
}

/* ==================== HEADER STYLES ==================== */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #FFF5EB;
  border-radius: 0 0 10px 10px;
  border-style: 2px solid #c52a2a; 
  
}

.site-header {
  padding: 15px 0;
}

.header-logo-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px 20px 16px;
  background-color: var(--white);
  border-radius: 10px 10px 0 0;
  width: 100%;
}

.header-top {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: nowrap;
  background-color: #FFA03A;
  border-radius: 0 0 10px 10px;
  padding: 8px 16px;
  min-height: 96px;
  margin-bottom: 30px;
  
}

.site-header.nav-open .header-top {
  display: flex;
}


.header-brand {
  grid-column: 2;
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
}

.header-menu-icon {
  grid-column: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.header-menu-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.header-menu-icon:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.35);
  outline-offset: 4px;
  border-radius: 8px;
}

.header-brand .logo {
  display: inline-flex;
  justify-content: center;
}

.header-brand .logo img {
  max-height: 86px;
  height: auto;
  max-width: min(100%, 280px);
  width: auto;
  object-fit: contain;
}

/* ==================== NAVIGATION STYLES ==================== */
.main-nav {
  flex: 1;
  min-width: 0;
  position: relative;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  flex-wrap: wrap;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 12px 18px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  font-size: 16px;
  overflow-wrap: anywhere;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Dropdown Styles */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.caret {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  min-width: max-content;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--transition);
  z-index: 1100;
  margin-top: 0;
  max-width: min(80vw, 720px);
  min-height: 0;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow: visible;
}

.dropdown-menu a {
  white-space: normal;
}

.has-dropdown.show .dropdown-menu,
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown.show .caret,
.has-dropdown:hover .caret,
.has-dropdown:focus-within .caret {
  transform: rotate(180deg);
}

.dropdown-menu.align-right {
  left: 0;
}

.dropdown-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 6px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  font-weight: 400;
  border: none;
  
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background-color: var(--light-bg);
  border-bottom: none;
  color: var(--primary-color);
}

.dropdown-menu a:first-child {
  border-radius: 3px;
}

.dropdown-menu a:last-child {
  border-radius: 3px;
}

/* ==================== HEADER RIGHT SECTION ==================== */
.header-right {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 0;
  flex: 0 1 auto;
}

.header-search {
  flex: 0 1 420px;
  min-width: 0;
  width: min(420px, 100%);
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 8px 16px;
  transition: var(--transition);
}

.search-bar:focus-within {
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
  border-color: var(--primary-color);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
}

.search-bar input::placeholder {
  color: var(--text-secondary);
}

.search-bar button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  margin-left: 10px;
}

.search-bar button:hover {
  color: var(--primary-color);
}

.header-actions {
  flex-shrink: 0;
}

.btn-login {
  padding: 8px 24px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.btn-login:hover {
  background-color: #1665d0;
  box-shadow: var(--shadow);
}

/* ==================== MAIN CONTENT ==================== */
main.main-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  margin-top: 10px;
  padding: 20px 0;
  min-height: calc(100vh - 300px);
  align-items: start;
}

.featured-section {
  grid-column: 1;
  min-width: 0;
  width: 100%;
}

.featured-section > h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text-primary);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 8px;
  display: inline-block;
}

/* ==================== FEATURED NEWS ARTICLE ==================== */
.featured-news {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  transition: var(--transition);
  position: relative;
}

.featured-news:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.featured-news img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.category-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-news h3 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 12px;
  padding: 0 20px;
  line-height: 1.3;
}

.featured-news h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.featured-news h3 a:hover {
  color: var(--primary-color);
}

.featured-news .meta {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 0 20px;
  margin-bottom: 12px;
}

.featured-news .excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 0 20px 20px 20px;
  line-height: 1.6;
}

.featured-news img {
  max-height: 300px;
  object-fit: cover;
  display: block;
  margin-top: 20px;
}

.featured-section .featured-news img {
  max-height: 400px;
  height: auto;
  object-fit: cover;
  display: block;
  margin-top: 20px;
}

/* ==================== ARTICLE CARDS GRID ==================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.article-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.clickable-post {
  cursor: pointer;
}

.clickable-post:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.35);
  outline-offset: 3px;
}

/* shared img utility used throughout the site */
.article-card img,
.article-card-img {
  width: 100%;
  height: auto;          /* keep natural aspect ratio */
  max-height: 200px;     /* constrain height if needed */
  object-fit: cover;
  display: block;
  margin-top: 20px;
}

.article-card h3,
.article-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 10px;
  padding: 0 15px;
  line-height: 1.3;
}

.article-card h3 a,
.article-card h4 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.article-card h3 a:hover,
.article-card h4 a:hover {
  color: var(--primary-color);
}

.article-card .meta {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 0 15px;
  margin-bottom: 10px;
}

.article-card .excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 0 15px 15px 15px;
  flex-grow: 1;
  line-height: 1.5;
}

/* ==================== NEWS ARTICLE SECTION ==================== */
.news-article {
  margin-bottom: 40px;
}

.post {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 0;
}

.post header {
  padding: 30px;
  border-bottom: 1px solid var(--border-color);
}

.post header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--text-primary);
}

.post header h1 a,
.post header h3 a,
.post header h4 a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.post header h1 a:hover,
.post header h3 a:hover,
.post header h4 a:hover {
  color: var(--primary-color);
}

.post header img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 4px;
  margin: 20px 0;
}

.dateline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

.byline {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

.article-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.article-meta-line .dateline,
.article-meta-line .byline {
  margin-bottom: 0;
}

.post-content {
  padding: 30px;
}

.post-content p {
  margin-bottom: 18px;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.post-content2 {
  padding: 30px;
}

.post-content2 p {
  margin-bottom: 18px;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.post-content blockquote {
  border-left: 4px solid var(--primary-color);
  margin: 25px 0;
  font-size: 16px;
  font-style: italic;
  color: var(--text-secondary);
  background-color: var(--light-bg);
  padding: 20px;
  border-radius: 4px;
}

.article-quote-layout {
  display: flex;
  align-items: center; /* Vertically centers the text beside the image */
  gap: 5px; /* Adds space between image and blockquote */
  padding-right: 5px; /* Ensures a 5px margin at the end of the row */
  margin-bottom: 1.5rem;
}

.article-quote-layout .article-media {
  flex: 0 0 70%; /* Image takes 70% of the width */
  max-width: 70%; /* Ensure max-width is consistent with flex-basis */
  margin: 0;
}

.article-quote-layout .article-media-kpc-hero {
  flex: 0 0 78%;
  max-width: 78%;
  margin-left: 10px;
}

.article-quote-layout .article-media-kpc-hero img {
  max-height: 420px;
  object-fit: contain;
  padding: 0;
  border-radius: 8px;
}

.article-quote-layout .article-media-kpc-hero + blockquote {
  flex: 0 0 22%;
  max-width: 22%;
  min-width: 0;
}

.article-quote-layout blockquote {
  flex: 1; /* Quote fills the remaining space */
  margin: 0;
  border-left: 4px solid var(--primary-color);
  background-color: var(--light-bg);
  color: var(--text-secondary);
  font-size: 16px;
  font-style: italic;
  line-height: 1.7;
  padding: 20px;
  border-radius: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--border-color);
  background-color: var(--light-bg);
}

.post-footer .share {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==================== SIDEBAR ==================== */
.sidebar {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 300px;
  justify-self: end;
  align-self: start;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  min-width: 0;
  background-color: rgb(255, 255, 255);
}

.sidebar-widget {
  background-color: rgb(255, 255, 255);
  border-radius: 8px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
  color: var(--text-primary);
}

.latest-news-list,
.topic-list {
  list-style: none;
}

.latest-news-list li,
.topic-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.latest-news-list li:last-child,
.topic-list li:last-child {
  border-bottom: none;
}

.latest-news-list a,
.topic-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: var(--transition);
  flex: 1;
}

.latest-news-list a:hover,
.topic-list a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.news-time,
.topic-count {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-time {
  font-weight: 500;
}

.topic-count {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}




/* ==================== ADD POST ==================== */

section.news-article3 {
  background-color: var(--white);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 5px;
}

h1#article-title3 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
  padding: 0 5px;
  line-height: 1.3;
}

.media-side-layout {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 20px 0;
}

.article-media {
  flex: 0 0 70%;
  max-width: 100%;
  border-radius: 8px;
}


.article-quote-layout-inline {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 24px 0;
}

.article-quote-layout-inline .article-media-clurman {
  flex: 0 0 48%;
  max-width: 48%;
  margin: 0;
}

.article-quote-layout-inline .article-media-clurman img {
  max-height: 320px;
  object-fit: contain;
}

.article-quote-layout-inline blockquote {
  flex: 0 0 52%;
  max-width: 52%;
}


.media-side-layout .article-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
}


.side {
  flex: 0 0 30%;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.8;
  padding: 0 5px;
  max-width: 30%;
  overflow-wrap: anywhere;
}

.news-article4 {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 5px;
}

h1#article-title4 {
  font-size: 28px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
  padding: 0 5px;
  line-height: 1.3;
}

.news-article4 img{
  max-width: 100%;
  border-radius: 8px;

}

.news-article5 {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 5px;
} 

.news-article5 .post header {
  padding: 20px 24px;
}

.news-article5 img{
  max-width: 100%;
  border-radius: 8px;

}



/* ==================== FOOTER STYLES ==================== */
footer {
  background-color: var(--dark-bg);
  color: #94a3c2;
  padding: 20px 0 10px 0;
  margin-top: 10px;
  border-radius: 10px 10px 0 0;
}

.footer-container {
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.header-top,
.main-nav,
.header-right,
.featured-section,
.post,
.post header,
.post-content,
.post-content2,
.sidebar,
.sidebar-widget,
.featured-news,
.article-card,
.footer-grid > * {
  min-width: 0;
}

.footer-brand {
  grid-column: 1;
}

.footer-brand .logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 15px;
}

.footer-brand .logo span {
  color: var(--primary-color);
}

.footer-brand > p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #9aa0a6;
}

.footer-brand h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--white);
  text-decoration: none;
  font-size: 18px;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-newsletter h4,
.footer-contact h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--white);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #9aa0a6;
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-newsletter p {
  font-size: 13px;
  color: #9aa0a6;
  margin-bottom: 12px;
}

#newsletterForm {
  display: flex;
  gap: 5px;
}

#newsletterForm input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #5f6368;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: var(--white);
  font-size: 13px;
}

#newsletterForm input::placeholder {
  color: #9aa0a6;
}

#newsletterForm button {
  padding: 10px 18px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
}

#newsletterForm button:hover {
  background-color: #1665d0;
}

.footer-contact p {
  font-size: 13px;
  margin-bottom: 8px;
  color: #9aa0a6;
}

.footer-contact a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact .office {
  color: #9aa0a6;
}

.footer-bottom {
  border-top: 10px solid #c52a2a;
  padding-top: 10px;
  text-align: center;
  color: #f1f1f1;
  font-size: 12px;
  width: 100%;
  border-radius: 10px 10px 0 0;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }

  main.main-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "sidebar";
  }

  .featured-section {
    grid-area: main;
  }

  .sidebar {
    grid-area: sidebar;
    width: 100%;
    justify-self: stretch;
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .sidebar-widget {
    grid-column: span 1;
  }

  .header-top {
    flex-wrap: wrap;
    gap: 15px;
  }

  .nav-list {
    gap: 0;
  }

  .nav-list a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .article-quote-layout .article-media-kpc-hero {
    flex: 0 0 68%;
    max-width: 68%;
    margin-left: 0;
  }

  .article-quote-layout .article-media-kpc-hero + blockquote {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .article-quote-layout-inline .article-media-clurman {
    flex: 0 0 46%;
    max-width: 46%;
  }

  .article-quote-layout-inline blockquote {
    flex: 0 0 54%;
    max-width: 54%;
  }
}

@media (max-width: 768px) {
  header {
    position: static;
  }

  .container {
    padding: 0 14px;
  }

  main.main-content {
    gap: 16px;
    padding: 16px 0;
  }

  .header-top {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    padding: 0;
  }

  .header-brand {
    grid-column: 1;
    text-align: center;
  }

  .header-menu-icon {
    justify-content: center;
  }

  .header-logo-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 10px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .header-top {
    display: none;
  }

  .site-header.nav-open .header-top {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    white-space: normal;
  }

  .nav-list a.active,
  .nav-list a:hover {
    background-color: var(--light-bg);
    border-bottom-color: var(--primary-color);
  }

  .dropdown-menu {
    position: static;
    min-width: 100%;
    max-width: 100%;
    top: auto;
    right: auto;
    border-top: none;
    border-bottom: none;
    border-radius: 0 0 4px 4px;
    box-shadow: none;
    padding: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    overflow: visible;
  }

  .has-dropdown.show .dropdown-menu,
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
  }

  .dropdown-menu a {
    white-space: normal;
    padding: 12px 18px;
    display: block;
  }

  .header-right {
    grid-column: auto;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    min-width: 0;
    margin-top: 0;
    align-items: stretch;
  }

  .header-search {
    flex: none;
    width: 100%;
    min-width: unset;
  }

  .header-actions {
    width: 100%;
  }

  .btn-login {
    width: 100%;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .featured-news img {
    height: 250px;
  }

  .featured-section > h2 {
    font-size: 22px;
  }

  .post header h1 {
    font-size: 24px;
  }

  .post header h3,
  h1#article-title3,
  h1#article-title4 {
    font-size: 22px;
    line-height: 1.3;
  }

  .post header img {
    height: 200px;
  }

  .post-content,
  .post-content2,
  .post header {
    padding: 20px;
  }

  .article-quote-layout {
    flex-direction: column;
  }

  .article-quote-layout .article-media,
  .article-quote-layout blockquote {
    flex-basis: 100%;
    max-width: 100%;
  }

  .article-quote-layout-inline {
    flex-direction: column;
  }

  .article-quote-layout-inline .article-media-clurman,
  .article-quote-layout-inline blockquote {
    flex-basis: 100%;
    max-width: 100%;
  }

  .article-quote-layout .article-media-kpc-hero {
    margin-left: 0;
  }

  .media-side-layout {
    flex-direction: column;
  }

  .article-media {
    flex-basis: 100%;
    max-width: 100%;
  }

  .media-side-layout .article-image,
  .media-side-layout img {
    max-width: 100%;
  }

  .side {
    flex-basis: 100%;
    max-width: 100%;
  }

  .sidebar {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .latest-news-list li,
  .topic-list li {
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  #newsletterForm {
    flex-direction: column;
  }

  #newsletterForm input,
  #newsletterForm button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 12px;
  }

  .site-header {
    padding: 10px 0;
  }

  .header-brand .logo img {
    max-height: 70px;
  }

  .search-bar {
    padding: 7px 12px;
  }

  .featured-news img {
    height: 210px;
  }

  .featured-news h3 {
    font-size: 20px;
    padding: 0 16px;
    overflow-wrap: anywhere;
  }

  .featured-news .meta,
  .featured-news .excerpt {
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-grid {
    gap: 18px;
  }

  .article-card h3 {
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .post header,
  .post-content,
  .post-content2,
  .post-footer,
  .news-article5 .post header {
    padding: 16px;
  }

  .post header h1,
  .post header h3,
  h1#article-title3,
  h1#article-title4 {
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .post-content p,
  .post-content2 p,
  .article-quote-layout blockquote,
  .post-content blockquote,
  .side {
    font-size: 15px;
    line-height: 1.7;
  }

  .article-quote-layout-inline .article-media-clurman img,
  .article-quote-layout .article-media-kpc-hero img,
  .post header img {
    max-height: none;
    height: auto;
  }

  .widget-title {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .social-icons {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header-brand .logo img {
    max-height: 64px;
  }

  .featured-section > h2 {
    font-size: 20px;
  }

  .featured-news h3 {
    font-size: 18px;
  }

  .article-card h3 {
    font-size: 16px;
  }

  .post header h1 {
    font-size: 20px;
  }

  .post header h3,
  .post header h4,
  .widget-title {
    overflow-wrap: anywhere;
  }

  .post-content p,
  .post-content2 p {
    font-size: 15px;
  }

  .sidebar-widget {
    padding: 15px;
  }

  .widget-title {
    font-size: 16px;
  }

  main.main-content {
    padding: 20px 0;
  }

  .footer-grid {
    gap: 25px;
  }
}

/* ==================== UTILITY CLASSES ==================== */
a {
  transition: var(--transition);
}

button {
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

/* ======= login modal ======= */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.login-modal.show {
  visibility: visible;
  opacity: 1;
}

.login-modal .modal-content {
  position: relative;
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: var(--shadow);
}

.login-modal .modal-content h2 {
  margin-top: 0;
}

.login-modal .modal-content label {
  display: block;
  margin: 12px 0 4px;
  font-size: 14px;
}

.login-modal .modal-content input {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-modal .modal-content .btn-login {
  width: 100%;
  padding: 10px;
}

.login-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

.login-modal.mobile .modal-content {
  width: 90%;
  padding: 15px 20px;
}
