@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0c1a30; /* Çok zengin lacivert */
    --primary-light: #183059;
    --secondary-color: #d4af37; /* Asil Altın/Gold */
    --secondary-hover: #bda030;
    --accent-color: #9e1b1b; /* Geleneksel Alevi Kırmızısı */
    --bg-light: #f6f8fb;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TOP BAR */
.top-bar {
    background-color: #060e1c;
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--secondary-color);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links a {
    margin-left: 20px;
    font-weight: 500;
}

.top-bar-links a:hover {
    color: var(--secondary-color);
}

/* HEADER */
header {
    background-color: var(--bg-white);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 70px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.quote-area {
    text-align: right;
    max-width: 450px;
}

.quote-text {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--primary-light);
    font-weight: 600;
}

.quote-author {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-top: 4px;
    display: block;
}

/* NAVIGATION */
.main-nav {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.nav-header {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 16px 20px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}

.nav-link:hover, .nav-item.active .nav-link {
    background-color: var(--primary-light);
    color: var(--secondary-color);
}

/* DROPDOWN MENU */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--secondary-color);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    list-style: none;
    z-index: 200;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item a {
    display: block;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child a {
    border-bottom: none;
}

.dropdown-item a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
    padding-left: 25px;
}

/* MAIN LAYOUT */
.main-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 30px;
    margin: 30px 0;
}

/* CAROUSEL / SLIDER */
.slider-container {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    color: var(--text-light);
}

.slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.slide-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.slide-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--accent-color);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.slide-btn:hover {
    background-color: #b22222;
    transform: translateY(-2px);
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active, .slider-dot:hover {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* SECTION TITLE */
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

/* NEWS GRID */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.news-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.news-img-wrapper {
    height: 180px;
    overflow: hidden;
    position: relative;
    background-color: var(--primary-color);
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-title:hover {
    color: var(--accent-color);
}

.news-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--primary-color);
    gap: 8px;
}

/* SIDEBAR WIDGETS */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

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

/* Banner Widget */
.banner-widget {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    text-align: center;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    border: 2px solid var(--secondary-color);
}

.banner-widget h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.banner-widget p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.banner-img-wrap {
    margin: 15px 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Calendar Widget */
.calendar-widget {
    text-align: center;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    font-size: 0.8rem;
}

.day-name {
    font-weight: 700;
    color: var(--text-muted);
    padding-bottom: 8px;
}

.calendar-day {
    padding: 8px 0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.calendar-day:hover:not(.empty) {
    background-color: var(--bg-light);
}

.calendar-day.active {
    background-color: var(--accent-color);
    color: var(--text-light);
    font-weight: 700;
}

/* Video Widget */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Links List Widget */
.widget-list {
    list-style: none;
}

.widget-list-item {
    border-bottom: 1px solid var(--border-color);
}

.widget-list-item:last-child {
    border-bottom: none;
}

.widget-list-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.widget-list-item a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Social Media Widget */
.social-widget-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    color: var(--text-light);
}

.social-btn.facebook { background-color: #3b5998; }
.social-btn.twitter { background-color: #1da1f2; }
.social-btn.instagram { background-color: #e1306c; }
.social-btn.youtube { background-color: #ff0000; }

.social-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* FRONTEND DYNAMIC PAGES */
.page-content-wrapper {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.page-body {
    font-size: 0.95rem;
    color: #374151;
}

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

.page-body img {
    border-radius: var(--border-radius);
    margin: 20px 0;
    box-shadow: var(--shadow-md);
}

/* BRANCHES PAGE */
.branch-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.branch-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 3fr 9fr;
    gap: 20px;
}

.branch-img {
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.branch-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.branch-info-item {
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
}

.branch-info-item strong {
    color: var(--text-dark);
}

/* GALLERY PAGE */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.gallery-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-card:hover {
    transform: scale(1.03);
    border-color: var(--secondary-color);
}

.gallery-img-wrapper {
    height: 160px;
    overflow: hidden;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-title {
    padding: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

/* MODAL / POPUP */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 80%;
}

.gallery-modal-content img {
    border: 3px solid var(--bg-white);
    border-radius: 4px;
}

.gallery-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--text-light);
    font-size: 2.5rem;
    cursor: pointer;
}

/* CONTACT PAGE */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.contact-item-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item-content {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form-card {
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(158, 27, 27, 0.15);
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: var(--text-light);
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-submit:hover {
    background-color: #801414;
}

.map-wrapper {
    margin-top: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* FOOTER */
footer {
    background-color: #060e1c;
    color: var(--text-light);
    padding: 40px 0 20px 0;
    border-top: 4px solid var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-about p {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact-item {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer-bottom-text {
    opacity: 0.7;
}

.creator-info {
    font-weight: 600;
    color: var(--secondary-color);
}

/* ALERTS */
.alert {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}
.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}
.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* TOP BAR */
    .top-bar {
        padding: 10px 0;
    }
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .top-bar-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    .top-bar-links a {
        margin-left: 0;
    }

    /* HEADER */
    .header-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 10px 0;
    }
    .logo-area a {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 8px !important;
    }
    .logo-text h1 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    .logo-text span {
        font-size: 0.8rem;
    }
    .quote-area {
        display: none; /* Hide quote to save precious mobile screen space */
    }

    /* MOBILE NAVIGATION BAR */
    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        width: 100%;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--text-light);
        font-size: 1rem;
        font-weight: 700;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        transition: var(--transition-fast);
        margin-left: auto;
    }
    
    .menu-toggle:hover, .menu-toggle:focus {
        background-color: var(--primary-light);
        color: var(--secondary-color);
        border-color: var(--secondary-color);
        outline: none;
    }
    
    .menu-toggle i {
        font-size: 1.1rem;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 5px 0 15px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 12px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .nav-link i {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    
    .nav-item.active-dropdown .nav-link i {
        transform: rotate(180deg);
    }

    /* DROPDOWN MENU FOR MOBILE ACCORDION */
    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background-color: var(--primary-light);
        display: none;
        padding: 0;
        list-style: none;
    }

    .nav-item.active-dropdown .dropdown-menu {
        display: block;
    }

    .dropdown-item a {
        padding: 12px 20px;
        color: rgba(255, 255, 255, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: block;
        transition: var(--transition-fast);
    }

    .dropdown-item:last-child a {
        border-bottom: none;
    }

    .dropdown-item a:hover {
        background-color: var(--primary-color);
        color: var(--secondary-color);
        padding-left: 25px;
    }

    /* OTHER PAGES & GRIDS */
    .news-grid {
        grid-template-columns: 1fr;
    }
    .branch-card {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
