/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #555;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Top Bar */
.top-bar {
    background-color: #2c2e3e;
    color: #aeb4c5;
    font-size: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #3e4050;
}

.top-bar .container {
    justify-content: space-between;
}

.contact-info span {
    margin-right: 20px;
}

.social-icons a {
    margin: 0 8px;
    color: #aeb4c5;
}

.social-icons a:hover {
    color: #fff;
}

.top-links a {
    margin-left: 15px;
    color: #aeb4c5;
}

.join-now {
    background-color: #cda274;
    color: #fff !important;
    padding: 5px 12px;
    border-radius: 3px;
    margin-left: 15px;
}

/* Navigation */
header {
    background-color: #212331;
    /* Dark header background */
    color: #fff;
    padding: 0;
    height: 80px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.logo {
    font-size: 20px;
    /* Slightly smaller base size */
    font-weight: 700;
    color: #cda274;
    /* Gold color */
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: 1px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.logo-sub {
    font-size: 12px;
    color: #aeb4c5;
    /* Muted color for subtext */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 30px 0;
    display: block;
    border-top: 3px solid transparent;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #cda274;
    border-top-color: #cda274;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions a {
    color: #fff;
    font-size: 14px;
}

.badg {
    background-color: #00bcd4;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: top;
}

/* Hero Section */
.hero {
    position: relative;
    height: 850px;
    background-color: #333;
    /* Fallback */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}

/* Updated background image */
.hero {
    background: linear-gradient(rgba(33, 35, 49, 0.7), rgba(33, 35, 49, 0.7)), url('assets/adalet.jpeg') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 46, 62, 0.4);
    /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.hero-content .container {
    flex-direction: column;
    align-items: flex-start;
    /* Align text to left inside container */
    justify-content: center;
    height: 100%;
}

.subtitle {
    font-size: 36px;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    margin-bottom: 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 80px;
    line-height: 1.1;
    font-weight: 700;
    margin: 10px 0;
    color: #cda274;
    /* Gold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.hero h1 .highlight {
    color: #cda274;
}

.experience-text {
    font-size: 24px;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    margin-top: 10px;
    color: #fff;
}

.hero-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    box-sizing: border-box;
    left: 0;
    pointer-events: none;
    /* Let clicks pass through */
}

.nav-arrow {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    /* Re-enable clicks */
    transition: background 0.3s;
}

.nav-arrow:hover {
    background: #cda274;
}


/* Experience Section */
.experience {
    padding: 80px 0;
    background-color: #fff;
}

.experience .container {
    align-items: center;
    /* Align items vertically */
}

.experience-content {
    flex: 1;
    padding-right: 50px;
}

.welcome-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #555;
    font-size: 18px;
    margin-bottom: 10px;
}

.experience h2 {
    font-size: 48px;
    color: #cda274;
    line-height: 1.2;
    margin-bottom: 20px;
}

.divider {
    width: 50px;
    height: 3px;
    background-color: #cda274;
    margin-bottom: 30px;
}

.description {
    font-size: 15px;
    line-height: 1.8;
    color: #777;
    margin-bottom: 40px;
}

.btn-more {
    display: inline-block;
    background-color: #cda274;
    color: #fff;
    padding: 12px 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 3px;
    text-transform: uppercase;
}

.btn-more:hover {
    background-color: #b08d65;
}

.experience-image {
    flex: 1;
    text-align: right;
}

.experience-image img {
    max-width: 100%;
    height: 250px;
    /* Reduced height as requested */
    object-fit: cover;
    /* Maintain aspect ratio */
    border-radius: 4px;
    /* Optional rounded corners */
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .container {
        flex-direction: column;
        padding: 0 20px;
    }

    header {
        height: auto;
        padding: 15px 0;
    }

    header nav {
        display: none;
        /* Hide nav for mobile for simplicity */
    }

    .hero h1 {
        font-size: 40px;
    }

    .subtitle {
        font-size: 24px;
    }

    .experience .container {
        flex-direction: column;
    }

    .experience-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .experience h2 {
        font-size: 36px;
    }

    .divider {
        margin: 0 auto 30px;
    }
}

/* Mission & Vision Section */
.mission-vision {
    padding: 80px 0;
    background-color: #fff;
}

.mission-vision .container {
    align-items: flex-start;
    gap: 50px;
}

.mission-image {
    flex: 1;
    display: flex;
    justify-content: center;
    /* Center the image wrapper */
}

.image-wrapper {
    position: relative;
    padding: 0;
    display: inline-block;
}

/* Gold border effect behind the image */
.image-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    background-color: #cda274;
    /* Matches header text color */
    z-index: 0;
}

.image-wrapper img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    height: auto;
    border: 5px solid #fff;
    /* White border between image and gold bg */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mission-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding-top: 20px;
}

.mission-item h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Open Sans', sans-serif;
    /* Using sans-serif for these headers based on image */
}

.mission-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

@media (max-width: 768px) {
    .mission-vision .container {
        flex-direction: column;
    }

    .image-wrapper::before {
        top: 10px;
        right: -10px;
        bottom: -10px;
        left: 10px;
    }
}

/* Vekalet Wrapper Specifics (Left and Bottom Offset) */
.vekalet-wrapper::before {
    left: -20px !important;
    right: 20px !important;
}

.vekalet-wrapper img {
    height: 450px !important;
    /* Force height override */
    object-fit: contain;
    /* Changed from cover to contain to prevent cropping/pixelation if zoomed */
    width: auto;
    /* Allow natural width */
    max-width: 100%;
    /* Prevent exceeding container */
    /* Ensure it fills width if needed, or max-width */
}

/* Practice Areas Section */
.practice-areas {
    padding: 80px 0;
    background-color: #f9f9f9;
    /* Light background to alternate */
    text-align: center;
}

.practice-areas .container {
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 36px;
    color: #cda274;
    /* Updated to match experience h2 */
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.divider-center {
    width: 50px;
    height: 3px;
    background-color: #cda274;
    margin: 0 auto 50px;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 30px;
}

@media (max-width: 992px) {
    .practices-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablets */
    }
}

@media (max-width: 576px) {
    .practices-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }
}

.practice-item {
    background: transparent;
    /* Remove background */
    padding: 0;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.practice-item img {
    width: 100%;
    height: 250px;
    /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.practice-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: #333;
    font-size: 16px;
    padding: 0 10px;
}

.practice-item:hover {
    background-color: transparent;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.practice-item:hover img {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.practice-item:hover .practice-title {
    color: #cda274;
    /* Highlight text on hover */
}

/* Footer Section */
.site-footer {
    position: relative;
    background: linear-gradient(rgba(33, 35, 49, 0.85), rgba(33, 35, 49, 0.85)), url('assets/ders.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 60px 0;
}

.footer-overlay {
    display: none;
}

.site-footer .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    /* Override the column layout from practice areas if inherited, or just ensure row */
    align-items: center;
    /* Vertically center */
    justify-content: space-between;
    gap: 50px;
}

.footer-info {
    flex: 1;
    text-align: left;
}

.footer-info h3 {
    font-size: 36px;
    /* Match section-title size */
    font-weight: 700;
    /* or normal if section-title is normal, but usually headings are bold. section-title didn't specify weight so it defaults to bold (h2). h3 also defaults to bold. */
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
    /* Match section-title font */
    text-transform: uppercase;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #ddd;
}

.footer-info strong {
    color: #fff;
}

.footer-map {
    flex: 1;
    height: 300px;
    background-color: #fff;
    /* Border effect */
    padding: 5px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
        margin-bottom: 30px;
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.whatsapp-btn i {
    font-size: 24px;
}

/* Contact Form Styles */
/* Contact Form Styles */
.contact-form-section {
    position: relative;
    background-color: #f9f9f9;
    overflow: hidden;
    /* Ensure pseudo-element doesn't overflow */
}

/* Background Watermark */
.contact-form-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/adalet.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    /* Faint watermark effect */
    z-index: 0;
}

.contact-form-section .container {
    position: relative;
    z-index: 1;
    /* Ensure content is above background */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    /* Slightly larger */
    font-weight: 700;
    margin-bottom: 10px;
    /* Reduced from 20px */
    color: #000;
}

.page-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1em;
    color: #333;
    line-height: 1.6;
    margin-bottom: 50px;
    /* More space before form */
    font-weight: 700;
    /* Bolder */
}

.text-center {
    text-align: center;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.half-width {
    flex: 1;
}

.full-width {
    width: 100%;
}

label {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    /* Light grey border */
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #333;
    outline: none;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #212331;
    /* Theme Dark Blue */
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #cda274;
}

/* Responsive adjustments for form */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Responsive adjustments for form */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .half-width {
        width: 100%;
    }
}

/* Contact Page Details Section */
.contact-details-section {
    padding: 100px 0 60px 0;
    text-align: center;
}

.contact-details-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: flex-start;
}

.contact-item {
    flex: 1;
    min-width: 250px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-item i {
    font-size: 2.5em;
    color: #212331;
    margin-bottom: 20px;
}

.contact-item h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #212331;
    /* Original headers are h2/h3. Let's check h2 color. usually #333 or similar. */
    font-size: 1.5em;
    margin-bottom: 15px;
}

.contact-item p {
    font-size: 1em;
    color: #333;
    line-height: 1.6;
}

.map-section-full {
    width: 100%;
    margin-bottom: -5px;
    /* Remove gap before footer */
}