/* --- Layout --- */
body {
    font-family: Arial, Helvetica, sans-serif;
    color: #000066;
    margin: 0;
    padding: 20px;
}

main {
    max-width: 1000px; /* Standardizes page width */
    margin: 0 auto;
}

/* --- TOP SECTION --- */
.sm3-top-section {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.sm3-passport-col {
    flex: 0 0 20%;
    text-align: center;
}

.sm3-header-text-col {
    flex: 0 0 80%;
    text-align: center;
}

.sm3-main-title {
    font-size: 2rem;
    margin: 0;
}

.purple-text {
    color: #990099;
}

.sm3-sub-instruction {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 10px 0;
}

.sm3-worksheet-text {
    font-size: 1.2rem;
}

/* --- MIDDLE SECTION --- */
.sm3-info-links {
    text-align: center;
    width: 80%;
    margin: 0 auto 40px auto;
    font-weight: bold;
}

.links-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
}

.links-container a {
    text-decoration: none;
    color: #000066;
    border-bottom: 2px solid #000066;
}

/* --- INTERACTIVE GRID --- */
.sm3-click-instruction {
    text-align: center;
    color: #FF0000;
    font-style: italic;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.diamond-grid {
    display: grid;
    grid-template-columns: repeat(3, 282px);
    justify-content: center;
    gap: 0px; 
    margin-bottom: 50px;
    padding-left: 20px; /* Prevents bleed off left margin */
}

/* Base Diamond Button */
.diamond-btn {
    width: 282px;
    height: 300px;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /* Create the interior colored shape */
    clip-path: polygon(50% 2%, 98% 50%, 50% 98%, 2% 50%);
    z-index: 1;
}


.diamond-text {
    color: #000000;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.2;
    padding: 50px; 
    text-align: center;
}

/* Issue 1: Targeting Pulley Text to move it up */
.diamond-grid button:nth-child(3) .diamond-text {
    font-size: 0.9rem;
    padding: 35px;
    margin-bottom: 25px; /* Shifts text upward within the flex container */
}

.diamond-img {
    display: none;
    width: 235px;
    height: 250px;
    object-fit: contain;
}

/* --- REVEAL STATE (Clicked) --- */
.diamond-btn[aria-expanded="true"] {
    clip-path: none;
    background-color: #FFFFFF !important;
    height: 250px; 
    width: 235px;
    margin: 25px auto;
}

/* Remove border background when revealed */
.diamond-btn[aria-expanded="true"]::before {
    display: none;
}

.diamond-btn[aria-expanded="true"] .diamond-text {
    display: none;
}

.diamond-btn[aria-expanded="true"] .diamond-img {
    display: block;
}

/* --- BACKGROUND COLORS --- */
.bg-red { background-color: #FF9D9C; }
.bg-bright-green { background-color: #00FF00; }
.bg-gray { background-color: #A9A9A9; }
.bg-bright-pink { background-color: #FF69B4; }
.bg-bright-purple { background-color: #F1EDF9; }
.bg-yellow { background-color: #FFFF00; }

/* --- FOOTER NAV --- */
.navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.nav-button {
    background-color: #000066;
    padding: 5px;
    border-radius: 5px;
}

/* Responsive Adjustments */
@media (max-width: 940px) {
    .diamond-grid {
        grid-template-columns: repeat(2, 282px);
    }
}