/* =========================================
   DETEVAD - Ana Stil Dosyası
   Demiryolu Teknik Vagoncular Derneği
   ========================================= */

/* --- CSS Variables --- */
:root {
  --primary: #1b2a4a;
  --primary-light: #2a3f6b;
  --primary-dark: #0f1923;
  --secondary: #c8a951;
  --secondary-light: #d4bc73;
  --secondary-dark: #b8952f;
  --accent: #2e86ab;
  --accent-light: #3a9bc4;
  --dark: #0f1923;
  --light: #f5f7fa;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

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

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

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

::selection {
  background: var(--secondary);
  color: #fff;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--primary-dark);
  padding: 8px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid var(--secondary);
}

.top-bar-left span {
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
}

.top-bar-left span i {
  color: var(--secondary);
  margin-right: 6px;
  font-size: 0.8rem;
}

.top-bar-right {
  text-align: right;
}

.top-bar-right a {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 12px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.top-bar-right a:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Main Navigation --- */
#mainNav {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 0;
  transition: var(--transition);
  z-index: 1000;
}

#mainNav.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0;
}

.navbar-brand {
  padding: 10px 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: 1px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--gray-600);
  letter-spacing: 0.5px;
  font-weight: 500;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary) !important;
  padding: 20px 16px !important;
  position: relative;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--secondary);
  border-radius: 3px 3px 0 0;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary) !important;
}

/* Dropdown */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-top: 0;
  border-top: 3px solid var(--secondary);
  animation: fadeInUp 0.3s ease;
}

.dropdown-item {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--light);
  color: var(--primary);
  transform: translateX(5px);
}

.dropdown-item i {
  color: var(--secondary);
  width: 20px;
}

/* Search Button */
.btn-search {
  background: var(--primary);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: var(--transition);
}

.btn-search:hover {
  background: var(--secondary);
  color: #fff;
  transform: scale(1.1);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 25, 35, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.search-overlay.active {
  display: flex;
}

.search-overlay-content {
  width: 100%;
  max-width: 700px;
  padding: 20px;
}

.search-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-close:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

.search-input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 20px 60px 20px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 1.2rem;
  outline: none;
  transition: var(--transition);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.15);
}

.search-submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.search-submit:hover {
  background: var(--secondary-dark);
}

/* --- Page Header / Breadcrumb --- */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.page-header::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");
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--secondary),
    var(--secondary-light),
    var(--secondary)
  );
}

.page-header h1 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
}

.page-header .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.page-header .breadcrumb-item a {
  color: var(--secondary);
  font-weight: 500;
}

.page-header .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slider .carousel-item {
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slider .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 25, 35, 0.85),
    rgba(27, 42, 74, 0.7)
  );
}

.hero-slider .carousel-caption {
  bottom: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  max-width: 650px;
  padding: 0 40px;
}

.hero-slider .carousel-caption h2 {
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-slider .carousel-caption p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-slider .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  transition: var(--transition);
}

.hero-slider .carousel-indicators button.active {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  margin: 0 20px;
  opacity: 0;
  transition: var(--transition);
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--secondary);
}

/* --- Default Hero (when no slider) --- */
.hero-default {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary),
    var(--primary-light)
  );
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-default::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 169, 81, 0.15), transparent);
  border-radius: 50%;
}

.hero-default::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--secondary),
    var(--secondary-light),
    var(--secondary)
  );
}

.hero-default h1 {
  color: #fff;
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.hero-default p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  max-width: 600px;
}

/* --- Buttons --- */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(27, 42, 74, 0.3);
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.4);
}

.btn-secondary-custom {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(200, 169, 81, 0.3);
}

.btn-secondary-custom:hover {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 169, 81, 0.4);
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Section Styles --- */
.section {
  padding: 80px 0;
}

.section-light {
  background: #fff;
}

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

.section-dark {
  background: var(--primary-dark);
  color: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 12px auto 0;
  border-radius: 2px;
}

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

/* --- Card Styles --- */
.news-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.news-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.news-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

.news-card .card-img-wrapper .card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.news-card .card-img-wrapper .card-date {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--secondary);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm) 0 0 0;
}

.news-card .card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card .card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .card-body h3 a {
  color: var(--primary);
}

.news-card .card-body h3 a:hover {
  color: var(--secondary);
}

.news-card .card-body p {
  color: var(--gray-600);
  font-size: 0.9rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .card-footer {
  padding: 16px 24px;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.news-card .card-footer .read-more {
  color: var(--secondary);
  font-weight: 600;
  font-family: var(--font-heading);
}

.news-card .card-footer .read-more:hover {
  color: var(--primary);
}

/* Event Card */
.event-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  height: 100%;
}

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

.event-card .event-date-box {
  min-width: 100px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.event-card .event-date-box .day {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}

.event-card .event-date-box .month {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
}

.event-card .event-date-box .year {
  font-size: 0.8rem;
  opacity: 0.7;
}

.event-card .event-content {
  padding: 24px;
  flex: 1;
}

.event-card .event-content h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.event-card .event-content h3 a {
  color: var(--primary);
}

.event-card .event-content h3 a:hover {
  color: var(--secondary);
}

.event-card .event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.event-card .event-meta span i {
  color: var(--secondary);
  margin-right: 4px;
}

/* Gallery Card */
.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 280px;
}

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

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-card .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15, 25, 35, 0.9));
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-card .gallery-overlay h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
}

.gallery-card .gallery-overlay span {
  color: var(--secondary);
  font-size: 0.85rem;
}

/* Gallery Zoom Icon */
.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 50px;
  height: 50px;
  background: rgba(200, 169, 81, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: var(--transition);
  z-index: 2;
  pointer-events: none;
}

.gallery-card:hover .gallery-zoom-icon {
  transform: translate(-50%, -50%) scale(1);
}

/* Fullscreen Gallery Modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
}

.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
}

.gallery-modal-counter {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 10;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.gallery-modal-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
  max-width: 80%;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.gallery-modal-nav:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.gallery-modal-prev {
  left: 20px;
}

.gallery-modal-next {
  right: 20px;
}

.gallery-modal-content {
  position: relative;
  z-index: 5;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: opacity 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-modal-content img.loading {
  opacity: 0.3;
}

@media (max-width: 768px) {
  .gallery-modal-nav {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
  .gallery-modal-prev {
    left: 10px;
  }
  .gallery-modal-next {
    right: 10px;
  }
  .gallery-modal-content img {
    max-width: 96vw;
    max-height: 80vh;
  }
  .gallery-modal-caption {
    bottom: 14px;
    font-size: 0.85rem;
    max-width: 90%;
  }
}

/* Document Card */
.document-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.document-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.document-card .doc-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: var(--light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.document-card .doc-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.document-card .doc-info .doc-meta {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.document-card .doc-download {
  margin-left: auto;
  color: var(--secondary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.document-card .doc-download:hover {
  color: var(--primary);
  transform: scale(1.2);
}

/* --- Stats Section --- */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 0;
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
}

.stat-item .stat-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item .stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- President Message --- */
.president-section {
  background: #fff;
}

.president-card {
  display: flex;
  gap: 40px;
  align-items: center;
}

.president-img {
  min-width: 280px;
  max-width: 280px;
}

.president-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.president-content .president-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.president-content .president-title {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.president-content .president-message {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.8;
  font-style: italic;
  position: relative;
  padding-left: 30px;
  border-left: 3px solid var(--secondary);
}

/* --- Board Members --- */
.board-card {
  text-align: center;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.board-card .board-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid var(--gray-200);
  transition: var(--transition);
}

.board-card:hover .board-img {
  border-color: var(--secondary);
}

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

.board-card h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.board-card .board-title {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Contact Section --- */
.contact-info-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-info-card .contact-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.4rem;
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  color: var(--gray-600);
  margin: 0;
  font-size: 0.95rem;
}

/* Contact Form */
.contact-form .form-control,
.contact-form .form-select {
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.15);
}

/* --- Footer --- */
.main-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  padding: 60px 0 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-brand .footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-brand span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 1px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  margin-right: 8px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-links h5,
.footer-contact h5 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h5::after,
.footer-contact h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

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

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.footer-links ul li a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 8px;
  font-size: 0.8rem;
  color: var(--secondary);
}

.footer-links ul li a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-contact .contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-contact .contact-item i {
  color: var(--secondary);
  margin-top: 3px;
  width: 16px;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.footer-credit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-credit a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.footer-credit a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-admin-link {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.footer-admin-link:hover {
  color: var(--secondary);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.back-to-top.visible {
  display: flex;
  animation: fadeInUp 0.3s ease;
}

.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* --- Pagination --- */
.pagination .page-link {
  color: var(--primary);
  border: 1px solid var(--gray-300);
  padding: 10px 16px;
  border-radius: var(--radius-sm) !important;
  margin: 0 3px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

.pagination .page-link:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

/* --- Sidebar --- */
.sidebar-widget {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
  position: relative;
}

.sidebar-widget h4::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.sidebar-widget .recent-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-widget .recent-post:last-child {
  border-bottom: none;
}

.sidebar-widget .recent-post img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.sidebar-widget .recent-post h5 {
  font-size: 0.85rem;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-widget .recent-post h5 a {
  color: var(--primary);
}

.sidebar-widget .recent-post h5 a:hover {
  color: var(--secondary);
}

.sidebar-widget .recent-post .post-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* --- Detail Page --- */
.detail-content {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.detail-content .detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--gray-600);
}

.detail-content .detail-meta span i {
  color: var(--secondary);
  margin-right: 6px;
}

.detail-content .detail-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
}

.detail-content .detail-image img {
  width: 100%;
  height: auto;
}

.detail-content .detail-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--gray-700);
}

.detail-content .detail-body h2,
.detail-content .detail-body h3,
.detail-content .detail-body h4 {
  margin-top: 30px;
  margin-bottom: 16px;
}

.detail-content .detail-body p {
  margin-bottom: 16px;
}

.detail-content .detail-body img {
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  margin-top: 30px;
  align-items: center;
}

.share-buttons span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.9rem;
  transition: var(--transition);
}

.share-buttons a:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.share-buttons .share-facebook {
  background: #3b5998;
}
.share-buttons .share-twitter {
  background: #1da1f2;
}
.share-buttons .share-whatsapp {
  background: #25d366;
}
.share-buttons .share-linkedin {
  background: #0077b5;
}

/* --- Accordion (FAQ) --- */
.faq-accordion .accordion-item {
  border: none;
  margin-bottom: 12px;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  padding: 18px 24px;
  background: #fff;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.faq-accordion .accordion-body {
  padding: 20px 24px;
  color: var(--gray-700);
  line-height: 1.8;
}

/* --- Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .top-bar {
    display: none;
  }

  .hero-slider .carousel-item {
    height: 400px;
  }

  .hero-slider .carousel-caption h2 {
    font-size: 1.8rem;
  }

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

  .navbar-nav .nav-link {
    padding: 12px 16px !important;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .section {
    padding: 50px 0;
  }

  .president-card {
    flex-direction: column;
    text-align: center;
  }

  .president-img {
    min-width: auto;
    max-width: 200px;
    margin: 0 auto;
  }

  .president-content .president-message {
    padding-left: 20px;
  }

  .event-card {
    flex-direction: column;
  }

  .event-card .event-date-box {
    flex-direction: row;
    gap: 8px;
    padding: 14px 20px;
  }

  .detail-content {
    padding: 24px;
  }
}

@media (max-width: 767px) {
  .page-header h1 {
    font-size: 1.6rem;
  }

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

  .stat-item .stat-number {
    font-size: 2rem;
  }

  .gallery-card {
    height: 200px;
  }

  .detail-content .detail-body {
    font-size: 0.95rem;
  }
}

/* --- Placeholder Image --- */
.placeholder-img {
  background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 2rem;
  width: 100%;
  height: 100%;
}

/* --- Loading --- */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading-spinner::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-300);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================
   Featured News Section (Homepage)
   ========================================= */
.featured-news-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.featured-main-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 420px;
}

.featured-main-img {
  position: relative;
  height: 100%;
  min-height: 420px;
}

.featured-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.featured-main-img .placeholder-img {
  height: 100%;
  min-height: 420px;
}

.featured-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 30px 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  z-index: 2;
}

.featured-main-overlay h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
}

.featured-main-overlay h3 a {
  color: #fff;
  text-decoration: none;
}

.featured-main-overlay h3 a:hover {
  color: var(--secondary);
}

.featured-main-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-main-meta {
  display: flex;
  gap: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Side cards */
.featured-side-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.featured-side-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex: 1;
}

.featured-side-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.featured-side-img {
  width: 140px;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.featured-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-img-sm {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: 1.5rem;
}

.featured-side-content {
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.featured-side-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-side-content h4 a {
  color: var(--primary);
  text-decoration: none;
}

.featured-side-content h4 a:hover {
  color: var(--secondary);
}

.featured-side-date {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Featured highlight card on listing page */
.featured-highlight-card {
  border: 2px solid var(--secondary) !important;
  position: relative;
}

.featured-highlight-card::before {
  content: 'ÖNE ÇIKAN';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 3;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.featured-star-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  color: var(--secondary);
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  display: none;
}

/* Responsive */
@media (max-width: 991.98px) {
  .featured-main-card,
  .featured-main-img {
    min-height: 320px;
  }

  .featured-main-img .placeholder-img {
    min-height: 320px;
  }

  .featured-side-img {
    width: 110px;
    min-width: 110px;
  }
}

@media (max-width: 575.98px) {
  .featured-main-card,
  .featured-main-img {
    min-height: 260px;
  }

  .featured-main-img .placeholder-img {
    min-height: 260px;
  }

  .featured-main-overlay h3 {
    font-size: 1.2rem;
  }

  .featured-side-img {
    width: 90px;
    min-width: 90px;
  }

  .featured-side-content h4 {
    font-size: 0.85rem;
  }
}

/* =========================================
   Video Gallery (Frontend)
   ========================================= */
.video-gallery-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.video-card-media {
  position: relative;
  overflow: hidden;
  background: #000;
}

.video-card-media video {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
  background: #000;
}

.video-yt-wrapper {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.video-yt-wrapper img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.video-yt-wrapper:hover img {
  transform: scale(1.05);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
}

.video-yt-wrapper:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.video-play-btn {
  width: 68px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.video-play-btn i {
  font-size: 3.5rem;
  color: #ff0000;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.video-yt-wrapper:hover .video-play-btn {
  transform: scale(1.15);
}

.video-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-body p {
  color: var(--gray-600);
  font-size: 0.88rem;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
}
