/* GENEL AYARLAR */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}
a { text-decoration: none; }

/* HEADER */
.header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 50;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #003366;
}
.nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.nav a {
    color: #4b5563;
    font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover { color: #111; }

/* HERO */
.hero {
    height: 500px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 10;
    padding: 0 1rem;
    pointer-events: none;
}
.hero-slide-title {
    font-size: 3rem;
    font-weight: 700;
    color: #003366; /* Logo lacivert rengi */
    line-height: 1.2;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.9); /* Resim üzerine gelirse okunabilmesi için beyaz hale */
}
@media (max-width: 768px) {
    .hero-slide-title {
        font-size: 2rem;
    }
}

/* SERVICES */
.services-section { padding: 4rem 2rem; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 3rem;
    font-weight: 700;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
}
.service-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.service-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}
.service-content { 
    padding: 2rem 1.5rem; 
    text-align: left; 
    display: flex;
    flex-direction: column;
    flex: 1;
}
.service-tag {
    display: inline-block;
    background-color: #fcf4eb;
    color: #c9a07b;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    align-self: flex-start;
}
.service-title { 
    margin-bottom: 1rem; 
    color: #1a1a1a; 
    font-size: 1.5rem; 
    font-weight: 600;
    line-height: 1.3;
}
.service-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    height: 4.8rem; /* Exact height for 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    white-space: normal;
}
.service-link {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: #003366;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    margin-top: auto;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.service-link:hover { background: transparent; color: #111; }

/* SWIPER GALLERY */
.gallery-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    overflow: hidden;
}
.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}
.swiper-slide {
    background-position: center;
    background-color: #ffffff;
    width: 300px;
    height: 300px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
    -webkit-box-reflect: below 5px linear-gradient(transparent, transparent, rgba(0,0,0,0.4));
    cursor: pointer;
}
.swiper-slide img, .swiper-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-dynamic-text {
    text-align: center;
    margin-top: 3rem;
    padding: 0 1rem;
    min-height: 80px;
}
#gallery-active-title {
    font-size: 1.3rem;
    color: #111;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
#gallery-active-desc {
    font-size: 0.95rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}
.modal-media {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}
.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}
.close-btn:hover { color: #f0f0f0; }

/* FEATURES SECTION */
.features-section {
    padding: 4rem 0;
    background-color: #fcfcfc;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-box {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.feature-icon {
    margin-bottom: 1.5rem;
    color: #003366; /* Lacivert */
}
.feature-icon svg {
    width: 60px;
    height: 60px;
    fill: currentColor;
}
.feature-title {
    font-size: 1.2rem;
    color: #111;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem; right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: transform 0.2s;
}
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn svg { width: 35px; height: 35px; fill: currentColor; }

/* DYNAMIC PAGES */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 100vh;
}
.page-title {
    font-size: 3rem;
    color: #003366;
    margin-bottom: 2rem;
    text-align: center;
}
.page-media-container {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}
.page-image, .page-video {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}
.page-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.page-map {
    margin-top: 3rem;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.page-map iframe {
    width: 100% !important;
    height: 450px !important;
    border: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-container { justify-content: center; padding: 1rem; }
    .hero-title { font-size: 2.5rem; }
    .hero { height: 400px; }
    .gallery-section { padding: 2rem 0; }
    .swiper-slide {
        width: 280px;
        height: 300px;
    }
    .gallery-section { padding: 2rem 1rem; }
    .section-title { font-size: 2rem; }
}

/* ADMIN PANEL */
.admin-container {
    min-height: 100vh;
    background-color: #f3f4f6;
}
.admin-header {
    background-color: #1f2937;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-header a { color: #60a5fa; text-decoration: none; }
.admin-content {
    padding: 2rem;
    display: flex;
    gap: 3rem;
    flex-direction: column;
}
.admin-section {
    display: flex;
    gap: 2rem;
    flex-direction: column;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}
@media (min-width: 1024px) {
    .admin-section { flex-direction: row; align-items: flex-start; }
}
.admin-card-form {
    background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); flex: 1;
}
.admin-card-list {
    background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); flex: 2;
}
.admin-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.admin-input { padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 4px; font-family: inherit; width: 100%; }
.admin-btn { background-color: #10b981; color: white; padding: 0.75rem; border: none; border-radius: 4px; cursor: pointer; width: 100%; }
.admin-btn:hover { background-color: #059669; }
.admin-btn-delete { background-color: #ef4444; color: white; padding: 0.5rem 1rem; border: none; border-radius: 4px; cursor: pointer; width: 100%; margin-top: 10px; }
.admin-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 1rem;
}
.admin-item { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #fff; }
.admin-item-img { width: 100%; height: 150px; object-fit: cover; }
.admin-item-content { padding: 1rem; }

/* FOOTER */
.site-footer {
    background-color: #003366; /* Lacivert */
    color: #ffffff; /* Beyaz */
    padding: 4rem 0;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 3rem;
}
.footer-col h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col h3::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 2px;
    background-color: #e63946; /* Kırmızımsı detay */
}
.footer-logo {
    max-width: 220px;
    margin-bottom: 1.5rem;
    background: #ffffff; /* Logonun daha iyi görünmesi için beyaz arkaplan */
    padding: 10px;
    border-radius: 4px;
}
.footer-contact strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #cccccc;
    margin-top: 1.5rem;
    margin-bottom: 0.3rem;
}
.footer-contact p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-links li:last-child {
    border-bottom: none;
}
.footer-links a {
    display: block;
    padding: 0.75rem 0;
    color: #dddddd;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
