/* ========================================
   ROCKS 1 PAGE SPECIFIC STYLES
   Path: css/3rocksandminerals/rocks1.css
   ======================================== */

/* --- Layout Utilities --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- TOP SECTION (3 Columns) --- */
.rocks-top-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    padding: 10px 0;
}

/* Col 1: Time Machine (Left) */
.rocks-top-col-1 {
    flex: 0 0 auto;
}

/* Col 2: Title (Center) */
.rocks-top-col-2 {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rocks-main-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #000066;
    line-height: 1;
    margin-bottom: 5px;
    font-family: 'Arial Black', Arial, sans-serif;
}

.rocks-sub-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000066;
}

/* Col 3: Side-by-Side Images (Right) */
.rocks-top-col-3 {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

/* --- MIDDLE SECTION (Text Block + Link) --- */
/* --- MIDDLE SECTION (2 Columns) --- */
.rocks-middle-section {
    display: flex;
    flex-direction: row;
    align-items: center; /* Vertically align content */
    justify-content: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    gap: 60px; /* The requested 60px white space */
    /* Removed background-color and border */
}

/* Middle Col 1 */
.rocks-mid-col-1 {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Middle Col 2 */
.rocks-mid-col-2 {
    flex: 1;
    text-align: left; /* Text flows naturally */
}

.rocks-text-large {
    font-size: 1.4rem;
    color: #000066;
    font-weight: bold;
    line-height: 1.4;
}

.rocks-question-red {
    display: block;
    font-size: 1.6rem;
    color: #CC0000;
    font-weight: bold;
    text-transform: uppercase;
}

.rocks-gallery-link {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000066;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.rocks-gallery-link:hover {
    color: #660099;
}

/* --- BOTTOM SECTION (Text + 5 Images) --- */
.rocks-bottom-section {
    text-align: center;
    margin-bottom: 40px;
}

.rockhound-text {
    font-size: 1.6rem;
    color: #000066;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid for 5 images */
.rocks-gallery-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end; /* Aligns items to the bottom baseline */
    gap: 20px;
    flex-wrap: wrap;
}

.rocks-gallery-item {
    display: flex;
    justify-content: center;
    /* Ensure images don't get too small */
    min-width: 80px; 
}

/* Hover effect for rock images */
.rocks-gallery-item img {
    transition: transform 0.2s ease;
    border-radius: 4px;
}

.rocks-gallery-item img:hover {
    transform: scale(1.1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 850px) {
    .rocks-top-section {
        flex-direction: column;
        text-align: center;
    }
    
    .rocks-top-col-3 {
        margin-top: 20px;
        justify-content: center;
    }

    .rocks-main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .rocks-gallery-grid {
        gap: 10px;
    }
    
    .rocks-gallery-item {
        width: 45%; /* 2 per row on small screens */
    }
}