/* =========================================
   YAIN FULL RESET STYLES
   ========================================= */

/* 1. LAYOUT RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f7f4ef;
}

/* 2. THE CONTENT WRAPPER */
.site-wrapper {
    flex: 1 0 auto; /* Pushes footer to the bottom */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. HEADER STYLE */
.site-header {
    background-color: #1a202c !important;
    color: #ffffff !important;
    padding: 20px 0;
    border-bottom: 3px solid #8c7851;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.main-nav a {
    color: #ffffff !important;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

/* 4. THE 4-COLUMN MONK GRID */
.monk-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px;
    margin: 40px 0;
}

.monk-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

/* 1. CONTAINER: Fixed height to keep the grid aligned */
.monk-image-container {
    width: 100% !important;
    height: 250px !important; 
    background-color: #f8f9fa !important; /* Very light grey */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important; /* This hides the image if it zooms "outside" the box */
    border-bottom: 1px solid #edf2f7;
}

/* 2. IMAGE: Shows the whole picture */
.monk-image {
    max-width: 95% !important; /* Leaves a tiny gap so it doesn't touch edges */
    max-height: 95% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; 
    display: block;
    /* Smooth transition for the zoom effect */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* 3. HOVER EFFECT: Zooms the image slightly when the CARD is hovered */
.monk-card:hover .monk-image {
    transform: scale(1.1); /* Zooms in by 10% */
}

/* 4. CARD HOVER: Adds a slight shadow to the whole card */
.monk-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
    cursor: pointer;
}

.monk-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px); /* Lifts the card slightly */
}
/* 5. DARK FOOTER STYLE */
.site-footer {
    flex-shrink: 0;
    background-color: #1a202c !important;
    color: #cbd5e0 !important;
    padding: 60px 0 !important;
    border-top: 4px solid #8c7851 !important;
    width: 100% !important;
    display: block !important;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-section h4 { color: #d4af37; margin-bottom: 15px; }
.footer-links { list-style: none; }
.footer-links a { color: #ffffff !important; text-decoration: none; }

/* 6. RESPONSIVE GRID */
@media (max-width: 1024px) {
    .monk-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .monk-grid { grid-template-columns: 1fr !important; }
}

/* --- Scroll Reveal Animation --- */

/* The starting state for the cards */
.monk-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease !important;
    visibility: hidden;
}

/* The state when the card enters the screen */
.monk-card.reveal {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Article Styling */
.article-hero {
    text-align: center;
    padding: 60px 0 40px;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.meta-tag {
    color: #b8860b; /* Gold color */
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.lead-text {
    font-size: 1.25rem;
    color: #555;
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.6;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    margin-top: 40px;
    color: #1a1a1a;
    font-size: 1.8rem;
}

.highlight-box {
    background: #fdfaf3;
    padding: 30px;
    border-left: 5px solid #b8860b;
    margin: 40px 0;
}

.benja-list {
    list-style: none;
    padding-left: 0;
}

.benja-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.materials-grid .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.materials-grid .item {
    background: #eee;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    margin: 40px 0;
}

