/* Corporate Page Specific Styles */

/* --- Page Header with Background Image --- */
.kurumsal-header {
    position: relative;
    background-color: var(--color-bg-alt);
    /* Fallback */
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: var(--space-xl) 0;
    /* Ensure text readability with dark overlay */
    z-index: 1;
}

.kurumsal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    z-index: -1;
}

.kurumsal-header h1,
.kurumsal-header p {
    position: relative;
    z-index: 2;
}

/* --- Intro Text Section --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    max-width: 100%;
}

.corp-intro {
    padding: var(--space-lg) var(--space-xl);
    text-align: left;
    border-left: 4px solid var(--color-accent);
    background: linear-gradient(to right, rgba(255, 255, 255, 0.03), transparent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.intro-image {
    width: 100%;
    height: 100%;
    min-height: 650px;
    /* Vertical rectangle */
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.intro-image:hover {
    opacity: 1;
}

.corp-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #D0D0D0;
    margin-bottom: var(--space-md);
}

.corp-intro p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {

    /* Header optimization */
    .kurumsal-header {
        padding: var(--space-lg) 0;
        /* Reduced from xl */
        min-height: 300px;
        display: flex;
        align-items: center;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .corp-intro {
        text-align: left;
        /* Keep left or center based on preference, left usually better for reading */
        padding: var(--space-md);
        border-left: 2px solid var(--color-accent);
        /* Thinner border */
    }

    .intro-image {
        max-height: 250px;
        /* More compact */
        min-height: 0;
    }

    /* Card Grid Optimization */
    /* Assuming grid container is in HTML with grid-cols-3 class. 
       We need to override that or ensure it breaks.
       Utilities usually handle grid-cols-1 on mobile if responsive classes used.
       If not, we force it here if we can select the container.
       But container is generic .grid.grid-cols-3.
       I will target .grid inside main if possible or rely on utilities.
       Wait, utilities.css might NOT have responsive grid-cols-1 for grid-cols-3.
       Let's assume we need to fix the card sizing itself or the container's behavior. */
}

/* Force cards to stack and be compact on mobile */
@media (max-width: 768px) {
    .grid.grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: var(--space-md) !important;
    }

    .corp-card {
        min-height: 250px;
        /* Reduced from 320px */
        padding: var(--space-md);
    }

    .corp-card-title {
        font-size: 1.5rem;
    }
}

/* --- Professional Card Design --- */
/* Premium Image Cards with Dark Overlay */
.corp-card {
    position: relative;
    background-color: #1A1A1A;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle border */
    padding: var(--space-lg);
    border-radius: var(--radius-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Push content to bottom */
    overflow: hidden;
    z-index: 1;
}

/* Dark Overlay */
.corp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0.3));
    z-index: -1;
    transition: background 0.4s ease;
}

/* Specific Background Images */
.card-about {
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=800');
}

.card-principles {
    background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&q=80&w=800');
}

.card-why {
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&q=80&w=800');
}

/* Interactions */
.corp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.corp-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 40%, rgba(0, 0, 0, 0.5));
}

.corp-card-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.corp-card-desc {
    color: #D0D0D0;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    font-size: 1rem;
    font-weight: 400;
}

.corp-link {
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.corp-link:hover {
    gap: 12px;
    color: var(--color-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}