:root {
    --primary: #800000; /* Dark Red */
    --secondary: #004d00; /* Dark Green */
    --primary-hover: #590000;
    --secondary-hover: #003300;
    --text-main: #333;
    --text-light: #666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #eee;
    --radius: 8px;
    --transition: 0.3s ease-in-out;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Nav */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: inline-block;
    height: 50px;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.nav > ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-contact {
    display: flex;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    background: #fdf5f5;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    transition: var(--transition);
}

.phone-link:hover {
    background: var(--primary);
    color: white;
}

.nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.nav a:hover, .nav a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Submenu */
.nav ul li {
    position: relative;
}
.nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 200px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: var(--radius);
    padding: 0.5rem 0;
}
.nav ul li:hover ul {
    display: block;
}
.nav ul li ul li a {
    padding: 0.5rem 1rem;
    display: block;
    color: var(--text-main);
}
.nav ul li ul li a:hover {
    background: var(--bg-light);
    color: var(--secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(128,0,0,0.85) 0%, rgba(0,77,0,0.85) 100%), url('/assets/images/hero.png') center/cover no-repeat;
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('/assets/images/pattern.png') rgba(255,255,255,0.05);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(128,0,0,0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.page-hero {
    padding: 80px 0;
}

.bg-red { background: linear-gradient(to right, #800000, #a00); }
.bg-green { background: linear-gradient(to right, #004d00, #006600); }

/* Layout Grid */
.grid { display: grid; }
.col-2 { grid-template-columns: 1fr 1fr; gap: 2rem; }
.col-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.col-reverse-sidebar { grid-template-columns: 2fr 1fr; gap: 3rem; }

/* Service Cards */
.services, .py-5 { padding: 4rem 0; }
.section-title { margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.5rem; }
.section-title p { color: var(--text-light); font-size: 1.1rem; }

.service-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-bottom-color: var(--secondary);
}

.service-card .card-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.service-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 { color: var(--primary); font-size: 1.4rem; margin-bottom: 0.5rem; }
.service-card h4 { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1rem; font-weight: 500; }
.service-card p { color: var(--text-light); flex-grow: 1; margin-bottom: 1.5rem; }

/* About / Content */
.about-summary {
    background-color: var(--bg-white);
}

.about-text h2 { color: var(--secondary); margin-bottom: 1rem; }
.about-text ul { margin-top: 1.5rem; }
.about-text li { margin-bottom: 0.5rem; padding-left: 1.5rem; position: relative; }
.about-text li::before {
    content: '✓'; color: var(--primary); position: absolute; left: 0; font-weight: bold;
}

.image-placeholder {
    width: 100%; height: 400px;
    background: url('/assets/images/yurtdisi-egitim-danismanligi.png') center/cover;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Page Contents */
.content-body {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.sidebar .sidebar-box {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.sidebar-box h3, .sidebar-box h4 {
    margin-bottom: 1rem; color: var(--primary); border-bottom: 2px solid var(--bg-light); padding-bottom: 0.5rem;
}
.sidebar-menu li { border-bottom: 1px solid var(--bg-light); padding: 0.5rem 0; }
.sidebar-menu li a { display: block; color: var(--text-light); }
.sidebar-menu li a:hover, .sidebar-menu li a.active { color: var(--secondary); font-weight: 600; padding-left: 5px; }

/* Forms */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-main); font-size: 0.9rem; }
.form-control {
    width: 100%; padding: 0.75rem 1rem;
    border: 1px solid var(--border-color); border-radius: var(--radius);
    font-family: 'Outfit', sans-serif; font-size: 1rem; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(0,77,0,0.1); }
.f-col { flex: 1; }

.checkbox-label { display: flex; align-items: start; gap: 0.5rem; cursor: pointer; }
.checkbox-label span { font-size: 0.85rem; color: var(--text-light); }
.alert-success { background: #d4edda; color: #155724; padding: 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; }

/* Footer */
.footer { background-color: #1a1a1a; color: #ffffff; padding-top: 4rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-section h3 { margin-bottom: 1.5rem; font-size: 1.2rem; position: relative; padding-bottom: 0.5rem; }
.footer-section h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section.logo { font-size: 1.8rem; color: var(--bg-white); margin-bottom: 1rem; }
.footer-section p { color: #aaa; margin-bottom: 0.5rem; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a { color: #aaa; }
.footer-section ul li a:hover { color: var(--bg-white); }
.footer-bottom { background-color: #0d0d0d; padding: 1.5rem 0; text-align: center; color: #777; font-size: 0.9rem; }

/* WhatsApp btn */
.whatsapp-btn {
    position: fixed; bottom: 30px; right: 30px;
    background-color: #25d366; color: white;
    padding: 10px 20px; border-radius: 50px;
    font-weight: 600; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}
.whatsapp-btn:hover { background-color: #1ebe5d; transform: scale(1.05); }

/* Utilities */
.text-center { text-align: center; }
.text-white { color: white; }
.gap { display: flex; gap: 1rem; }
.shadow { box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }

@media(max-width: 768px) {
    .nav { position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); background: white; flex-direction: column; align-items: center; padding: 2rem 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: 0.3s ease; }
    .nav.active { left: 0; }
    .nav > ul { flex-direction: column; width: 100%; text-align: center; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 2rem; }
    .col-reverse-sidebar { grid-template-columns: 1fr; }
    .sidebar { order: 2; margin-top: 2rem; }
    .content-body { order: 1; padding: 1.5rem; }
}
