/* ============================
   MAHDAVIAT PORTAL - STYLES
   RTL | Farsi | Islamic Theme
   ============================ */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn[wght].woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

:root {
  --primary:      #1a5276;   /* Deep Islamic Blue */
  --primary-dark: #154360;
  --primary-light:#2980b9;
  --accent:       #b7950b;   /* Gold */
  --accent-light: #d4ac0d;
  --green:        #1e8449;
  --bg:           #f4f6f8;
  --bg-card:      #ffffff;
  --text:         #1a202c;
  --text-muted:   #6b7280;
  --border:       #dde1e7;
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.13);
  --radius:       8px;
  --radius-sm:    4px;
  --transition:   0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  direction: rtl;
  text-align: right;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
select { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =================== TOP BAR =================== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--accent);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-bar-date { color: var(--accent-light); font-weight: 600; }
.separator { margin: 0 8px; opacity: 0.4; }
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

 .top-bar-left-media678{display: flex; gap:16px;};
.top-link {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  font-size: 0.78rem;
}
.top-link:hover { color: var(--accent-light); }
.social-icons { display: flex; gap: 8px; }
.social-icons a {
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  transition: color var(--transition);
  width: 15px;
}
.social-icons a:hover { color: var(--accent-light); }

/* =================== HEADER =================== */
.header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 18px 0;
  position: relative;
  overflow: hidden;
}
.header::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.header::after {
  content: '';
  position: absolute;
  bottom: -60px; right: 10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-circle {
  width: 80px;
    height: 80px;
    border-radius: 50%;
    background-image: url(../img/logo/logo.jpg);
    background-size: cover;      /* کل باکس را پوشش می‌دهد */
    background-position: center; /* وسط تصویر را نمایش می‌دهد */
    background-repeat: no-repeat; /* تکرار نمی‌شود */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);

}
.logo-text-ar {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.site-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.site-subtitle {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-top: 3px;
}
.header-search {
  display: flex;
  gap: 0;
  max-width: 320px;
  flex: 1;
  direction: ltr;
}
.search-input {
  flex: 1;
  padding: 9px 14px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  background: rgba(255,255,255,0.95);
  direction: rtl;
}
.search-btn {
  padding: 9px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--accent-light); }

/* =================== MAIN NAV =================== */
.main-nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-list {
  display: flex;
  align-items: stretch;
}
.nav-item {
  position: relative;
}
.nav-item a {
  display: block;
  padding: 14px 16px;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-item:hover > a,
.nav-item.active > a {
  background: var(--primary-dark);
  color: var(--accent-light);
}
.nav-item.active > a {
  border-bottom: 3px solid var(--accent);
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-card);
  min-width: 200px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-hover);
  border-top: 3px solid var(--accent);
  z-index: 200;
}
.dropdown li a {
  color: var(--text);
  padding: 10px 16px;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border);
  display: block;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover {
  background: var(--bg);
  color: var(--primary);
  padding-right: 22px;
}
.has-dropdown:hover .dropdown { display: block; }
.nav-hamburger {
  display: none;
  color: #fff;
  font-size: 1.4rem;
  padding: 12px 16px;
  cursor: pointer;
}

/* =================== MAIN LAYOUT =================== */
.main-content { padding: 24px 0 40px; }
.main-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
.content-right { min-width: 0; }

/* =================== HERO SLIDER =================== */
.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.slider-wrapper { position: relative; height: 340px; }
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-size: cover;
  background-position: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-1 { 
  background:url(../img/news/sorudeSoleymani.jpg); 
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}
.slide-2 {
  background:url(../img/news/kelasTaghviati.jpg); 
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom; 
}

.slide-3 { 
  background:url(../img/news/shabakeSazi.jpg); 
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; 
 }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
.slide-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  color: #fff;
  width: 100%;
}
.slide-category {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.slide-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.slide-excerpt {
  font-size: 0.88rem;
  opacity: 0.88;
  margin-bottom: 14px;
}
.slide-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background var(--transition);
}
.slide-btn:hover { background: var(--accent-light); }
.slider-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.slider-btn {
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.slider-btn:hover { background: rgba(255,255,255,0.5); }
.slider-dots { display: flex; gap: 6px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
}
.dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* =================== NEWS TICKER =================== */
.news-ticker {
  background: var(--primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 38px;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
}
.ticker-label {
  background: var(--accent);
  color: #fff;
  padding: 0 16px;
  font-size: 0.8rem;
  font-weight: 700;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}
.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  font-size: 0.84rem;
  height: 100%;
  animation: ticker-rtl 40s linear infinite;
}
.ticker-content span:nth-child(even) { color: var(--accent-light); font-size: 0.5rem; }
@keyframes ticker-rtl {
  0%   { transform: translateX(-35%); }
  100% { transform: translateX(100%); }
}

/* =================== SECTIONS =================== */
.section { margin-bottom: 36px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  position: relative;
}
.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
}
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-icon { font-size: 1.1rem; }
.see-all {
  color: var(--primary-light);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color var(--transition);
}
.see-all:hover { color: var(--accent); }

/* =================== NEWS GRID =================== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.news-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.news-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* مودال ویدیو */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: auto;
}

/* این کلید اصلی حل مشکل هست */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* نسبت 16:9 استاندارد */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* مهم: کل ویدیو بدون بریدگی نشون داده بشه */
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 35px;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: rgba(255,0,0,0.7);
  transform: scale(1.1);
}

/* برای موبایل */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
  }
  
  .close-modal {
    top: -35px;
    font-size: 28px;
    width: 30px;
    height: 30px;
  }
}

/* اضافه کردن دکمه تمام صفحه */
.video-controls-extra {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  gap: 10px;
}

.fullscreen-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.fullscreen-btn:hover {
  background: rgba(255,255,255,0.4);
}

.news-card.featured .news-card-img { height: auto; min-height: 190px; }
.bg-news-1 { background: url(../img/news/DoreTabestun.jpg); background-size: 100% 100%; background-position: center; }
.bg-news-2 { background: url(../img/news/naghale01.jpg); background-size: 100% 100%; background-position: center; }
.bg-news-3 { background: url(../img/news/barnameAsreJome01.jpg); background-size: 100% 100%; background-position: center; }
.bg-news-4 { background: url(../img/news/meduneKhamenei01.jpg); background-size: 100% 100%; background-position: center; }
.bg-news-5 { background: url(../img/news/maarefeMahdaviat01.jpg); background-size: 100% 100%; background-position: center; }
.bg-news-6 { background: url(../img/news/didarShahidZavare01.jpg); background-size: cover; background-position: center; }
.news-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.news-card-body { padding: 14px; }
.news-cat {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.news-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card.featured .news-title {
  font-size: 1.1rem;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.news-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.read-more {
  color: var(--primary-light);
  font-weight: 600;
  transition: color var(--transition);
}
.read-more:hover { color: var(--accent); }

/* =================== ARTICLES LIST =================== */
.articles-list { display: flex; flex-direction: column; gap: 0; }
.article-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.article-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.article-item:last-child { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
.article-item:hover { background: #f0f4f8; }
.article-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.article-body { flex: 1; }
.article-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.4;
}
.article-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.article-author { color: var(--primary-light); font-weight: 600; }
.article-link {
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background var(--transition);
}
.article-link:hover { background: var(--accent); }

/* =================== MEDIA GRID =================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.media-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.media-card:hover { transform: translateY(-3px); }
.media-thumb {
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-thumb-1 { background:url("../video/sorud/SorudeShamimeReza.jpg"); background-size: 100% 100%; background-position: center;}
.media-thumb-2 { background:url("../video/sorud/PanahFilm.jpg"); background-size: 100% 100%; background-position: center;}
.media-thumb-3 { background:url("../video/sorud/amuzesheAslahe.jpg"); background-size: 100% 100%; background-position: center;}
.media-thumb-4 { background:url("../video/sorud/KafanNevisi.jpg"); background-size: 100% 100%; background-position: center;}
.play-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
  backdrop-filter: blur(4px);
}
.media-type-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 700;
}
.media-info { padding: 10px; }
.media-info h4 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-duration { font-size: 0.72rem; color: var(--text-muted); }

/* =================== SIDEBAR =================== */
.sidebar { position: sticky; top: 56px; display: flex; flex-direction: column; gap: 16px; }
.widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.widget-header {
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}
.quick-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.quick-links li:last-child a { border-bottom: none; }
.quick-links li a:hover {
  background: var(--bg);
  color: var(--primary);
  padding-right: 22px;
}
.ql-icon { font-size: 0.95rem; }
.province-selector { padding: 14px; }
.province-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text);
  background: #fff;
  margin-bottom: 10px;
  outline: none;
  direction: rtl;
}
.province-btn {
  width: 100%;
  padding: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background var(--transition);
}
.province-btn:hover { background: var(--accent); }
.social-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.social-btn {
  display: flex;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  transition: opacity var(--transition);
  justify-content: center;
  align-items: center;
  flex-direction: row;
}
.social-btn:hover { opacity: 0.85; }
.instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.soroush     { background: #0099cc; } 
.bale   { background: #00a651; } 
.eitaa      { background: #f7941d; } 
.aparat    { background: #cc0000; }
.rubika    { background: #860380; }

.imgSocial{
  width:20px; 
  height:20px; 
  margin-right:10px;
}

.related-sites li a {
  display: block;
  padding: 9px 16px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}
.related-sites li a::before {
  content: '›';
  position: absolute;
  right: 16px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  top: 50%;
  transform: translateY(-50%);
  transition: right var(--transition);
}
.related-sites li a { padding-right: 28px; }
.related-sites li:last-child a { border-bottom: none; }
.related-sites li a:hover {
  background: var(--bg);
  color: var(--primary);
  padding-right: 34px;
}
.stats-widget .widget-header { background: var(--primary-dark); }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.stat-item {
  padding: 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.stat-item:nth-child(odd) { border-left: none; }
.stat-item:nth-last-child(-n+2) { border-bottom: none; }
.stat-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  direction: ltr;
}
.stat-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =================== FOOTER =================== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); margin-top: 20px; }
.footer-top { padding: 36px 0 28px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-logo-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: url("../img/logo/logo.jpg");
  background-size: contain;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.footer-logo strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.footer-logo small {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
}
.footer-desc {
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}
.footer-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-contact p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.fs-link {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 0.75rem;
  transition: background var(--transition);
}
.fs-link:hover { background: var(--accent); color: #fff; }
.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 14px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 8px;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .main-grid { grid-template-columns: 1fr 240px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container{padding: 0 2px;}
  .main-content{padding: 3px 0 0px;}
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .news-card.featured { grid-column: 1; display: block; }
  .news-card.featured .news-card-img { height: 160px; }
  .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; right: 0; left: 0; background: var(--primary); z-index: 200; padding: 8px 0; }
  .nav-list.open { display: flex; }
  .nav-hamburger { display: flex; padding-right: 28px;}
  .dropdown { position: static; box-shadow: none; border: none; background: rgba(0,0,0,0.15); }
  .dropdown li a { color: rgba(255,255,255,0.8); padding-right: 28px; }
  .header-inner { flex-direction: column; align-items: center; gap: 12px; }
  .header-search { max-width: 100%; width: 88%; }
  .logo-area {flex-direction: column; justify-content: space-between; align-items: center; }
  .logo-text{ display: flex; flex-direction: column; align-items: center; gap: 12px;}
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slide-title { font-size: 1.1rem; }
  .top-bar-right { display: flex; align-items: center; justify-content: center; width: 100%; }
  .top-bar-left{display: flex; align-items: center; justify-content: center; width: 100%; flex-direction: column;}
  .top-bar-left-media678{display: flex; gap:16px;}
  .logo-circle{width: 100px; height: 100px; margin-top: 10px;}
  .slide-excerpt{display : none;}
}

@media (max-width: 520px) {
  .news-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
