/*
=====================================================================
*   Modern Layout Stylesheet
*   Redesigned for KTGPB
===================================================================== */

/* ------------------------------------------------------------------ */
/* a. General Styles
/* ------------------------------------------------------------------ */

body {
  background: var(--bg-primary);
}

/* ------------------------------------------------------------------ */
/* b. Header Styles (Preserved)
/* ------------------------------------------------------------------ */

header {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  background: linear-gradient(rgba(7, 24, 54, 0.85), rgba(7, 24, 54, 0.7)),
    url(../images/background.gif) no-repeat top center;
  background-size: cover !important;
  -webkit-background-size: cover !important;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

header .banner {
  width: 85%;
  max-width: 1200px;
  text-align: center;
  z-index: 1;
}

header .banner-text {
  width: 100%;
}

header .headerLogo {
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
}



header .scrolldown {
  /* position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%); */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

header .scrolldown a {
  color: white;
  font-size: 4rem;
  transition: color 0.3s;
}
header .scrolldown a:hover {
  color: var(--primary-color);
}

/* Navigation */
#nav-wrap {
  font: 12px "Inter", sans-serif;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin: 0 auto;
  z-index: 100;
  position: fixed;
  left: 0;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

ul#nav {
  min-height: 60px;
  width: auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

ul#nav li {
  position: relative;
  list-style: none;
  display: inline-block;
  margin: 0 15px;
}

ul#nav li a {
  display: inline-block;
  padding: 15px;
  line-height: 30px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  transition: color 0.3s ease;
}

ul#nav li a:hover,
ul#nav li.current a {
  color: #fff;
}

/* Theme Toggle */
.theme-toggle-li {
  vertical-align: middle;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  line-height: 1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  transform: scale(1.05);
}

/* ------------------------------------------------------------------ */
/* c. Hakkimizda Section
/* ------------------------------------------------------------------ */

#hakkimizda {
  background: var(--bg-secondary);
  padding: 100px 0;
  position: relative;
}

#hakkimizda h2 {
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

#hakkimizda h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

#hakkimizda blockquote {
  font-size: 2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  font-style: italic;
  border: none;
  padding: 0;
}

#hakkimizda blockquote::before {
  content: none;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.about-card {
  background: var(--bg-tertiary);
  padding: 40px;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-card li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.about-card li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 60px 0;
  flex-wrap: wrap;
}

.stat-box {
  background: var(--primary-color);
  color: #fff;
  padding: 30px 50px;
  border-radius: 16px;
  text-align: center;
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(44, 95, 141, 0.3);
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 5px;
  line-height: 1;
}

.stat-label {
  font-size: 1.4rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.download-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ */
/* d. Etkinlikler Section
/* ------------------------------------------------------------------ */

#etkinlikler {
  background: var(--bg-primary);
  padding: 100px 0;
}

#etkinlikler h2 {
  text-align: center;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

#etkinlikler h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

#etkinlikler .section-subtitle {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 1.2rem;
  margin-bottom: 40px;
}

/* Events Tabs */
.events-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

.events-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.events-tab:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.events-tab.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.events-tab i {
  font-size: 1.1rem;
}

.tab-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.events-tab:not(.active) .tab-badge {
  background: var(--bg-tertiary);
}

/* Upcoming Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.event-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.event-date {
  background: var(--primary-color);
  color: #fff;
  padding: 20px;
  text-align: center;
}

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

.event-date .month-year {
  font-size: 1.4rem;
  opacity: 0.9;
}

.event-details {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-details h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.event-details p {
  color: var(--text-tertiary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.event-link {
  align-self: flex-start;
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.event-link:hover {
  text-decoration: underline;
}

/* No Events State */
.no-events {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 2px dashed var(--border-color);
  width: 100%;
}

.no-events i {
  font-size: 4rem;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-events h3 {
  color: var(--text-secondary);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.no-events p {
  color: var(--text-tertiary);
  font-size: 1rem;
}

/* Professional No Upcoming Events */
.no-upcoming-events {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  border-radius: 24px;
  padding: 60px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.no-events-content {
  text-align: left;
}

.no-events-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.no-events-icon i {
  font-size: 2.5rem;
  color: #fff;
}

.no-events-content h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.no-events-content p {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: 30px;
}

.no-events-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.social-link i {
  font-size: 1.2rem;
}

/* Calendar Illustration */
.no-events-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.calendar-illustration {
  width: 200px;
  height: 200px;
  background: var(--bg-secondary);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.cal-header {
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
}

.cal-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 25px;
}

.cal-dot {
  width: 35px;
  height: 35px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  animation: calPulse 2s ease-in-out infinite;
}

.cal-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.cal-dot:nth-child(3) {
  animation-delay: 0.4s;
}
.cal-dot:nth-child(4) {
  animation-delay: 0.6s;
}
.cal-dot:nth-child(5) {
  animation-delay: 0.8s;
}
.cal-dot:nth-child(6) {
  animation-delay: 1s;
}

.cal-dot.highlight {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
  animation: calHighlight 2s ease-in-out infinite;
}

@keyframes calPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes calHighlight {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .no-upcoming-events {
    grid-template-columns: 1fr;
    padding: 40px 25px;
    text-align: center;
  }

  .no-events-content {
    text-align: center;
  }

  .no-events-icon {
    margin: 0 auto 25px;
  }

  .no-events-social {
    justify-content: center;
    flex-wrap: wrap;
  }

  .no-events-illustration {
    order: -1;
  }

  .calendar-illustration {
    width: 150px;
    height: 150px;
  }

  .cal-header {
    height: 35px;
  }

  .cal-body {
    padding: 15px;
    gap: 10px;
  }

  .cal-dot {
    width: 25px;
    height: 25px;
  }
}

/* Past Events List */
.past-events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.past-event-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.past-event-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.past-event-header {
  display: flex;
  align-items: flex-start;
  padding: 25px;
  gap: 25px;
}

.past-event-date {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
  color: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  text-align: center;
  min-width: 90px;
  flex-shrink: 0;
}

.past-event-date .day {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.past-event-date .month {
  display: block;
  font-size: 0.9rem;
  margin-top: 5px;
  opacity: 0.9;
}

.past-event-date .year {
  display: block;
  font-size: 0.85rem;
  opacity: 0.7;
}

.past-event-info {
  flex: 1;
}

.past-event-info h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.past-event-info p {
  color: var(--text-tertiary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 15px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.gallery-indicator i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Past Event Gallery */
.past-event-gallery {
  overflow: hidden;
  border-top: 1px solid var(--border-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 20px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

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

.gallery-overlay i {
  color: #fff;
  font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* ------------------------------------------------------------------ */
/* e. YonetimKurulu Section
/* ------------------------------------------------------------------ */

#yonetimKurulu {
  background: var(--bg-secondary);
  padding: 100px 0;
}

#yonetimKurulu h2 {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

#yonetimKurulu h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
  justify-content: center;
  gap: 40px;
}

.team-member {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.short-team-member {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  box-shadow: var(--card-shadow);
  height: 380px;
}

.team-member:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}
.short-team-member:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 20px;
  border: 4px solid var(--bg-tertiary);
  transition: border-color 0.3s ease;
  /* Fix for high-res image downscaling - smoother rendering */
  image-rendering: auto;
  image-rendering: smooth;
  image-rendering: high-quality;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Force GPU rendering for smoother scaling */
  transform: translateZ(0);
  will-change: transform;
  /* Smooth edges on circle crop */
  -webkit-filter: blur(0);
  filter: blur(0);
}

.team-member:hover .team-photo {
  border-color: var(--primary-color);
}
.short-team-member:hover .team-photo {
  border-color: var(--primary-color);
}

.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary, #f0f0f0);
}

.team-role {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
  text-align: center;
}

.team-name {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.team-desc {
  font-size: 1.4rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ---- Card Flip (board members with descriptions) ---- */

.card-flip-container {
  perspective: 1000px;
  cursor: pointer;
}

.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.card-flip-container.flipped .card-flip-inner {
  transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  border: 2px solid var(--border-color);
  box-shadow: var(--card-shadow);
  background: var(--bg-secondary);
}

.card-flip-front {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.card-flip-back {
  transform: rotateY(180deg);
  padding: 28px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  /* Smooth scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.card-flip-back::-webkit-scrollbar {
  width: 5px;
}
.card-flip-back::-webkit-scrollbar-track {
  background: transparent;
}
.card-flip-back::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.card-flip-back-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-align: center;
}

.card-flip-back-role {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-align: center;
}

.card-flip-back-desc {
  font-size: 1.3rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  text-align: left;
}

.card-flip-hint {
  font-size: 1.1rem;
  color: var(--text-secondary, #888);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0.7;
}

.card-flip-container:hover .card-flip-front {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-flip-container:hover .card-flip-front .team-photo {
  border-color: var(--primary-color);
}

.card-flip-back-close {
  font-size: 1.1rem;
  color: var(--text-secondary, #888);
  margin-top: auto;
  padding-top: 12px;
  text-align: center;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* ---- End Card Flip ---- */

/* Tabs Override */
.MuiTabs-root {
  margin-bottom: 40px;
}

/* ------------------------------------------------------------------ */
/* f. Footer
/* ------------------------------------------------------------------ */

footer {
  background: #111827; /* Keep footer dark always */
  color: #9ca3af;
  padding: 80px 0 40px;
  text-align: center;
}

footer .social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  padding: 0;
  list-style: none;
}

footer .social-links a {
  color: #fff;
  font-size: 2.4rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

footer .social-links a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

footer .copyright {
  font-size: 1.4rem;
  opacity: 0.5;
}

footer .copyright li {
  display: inline;
  margin: 0 10px;
}


/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(44, 95, 141, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(44, 95, 141, 0.45);
}

.back-to-top:active {
  transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/* g. Members Map Section - Enhanced Version
/* ------------------------------------------------------------------ */

#members-map {
  background: radial-gradient(
      ellipse at 20% 20%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(59, 130, 246, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(147, 197, 253, 0.05) 0%,
      transparent 70%
    ),
    linear-gradient(
      180deg,
      var(--bg-primary) 0%,
      #f0f4f8 50%,
      var(--bg-primary) 100%
    );
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

#members-map::before {
  content: "";
  position: absolute;
  top: 10%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

#members-map::after {
  content: "";
  position: absolute;
  bottom: 15%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(147, 197, 253, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

#members-map .container {
  position: relative;
  z-index: 1;
}

/* Map Hero Section */
.map-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
  padding: 100px 0 60px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

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

.map-hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.map-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.map-hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-stat-label {
  display: block;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

.hero-stat-divider {
  width: 2px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
}

/* Loading spinner animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Map Container */
.map-container-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.map-box {
  background: var(--bg-secondary);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  height: 600px;
}

.country-list-box {
  background: var(--bg-secondary);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  padding: 30px;
  height: 600px;
  overflow-y: auto;
}

.country-list-box::-webkit-scrollbar {
  width: 6px;
}

.country-list-box::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

.country-list-box::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.country-list-header {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--bg-tertiary);
}

.country-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.country-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-primary);
}

.country-item:hover,
.country-item.active {
  background: var(--primary-color);
  color: #fff;
  transform: translateX(5px);
}

.country-item .country-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-item .country-flag {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  flex-shrink: 0;
}

.country-item .country-flag .flag-img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

.country-item .country-name {
  font-weight: 600;
}

.country-item .member-count {
  background: var(--border-color);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}

.country-item:hover .member-count,
.country-item.active .member-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.country-item.selected {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
  color: #fff;
}

.country-item.selected .member-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Section Subtitle */
.section-subtitle {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 30px;
}


/* Call to Action Section */
.map-cta {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  margin-top: 20px;
}

.cta-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--primary-color);
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button i {
  font-size: 1.2rem;
}

.linkedinWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.linkedinIcon {
  width: 24px;
  height: 24px;
}

@media only screen and (max-width: 1024px) {
  .map-hero {
    padding: 80px 0 50px;
  }
  .map-hero-content h1 {
    font-size: 2.2rem;
  }
  .map-hero-content p {
    font-size: 1rem;
  }
  .hero-stats {
    gap: 30px;
  }
  .hero-stat-number {
    font-size: 2.5rem;
  }
  .hero-stat-label {
    font-size: 0.85rem;
  }
  .map-container-wrapper {
    grid-template-columns: 1fr;
  }
  .map-box,
  .country-list-box {
    height: 500px;
  }

  .map-cta {
    padding: 40px 25px;
  }
  .cta-content h3 {
    font-size: 1.5rem;
  }
  .cta-content p {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 768px) {
  .map-hero {
    padding: 70px 0 40px;
    margin-bottom: 30px;
  }
  .map-hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  .hero-stat-divider {
    width: 60px;
    height: 2px;
  }
  .hero-stat-number {
    font-size: 2.2rem;
  }
  .map-box {
    height: 400px;
  }
  .country-list-box {
    height: 400px;
    padding: 20px;
  }
  .country-list-header {
    font-size: 1.2rem;
  }
  .country-item {
    padding: 12px;
  }
}

/* ------------------------------------------------------------------ */
/* h. Announcements Page (News Hub Redesign)
/* ------------------------------------------------------------------ */

.news-hub-section {
  min-height: 100vh;
  background: var(--bg-primary);
  padding-top: 100px; /* Account for fixed header */
  display: flex;
  flex-direction: column;
}

.news-hub-container {
  flex: 1;
  display: flex;
  max-width: 1400px;
  width: 95%;
  margin: 0 auto 40px;
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: calc(100vh - 140px); /* Full height minus header/margins */
  min-height: 600px;
  border: 1px solid var(--border-color);
}

/* --- Left Sidebar (List) --- */
.news-sidebar {
  width: 400px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.search-box {
  position: relative;
  margin-bottom: 0;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 1.2rem;
}

.search-box input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 1.4rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.2s;
}

.search-box input:focus {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
  outline: none;
}

.news-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.news-item {
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  margin-bottom: 8px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.news-item:hover {
  background: var(--bg-tertiary);
}

.news-item.selected {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--text-tertiary);
}

.important-icon {
  color: var(--primary-color);
  margin-left: auto;
}

.item-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-summary {
  font-size: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-tertiary);
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* --- Right Panel (Content) --- */
.news-content-panel {
  flex: 1;
  padding: 50px 80px;
  overflow-y: auto;
  background: var(--bg-secondary);
  position: relative;
}

.back-button {
  display: none; /* Hidden on desktop */
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 20px;
  cursor: pointer;
  padding: 0;
  font-size: 1.4rem;
}

.content-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
}

.header-badges {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-tertiary);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-tertiary);
  font-size: 1.4rem;
}

.content-header h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.content-body {
  font-size: 1.8rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 800px;
}

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

.content-body strong {
  color: var(--text-primary);
  font-weight: 700;
}



/* --- Responsive --- */
@media (max-width: 900px) {
  .news-hub-container {
    height: auto;
    min-height: calc(100vh - 100px);
    margin-bottom: 0;
    border-radius: 0;
    width: 100%;
  }

  .news-sidebar {
    width: 100%;
    border-right: none;
  }

  .news-sidebar.hidden {
    display: none;
  }

  .news-content-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 20px;
    padding-top: 80px; /* Space for back button */
  }

  .back-button {
    display: flex;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 101;
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .content-header h1 {
    font-size: 1.8rem;
  }
}

/* ------------------------------------------------------------------ */
/* i. Contact Section
/* ------------------------------------------------------------------ */

.contact-section {
  background: var(--bg-secondary);
  padding: 100px 0;
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.contact-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.contact-header p {
  font-size: 1.4rem;
  color: var(--text-tertiary);
}

.contact-container {
  display: flex;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Contact Info Cards */
.contact-info {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.info-card {
  background: var(--bg-primary);
  padding: 25px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon i {
  font-size: 1.4rem;
  color: #fff;
}

.info-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.info-content a {
  font-size: 1rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.info-content a:hover {
  color: var(--primary-color);
}


.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-btn.success {
  background: #10b981;
}

.submit-btn.error {
  background: #ef4444;
}

.submit-btn i {
  font-size: 1rem;
}

/* Responsive Contact */
@media (max-width: 900px) {
  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .info-card {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .contact-section {
    padding: 60px 0;
  }

  .contact-header h2 {
    font-size: 2rem;
  }
}

/* ------------------------------------------------------------------ */
/* Breadcrumb Navigation
/* ------------------------------------------------------------------ */

.breadcrumb {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  padding-top: 74px; /* 60px nav height + 14px padding */
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.breadcrumb-item a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--primary-hover);
}

.breadcrumb-item a i {
  font-size: 0.85rem;
}

.breadcrumb-separator {
  color: var(--text-tertiary);
  font-size: 0.65rem;
  margin: 0 10px;
  list-style: none;
}

.breadcrumb-item.active span {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Job Listings (İş İlanları)
/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* 404 Not Found Page
/* ------------------------------------------------------------------ */

.not-found-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
  padding: 100px 20px 80px;
}

.not-found-content {
  text-align: center;
  max-width: 500px;
}

.not-found-code {
  font-size: 12rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-color), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.05em;
}

.not-found-title {
  font-size: 2.8rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.not-found-message {
  font-size: 1.6rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.not-found-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.not-found-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.not-found-btn.primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(44, 95, 141, 0.3);
}

.not-found-btn.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 95, 141, 0.4);
  color: #fff;
}

.not-found-btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}

.not-found-btn.secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .not-found-code {
    font-size: 8rem;
  }

  .not-found-title {
    font-size: 2rem;
  }

  .not-found-actions {
    flex-direction: column;
  }

  .not-found-btn {
    justify-content: center;
  }
}

/* ------------------------------------------------------------------ */

.jobs-section {
  padding: 100px 0 80px;
  min-height: 100vh;
  background: var(--bg-primary);
}

.jobs-section h2 {
  text-align: center;
  font-size: 3.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.jobs-section .section-subtitle {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 1.6rem;
  margin-bottom: 40px;
}

/* Filters wrapper */
.jobs-filters-wrapper {
  max-width: 680px;
  margin: 0 auto 16px;
}

.jobs-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 0 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jobs-search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

.jobs-search-box i.fa-search {
  color: var(--text-tertiary);
  font-size: 1.5rem;
  margin-right: 10px;
  flex-shrink: 0;
}

.jobs-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.5rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  padding: 14px 0;
}

.jobs-search-box input::placeholder {
  color: var(--text-tertiary);
}

.jobs-search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 1.4rem;
  padding: 4px 8px;
  border-radius: 50%;
  transition: color 0.2s;
}

.jobs-search-clear:hover {
  color: var(--primary-color);
}

/* Dropdowns row */
.jobs-dropdowns {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.jobs-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 0 12px;
  transition: border-color 0.2s ease;
}

.jobs-select-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

.jobs-select-wrapper i {
  color: var(--text-tertiary);
  font-size: 1.3rem;
  margin-right: 8px;
  flex-shrink: 0;
  pointer-events: none;
}

.jobs-select-wrapper select {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.4rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  padding: 12px 0;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.jobs-select-wrapper select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.jobs-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 1.35rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-tertiary);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.jobs-clear-filters:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: rgba(44, 95, 141, 0.05);
}

/* Count */
.jobs-count {
  text-align: center;
  font-size: 1.35rem;
  color: var(--text-tertiary);
  margin-bottom: 30px;
}

/* Grid */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card */
.job-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 26px 22px;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.job-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(44, 95, 141, 0.10);
  transform: translateY(-3px);
}

.job-card-body {
  margin-bottom: 20px;
}

.job-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 14px 0;
  line-height: 1.3;
}

.job-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-company,
.job-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  color: var(--text-secondary);
}

.job-company i,
.job-location i {
  color: var(--primary-color);
  width: 16px;
  text-align: center;
  font-size: 1.3rem;
}

/* Apply button */
.job-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  align-self: flex-start;
}

.job-apply-btn:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateX(2px);
}

.job-apply-btn i {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.job-apply-btn:hover i {
  transform: translateX(3px);
}

/* Empty state */
.jobs-empty {
  text-align: center;
  padding: 60px 20px;
  max-width: 400px;
  margin: 0 auto;
}

.jobs-empty i.fa-briefcase {
  font-size: 4rem;
  color: var(--border-color);
  margin-bottom: 20px;
}

.jobs-empty h3 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.jobs-empty p {
  color: var(--text-tertiary);
  font-size: 1.5rem;
}

/* Job Submit CTA */
.job-submit-cta {
  margin-top: 48px;
  padding: 32px 36px;
  background: linear-gradient(135deg, #f0f6fb 0%, #e8f0f8 100%);
  border: 1px solid rgba(44, 95, 141, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.job-submit-cta-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
}

.job-submit-cta-icon {
  font-size: 2.4rem;
  color: var(--primary-color);
  margin-top: 2px;
  flex-shrink: 0;
}

.job-submit-cta-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.job-submit-cta-text p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.job-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.job-submit-btn:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.job-submit-btn i {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.job-submit-btn:hover i {
  transform: translateX(2px);
}

/* Responsive */
@media (max-width: 768px) {
  .jobs-section {
    padding: 90px 0 60px;
  }

  .jobs-section h2 {
    font-size: 2.6rem;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .job-card {
    padding: 22px 20px 18px;
  }

  .job-submit-cta {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .job-submit-cta-content {
    flex-direction: column;
    align-items: center;
  }

  .job-submit-cta-text h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .jobs-filters-wrapper {
    padding: 0 8px;
  }

  .jobs-dropdowns {
    flex-direction: column;
    gap: 8px;
  }

  .jobs-clear-filters {
    align-self: flex-end;
  }

  .job-title {
    font-size: 1.6rem;
  }
}

/* ------------------------------------------------------------------ */
/* App Loading Screen
/* ------------------------------------------------------------------ */

.app-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #071836 0%, #0d2b5e 100%);
}

.app-loading-logo {
  width: 120px;
  height: auto;
  margin-bottom: 30px;
  animation: loadingPulse 2s ease-in-out infinite;
}

.app-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: loadingSpin 0.8s linear infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

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