/* ==========================================
   GUIDING PRINCIPLES SECTION (Home Page)
   ========================================== */

.guiding-principles-section {
    background-color: #F8F8F8; /* Clean off-white background to match the site */
    padding: 8rem 5%;
}

.principles-grid {
    display: grid;
    /* Creates 4 columns on desktop, wrapping to 2 or 1 on smaller screens */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.principle-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 5; /* Keeps the cards tall and elegant */
    display: flex;
    align-items: flex-end; /* Pushes text to the bottom */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Subtle zoom effect on hover */
.principle-card:hover .card-bg-img {
    transform: scale(1.08);
}

.card-tint {
    position: absolute;
    inset: 0;
    /* Dark gradient that is heavy at the bottom for text readability, and lighter at the top */
    background: linear-gradient(to top, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.4) 50%, rgba(5, 5, 5, 0.1) 100%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: #ffffff;
}

.card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    border-bottom: 2px solid #8B0000; /* Deep red accent */
    padding-bottom: 0.5rem;
    display: inline-block;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .guiding-principles-section {
        padding: 5rem 5%;
    }
    
    .principle-card {
        aspect-ratio: 1 / 1; /* Makes them square on mobile for better space usage */
    }
}

.guiding-principles-section {
    position: relative;
    z-index: 10;
    background-color: #F8F8F8; /* Clean off-white background to match the site */
    padding: 8rem 5%;
}

.guiding-principles-section h2 {
    font-size: var(--font-h2);
}