/*
Theme Name: Anjoman Zaban
Theme URI: https://example.com
Author: Kazem
Description: قالب اختصاصی سایت انجمن علمی دانشکده زبان - محور اخبار و رویدادها
Version: 0.2
Text Domain: anjoman-zaban
*/

:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --accent: #f59e0b;
  --bg: #f7f7f5;
  --card-bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b68;
  --border: #e5e5e0;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; }

body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative;
}
.site-title { font-size: 18px; font-weight: 700; }
.site-title img { max-height: 44px; }

.main-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: 14px; color: var(--text-secondary); transition: color .15s; }
.main-nav a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: .2s;
}

/* ===== Hero / Banner ===== */
.hero-banner {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin: 28px 0;
}
.hero-banner .label { font-size: 12px; color: var(--primary-dark); font-weight: 600; margin-bottom: 6px; letter-spacing: .3px; }
.hero-banner h2 { margin: 0 0 10px; font-size: 24px; }
.hero-banner p { color: var(--text-secondary); margin: 0 0 16px; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: scale(.98); }

/* ===== Sections ===== */
.section-title {
  font-size: 19px;
  font-weight: 700;
  margin: 40px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 4px;
}

/* ===== News grid ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.news-card .date { font-size: 12px; color: var(--text-secondary); margin-top: 10px; }
.news-card h3 { font-size: 15px; margin: 8px 0 4px; line-height: 1.6; }

/* ===== Events list ===== */
.events-list { display: flex; flex-direction: column; gap: 10px; }
.event-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: box-shadow .15s;
}
.event-row:hover { box-shadow: var(--shadow); }
.event-date-badge {
  background: var(--bg);
  border-radius: 8px;
  text-align: center;
  min-width: 56px;
  padding: 8px 10px;
  flex-shrink: 0;
}
.event-date-badge .day { font-size: 18px; font-weight: 700; display: block; color: var(--primary); }
.event-date-badge .month { font-size: 11px; color: var(--text-secondary); }
.event-row .title { font-weight: 600; font-size: 14px; }
.event-row .place { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }

/* ===== Teachers ===== */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.teacher-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.teacher-card img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
}
.teacher-card h3 { font-size: 15px; margin: 0 0 4px; }
.teacher-card .position { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.teacher-card .hours { font-size: 12px; color: var(--text-secondary); }

/* ===== Newsletter ===== */
.newsletter-section {
  background: var(--primary-dark);
  color: #fff;
  padding: 40px 0;
  margin-top: 48px;
  text-align: center;
}
.newsletter-section h3 { margin: 0 0 6px; font-size: 20px; }
.newsletter-section p { margin: 0 0 18px; opacity: .85; font-size: 14px; }
.az-newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.az-newsletter-form input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 14px;
}
.az-newsletter-form button {
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.az-newsletter-msg { margin-top: 10px; font-size: 13px; }

/* ===== Footer ===== */
.site-footer {
  background: #14161a;
  color: #b8bac0;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 40px 20px;
}
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #262832;
  padding: 16px 20px;
  text-align: center;
  font-size: 12px;
}

/* ===== Page templates ===== */
.page-header { padding: 32px 0 8px; }
.page-header h1 { font-size: 26px; margin: 0; }
.content-block { padding: 20px 0 40px; max-width: 800px; }
.content-block h2 { font-size: 19px; margin-top: 32px; }

/* ===== Responsive ===== */
@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 20px; }
  .main-nav ul li { border-bottom: 1px solid var(--border); }
  .main-nav ul li a { display: block; padding: 12px 0; }
  .az-newsletter-form { flex-direction: column; }
}
