/* Inherit variables from index.css */
@import url('./index.css');

/* Page Specific Styles */
body {
    background-color: var(--warm-white);
}

/* Hero Section Override */
.page-hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--secondary-brown) 50%, var(--forest-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23D4AF37" fill-opacity="0.08" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.6;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.page-hero h1 {
    font-size: 4rem;
    color: var(--golden-light);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Teams Section */
.teams-section {
    padding: 6rem 6%;
    background: var(--warm-white);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    text-align: center;
    padding: 2rem;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);

    /* Dynamic sizing with constraints */
    min-width: 280px;
    max-width: 350px;
    width: calc((100% - 6rem) / 3);
    /* 3 cards per row minus gaps */
    height: 480px;
    flex: 1 1 calc(33.333% - 2rem);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--golden);
}

.member-designation {
    font-size: 0.9rem;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--golden-light);
    transition: all 0.4s ease;
    background-color: #eee;
}

.team-card:hover .member-photo {
    border-color: var(--golden);
    transform: scale(1.05);
}

.member-name {
    font-size: 1.5rem;
    color: var(--primary-brown);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.member-role-detail {
    font-size: 0.95rem;
    color: var(--accent-brown);
    margin-bottom: 1rem;
    line-height: 1.5;
    min-height: 3em;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #0077b5;
    color: white;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.linkedin-btn:hover {
    background-color: #005582;
    transform: scale(1.1);
}

/* Partners Section */
.partners-section {
    padding: 6rem 6%;
    background: linear-gradient(180deg, var(--cream), var(--warm-white));
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.partner-card {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 5px solid rgba(0, 0, 0, 0.05);
    min-width: 180px;
    max-width: 250px;
    width: calc((100% - 8rem) / 5);
    flex: 1 1 200px;
}

.partner-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--golden);
}

.partner-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-brown);
    font-weight: 500;
    text-align: center;
    opacity: 0.7;
}

.partner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}



/* Responsive */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }

    .team-grid {
        gap: 2rem;
    }

    .team-card {
        width: calc((100% - 2rem) / 2);
        /* 2 cards per row on mobile */
        flex: 1 1 calc(50% - 1rem);
        min-width: 250px;
    }

    .partners-grid {
        gap: 1.5rem;
    }

    .partner-card {
        width: calc((100% - 1.5rem) / 2);
        /* 2 cards per row on mobile */
        flex: 1 1 calc(50% - 1rem);
        min-width: 150px;
    }
}