/*
* Avukat Gökhan Korkmaz Website
* Main Stylesheet
*/

/* ===== VARIABLES ===== */
:root {
    --primary-color: #1a3a6c;
    --secondary-color: #d4af37;
    --dark-color: #333333;
    --light-color: #f5f5f5;
    --gray-color: #e0e0e0;
    --white-color: #ffffff;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Open Sans', sans-serif;
}

/* ===== GENERAL STYLES ===== */
body {
    font-family: var(--body-font);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--white-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #15305a;
    border-color: #15305a;
}

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

.btn-secondary:hover {
    background-color: #c09c30;
    border-color: #c09c30;
    color: var(--dark-color);
}

.section-padding {
    padding: 80px 0;
}

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

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* ===== HEADER ===== */
.header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.logo {
    max-height: 60px;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

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

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white-color);
    padding: 70px 0;
    height: 400px;
    display: flex;
    align-items: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

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

.hero h1 {
    color: var(--white-color);
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ===== ABOUT SECTION ===== */
.about-img {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
}

/* ===== SERVICES SECTION ===== */
.service-card {
    background-color: var(--white-color);
    position: relative;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    min-height: 200px; /* Minimum yükseklik */
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    height: 80px; /* Sabit başlık yüksekliği - artırıldı */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Satır sayısı artırıldı */
    -webkit-box-orient: vertical;
    font-size: 1.3rem; /* Font boyutu küçültüldü */
}

.service-card .service-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    z-index: 1;
}

.service-card .service-category a {
    color: var(--white-color);
}

.service-card .service-category a:hover {
    color: var(--secondary-color);
}

.category-filter {
    margin-bottom: 30px;
}

.category-filter .btn {
    margin-right: 5px;
    margin-bottom: 10px;
}

.service-card p {
    margin-bottom: 20px;
    height: 120px; /* Sabit içerik yüksekliği */
    overflow: hidden;
}

.service-card .btn {
    margin-top: auto; /* Butonları alt kısma sabitler */
}

/* Hakkımda sayfasındaki eğitim ve deneyim kutuları için özel stil */
.about-box {
    background-color: var(--white-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    height: 100%;
}

.about-box-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-color);
    font-size: 1.5rem;
}

.about-box-content {
    padding: 0;
}

.education-item,
.experience-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.education-item:last-child,
.experience-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.education-item h5,
.experience-item h5 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.education-item p,
.experience-item p {
    margin-bottom: 5px;
    font-size: 1rem;
    line-height: 1.4;
    height: auto;
}

.education-year,
.experience-year {
    display: inline-block;
    color: #777;
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== BLOG SECTION ===== */
.blog-card {
    background-color: var(--white-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 550px; /* Sabit yükseklik - artırıldı */
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
    height: 200px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    transition: transform 0.3s ease;
}

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

/* Eski stil için geriye dönük uyumluluk */
.blog-card > img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

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

.blog-card-content h3 {
    margin-bottom: 10px;
    height: 80px; /* Sabit başlık yüksekliği - artırıldı */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Satır sayısı artırıldı */
    -webkit-box-orient: vertical;
    font-size: 1.3rem; /* Font boyutu küçültüldü */
}

.blog-card-content p {
    margin-bottom: 15px;
    height: 120px; /* Sabit içerik yüksekliği */
    overflow: hidden;
}

.blog-card-content .btn {
    margin-top: auto; /* Butonları alt kısma sabitler */
}

.blog-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

/* ===== CONTACT SECTION ===== */
.contact-info {
    background-color: var(--white-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info ul li {
    margin-bottom: 15px;
}

.contact-info ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-form {
    background-color: var(--white-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.contact-form h3 {
    margin-bottom: 20px;
}

.form-control {
    margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
}

.footer h5 {
    color: var(--white-color);
    margin-bottom: 20px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer ul li a:hover {
    color: var(--white-color);
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .hero {
        height: 350px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    .hero {
        height: 300px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .about-img {
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    .hero {
        height: 280px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* ===== DETAIL PAGES ===== */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white-color);
    padding: 50px 0;
    margin-bottom: 50px;
}

.page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.page-header h1 {
    color: var(--white-color);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item.active {
    color: var(--white-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.detail-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 30px;
}

.detail-content h2 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.detail-content p {
    margin-bottom: 20px;
}

.detail-meta {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #777;
}

.detail-meta span {
    margin-right: 20px;
}

.detail-meta i {
    margin-right: 5px;
}

/* ===== PAGINATION ===== */
.pagination {
    margin-top: 30px;
}

.page-link {
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== SIDEBAR ===== */
.sidebar {
    margin-bottom: 30px;
}

.sidebar-widget {
    background-color: var(--white-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-color);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-color);
}

.sidebar-widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--dark-color);
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* ===== FLOATING CONTACT BUTTONS ===== */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-buttons .button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-buttons .button:hover {
    transform: scale(1.1);
}

.floating-buttons .button a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.floating-buttons .button img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.floating-buttons .button span {
    position: absolute;
    right: 70px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-buttons .button:hover span {
    opacity: 1;
    visibility: visible;
}

.floating-buttons .whatsapp {
    background-color: #25D366;
}

.floating-buttons .phone {
    background-color: var(--primary-color);
}
