/* Minimal Header */
.page-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 15px;
}
.text-color-primary {
    color: #FD7D41;
}
.page-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Section Titles */
.modern-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Award Cards - Photo Frame Style */
.award-card-modern {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); 
    background: #fff;
    padding: 8px; /* Internal white frame */
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform; /* Performance optimization */
}

/* --- Corner Border Animation --- */
.award-card-modern::before,
.award-card-modern::after {
    content: "";
    position: absolute;
    width: 25px;        /* Initial Corner Size */
    height: 25px;
    border-color: #FD7D41;
    border-style: solid;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 5;
}

/* Top-Left Corner */
.award-card-modern::before {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
    border-top-left-radius: 12px;
}

/* Bottom-Right Corner */
.award-card-modern::after {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
    border-bottom-right-radius: 12px;
}

.award-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    /* border-color handled by pseudo elements now */
}

.award-card-modern:hover::before,
.award-card-modern:hover::after {
    width: 100%;
    height: 100%;
    border-radius: 12px; /* Ensure expanding border matches card radius */
}

.award-card-modern .img-frame {
    border-radius: 8px; 
    overflow: hidden;
    position: relative;
    height: 300px;
}

.award-card-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.award-card-modern:hover img {
    transform: scale(1.08);
}
.hover-icon {
    position: absolute;
    inset: 0;
    background: rgba(57, 22, 6, 0.2); /* Orange Overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.award-card-modern:hover .hover-icon {
    opacity: 1;
}
.hover-icon i {
    background-color: #FD7D41;
    color: white;
    border-radius: 50%;
    padding: 8px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}


/* Smart Bento Grid (CSS Grid with spans) */
.smart-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-flow: dense;
    gap: 20px;
}

.bento-item-wrapper {
    grid-column: span 1;
    grid-row: span 1; /* Default 1x1 */
    transition: opacity 0.3s ease;
    opacity: 0; /* Fade in on load */
}
.bento-item-wrapper.loaded {
    opacity: 1;
}

/* Modifiers for Aspect Ratio - Controlled by JS */
.bento-item-wrapper.span-wide {
    grid-column: span 2;
}
.bento-item-wrapper.span-tall {
    grid-row: span 2;
}
.bento-item-wrapper.span-big {
    grid-column: span 2;
    grid-row: span 2;
}

/* Paper Cutout Style for News */
.bento-paper-cutout {
    display: block;
    position: relative;
    background: #fff;
    padding: 10px; /* White border effect */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    width: 100%;
    border: 1px solid #eee;
}

.bento-paper-cutout img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f0f0f0; /* Placeholder color */
}

.bento-paper-cutout:hover {
    transform: scale(1.02) rotate(1deg); /* Subtle playful interaction */
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
    z-index: 2;
    border-color: #eee;
}

.paper-overlay {
    position: absolute;
    inset: 10px; /* Matches padding */
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bento-paper-cutout:hover .paper-overlay {
    opacity: 1;
}

.view-btn {
    background: #FD7D41;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}
.bento-paper-cutout:hover .view-btn {
    transform: translateY(0);
}

@media(max-width: 576px) {
    .smart-bento-grid {
        display: flex;
        flex-direction: column;
    }
    .bento-item-wrapper {
        width: 100% !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }
}


/* Header Background Elements */
.award-header-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #fff; /* or pure white */
}

.header-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #FD7D41; /* Orange Theme */
    top: -100px;
    left: -100px;
    opacity: 0.15;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #FFE5D9; /* Lighter Orange */
    bottom: -50px;
    right: -50px;
    opacity: 0.4;
}

/* Ensure content sits above blobs */
.award-header-wrapper .container {
    position: relative;
    z-index: 1; /* z-1 class is bootstrap 5 but explicit is safe */
}

/* Media Section Background */
.section-media {
    background-color: #F9FAFB; /* very light grey/blue tint often used in modern UIs */
    border-top: 1px solid #eee;
}

/* Fade In Animation for View More */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
