/* Inherit variables from main style, but override for this page's specific look */
:root {
    --page-bg: #0d1117;
    /* Very dark blue/black background */
    --card-surface: #161b22;
    /* Slightly lighter for cards */
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --accent-blue: #3b82f6;
    --border-color: #30363d;
}

body {
    background-color: var(--page-bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.partner-hero {
    background: linear-gradient(rgba(13, 17, 23, 0.8), rgba(13, 17, 23, 0.9)), url('../../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.partner-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.partner-hero p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Main Layout */
.partner-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    /* Main content + Sidebar */
    gap: 30px;
}

/* Left Column: Partner Grid */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns as per screenshot */
    gap: 20px;
}

.partner-card {
    background-color: var(--card-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /* Slightly tighter radius than activity cards */
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.partner-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-blue);
}

.partner-logo-area {
    background-color: #1a202c;
    /* Slightly distinct bg for logo area if needed, or keep same */
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.partner-logo-area img {
    max-width: 80%;
    max-height: 80px;
    object-fit: contain;
}

/* Use placeholder text style if images missing */
.partner-logo-placeholder {
    font-size: 2rem;
    color: var(--accent-blue);
}

.partner-name {
    background-color: #21262d;
    /* Darker footer area for card */
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}


/* Sidebar (Identical to Our Activities) */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background-color: var(--card-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: var(--accent-blue);
}

.sidebar-list {
    list-style: none;
    padding: 0;
}

.sidebar-list li {
    margin-bottom: 12px;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.sidebar-list a:hover {
    color: var(--accent-blue);
}

.sidebar-list a span {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Responsive */
@media (max-width: 992px) {
    .partner-container {
        grid-template-columns: 1fr;
        /* Stack sidebar below */
    }

    .partner-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Keep 3 on tablets if possible, or 2 */
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-widget {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile landscape/large phone */
    }
}

@media (max-width: 480px) {
    .partner-grid {
        grid-template-columns: 1fr;
        /* 1 column on small phones */
    }
}