/* Responsive styling for the about page */

/* Container for all content */
.container {
    display: grid;
    gap: 25px;
    margin: 30px auto;
    max-width: 1400px;
}

/* Common styling for all sections */
#pics, #about, #faq {
    background-color: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Images styling */
.center {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 25px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.center:hover {
    transform: scale(1.02);
}

/* Section headings */
#about h2, #faq h2 {
    color: var(--dark-text);
    border-bottom: 2px solid var(--green);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Text styling */
#about p, #faq p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Social media section */
#box-media {
    background-color: var(--beige);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
    border: 2px solid var(--green);
}

#box-media h3 {
    margin-bottom: 20px;
    color: var(--dark-text);
    font-size: 1.2rem;
}

#box-media img {
    width: 45px;
    height: 45px;
    margin: 0 12px;
    transition: transform 0.3s ease;
}

#box-media img:hover {
    transform: scale(1.2);
}

/* FAQ styling */
#faq p:nth-child(odd) {
    font-weight: bold;
    color: var(--dark-text);
    margin-top: 20px;
}

#faq p:nth-child(even) {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid var(--green);
}

/* MOBILE LAYOUT (default) */
@media (max-width: 767px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    #pics br {
        display: none; /* Remove extra spacing on mobile */
    }
    
    .center {
        margin: 15px auto;
    }
    
    #box-media img {
        width: 35px;
        height: 35px;
        margin: 0 8px;
    }
}

/* TABLET LAYOUT */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        grid-template-columns: 1fr 1fr;
    }
    
    #pics {
        grid-column: 1;
    }
    
    #about {
        grid-column: 2;
        grid-row: 1;
    }
    
    #faq {
        grid-column: span 2;
        grid-row: 2;
    }
    
    .center {
        max-width: 90%;
    }
}

/* DESKTOP LAYOUT */
@media (min-width: 1024px) {
    .container {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto;
    }
    
    #photos {
        grid-column: 1;
        grid-row: 1;
    }
    
    #about {
        grid-column: 2;
        grid-row: 1;
    }
    
    #faq {
        grid-column: 3;
        grid-row: 1;
    }
    
    /* Allow images to be larger on desktop */
    .center {
        max-width: 95%;
    }
}

/* LARGE DESKTOP SCREENS */
@media (min-width: 1440px) {
    .container {
        gap: 35px;
    }
    
    #about p, #faq p {
        font-size: 1.1rem;
    }
    
    #box-media img {
        width: 50px;
        height: 50px;
        margin: 0 15px;
    }
}