/*
Theme Name: Fiosmed Theme
Theme URI: https://example.com/fiosmed-theme
Author: Developer
Author URI: https://example.com
Description: A custom WordPress theme for Fiosmed.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fiosmed-theme
*/

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --primary-color: #0078be;
  --primary-light: #0088d4;
  --primary-dark: #0069a6;
  --secondary-color: #97bc62;
  --accent-color: #5a8f5c;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #fff;
  --bg-light: #f5f5f5;
  --border-color: #ddd;
  --font-primary: "Open Sans", sans-serif;
  --container-width: 1200px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
}

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

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

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* Prevent accidental horizontal overflow (common cause of right-side blank space) */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

ul li,
ol li {
  margin: 0;
  padding: 0;
}

/* Default styles for content lists */
.entry-content ul,
.entry-content ol,
.content ul,
.content ol {
  list-style-position: inside;
  margin-bottom: 1rem;
}

.entry-content ul li,
.entry-content ol li,
.content ul li,
.content ol li {
  margin-bottom: 0.5rem;
  padding-left: 0;
}

.entry-content ul {
  list-style-type: disc;
}

.entry-content ul li::marker {
  color: var(--primary-color);
}

.entry-content ol {
  list-style-type: decimal;
}

.content ul {
  list-style-type: disc;
}

.content ul li::marker {
  color: var(--primary-color);
}

.content ol {
  list-style-type: decimal;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.site-main {
  min-height: 60vh;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background-color: var(--bg-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle:focus {
  outline: none;
}

.mobile-menu-toggle svg {
  transition: transform 0.3s ease;
}

/* Navigation */
.main-navigation {
  display: block;
}

.main-navigation ul {
  display: flex;
  align-items: center;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 0.5rem 0;
  color: #4b5563;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: #0078be;
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-parent > a {
  color: #0078be;
}

/* Dropdown Menu - Desktop */
.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 8px 8px;
  border-top: 2px solid #0078be;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.main-navigation li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.main-navigation .sub-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 400;
}

.main-navigation .sub-menu li:last-child a {
  border-bottom: none;
}

.main-navigation .sub-menu a:hover {
  background-color: #f9fafb;
  color: #0078be;
}

/* Second level dropdown positioning */
.main-navigation .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 2px;
  border-radius: 8px;
  border-top: 2px solid #0078be;
}

/* Mobile Navigation */
.mobile-navigation {
  display: none;
  background-color: #fff;
}

.mobile-navigation ul {
  display: flex;
  flex-direction: column;
}

.mobile-navigation li {
  width: 100%;
}

.mobile-navigation a {
  display: block;
  padding: 0.875rem 0;
  color: #1f2937;
  font-weight: 500;
  transition: color 0.2s ease;
}

.mobile-navigation a:hover {
  color: #0078be;
}

.mobile-navigation .sub-menu {
  display: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
  border-left: 2px solid #e5e7eb;
}

.mobile-navigation .sub-menu.active {
  display: block;
}

.mobile-navigation .sub-menu a {
  padding: 0.625rem 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: #4b5563;
  border-bottom: none;
}

/* Mobile dropdown toggle */
.mobile-dropdown-toggle {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.dropdown-arrow.rotate-180 {
  transform: rotate(180deg);
}

/* Mobile Backdrop */
.mobile-backdrop {
  display: none;
}

/* ============================================
     Hero Slider (Homepage)
     ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background-color: var(--bg-light);
}

.hero-slider__container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider__slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider__slide--active {
  opacity: 1;
  z-index: 2;
}

.hero-slider__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-slider__background--placeholder {
  background-color: var(--bg-light);
}

.hero-slider__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-slider__content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
}

.hero-slider__title {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem 0;
  letter-spacing: 0.02em;
}

.hero-slider__subtitle {
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
  font-weight: 400;
}

.hero-slider__nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero-slider__thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-slider__thumb {
  width: 70px;
  height: 70px;
  border: 3px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.3);
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider__thumb:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.5);
}

.hero-slider__thumb--active {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.9);
}

.hero-slider__thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider__thumb-placeholder {
  font-weight: bold;
  color: #fff;
  font-size: 0.9rem;
}

.hero-slider--empty {
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider--empty .hero-slider__slide {
  position: relative;
  opacity: 1;
}

/* ============================================
     Hero Section (Homepage & Pages)
     ============================================ */
.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-light);
}

.hero-section__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-section__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-section__title {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.02em;
}

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

.department-card {
  display: block;
  border-width: 1px;
  border-color: var(--border-color);
  border-style: solid;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.department-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.department-card-inner {
  padding: 2rem 1rem;
  text-align: center;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.department-card h3 {
  /* color: #fff; */
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}

.department-brand {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 2px;
}

/* ============================================
   Info Section
   ============================================ */
.info-section {
  padding: var(--spacing-lg) 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.info-block {
  padding: var(--spacing-md);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  color: #fff;
}

.info-block:nth-child(1) {
  background: linear-gradient(135deg, #4ebcd4 0%, #2ba8c8 100%);
}

.info-block:nth-child(2) {
  background: linear-gradient(135deg, #0093d0 0%, #0080c2 100%);
}

.info-block:nth-child(3) {
  background: linear-gradient(135deg, #0066b3 0%, #0052a3 100%);
}

.info-block h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-block p {
  margin-bottom: var(--spacing-sm);
  color: #fff;
  line-height: 1.6;
  flex-grow: 1;
}

.btn-info {
  display: inline-block;
  width: auto;
  max-width: fit-content;
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 0;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.btn-info:hover {
  background-color: #fff;
  color: var(--primary-color);
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
  padding: var(--spacing-lg) 0;
  background-color: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  text-align: center;
}

.feature-item {
  padding: var(--spacing-md);
}

.feature-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--spacing-sm);
  background-color: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.feature-icon svg {
  width: 60px;
  height: 60px;
  color: var(--primary-color);
  stroke: var(--primary-color);
}

.feature-item h3 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ============================================
    Department Page
   ============================================ */
.department-page {
  padding: var(--spacing-lg) 0;
}

.department-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.department-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.department-content {
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

.department-content p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
}

/* Treatments Section */
.treatments-section {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--border-color);
}

.treatments-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  font-size: 1.8rem;
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.treatment-column {
  background-color: var(--bg-light);
  padding: var(--spacing-md);
  border-radius: 8px;
}

.treatment-column ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.treatment-column li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* Department Equipe */
.department-equipe {
  margin-bottom: var(--spacing-lg);
}

.department-equipe h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  font-size: 1.8rem;
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.team-member {
  padding: var(--spacing-md);
  background-color: var(--bg-light);
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

.team-member h4 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--text-light);
  font-size: 0.9rem;
}

.team-email {
  color: var(--secondary-color);
  font-size: 0.85rem;
}

/* ============================================
    Equipe Page
   ============================================ */
.equipe-page {
  padding: var(--spacing-lg) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.team-member-card {
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member-image {
  height: 200px;
  background-color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-placeholder {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.team-member-card .team-member-info {
  padding: var(--spacing-md);
}

.team-member-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

/* ============================================
    Corsi Page
   ============================================ */
.corsi-page {
  padding: var(--spacing-lg) 0;
}

.corsi-intro {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

.corsi-intro p {
  margin-bottom: 0.5rem;
}

.corsi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.corso-column {
  background-color: var(--bg-light);
  padding: var(--spacing-md);
  border-radius: 8px;
}

.corso-column h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary-color);
}

.corso-column ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.corso-column li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* ============================================
    Contatti Page
   ============================================ */
.contatti-page {
  padding: var(--spacing-lg) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.contact-block {
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--bg-light);
  border-radius: 8px;
}

.contact-block h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.opening-hours-section {
  margin-bottom: var(--spacing-lg);
}

.opening-hours-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.hours-grid {
  max-width: 600px;
  margin: 0 auto;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.hours-item .day {
  font-weight: 600;
  color: var(--primary-color);
}

.map-gallery-section {
  margin-bottom: var(--spacing-lg);
}

.map-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  align-items: start;
}

.map-column,
.gallery-column {
  width: 100%;
  overflow: hidden;
}

.map-container {
  position: relative;
  width: 100%;
  height: 600px;
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Contact Carousel Styles */
.contact-carousel {
  width: 100%;
  height: 600px;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
}

.carousel-main {
  position: relative;
  flex: 1;
  overflow: hidden;
  background-color: #000;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 10;
  pointer-events: none;
}

.carousel-prev,
.carousel-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.carousel-prev svg,
.carousel-next svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.carousel-prev:hover svg,
.carousel-next:hover svg {
  color: #fff;
}

/* Carousel Thumbnails */
.carousel-thumbnails {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background-color: #fff;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-light);
}

.carousel-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
  background: var(--bg-light);
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 3px;
}

.carousel-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.carousel-thumb:hover {
  opacity: 1;
  border-color: var(--primary-light);
}

.carousel-thumb.active {
  opacity: 1;
  border-color: var(--primary-color);
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Admin area word wrap fix */
.post-type-contact_gallery .column-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 200px;
}

.post-type-contact_gallery th,
.post-type-contact_gallery td {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ============================================
    Appuntamenti Page
   ============================================ */
.appuntamenti-page {
  padding: var(--spacing-lg) 0;
}

.booking-section {
  margin-bottom: var(--spacing-lg);
}

.booking-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.booking-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-md);
  background-color: var(--bg-light);
  border-radius: 8px;
  text-align: center;
}

.booking-contact {
  text-align: center;
}

.booking-contact h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
    Collaborazioni Page
   ============================================ */
.collaborazioni-page {
  padding: var(--spacing-lg) 0;
}

.partner-grid-section {
  margin-bottom: var(--spacing-lg);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.partner-member-card {
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.partner-member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.partner-member-image {
  height: 200px;
  background-color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-member-card .partner-member-info {
  padding: var(--spacing-md);
}

.partner-member-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.partner-role {
  color: var(--text-light);
  font-size: 0.9rem;
}

.partner-email {
  color: var(--secondary-color);
  font-size: 0.85rem;
}

/* ============================================
    Footer
   ============================================ */
.site-footer {
  background-color: var(--primary-color);
  color: #fff;
}

.footer-top {
  padding: var(--spacing-lg) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-lg);
}

.footer-column h3 {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.footer-menu a,
.footer-hours li,
.footer-contact li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-menu a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  padding: var(--spacing-sm) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ============================================
    Single & Archive Pages
   ============================================ */
.entry-header {
  margin-bottom: var(--spacing-md);
}

.entry-title {
  color: var(--primary-color);
  font-size: 2rem;
}

.entry-content {
  line-height: 1.8;
}

.entry-content p {
  margin-bottom: var(--spacing-sm);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.posts-grid article {
  padding: var(--spacing-md);
  background-color: var(--bg-light);
  border-radius: 8px;
}

/* Pagination */
.pagination,
.posts-navigation {
  margin-top: var(--spacing-lg);
  text-align: center;
}

.pagination a,
.posts-navigation a {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background-color: var(--bg-light);
  border-radius: 4px;
}

.pagination a:hover,
.posts-navigation a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* ============================================
    Responsive Styles
   ============================================ */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-navigation {
    display: none;
  }

  .mobile-navigation {
    display: block;
  }

  .mobile-backdrop {
    display: block;
  }

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

  .hero-slider {
    height: 400px;
  }

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

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

  .hero-slider__thumb {
    width: 50px;
    height: 50px;
  }

  .department-title {
    font-size: 1.8rem;
  }

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

  .footer-menu {
    grid-template-columns: 1fr;
  }

  /* Map & Gallery responsive */
  .map-gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .map-container {
    height: 400px;
  }

  .contact-carousel {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 300px;
  }

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

@media (max-width: 480px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    height: 300px;
  }

  .hero-slider__title {
    font-size: 1.25rem;
  }

  .hero-slider__subtitle {
    font-size: 0.875rem;
  }

  .hero-slider__thumbnails {
    gap: 8px;
  }

  .hero-slider__thumb {
    width: 40px;
    height: 40px;
  }

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

  .hero-section {
    min-height: 250px;
  }

  .hero-section__title {
    font-size: 1.5rem;
  }
}
