/*
 * Modern Design System for Denizli Yeşilyurt Aile Sağlığı Merkezi
 * A fresh, contemporary take on the healthcare website
 */

/* =====================================================
   DESIGN TOKENS & CSS VARIABLES
   ===================================================== */
:root {
  /* Color Palette - Professional Healthcare Theme */
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #67e8f9;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --accent: #f59e0b;

  /* Neutral Colors */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Semantic Colors */
  --success: #22c55e;
  --warning: #eab308;
  --error: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(8, 145, 178, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* Container */
  --container-max: 1280px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  min-height: 100vh;
}

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

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

ul,
ol {
  list-style: none;
}

/* =====================================================
   LAYOUT - WRAPPER
   ===================================================== */
.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-6);
  transition: all var(--transition-normal);
}

.wrapper-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.clear {
  clear: both;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: relative;
}

.header-top {
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
  border-bottom: 1px solid var(--gray-100);
}

.logo {
  float: none;
  width: auto;
}

.logo a {
  display: inline-block;
  transition: transform var(--transition-normal);
}

.logo a:hover {
  transform: scale(1.02);
}

.logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.header-bottom {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  padding: 0 var(--space-8);
  margin-bottom: 0;
  position: relative;
}

.header-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--primary-light) 100%);
}

#cssmenu {
  height: auto;
  float: none;
  width: 100%;
}

#cssmenu>ul {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-2) 0;
}

#cssmenu>ul>li {
  float: none;
  position: relative;
}

#cssmenu>ul>li>a {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  color: var(--gray-300);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  border-radius: var(--radius-lg);
  line-height: 1.4;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

#cssmenu>ul>li>a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transition: all var(--transition-normal);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

#cssmenu>ul>li>a:hover,
#cssmenu li.active a {
  color: #fff;
  background: rgba(8, 145, 178, 0.15);
}

#cssmenu>ul>li>a:hover::before,
#cssmenu li.active>a::before {
  width: 70%;
}

#cssmenu li.active a {
  color: var(--primary-light);
}

/* Dropdown Menu */
#cssmenu>ul>li>ul {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  padding: var(--space-3);
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  transition: all var(--transition-normal);
  z-index: 100;
}

#cssmenu>ul>li:hover>ul {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

#cssmenu ul ul a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--gray-700);
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

#cssmenu ul ul a:hover {
  background: var(--primary);
  color: #fff;
}

/* =====================================================
   BANNER / SLIDER
   ===================================================== */
.banner {
  background: transparent;
  padding: 0;
  position: relative;
}

#wrapper {
  position: relative;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.slider-wrapper.theme-default {
  margin: 0;
  background: var(--gray-900);
}

#slider {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

#slider img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Nivo Slider overrides */
.nivo-controlNav {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: var(--space-2);
}

.nivo-controlNav a {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-indent: -9999px;
  display: block;
}

.nivo-controlNav a.active,
.nivo-controlNav a:hover {
  background: var(--primary);
  transform: scale(1.2);
}

.nivo-directionNav a {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  z-index: 10;
  opacity: 0;
  box-shadow: var(--shadow-lg);
}

.slider-wrapper:hover .nivo-directionNav a {
  opacity: 1;
}

.nivo-prevNav {
  left: var(--space-6);
}

.nivo-nextNav {
  right: var(--space-6);
}

.nivo-directionNav a:hover {
  background: var(--primary);
  color: #fff;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main {
  padding: var(--space-12) var(--space-8);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);
}

/* =====================================================
   CONTENT CARDS - 4 COLUMN GRID
   ===================================================== */
.content-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.col_1_of_4 {
  display: block;
  float: none;
  margin: 0;
}

/* 2-column wide card for services section */
.col_2_of_4 {
  display: block;
  float: none;
  margin: 0;
  grid-column: span 2;
}

.span_1_of_4 {
  width: 100%;
  background: #fff;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.span_1_of_4::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.span_1_of_4:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.span_1_of_4:hover::before {
  opacity: 1;
}

/* Title styling in cards */
.title-img {
  margin-bottom: var(--space-5);
}

.title-desc {
  float: none;
}

.title-desc p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  text-transform: none;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.span_1_of_4 h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-4);
}

.span_1_of_4 p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.span_1_of_4 p a {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  transition: all var(--transition-fast);
}

.span_1_of_4 p a:hover {
  color: var(--primary-dark);
  gap: var(--space-3);
}

.span_1_of_4 p a::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.span_1_of_4 p a:hover::after {
  transform: translateX(3px);
}

h4.head {
  display: none;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  margin: var(--space-6) 0;
}

/* =====================================================
   GALLERY / SERVICES GRID
   ===================================================== */
.services {
  padding: var(--space-4) 0;
}

.gallery-grids {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.gallery-grid {
  float: none;
  width: 100%;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-100);
}

.gallery-grid:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.gallery-grid a {
  display: block;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-grid:hover img {
  transform: scale(1.05);
}

.gallery-grid h4 {
  color: var(--gray-800);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  padding: var(--space-5) var(--space-5) var(--space-2);
  margin: 0;
  text-transform: none;
  cursor: default;
  line-height: 1.4;
}

.gallery-grid h4:hover {
  color: var(--primary);
}

.gallery-grid p {
  color: var(--gray-500);
  font-size: 0.9rem;
  padding: 0 var(--space-5) var(--space-5);
  line-height: 1.6;
  margin: 0;
}

.grid2 {
  margin: 0;
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.section.group {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-8);
}

.col {
  float: none;
  margin: 0;
}

.span_2_of_contact {
  width: 100%;
}

.span_1_of_contact {
  width: 100%;
  padding: 0;
}

.contact-form {
  position: relative;
  padding-bottom: 0;
}

.company_address {
  background: linear-gradient(135deg, #fff 0%, var(--gray-50) 100%);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-6);
  border: 1px solid var(--gray-100);
}

.company_address h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.company_address p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-2);
}

.company_address p span {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* Contact Info Cards */
.contact_info {
  background: linear-gradient(135deg, #fff 0%, var(--gray-50) 100%);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.contact_info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

/* Map styling */
.map {
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-4);
}

.map iframe {
  width: 100%;
  height: 250px;
  border: none;
}

/* Contact page h2 styling */
.span_2_of_contact h2 {
  font-family: var(--font-display);
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--gray-800) !important;
  margin-top: var(--space-8) !important;
  margin-bottom: var(--space-4) !important;
  padding-bottom: var(--space-3);
  border-bottom: 3px solid var(--secondary);
  display: inline-block;
}

/* Modern Table styling for contact page */
.span_2_of_contact table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--space-4) 0;
}

.span_2_of_contact table td {
  padding: var(--space-4) var(--space-5) !important;
  border: none !important;
  font-size: 0.95rem !important;
  font-family: var(--font-primary) !important;
}

.span_2_of_contact table td:first-child {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: #fff !important;
  font-weight: 600 !important;
  width: 150px !important;
}

.span_2_of_contact table td:last-child {
  background: #fff !important;
  color: var(--gray-700) !important;
}

.span_2_of_contact table tr:not(:last-child) td {
  border-bottom: 1px solid var(--gray-100) !important;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  border-top: none;
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  padding: var(--space-8);
  margin-top: 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--primary-light) 100%);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h3,
.footer-top h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-5);
  position: relative;
  padding-bottom: var(--space-3);
}

.footer h3::after,
.footer-top h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-top ul li {
  padding: var(--space-2) 0;
  background: none;
}

.footer-top ul li a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-top ul li a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.copy {
  text-align: center;
  padding: var(--space-6) 0;
  color: var(--gray-400);
  font-size: 0.9rem;
}

.copy p a {
  color: var(--primary-light);
  font-weight: 500;
}

.copy p a:hover {
  color: #fff;
}

/* Footer Lists */
.list3 li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  background: none;
}

.list3 li img {
  display: none;
}

.extra-wrap p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =====================================================
   404 PAGE
   ===================================================== */
.page-not-found {
  padding: var(--space-16) var(--space-8);
  text-align: center;
}

.page-not-found h1 {
  font-size: 10rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  line-height: 1;
  margin-bottom: var(--space-6);
}

.page-not-found p {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: var(--space-8);
}

.page-not-found a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.page-not-found a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  border: none;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.btn.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--gray-800) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-link,
.btn-link1,
.btn-link2 {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  background: none;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-link::after,
.btn-link1::after,
.btn-link2::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.btn-link:hover::after,
.btn-link1:hover::after,
.btn-link2:hover::after {
  transform: translateX(5px);
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-top {
  margin-bottom: var(--space-8);
}

.about_desc h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-6);
  text-transform: none;
  letter-spacing: -0.02em;
}

.about_desc p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.about_desc p span {
  color: var(--primary);
  font-weight: 500;
}

.testimonials {
  background: linear-gradient(135deg, #fff 0%, var(--gray-50) 100%);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  position: relative;
}

.testimonials::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonials h3 {
  color: var(--gray-800);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.testimonials p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
  text-indent: 0;
  padding: 0;
}

.testimonials span.quotes,
.testimonials span.quotes-down {
  display: none;
}

/* Grid layouts for about */
.image.group {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-6);
  padding-top: var(--space-6);
}

.images_3_of_1,
.span_2_of_1 {
  width: 100%;
  float: none;
  margin: 0;
}

.images_3_of_1 img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.span_2_of_1 h4 {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.span_2_of_1 p {
  color: var(--gray-600);
  line-height: 1.8;
}

/* Sidebar */
.lsidebar1,
.span_1_of_a {
  float: none;
  width: 100%;
  margin: 0;
}

.span_2_of_a,
.cont1 {
  float: none;
  width: 100%;
  margin: 0;
}

/* =====================================================
   CONTENT BOTTOM CARDS
   ===================================================== */
.content-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.col_1_of_bottom {
  float: none;
  margin: 0;
  background: none;
}

.span_1_of_bottom,
.span_1_of_last {
  width: 100%;
  padding: 0;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-100);
}

.span_1_of_bottom:hover,
.span_1_of_last:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.span_1_of_bottom:hover h5,
.span_1_of_bottom:hover p,
.span_1_of_bottom:hover a,
.span_1_of_last:hover h5,
.span_1_of_last:hover p,
.span_1_of_last:hover a {
  color: #fff;
}

.span_1_of_bottom img,
.span_1_of_last img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  padding: 0;
}

.main_link {
  padding: var(--space-5);
}

.span_1_of_bottom h5,
.span_1_of_last h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-2);
  text-transform: none;
}

.span_1_of_bottom p,
.span_1_of_last p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
  text-transform: none;
}

/* Special styling for last card */
.span_1_of_last {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.span_1_of_last h5,
.span_1_of_last p {
  color: #fff;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 1000;
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Tablet and Desktop: 1280px and below */
@media (max-width: 1280px) {
  .wrap {
    max-width: 100%;
  }

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

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

  #cssmenu>ul>li>a {
    padding: var(--space-3) var(--space-4);
    font-size: 0.9rem;
  }
}

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
  .wrap {
    padding: var(--space-4);
  }

  .header-top {
    padding: var(--space-4) var(--space-6);
  }

  .header-bottom {
    padding: 0 var(--space-4);
  }

  .main {
    padding: var(--space-8) var(--space-6);
  }

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

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

  .section.group {
    grid-template-columns: 1fr;
  }

  /* Table responsive */
  .span_2_of_contact table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .span_2_of_contact table td:first-child {
    width: 120px !important;
    min-width: 120px;
  }

  .logo img {
    height: 70px;
  }

  .title-desc p {
    font-size: 1rem;
  }
}

/* Small Tablet: 768px and below */
@media (max-width: 768px) {
  :root {
    --space-8: 1.5rem;
    --space-10: 2rem;
    --space-12: 2.5rem;
  }

  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .content-top {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .col_2_of_4 {
    grid-column: span 1;
  }

  .gallery-grids {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }

  .footer h3::after,
  .footer-top h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .content-bottom {
    grid-template-columns: 1fr;
  }

  /* Navigation becomes vertical */
  #cssmenu>ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  #cssmenu>ul>li>a {
    padding: var(--space-4);
    justify-content: center;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  #cssmenu>ul>li>a::before {
    display: none;
  }

  .logo img {
    height: 60px;
  }

  .page-not-found h1 {
    font-size: 6rem;
  }

  .image.group {
    grid-template-columns: 1fr;
  }

  /* Gallery grid adjustments */
  .gallery-grid img {
    height: 200px;
  }

  /* Table stacking for mobile */
  .span_2_of_contact table,
  .span_2_of_contact table tbody,
  .span_2_of_contact table tr,
  .span_2_of_contact table td {
    display: block;
    width: 100% !important;
  }

  .span_2_of_contact table tr {
    margin-bottom: var(--space-4);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  .span_2_of_contact table td:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    text-align: center;
  }

  .span_2_of_contact table td:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    text-align: center;
  }

  /* Slider adjustments */
  .nivo-directionNav a {
    width: 40px;
    height: 40px;
  }

  .nivo-prevNav {
    left: var(--space-2);
  }

  .nivo-nextNav {
    right: var(--space-2);
  }

  /* Title adjustments */
  .title-desc p {
    font-size: 0.95rem;
  }

  /* Contact page adjustments */
  .company_address h3,
  .contact_info h3 {
    font-size: 1.2rem;
  }

  .company_address p {
    font-size: 0.95rem;
  }

  .map iframe {
    height: 200px;
  }

  /* Personel grid */
  .gallery-grid h4 {
    font-size: 1rem;
    padding: var(--space-4) var(--space-4) var(--space-2);
  }

  .gallery-grid p {
    padding: 0 var(--space-4) var(--space-4);
    font-size: 0.85rem;
  }
}

/* Mobile: 480px and below */
@media (max-width: 480px) {
  .wrap {
    padding: var(--space-2);
  }

  .wrapper-box {
    border-radius: var(--radius-xl);
  }

  .header-top {
    padding: var(--space-3) var(--space-4);
  }

  .header-bottom {
    padding: 0;
  }

  .logo img {
    height: 50px;
  }

  .main {
    padding: var(--space-4);
  }

  .span_1_of_4 {
    padding: var(--space-4);
  }

  .span_1_of_4 p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .company_address,
  .contact_info {
    padding: var(--space-4);
  }

  .company_address h3,
  .contact_info h3 {
    font-size: 1.1rem;
  }

  .page-not-found {
    padding: var(--space-8) var(--space-4);
  }

  .page-not-found h1 {
    font-size: 4rem;
  }

  .page-not-found p {
    font-size: 1rem;
  }

  .page-not-found a {
    padding: var(--space-3) var(--space-6);
    font-size: 0.9rem;
  }

  .footer {
    padding: var(--space-4);
  }

  .footer h3,
  .footer-top h3 {
    font-size: 1rem;
  }

  /* Navigation stacked */
  #cssmenu>ul>li>a {
    padding: var(--space-3);
    font-size: 0.9rem;
  }

  /* Gallery images */
  .gallery-grid img {
    height: 180px;
  }

  /* Slider */
  .nivo-controlNav {
    bottom: var(--space-3);
  }

  .nivo-controlNav a {
    width: 10px;
    height: 10px;
  }

  .nivo-directionNav a {
    width: 35px;
    height: 35px;
    opacity: 0.8;
  }

  .slider-wrapper:hover .nivo-directionNav a {
    opacity: 1;
  }

  /* Cards */
  .span_1_of_bottom img,
  .span_1_of_last img {
    height: 150px;
  }

  /* Title styling */
  .title-desc p {
    font-size: 0.9rem;
    padding-bottom: var(--space-2);
  }

  /* Contact info inline adjustments */
  .span_2_of_contact h2 {
    font-size: 1.2rem !important;
  }

  /* Banner margin */
  .banner {
    margin-bottom: 0;
  }
}

/* Extra Small Mobile: 360px and below */
@media (max-width: 360px) {
  .wrap {
    padding: var(--space-1);
  }

  .wrapper-box {
    border-radius: var(--radius-lg);
  }

  .header-top {
    padding: var(--space-2) var(--space-3);
  }

  .logo img {
    height: 45px;
  }

  .main {
    padding: var(--space-3);
  }

  .span_1_of_4 {
    padding: var(--space-3);
  }

  .title-desc p {
    font-size: 0.85rem;
  }

  #cssmenu>ul>li>a {
    padding: var(--space-2) var(--space-3);
    font-size: 0.85rem;
  }

  .page-not-found h1 {
    font-size: 3rem;
  }

  .gallery-grid img {
    height: 150px;
  }

  .company_address,
  .contact_info {
    padding: var(--space-3);
  }

  .map iframe {
    height: 180px;
  }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .banner {
    max-height: 50vh;
    overflow: hidden;
  }

  #slider img {
    max-height: 50vh;
    object-fit: cover;
  }

  .nivo-directionNav a {
    width: 35px;
    height: 35px;
  }
}

/* Print Styles */
@media print {

  .header-bottom,
  .banner,
  .footer,
  .nivo-controlNav,
  .nivo-directionNav {
    display: none !important;
  }

  .wrap {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .wrapper-box {
    box-shadow: none;
    border: none;
  }

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

  a {
    color: var(--gray-700);
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8rem;
    color: var(--gray-500);
  }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .logo img {
    image-rendering: -webkit-optimize-contrast;
  }

  .gallery-grid img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .span_1_of_4:hover,
  .gallery-grid:hover,
  .span_1_of_bottom:hover,
  .span_1_of_last:hover {
    transform: none;
  }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.span_1_of_4,
.gallery-grid,
.company_address,
.contact_info {
  animation: fadeInUp 0.6s ease-out;
}

.span_1_of_4:nth-child(1) {
  animation-delay: 0.1s;
}

.span_1_of_4:nth-child(2) {
  animation-delay: 0.2s;
}

.span_1_of_4:nth-child(3) {
  animation-delay: 0.3s;
}

.span_1_of_4:nth-child(4) {
  animation-delay: 0.4s;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

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

.bg-secondary {
  background-color: var(--secondary);
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: var(--primary);
  color: #fff;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}