/* Ahmetli Laravel home.blade.php ana içerik blokları (haber + duyuru/hızlı erişim + başkan) — sınıf adları birebir */

.main-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  flex: 1 0 auto;
  box-sizing: border-box;
  background: #fff;
  color: #1d2327;
}

.news-section-full {
  width: 100%;
  background: #fff;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
  grid-template-areas: "announcements rightstack";
  gap: 32px 40px;
  width: 100%;
  align-items: stretch;
}

.two-column-section .announcements-panel {
  grid-area: announcements;
  min-width: 0;
}

.two-column-section > .yh-corp-feed--ihale-ilan {
  grid-area: rightstack;
  min-width: 0;
}

@media (max-width: 1024px) {
  .two-column-section {
    grid-template-columns: 1fr;
    grid-template-areas: "announcements" "rightstack";
    gap: 40px;
  }
}

.news-panel {
  width: 100%;
  background: #fff;
}

.news-empty-state {
  flex: 1 0 100%;
  text-align: center;
  padding: 8px 0 24px;
  color: #1d2327;
  background: #fff;
}

.news-empty-state h3 {
  color: #374151;
  font-weight: 600;
}

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

.news-section-title span:first-child {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #7a8aa0;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-section-title span:last-child {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #0f2e57;
  letter-spacing: -0.5px;
}

.news-slider-wrapper {
  position: relative;
  width: 100%;
}

.news-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #fff;
}

.news-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card {
  flex: 0 0 calc((100% - 80px) / 5);
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 14px rgba(15, 23, 42, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: #1d2327;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: #d1d5db;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 12px 28px rgba(15, 23, 42, 0.1);
}

.news-card-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f3f4f6;
  position: relative;
  flex-shrink: 0;
  border-radius: 16px 16px 0 0;
}

.news-card-image-wrapper img {
  width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px 16px 0 0;
}

.news-card-image-placeholder {
  width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 48px;
}

.news-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  color: #1d2327;
}

.news-card-date {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 4px;
}

.news-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 42px;
  max-height: 42px;
}

.news-card-excerpt {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.news-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0f2e57;
  font-size: 20px;
  transition: all 0.2s ease;
}

.news-arrow-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #f9fafb;
}

.news-arrow-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.news-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.news-dot.active {
  width: 24px;
  height: 8px;
  border-radius: 4px;
  background: #0f2e57;
}

.news-all-btn {
  margin-top: 24px;
  text-align: center;
}

.news-all-btn a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #0f2e57;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.news-all-btn a:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1400px) {
  .news-card {
    flex: 0 0 calc((100% - 60px) / 4);
  }
}

@media (max-width: 1024px) {
  .news-card {
    flex: 0 0 calc((100% - 40px) / 3);
  }
  .news-track {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .news-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
  .news-track {
    gap: 12px;
  }
  .main-content {
    padding: 40px 20px;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .news-card {
    flex: 0 0 100%;
  }
  .news-track {
    gap: 12px;
  }
}

.announcements-panel {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  min-height: 380px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 61, 122, 0.08);
  box-sizing: border-box;
}

.announcements-title {
  font-size: 28px;
  font-weight: 700;
  color: #003d7a;
  margin-bottom: 24px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.announcements-title::before {
  content: "";
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, #003d7a 0%, #0056b3 100%);
  border-radius: 2px;
}

.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 180px;
  min-width: 0;
}

.announcement-item {
  display: flex;
  align-items: flex-start;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  gap: 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.announcement-item > .announcement-item__main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.announcement-item:hover {
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
  border-color: #003d7a;
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(0, 61, 122, 0.12);
}

.announcement-arrow {
  flex-shrink: 0;
  color: #003d7a;
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.3s ease;
  margin-top: 2px;
}

.announcement-item:hover .announcement-arrow {
  transform: translateX(4px);
}

.announcement-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1d2327;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.announcements-view-all {
  margin-top: 24px;
  text-align: center;
}

.announcements-view-all a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #003d7a 0%, #0056b3 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 61, 122, 0.2);
}

.announcements-view-all a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 61, 122, 0.3);
  color: #fff;
}

.quick-access-panel {
  position: relative;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 26px 22px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-height: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.quick-access-title {
  font-size: 32px;
  font-weight: 700;
  color: #003d7a;
  text-align: left;
  line-height: 1.2;
  margin-bottom: 28px;
}

.quick-access-title span {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: #646970;
  margin-top: 4px;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 100%;
}

.quick-access-btn {
  min-height: 95px;
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #1d2327;
  position: relative;
  overflow: hidden;
  padding: 16px 8px;
}

.quick-access-btn.blue {
  background: #1d3554;
  color: #fff;
}

.quick-access-btn.yellow {
  background: #ffc107;
  color: #fff;
}

.quick-access-btn.white {
  background: #fff;
  color: #1d2327;
  border: 1px solid #e5e7eb;
}

.quick-access-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.quick-access-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.quick-access-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.quick-access-btn:hover .quick-access-icon svg {
  transform: scale(1.1);
}

.quick-access-label {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  padding: 0 4px;
}

@media (max-width: 768px) {
  .announcements-panel {
    padding: 24px 20px;
  }
  .announcements-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .announcement-item {
    padding: 14px 16px;
  }
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

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

.mayor-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px 60px;
  background: #f8f9fa;
}

.mayor-container {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 400px;
}

.mayor-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 400px;
}

.mayor-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

.mayor-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(180deg, #003d7a 0%, #0056b3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 100px;
}

.mayor-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  padding: 40px 30px 30px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.mayor-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  color: #fff;
}

.mayor-position {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  opacity: 0.95;
  text-align: center;
  width: 100%;
  line-height: 1.4;
  color: #fff;
}

.mayor-social {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.mayor-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mayor-social-link:hover {
  opacity: 0.8;
  color: #000;
}

.mayor-social-link svg {
  width: 18px;
  height: 18px;
  fill: #000;
}

.mayor-social-link .bi {
  font-size: 1.1rem;
  line-height: 1;
  color: #111;
}

.mayor-content {
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mayor-bio {
  font-size: 16px;
  line-height: 1.9;
  color: #1d2327;
  text-align: justify;
  margin-bottom: 30px;
}

.mayor-bio--muted {
  color: #646970;
  font-style: italic;
}

.mayor-links-section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid #e0e0e0;
  width: 100%;
}

.mayor-links-title {
  font-weight: 700;
  color: #1d2327;
  font-size: 18px;
  margin-bottom: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.mayor-links-list {
  display: grid;
  gap: 12px;
}

.mayor-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f0f1;
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: #1d2327;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
}

.mayor-link:hover {
  background: #dcdcde;
  color: #1d2327;
}

.mayor-link svg {
  width: 16px;
  height: 16px;
  color: #646970;
}

@media (max-width: 1024px) {
  .mayor-container {
    grid-template-columns: 280px 1fr;
  }
  .mayor-content {
    padding: 35px 40px;
  }
  .mayor-name {
    font-size: 24px;
    color: #fff;
  }
}

@media (max-width: 768px) {
  .mayor-section {
    padding: 50px 20px;
  }
  .mayor-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .mayor-image-wrapper {
    min-height: 350px;
  }
  .mayor-image-placeholder {
    min-height: 350px;
    font-size: 80px;
  }
  .mayor-image-overlay {
    padding: 30px 20px 20px;
  }
  .mayor-content {
    padding: 35px 30px;
  }
  .mayor-name {
    font-size: 24px;
    color: #fff;
  }
  .mayor-position {
    font-size: 13px;
  }
}
