/* ========================================
   ROCKS 7 PAGE SPECIFIC STYLES
   Path: css/3rocksandminerals/rocks7.css
   ======================================== */

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

/* --- PAGE HEADER --- */
.r7-assignment-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
    font-family: Arial, Helvetica, sans-serif;
}

.text-navy { color: #000066; }
.text-purple { color: #990099; }

/* --- TOP SECTION (3 Columns) --- */
.r7-top-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Col 1: Passport */
.r7-top-col-1 {
    flex: 0 0 20%;
    display: flex;
    justify-content: flex-end; /* Right align */
    align-items: flex-start; /* Vertical top align */
}

/* Col 2: Text Content */
.r7-top-col-2 {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
}

.r7-top-header {
    text-align: center;
    font-size: 1.6rem;
    color: #000066;
    font-weight: bold;
    margin-bottom: 15px; /* 15px padding under header */
    line-height: 1.3;
}

.r7-top-text {
    text-align: left;
    font-size: 1.1rem;
    color: #000066;
    font-weight: bold;
    line-height: 1.4;
}

/* Col 3: Chief Image */
.r7-top-col-3 {
    flex: 0 0 25%;
    display: flex;
    justify-content: flex-start; /* Left align */
    padding-left: 10px; /* 10px left padding */
}

/* --- TOP MIDDLE SECTION (Examples) --- */
.r7-top-mid-section {
    /* Spans width of Col 1 & 2 (approx 75%) */
    width: 75%; 
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.r7-examples-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center; /* Vertically centered */
}

.r7-examples-label {
    text-align: right; /* Right aligned to text */
    padding-right: 15px;
    font-size: 1.3rem;
    color: #CC0000; /* Standard red highlight */
    font-weight: bold;
    text-transform: uppercase;
}

.r7-examples-text {
    text-align: left;
    font-size: 1.3rem;
    color: #000066;
    line-height: 1.5;
}

/* --- MIDDLE SECTION (Essay Instructions) --- */
.r7-middle-section {
    width: 100%; /* Full width */
    padding-left: 15px; /* 15px left padding */
    margin-bottom: 10px;
}

.r7-bullet-list {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 1.2rem;
    color: #000066;
    line-height: 1.4;
}

.r7-bullet-list li {
    margin-bottom: 10px;
}

/* --- BOTTOM SECTION (Bonus & Portfolio) --- */
.r7-bottom-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    width: 100%;
}

/* Div 1: Bonus */
.r7-bonus-div {
    padding-left: 20px; /* 20px left padding */
    display: flex;
    flex-direction: row;
    align-items: center;
}

.r7-bonus-text {
    font-size: 1.2rem;
    color: #000066;
    font-weight: bold;
    line-height: 1.4;
}

.r7-bonus-img {
    margin-left: 15px; /* 15px padding left from text */
    flex: 0 0 auto;
}

/* Div 2: Portfolio */
.r7-portfolio-div {
    width: 100%; /* Full width */
    padding-left: 20px; /* 20px left padding overall */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.r7-portfolio-img {
    flex: 0 0 auto;
}

.r7-portfolio-text {
    font-size: 1.4rem;
    color: #000066;
    font-weight: bold;
    line-height: 1.5;
    text-align: left;
    padding-left: 10px; /* 10px left padding from portfolio icon */
}

/* --- Responsive Adjustments --- */
@media (max-width: 850px) {
    .r7-top-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .r7-top-col-1, .r7-top-col-2, .r7-top-col-3 {
        width: 100%;
        padding: 0;
        justify-content: center;
        text-align: center;
    }

    .r7-top-text {
        text-align: center;
    }

    .r7-top-mid-section {
        width: 100%;
    }

    .r7-examples-wrapper {
        flex-direction: column;
    }
    
    .r7-examples-label {
        text-align: center;
        padding-right: 0;
        margin-bottom: 10px;
    }
    
    .r7-examples-text {
        text-align: center;
    }

    /* Reset 60% margin for mobile to prevent layout breaking */
    .r7-bonus-div {
        margin-left: 0;
        padding-left: 0;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 15px;
    }

    .r7-bonus-img {
        margin-left: 0;
    }

    .r7-portfolio-div {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-left: 0;
    }

    .r7-portfolio-text {
        padding-left: 0;
        margin-top: 15px;
        text-align: center;
    }
}