/* ================= BASE STYLES ================= */
.contact-hero {
    position: relative;
    margin-top: 100px;
    height: 250px;
    background: url('/static/images/image.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.contact-hero .overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    max-width: 90%;
}

.contact-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.contact-hero p {
    font-size: 1.1rem;
}

.contact-content {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.contact-content .container {
    max-width: 800px;
    margin: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.info-box h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.3rem;
}

.info-box p, .info-box a {
    color: #555;
    font-size: 16px;
    text-decoration: none;
    line-height: 1.6;
}

.info-box a:hover {
    color: #007bff;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a.facebook { background: #3b5998; }
.social-icons a.x { background: #1da1f2; }
.social-icons a.instagram { background: #e1306c; }

.social-icons a:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ================= RESPONSIVE ================= */

/* Large tablets and laptops */
@media (max-width: 1200px) {
    .contact-content .container {
        max-width: 90%;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .contact-hero {
        height: 230px;
        margin-top: 90px;
    }

    .contact-hero .overlay {
        padding: 35px 30px;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-hero p {
        font-size: 1rem;
    }

    .contact-content {
        padding: 50px 18px;
    }

    .info-box {
        padding: 18px;
    }

    .info-box h3 {
        font-size: 1.2rem;
    }

    .info-box p, .info-box a {
        font-size: 15px;
    }

    .social-icons a {
        width: 52px;
        height: 52px;
        font-size: 21px;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    .contact-hero {
        height: 200px;
        margin-top: 80px;
        padding: 15px;
    }

    .contact-hero .overlay {
        padding: 30px 25px;
        max-width: 95%;
    }

    .contact-hero h1 {
        font-size: 1.7rem;
        margin-bottom: 0.4rem;
    }

    .contact-hero p {
        font-size: 0.95rem;
    }

    .contact-content {
        padding: 40px 15px;
    }

    .contact-info {
        gap: 18px;
    }

    .info-box {
        padding: 16px;
        border-radius: 8px;
    }

    .info-box h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .info-box p, .info-box a {
        font-size: 14px;
    }

    .social-icons {
        gap: 12px;
    }

    .social-icons a {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .contact-hero {
        height: 180px;
        margin-top: 70px;
        padding: 12px;
    }

    .contact-hero .overlay {
        padding: 25px 20px;
    }

    .contact-hero h1 {
        font-size: 1.4rem;
    }

    .contact-hero p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .contact-content {
        padding: 30px 12px;
    }

    .contact-info {
        gap: 15px;
    }

    .info-box {
        padding: 14px;
    }

    .info-box h3 {
        font-size: 1rem;
    }

    .info-box p, .info-box a {
        font-size: 13px;
    }

    .social-icons {
        justify-content: center;
        gap: 10px;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .contact-hero {
        height: 160px;
    }

    .contact-hero h1 {
        font-size: 1.2rem;
    }

    .contact-hero p {
        font-size: 0.8rem;
    }

    .info-box {
        padding: 12px;
    }

    .info-box h3 {
        font-size: 0.95rem;
    }

    .info-box p, .info-box a {
        font-size: 12px;
    }

    .social-icons a {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }
}