html,
body {
    height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* ==================== BRANCHES / CERTIFICATES SECTION ==================== */
.branches-section {
    padding: 70px 20px;
    text-align: center;
}

.branches-section h1 {
    font-size: 2rem;
    color: #1565c0;
    margin-bottom: 15px;
}

.branches-section h2 {
    font-size: 2.3rem;
    color: #1565c0;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #555;
    max-width: 650px;
    margin: 0 auto 45px;
}

/* ---------- Cards Grid ---------- */
.branches-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

/* ---------- Individual Card ---------- */
.branch-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-top: 5px solid #1565c0;
    text-align: left;
}

.branch-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.branch-card h3 {
    font-size: 1.55rem;
    color: #1565c0;
    margin-bottom: 14px;
    border-bottom: 2px solid #e6ecf6;
    padding-bottom: 8px;
}

/* ---------- Card Info Text ---------- */
.branch-info p {
    margin: 10px 0;
    font-size: 0.96rem;
    color: #444;
}

.branch-info strong {
    color: #000;
}

.email-link {
    color: #1565c0;
    text-decoration: none;
    font-weight: 600;
}

.email-link:hover {
    text-decoration: underline;
}

.branch-card img {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .branches-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .branches-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .branches-section {
        padding: 50px 15px;
    }

    .branch-card {
        padding: 22px;
    }

    .branches-section h2 {
        font-size: 1.6rem;
    }
}