/* -------------------------------------------------------
   GLOBAL
------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #FFB6C1;
    font-family: 'Nunito', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------------
   HEADER
------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #DE3163;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    padding: 10px 20px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.header-logo {
    max-width: 150px;
    width: 100%;
    height: auto;
}

/* Nav + Social Container */
.nav-social-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    margin-top: 10px;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0 auto;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    padding: 10px 18px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    background: rgba(255,255,255,0.25);
}

/* Social Icons */
.header-social {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 15px;
}

.header-social img {
    width: 36px; /* 1.5x normal size */
    height: auto;
    transition: transform 0.2s ease;
}

.header-social img:hover {
    transform: scale(1.1);
}

/* -------------------------------------------------------
   MAIN CONTENT AREA
------------------------------------------------------- */

main {
    flex: 1;
    padding: 20px;
}

/* -------------------------------------------------------
   IMAGE GALLERIES
------------------------------------------------------- */

.image-gallery {
    display: grid;
    gap: 25px;
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Force max 5 columns on large screens */
@media (min-width: 1600px) {
    .image-gallery {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Titles above images */
.image-gallery h3,
.image-gallery h4 {
    min-height: 2.6em;       /* enough for 2 lines */
    line-height: 1.3em;
    display: flex;
    align-items: center;      /* vertical centering */
    justify-content: center;
    text-align: center;
    margin: 0 0 0.5em;
}

/* Image Items */
.image-item {
    text-align: center;
}

.image-item img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: block;
}

/* General images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive hygiene star image */
.responsive-img {
    max-width: 330px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Headings in gallery */
.image-item h3,
.image-item h4 {
    margin-bottom: 8px;
    font-size: 20px;
    color: #DE3163;
}

/* -------------------------------------------------------
   FOOTER
------------------------------------------------------- */

.site-footer {
    position: sticky;
    bottom: 0;
    background: #DE3163;
    text-align: center;
    color: white;
    padding: 8px 0;
    margin-top: auto;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

/* -------------------------------------------------------
   RESPONSIVE BREAKPOINTS
------------------------------------------------------- */

@media (max-width: 800px) {
    .nav-social-wrapper {
        flex-direction: column;
        position: static;
    }

    .header-social {
        position: static;
        transform: none;
        margin-top: 10px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 700px) {
    .header-logo {
        max-width: 120px;
    }

    .main-nav a {
        font-size: 16px;
        padding: 8px 12px;
    }

    .header-social img {
        width: 28px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 10px;
    }

    /* Force 2 columns on very small screens */
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
