/* ===== TEMEL ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  }

body {
background-color: #d1d5db;
display: flex;
justify-content: center;
}

.page-wrapper {
width: 70%;
min-height: 100vh;
display: flex;
flex-direction: column;
background-color: #f0f0f0;
box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* ===== ÜST HEADER ===== */
.top-header {
position: relative;
display: flex;
align-items: center;
justify-content: center;
background-color: #bfc4cb;
padding: 1rem 2rem;
min-height: 160px;
border-bottom: 1px solid #005baa;
}

.logo {
position: absolute;
left: 2rem;
bottom: 25px;
height: 120px;
}

.ataturk-img {
position: absolute;
right: 3rem;
bottom: 25px;
height: 120px;
opacity: 0.9;
}

.header-text {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}

.header-text span {
font-weight: normal;
font-size: 1.4rem;
color: #000;
}

/* ===== ALT HEADER ===== */
.bottom-header {
display: flex;
justify-content: center;
align-items: stretch;
background-color: #004080;
height: 40px;
}

/* ===== MENÜ ===== */
.nav-links {
display: flex;
gap: 0;
height: 100%;
}

.nav-links a,
.nav-links .dropdown > a {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
padding: 0 12px;
background-color: #004080;
color: #fff;
text-decoration: none;
transition: background-color 0.3s ease;
cursor: pointer;
}

.nav-links a:hover,
.nav-links .dropdown:hover > a {
background-color: #22c55e;
}

/* ===== DROPDOWN ===== */
.nav-links .dropdown {
position: relative;
display: flex;
align-items: center;
}

.nav-links .dropdown-content {
display: none;
position: absolute;
top: 100%;
left: 0;
background-color: #004080;
min-width: 200px;
z-index: 1000;
flex-direction: column;
}

.nav-links .dropdown-content a {
color: #fff;
padding: 10px;
text-decoration: none;
display: block;
}

.nav-links .dropdown-content a:hover {
background-color: #22c55e;
}

.nav-links .dropdown:hover .dropdown-content {
display: flex;
flex-direction: column;
}

/* ===== HAMBURGER ===== */
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
}

.hamburger span {
width: 25px;
height: 3px;
background-color: #fff;
margin: 4px 0;
transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
opacity: 0;
}

.hamburger.open span:nth-child(3) {
transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HOME LAYOUT 2 SÜTUN ===== */
.home-layout {
display: grid;
grid-template-columns: 2.5fr 1fr;
gap: 1.2rem;
padding: 2rem 0;
width: 100%;
align-items: stretch;
}

/* ===== PERSONEL KART ===== */
.person-card {
background: #fff;
padding: 1rem;
border-radius: 10px;
text-align: center;
box-shadow: 0 4px 10px rgba(0,0,0,0.08);
transition: transform .2s ease, box-shadow .2s ease;

```
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
```

}

/* ===== PERSONEL KARTI DÜZENİ ===== */
.person-card p {
width: 100%;
margin: 0;
font-size: 0.95rem;
line-height: 1.2;
text-align: center;
white-space: normal;
word-spacing: normal;
letter-spacing: normal;
overflow-wrap: break-word;
}

/* ===== H3 BAŞLIKLAR İÇİN ===== */
.person-card h3 {
margin: 0 0 0.4rem 0;
font-size: 1.1rem;
line-height: 1.2;
word-wrap: break-word;
max-width: 150px;
margin-left: auto;
margin-right: auto;
text-align: center;
}

/* ===== GENEL PERSONEL GRID ===== */
.personnel-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 1rem;
justify-items: center;
margin-top: 2.4rem;
}

/* ===== PERSON-CARD RESİM AYARI ===== */
.person-card img {
width: 100%;
height: 180px;
object-fit: cover;
border-radius: 8px;
margin-bottom: 0.6rem;
}

.person-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* ===== SOL: ANA CONTENT ===== */
.main-content {
background: #f0f0f0;
padding: 1.6rem;
}

.main-content img {
width: 100%;
max-height: 260px;
object-fit: cover;
margin-bottom: 1rem;
}

.main-content h1 {
font-size: 1.4rem;
margin-bottom: 2.4rem;
margin-top: 2.4rem;
text-align: center;
}

.main-content h2 {
font-size: 1.4rem;
margin-bottom: 2.4rem;
margin-top: 2.4rem;
text-align: center;
}

.main-content p {
text-indent: 30px;
line-height: 1.6;
margin-bottom: 0.6rem;
text-align: justify;
hyphens: auto;
-webkit-hyphens: auto;
-ms-hyphens: auto;
line-height: 1.7;
}

/* ===== SAĞ SÜTUN ===== */
.right-column {
display: flex;
flex-direction: column;
gap: 1.2rem;
min-height: 100%;
background-color: #e5e7eb;
padding: 1rem;
justify-content: flex-start;
}

/* ===== ORTAK KART STİLİ ===== */
.card {
background: #ffffff;
padding: 1rem;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ===== BOŞ BLOKLAR ===== */
.empty-card {
min-height: 140px;
}

.announcements {
background: #fff;
padding: 1rem;
font-size: 0.9rem;
}

.announcements h3 {
margin-bottom: 0.6rem;
}

.announcement {
background: #f0f0f0;
padding: 0.6rem;
margin-bottom: 0.5rem;
font-size: 0.85rem;
}

.quick-links {
background: #fff;
padding: 1rem;
font-size: 0.85rem;
}

.quick-links h3 {
font-size: 0.95rem;
margin-bottom: 0.6rem;
}

.quick-links ul {
list-style: none;
}

.quick-links li {
margin-bottom: 0.4rem;
}

.quick-links a {
text-decoration: none;
color: #004080;
}

.quick-links a:hover {
text-decoration: underline;
}

/* ===== SAYFA NOTU ===== */
.page-note {
max-width: 900px;
margin: 40px auto 10px auto;
padding-top: 12px;
font-size: 13px;
color: #6b7280;
text-align: center;
border-top: 1px solid #e5e7eb;
}

/* ===== FOOTER ===== */
.site-footer {
background-color: #004080;
color: #fff;
padding: 1.8rem 2rem;
font-size: 0.9rem;
}

.footer-row {
width: 100%;
}

.footer-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.6rem;
}

.footer-address,
.footer-phone {
display: flex;
align-items: center;
gap: 0.4rem;
}

.footer-bottom {
text-align: center;
font-size: 0.85rem;
opacity: 0.9;
}

.site-footer i {
font-size: 0.95rem;
font-weight: 900;
color: #b71c1c;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
.home-layout {
grid-template-columns: 1fr;
}

```
.right-column {
    flex-direction: column;
}

.right-column,
.main-content {
    width: 100%;
}

.ataturk-img,
.logo {
    position: static;
    display: block;
    margin: 0 auto 1rem auto;
    height: 100px;
}

.header-text {
    margin: 0;
}

.nav-links {
    display: none;
    position: absolute;
    top: 160px;
    right: 10px;
    background: #2563eb;
    flex-direction: column;
    padding: 1rem;
    border-radius: 8px;
}

.nav-links.active {
    display: flex;
}

.hamburger {
    display: flex;
}
```

}

/* ===== SAYFA BAŞLIĞI ===== */
.page-title {
width: 100%;
background-color: #004080;
color: #fff;
text-align: center;
margin-top: 32px;
padding: 14px 20px;
font-size: 22px;
font-weight: 600;
border-radius: 6px;
margin-bottom: 20px;
box-sizing: border-box;
text-transform: capitalize;
}

/* ===== HİZMETLER ===== */
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
}

.service-card {
background-color: #ffffff;
padding: 20px;
text-align: center;
border-radius: 12px;
font-weight: 600;
box-shadow: 0 4px 10px rgba(0,0,0,0.08);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* ===== DOKTOR / HEMŞİRE / BİRİM ===== */
.doctor-section {
margin-bottom: 50px;
}

/* Doktor adı */
.doctor-section h2 {
margin: 0 0 5px 0;
color: #1e293b;
text-align: center;
font-size: 1.4rem;
line-height: 1.3;
font-weight: 600;
}

/* Hemşire adı */
.doctor-section h4 {
margin: 0 0 4px 0;
color: #475569;
text-align: center;
font-size: 1rem;
line-height: 1.3;
font-weight: 500;
}

/* Birim adı */
.doctor-section p {
margin: 0;
color: #64748b;
text-align: center;
font-size: 0.9rem;
line-height: 1.4;
}

.subtitle {
color: #475569;
margin-bottom: 15px;
}

.total-hours {
margin-top: 10px;
font-weight: 600;
}

/* ===== EXCEL TABLO ===== */
.excel-table {
width: 100%;
border-collapse: collapse;
margin-top: 15px;
border: 1px solid #94a3b8;
}

.excel-table th {
background: #1e293b;
color: #fff;
padding: 10px;
font-size: 14px;
border: 1px solid #94a3b8;
}

.excel-table td {
padding: 10px;
text-align: center;
font-size: 14px;
border-top: 1px solid #94a3b8;
border-bottom: 1px solid #94a3b8;
border-left: 1px solid #cbd5e1;
border-right: 1px solid #cbd5e1;
white-space: nowrap;
}

.row-title {
background: #f1f5f9;
font-weight: 600;
text-align: left;
}

.badge-out {
background: #e0f2fe;
color: #075985;
font-weight: 600;
}

.badge-edu {
background: #fff7ed;
color: #9a3412;
font-weight: 600;
}

.contact-map {
margin-bottom: 20px;
}

.contact-info-row {
display: flex;
gap: 20px;
flex-wrap: wrap;
}

.contact-box {
flex: 1;
min-width: 250px;
background: #f5f7fa;
padding: 15px;
border-radius: 8px;
}

.contact-box a {
color: #0077cc;
text-decoration: none;
}

.contact-box a:hover {
text-decoration: underline;
}

/* ===== AŞILAR SAYFASI ===== */
.vaccines-page,
.vaccines-page .vaccine-images,
.vaccines-page .vaccine-images img {
height: auto !important;
max-height: none !important;
overflow: visible !important;
}

/* ===== HAKKIMIZDA ===== */
.about-page {
width: 100%;
line-height: 1.7;
}

.about-page h1 {
margin-bottom: 20px;
}

.about-page h2 {
margin-top: 25px;
margin-bottom: 10px;
color: #0a4fa3;
}

.about-page p {
margin-bottom: 15px;
}

.about-page ul {
padding-left: 20px;
}

.about-page ul li {
margin-bottom: 8px;
}

/* ===== PAGINATION ===== */
#pagination {
display: flex;
justify-content: center;
align-items: center;
margin-top: 2em;
gap: 6px;
}

#pagination button {
padding: 6px 12px;
border: 1px solid #007bff;
background-color: #fff;
color: #007bff;
cursor: pointer;
border-radius: 4px;
font-size: 0.9em;
transition: background-color 0.2s, color 0.2s;
}

#pagination button:hover {
background-color: #007bff;
color: #fff;
}

#pagination button.active {
background-color: #007bff;
color: #fff;
font-weight: bold;
}

/* ===== YENİ ROZET ===== */
.badge-new {
margin-left: 6px;
padding: 2px 6px;
font-size: 10px;
background: #d32f2f;
color: #fff;
border-radius: 4px;
}

/* ===== DUYURULAR ===== */
.announcements-grid {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
}

.announcement-card {
background: white;
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
padding: 16px;
margin-bottom: 16px;
}

.announcement-card:hover {
transform: translateY(-3px);
box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.announcement-card h3 {
margin: 0 0 4px 0;
font-size: 18px;
font-weight: 600;
color: #0b5ed7;
}

.announcement-date {
font-size: 13px;
color: #6b7280;
margin-bottom: 10px;
font-style: italic;
}

.announcement-text {
font-size: 15px;
line-height: 1.6;
color: #333;
}

.announcement-simple {
margin-bottom: 16px;
}

.announcement-header {
display: flex;
justify-content: center;
align-items: center;
position: relative;
}

.announcement-header h3 {
margin: 0;
}

.announcement-date {
position: absolute;
right: 0;
font-size: 0.9em;
color: #555;
}

.announcement-simple .announcement-text {
font-size: 1em;
color: #333;
margin-top: 1em;
}

.announcement-header .announcement-date {
position: absolute;
right: 16px;
font-size: 0.9em;
color: #555;
}

.announcement-card .announcement-text {
margin-top: 1em;
font-size: 1em;
color: #333;
}

/* ===== ANASAYFA PAGINATION ===== */
#anasayfa-pagination {
text-align: center;
margin-top: 20px;
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
}

#anasayfa-pagination a {
text-decoration: none;
color: #007bff;
font-weight: bold;
}

#anasayfa-pagination a:hover {
text-decoration: underline;
}

#anasayfa-pagination .pagination-info {
font-weight: normal;
color: #333;
}

/* ===== SECTION TITLE ===== */
.section-title {
text-align: center;
margin-bottom: 2rem;
font-size: 1.6rem;
}

/* ===== TÜM BİRİM BLOĞU ===== */
.unit-block {
margin-bottom: 3rem;
}

/* ===== BAŞLIK DİKDÖRTGENİ ===== */
.unit-title {
background: #004080;
color: #fff;
padding: 0.7rem 1rem;
font-weight: 600;
text-align: center;
border-radius: 6px 6px 0 0;
font-size: 1.1rem;
}

/* ===== ALT KARE / PANEL ===== */
.unit-content {
background: #ffffff;
padding: 1.5rem;
border-radius: 0 0 10px 10px;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===== AVATAR ===== */
.avatar {
width: 120px;
height: 120px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 0.8rem;
font-size: 44px;
color: #fff;
flex-shrink: 0;
}

/* ===== MESLEĞE GÖRE RENKLER ===== */
.avatar.doctor {
background: #0b5ed7;
}

.avatar.nurse {
width: 120px;
height: 120px;
padding: 0;
background: #2e8b57;
overflow: hidden;
}

.avatar.secretary {
background: #6f42c1;
}

.avatar.staff {
background: #fd7e14;
}

.avatar {
width: 120px;
height: 120px;
background: #1f9d55;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}

.avatar img {
width: 100%;
height: auto;
position: relative;
top: 8px;
}

.section-title-wrapper {
text-align: center;
}

.section-title.full-width {
width: 100%;
background-color: #004080;
color: #ffffff;
padding: 18px 0;
text-align: center;
font-weight: 600;
border-radius: 6px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
letter-spacing: 0.5px;
margin: 0 0 30px 0;
}

/* ===== SIMPLE LIST ===== */
.simple-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 1rem;
justify-items: center;
margin-top: 1.5rem;
}

.simple-card {
background: #ffffff;
padding: 1rem;
border-radius: 10px;
text-align: center;
box-shadow: 0 4px 10px rgba(0,0,0,0.08);
transition: transform .2s ease, box-shadow .2s ease;
font-size: 0.95rem;
}

.simple-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.simple-card span {
display: block;
margin-top: 0.3rem;
font-size: 0.85rem;
color: #475569;
}

/* ===== SERVICE LINK ===== */
.service-link {
text-decoration: none;
color: inherit;
display: block;
}

.service-link:hover {
color: inherit;
}

.service-card {
cursor: pointer;
}

/* ===== HİZMET KARTLARI HOVER ===== */
.services-grid .service-card {
transition: all 0.3s ease;
cursor: pointer;
}

.services-grid .service-card:hover {
background-color: #22c55e;
color: #fff;
transform: translateY(-5px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== MAVİ DİKDÖRTGEN BAŞLIK ===== */
.section-title.full-width {
background-color: #004080;
color: #fff;
padding: 15px 20px;
font-size: 1.5rem;
font-weight: bold;
border-radius: 8px;
margin-bottom: 20px;
}

/* ===== İÇERİK KUTUSU ===== */
.announcement-simple {
background-color: #f9f9f9;
padding: 15px 20px;
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
margin-bottom: 20px;
}

/* ===== İÇERİK METNİ ===== */
.announcement-text {
font-size: 1rem;
line-height: 1.6;
}

/* ===== GERİ BUTONU ===== */
.back-btn {
display: inline-block;
padding: 10px 20px;
background-color: #007BFF;
color: #fff;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background 0.3s;
}

.back-btn:hover {
background-color: #0056b3;
}

/* ===== GALERİ KARTI ===== */
.galeri-card {
text-align: center;
cursor: pointer;
transition: transform 0.3s, box-shadow 0.3s;
padding: 10px;
}

.galeri-card img.galeri-thumb {
width: 100%;
height: 120px;
object-fit: cover;
border-radius: 6px;
margin-bottom: 8px;
}

.galeri-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== GALERİ BÖLÜMÜ ===== */
.gallery-page {
padding: 40px 20px;
background-color: #f9f9f9;
}

.gallery-page .section-title {
text-align: center;
margin-bottom: 30px;
font-size: 28px;
font-weight: bold;
}

.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}

.gallery-grid a img {
width: 100%;
height: 200px;
border-radius: 8px;
transition: transform 0.3s, box-shadow 0.3s;
cursor: pointer;
object-fit: cover;
}

.gallery-grid a img:hover {
transform: scale(1.05);
box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ===== 404 SAYFASI ===== */
.error-404 {
text-align: center;
padding: 60px 20px;
}

.error-404 h1 {
font-size: 110px;
color: #0d6efd;
margin-bottom: 10px;
}

.error-404 h2 {
font-weight: 600;
margin-bottom: 20px;
}

.error-404 p {
max-width: 500px;
margin: 0 auto 30px auto;
color: #555;
line-height: 1.6;
}

.error-buttons {
display: flex;
justify-content: center;
gap: 15px;
flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
padding: 10px 20px;
border-radius: 6px;
text-decoration: none;
font-weight: 500;
transition: 0.3s ease;
}

.btn-primary {
background-color: #0d6efd;
color: white;
}

.btn-primary:hover {
background-color: #084298;
}

.btn-secondary {
background-color: #e9ecef;
color: #333;
}

.btn-secondary:hover {
background-color: #ced4da;
}
