/*
Theme Name: PIT Plzeň Modern
Theme URI: https://pit-plzen.cz
Author: RTsoft
Author URI: https://rtsoft.cz
Description: Moderní responzivní šablona pro PIT Plzeň
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pit-modern
Tags: one-column, custom-menu, featured-images, translation-ready, responsive-layout
*/

/* ===================================
   PIT Plzeň - Modern Responsive Design
   =================================== */

/* CSS Variables */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #0f172a;
  --accent-color: #06b6d4;
  --text-color: #334155;
  --text-light: #64748b;
  --text-dark: #1e293b;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-color);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  height: 60px;
  box-shadow: var(--shadow-lg);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo:hover {
  color: var(--primary-color);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav-list,
.nav ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item,
.nav li {
  position: relative;
  list-style: none;
}

.nav-link,
.nav a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active,
.nav a:hover,
.nav li.current-menu-item > a,
.nav li.current_page_item > a,
.nav li.current-menu-ancestor > a {
  color: var(--primary-color);
  background: var(--bg-light);
}

.nav-link svg,
.nav a svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

/* Dropdown */
.dropdown,
.nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  list-style: none;
  margin: 0;
}

/* Reset sub-menu inside dropdown wrapper (WordPress menu structure) */
.dropdown .sub-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  padding: 0;
  min-width: auto;
  background: transparent;
}

/* Sub-menu list items */
.dropdown .sub-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item:hover .dropdown,
.nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item:hover .nav-link svg,
.nav li.menu-item-has-children:hover > a svg {
  transform: rotate(180deg);
}

/* Dropdown links - handle both static and WordPress structures */
.dropdown-link,
.dropdown > a,
.dropdown .sub-menu li a,
.nav .sub-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  border-radius: var(--radius);
  transition: var(--transition);
}

.dropdown-link:hover,
.dropdown > a:hover,
.dropdown .sub-menu li a:hover,
.nav .sub-menu a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.nav .sub-menu {
  flex-direction: column;
  gap: 0;
}

.nav .sub-menu li {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Main Content */
main {
  flex: 1;
  margin-top: var(--header-height);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1e3a5f 100%);
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  color: #cbd5e1;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1e3a5f 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #cbd5e1;
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.breadcrumb a {
  color: #94a3b8;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb span {
  color: #64748b;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: var(--bg-gray);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Members Section */
.members-section {
  padding: 5rem 0;
}

.members-category {
  margin-bottom: 3rem;
}

.members-category:last-child {
  margin-bottom: 0;
}

.members-category h3 {
  font-size: 1.25rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.member-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.member-card h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.member-card .address {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  flex: 1;
}

.member-card .website {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.875rem;
}

.member-card .website:hover {
  color: var(--primary-dark);
}

/* Content Section */
.content-section {
  padding: 4rem 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-wrapper h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.content-wrapper h2:first-child {
  margin-top: 0;
}

.content-wrapper ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}

.content-wrapper ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* WordPress Content */
.entry-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.entry-content a {
  text-decoration: underline;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow);
}

.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.contact-card h3 svg {
  width: 24px;
  height: 24px;
}

.contact-item {
  display: flex;
  margin-bottom: 1rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 100px;
}

.contact-value {
  color: var(--text-color);
}

.contact-value a {
  color: var(--primary-color);
}

/* Board Members */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.board-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.board-card .position {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.board-card .name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.board-card .company {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Statistics */
.stats-section {
  background: var(--secondary-color);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  color: white;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #94a3b8;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  padding: 4rem 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Events */
.events-section {
  padding: 4rem 0;
}

.events-category {
  margin-bottom: 3rem;
}

.events-category:last-child {
  margin-bottom: 0;
}

.events-category > h3 {
  font-size: 1.25rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  transition: var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.event-date {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  padding: 1rem 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius);
  color: white;
}

.event-date .day {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.event-date .year {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.event-content {
  flex: 1;
}

.event-content h4 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.event-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.event-content p:last-child {
  margin-bottom: 0;
}

.event-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-light);
  color: var(--text-light);
  font-size: 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

/* Posts Archive */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.post-card-image {
  height: 200px;
  background: var(--bg-gray);
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-content {
  padding: 1.5rem;
}

.post-card-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.post-card h3 {
  margin-bottom: 0.75rem;
}

.post-card h3 a {
  color: var(--text-dark);
}

.post-card h3 a:hover {
  color: var(--primary-color);
}

.post-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.read-more {
  font-weight: 600;
  color: var(--primary-color);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-color);
  transition: var(--transition);
}

.pagination a:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pagination .current {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Footer */
.footer {
  background: var(--secondary-color);
  color: #94a3b8;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

/* Parent menu items with children - make them stand out */
.footer-col ul > li.menu-item-has-children > a {
  color: white;
  font-weight: 600;
}

/* Sub-menu in footer */
.footer-col ul .sub-menu {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-col ul .sub-menu li {
  margin-bottom: 0.5rem;
}

.footer-col ul .sub-menu li:last-child {
  margin-bottom: 0;
}

.footer-col ul .sub-menu a {
  font-size: 0.875rem;
}

.footer-col a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-col a:hover {
  color: white;
}

.footer-col p {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
}

/* Overlay for mobile menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-color);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
  }

  .nav.active {
    right: 0;
  }

  .nav-list,
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link,
  .nav a {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .dropdown,
  .nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    padding-left: 1rem;
    display: none;
    background: transparent;
  }

  /* Nested sub-menu inside dropdown on mobile */
  .dropdown .sub-menu {
    padding-left: 0;
    display: block;
  }

  .nav-item.dropdown-open .dropdown,
  .nav li.dropdown-open .sub-menu {
    display: block;
  }

  .dropdown-link,
  .dropdown .sub-menu li a,
  .nav .sub-menu a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

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

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .event-card {
    flex-direction: column;
    gap: 1rem;
  }

  .event-date {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .event-date .day,
  .event-date .month,
  .event-date .year {
    margin: 0;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .contact-item {
    flex-direction: column;
  }

  .contact-label {
    margin-bottom: 0.25rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .menu-toggle {
    display: none;
  }

  main {
    margin-top: 0;
  }

  .hero {
    background: #f0f0f0;
    color: black;
  }

  .hero h1,
  .page-header h1 {
    color: black;
  }
}

/* WordPress Admin Bar Fix */
body.admin-bar .header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}
