/* --- Contact Page Specific Styles --- */

/* Fix for horizontal scroll without cropping AOS animations */
.contact-section,
.instagram-section,
.category-banner {
    width: 100%;
    overflow-x: clip;
    /* Modern browsers support clip which doesn't create a scroll container */
    max-width: 100%;
}

/* Fallback for clip */
@supports not (overflow-x: clip) {

    .contact-section,
    .instagram-section,
    .category-banner {
        overflow-x: hidden;
    }
}

/* --- Category Banner (Overriding t-shirt.css if necessary) --- */
.category-banner {
    position: relative;
    height: 310px;
    background-image: url('../images/tback.png');
    /* User can change this later */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    padding: 0 15px;
    /* Matching t-shirt.php mobile style */
    text-align: center;
}

.banner-title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Banner Responsiveness */
@media (max-width: 992px) {
    .category-banner {
        height: 280px;
    }

    .banner-title {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .category-banner {
        height: 200px;
    }

    .banner-title {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .breadcrumb {
        top: -60px;
        font-size: 9px;
    }
}

/* --- Get In Touch Section --- */
.contact-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    /* Matching t-shirt.php mobile paddings */
}

/* Info Cards */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    margin-right: 20px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: #111;
}

.card-text h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.card-text a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.card-text a:hover {
    color: #000;
    text-decoration: underline;
}

/* Contact Split Layout */
.contact-split {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.contact-image {
    flex: 1;
    min-height: 400px;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-form-wrapper {
    flex: 1;
    padding: 60px;
    background: #ffffff;
    margin: 0;
    text-align: left;
}

.form-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 14px;
    color: #777;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.btn-submit {
    padding: 18px;
    background: #000;
    color: #fff;
    border: none;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 10px;
}

/* Mobile Specifics for Contact Section */
@media (max-width: 992px) {
    .contact-split {
        flex-direction: column;
    }

    .contact-image {
        min-height: 300px;
    }

    .contact-form-wrapper {
        padding: 40px 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .card-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .contact-form-wrapper {
        padding: 30px 15px;
    }

    .form-header h2 {
        font-size: 24px;
    }
}

/* --- Instagram Section --- */
.instagram-section {
    padding: 60px 0;
    background-color: #fff;
}

.insta-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 15px;
}

.insta-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.insta-header p {
    font-size: 14px;
    color: #888;
}

.insta-gallery-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    /* Local overflow control */
}

.insta-track {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Staggered layout works better with center alignment */
    gap: 0;
    width: 100%;
    margin: 0 auto;
}

.insta-item {
    position: relative;
    display: block;
    flex: 0 0 14.285%;
    /* 7 items across on desktop */
    overflow: hidden;
    cursor: pointer;
}

.insta-short {
    aspect-ratio: 1 / 1;
}

.insta-tall {
    aspect-ratio: 3 / 4;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insta-item:hover img {
    transform: scale(1.1);
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

/* Instagram Mobile Responsiveness */
@media (max-width: 992px) {
    .insta-item {
        flex: 0 0 25%;
    }

    /* 4 items */
    .insta-track {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .insta-item {
        flex: 0 0 33.33%;
    }

    /* 3 items */
}

@media (max-width: 576px) {
    .insta-item {
        flex: 0 0 50%;
    }

    /* 2 items visible, swipe for more */
    .insta-header h2 {
        font-size: 20px;
    }
}