/* ----------------------------------------------------
   Özlem Sürücü Kursu - Public Modern CSS (No Framework)
   Mobile-First Responsive Design
   ---------------------------------------------------- */

:root {
  --primary: #1A5882;
  --primary-dark: #0e3651;
  --primary-light: #1e6ea3;
  --secondary: #1d3557;
  --secondary-dark: #0f1c2e;
  --accent: #ffb703;
  --bg-light: #f8f9fa;
  --bg-dark: #121417;
  --card-bg: #ffffff;
  --text-main: #212529;
  --text-muted: #6c757d;
  --text-light: #f8f9fa;
  --border-color: #e9ecef;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s ease-in-out;
  --max-width: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--text-main);
  background-color: #f4f6f8;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }

/* Layout Utilities */
.container {
  width: 100%;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
  margin-right: auto;
  margin-left: auto;
  max-width: var(--max-width);
}

.section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: 1.85rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--secondary-dark);
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* Top Bar (Contact Info) */
.top-bar {
  background-color: var(--secondary-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--primary);
}

.top-bar .container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.top-bar-info, .top-bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
}

.top-bar a {
  color: #d1d5db;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar a:hover {
  color: var(--accent);
}

/* Header & Navbar */
.site-header {
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo img {
  max-height: 52px;
  width: auto;
}

.nav-menu {
  display: none; /* hidden on mobile drawer toggle */
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  border-top: 1px solid var(--border-color);
  gap: 1rem;
}

.nav-menu a {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.nav-menu a:hover, .nav-menu a.active {
  color: white;
  background-color: var(--primary-light);
}

.nav-menu .btn-primary-inverse {
  background-color: var(--primary-dark);
  color: white !important;
  border: 2px solid var(--primary);
}

.nav-menu .btn-primary-inverse:hover {
  background-color: red;
  color: white !important;
  box-shadow: var(--shadow-md);
  border-color:red;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.mobile-toggle span {
  width: 26px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}

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

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

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

.btn-accent {
  background-color: var(--accent);
  color: #111;
  font-weight: 700;
}

.btn-accent:hover {
  background-color: #e0a200;
  color: #000;
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
  color: white;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(11, 23, 40, 0.52) 0%, rgba(6, 19, 37, 0.96) 100%),
              url('/assets/car-bg.jpeg') center/cover no-repeat;
  color: white;
  padding: 4.5rem 0;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 2.1rem;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.1rem;
  color: #e0e6ed;
  max-width: 750px;
  margin: 0 auto 2rem auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Quick Action Badges Bar */
.quick-bar {
  background: white;
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.quick-card:hover {
  transform: translateY(-3px);
  background-color: white;
  box-shadow: var(--shadow-sm);
}

.quick-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(200, 16, 46, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.quick-card-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.quick-card-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Course Cards Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
}

.course-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent, #3b82f6) 100%);
  opacity: 0.8;
  transition: height 0.3s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.course-card:hover::before {
  height: 6px;
  opacity: 1;
}

.course-main-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.course-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .course-main-img img {
  transform: scale(1.06);
}

.course-card-header {
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

.course-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all 0.3s ease;
}

.course-card:hover .course-icon-badge {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.08) rotate(-3deg);
}

.course-badge {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 30px;
  border: 1px solid #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-card-body {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-card-body h3, .course-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.course-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.course-card-body p {
  color: #64748b;
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed #e2e8f0;
}

.course-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #f8fafc;
  color: #475569;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.course-chip i {
  color: var(--primary);
  font-size: 0.85rem;
}

.course-card-footer {
  padding: 1.25rem 1.5rem;
  background-color: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.course-card-footer .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.25s ease;
}

.course-card-footer .btn i {
  transition: transform 0.2s ease;
}

.course-card-footer .btn:hover i {
  transform: translateX(4px);
}

/* Features & Why Us */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.feature-box:hover {
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.1), rgba(200, 16, 46, 0.2));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-banner h2 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto 2rem auto;
  font-size: 1.05rem;
}

/* FAQ Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 850px;
  margin: 0 auto;
}

.accordion-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-header::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.25s;
}

.accordion-item.active .accordion-header::after {
  content: '−';
}

.accordion-content {
  display: none;
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  background-color: #fafafa;
  color: var(--text-main);
  font-size: 0.95rem;
}

.accordion-item.active .accordion-content {
  display: block;
}

/* Public Forms */
.form-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--secondary-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background-color: #fff;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Alert Boxes */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.alert-danger {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

/* Footer */
.site-footer {
  background-color: var(--secondary-dark);
  color: #adb5bd;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.9rem;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #ced4da;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

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

/* Floating Action Button / Sticky Contact Bar for Mobile */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.12);
  display: flex;
  z-index: 999;
  padding: 0.5rem;
  gap: 0.5rem;
}

.mobile-sticky-bar .btn {
  flex: 1;
  padding: 0.6rem;
  font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (min-width: 768px) {
  .top-bar .container {
    flex-direction: row;
  }
  
  .hero {
    padding: 6rem 0;
  }

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

  .hero-actions {
    flex-direction: row;
  }

  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .mobile-sticky-bar {
    display: none; /* Hide bottom bar on desktop */
  }
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    border: none;
    align-items: center;
    gap: 1.5rem;
  }

  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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