/* CSS/awards.css - Full code with reduced section gaps */

/* =========================================
   IMPORT HOMEPAGE STYLES
   ========================================= */
@import url("home.css");

/* =========================================
   GLOBAL BODY - SUBTLE BACKGROUND
   ========================================= */
body {
    background-color: #fafdfa;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(67, 177, 67, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(67, 177, 67, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

/* =========================================
   AWARDS HERO
   ========================================= */
.awards-hero {
    position: relative;
    padding: 100px 0 80px;
    background-color: #1a5f2a;
    overflow: hidden;
    min-height: 380px;
    text-align: center;
}

.awards-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../MetroPlogo/SSC.png');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 0;
}

.awards-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.awards-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.awards-hero-subtitle {
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold;
    color: var(--light-green);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.awards-hero-subtitle::before,
.awards-hero-subtitle::after {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--light-green);
    display: inline-block;
}

.awards-hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.awards-hero-content .highlight-green {
    color: var(--light-green);
}

.awards-hero-desc {
    font-size: 17px;
    line-height: 1.9;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* =========================================
   SECTION TITLE (Shared)
   ========================================= */
.section-title-wrap {
    text-align: center;
    margin-bottom: 45px;
}

.section-title-wrap h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a4a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.sparkle-inline {
    color: var(--award-green);
    font-size: 32px;
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(67, 177, 67, 0.3);
}

.section-title-wrap p {
    font-size: 15px;
    color: var(--text-light);
}

.section-title-wrap p strong {
    color: var(--primary-green);
    font-weight: 700;
}

/* =========================================
   PREMIUM CONTAINER (Shared Base)
   ========================================= */
.premium-container {
    width: 92%;
    max-width: 1350px;
    margin: 20px auto;         /* ← Was 40px — now tighter */
    padding: 55px 45px;
    border-radius: 36px;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
    box-shadow: 
        0 0 0 1px rgba(67, 177, 67, 0.15),
        0 0 0 3px rgba(255, 255, 255, 0.4),
        0 40px 80px rgba(67, 177, 67, 0.14),
        0 20px 40px rgba(67, 177, 67, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.premium-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--award-green), var(--light-green), var(--award-green), transparent);
    border-radius: 0 0 6px 6px;
    z-index: 3;
}

.premium-container > * {
    position: relative;
    z-index: 1;
}

/* =========================================
   AWARDS SECTION
   ========================================= */
.awards-section {
    padding: 15px 0;            /* ← Was 40px — now tighter */
}

.awards-container {
    background: 
        radial-gradient(circle at 0% 0%, rgba(163, 217, 119, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(67, 177, 67, 0.12) 0%, transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #f5faf5 100%);
    padding-top: 55px;
    padding-bottom: 40px;
}

/* =========================================
   AWARDS GRID - FLEXBOX (3-up top, 2-centered bottom)
   ========================================= */
.awards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

/* Base Award Card */
.awards-grid .info-box {
    width: calc(33.333% - 10px);
    max-width: 320px;
    flex-grow: 0;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid var(--award-green);
    box-shadow: 0 8px 25px rgba(67, 177, 67, 0.12);
    display: flex;
    flex-direction: column;
    height: 330px;
    position: relative;
    background-color: #e8e5dd;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

/* Individual adjustments */
.awards-grid .info-box:nth-child(1) { background-position: center 50%; }
.awards-grid .info-box:nth-child(2) { background-position: center 20%; }
.awards-grid .info-box:nth-child(3) { background-position: center 50%; }
.awards-grid .info-box:nth-child(4) { background-position: center 50%; }
.awards-grid .info-box:nth-child(5) { background-position: center 50%; }

/* Overlay gradient at the bottom */
.awards-grid .info-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.0) 0%,
        rgba(0, 0, 0, 0.0) 55%,
        rgba(0, 0, 0, 0.25) 75%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.awards-grid .info-box::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

.awards-grid .info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

/* Dark rounded text box */
.awards-grid .info-content {
    padding: 15px 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.awards-grid .info-box h3 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.awards-grid .info-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #79C679, #43B143);
    border-radius: 2px;
}

.awards-grid .view-details {
    display: inline-block;
    margin-top: 8px;
    color: #79C679;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* =========================================
   HOVER EFFECTS — Only on devices with a mouse
   ========================================= */
@media (hover: hover) {
    .premium-container:hover {
        transform: translateY(-4px);
    }

    .awards-grid .info-box:hover::before {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.1) 55%,
            rgba(0, 0, 0, 0.35) 75%,
            rgba(0, 0, 0, 0.6) 100%
        );
    }

    .awards-grid .info-box:hover::after {
        border-color: rgba(255, 255, 255, 0.3);
    }

    .awards-grid .info-box:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 25px 50px rgba(67, 177, 67, 0.3);
        border-color: #2f8f2f;
    }

    .awards-grid .info-box:hover .info-content {
        background: rgba(0, 0, 0, 0.82);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transform: translateY(-6px);
    }

    .awards-grid .info-box:hover .view-details {
        color: #a8d5a8;
        transform: translateX(8px);
        letter-spacing: 1.8px;
    }

    .awards-cta-content .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 45px rgba(163, 217, 119, 0.4);
    }
}

/* =========================================
   ISO CERTIFICATION SECTION
   ========================================= */
.iso-section {
    padding: 15px 0;            /* ← Was 40px — now tighter */
}

.iso-container {
    background: 
        repeating-linear-gradient(
            90deg,
            rgba(67, 177, 67, 0.04) 0px,
            rgba(67, 177, 67, 0.04) 1px,
            transparent 1px,
            transparent 60px
        ),
        linear-gradient(180deg, #f8fcf8 0%, #ffffff 100%);
}

.iso-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.iso-title-wrap {
    flex: 1;
    min-width: 250px;
}

.iso-title-wrap h2 {
    font-size: 38px;
    font-weight: 800;
    color: #1a4a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.iso-icon {
    color: var(--award-green);
    font-size: 34px;
    display: inline-block;
    animation: isoRotate 6s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(67, 177, 67, 0.3);
}

@keyframes isoRotate {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

.iso-underline {
    width: 90px;
    height: 5px;
    background: linear-gradient(to right, #43B143, #79C679, #a8d5a8);
    border-radius: 3px;
}

.iso-text {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 35px 40px;
    border-left: 5px solid var(--award-green);
    box-shadow: 
        0 10px 30px rgba(67, 177, 67, 0.06),
        inset 0 2px 10px rgba(0, 0, 0, 0.02);
}

.iso-text p {
    font-size: 16px;
    line-height: 2;
    color: var(--text-dark);
    margin-bottom: 22px;
    text-align: justify;
}

.iso-text p:last-child {
    margin-bottom: 0;
}

.iso-text p b {
    color: var(--primary-green);
    font-weight: 700;
    padding: 0 2px;
}

/* =========================================
   CTA SECTION
   ========================================= */
.awards-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    position: relative;
    overflow: hidden;
}

.awards-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(163, 217, 119, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.awards-cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
}

.awards-cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.awards-cta-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.9;
}

.awards-cta-content .btn-primary {
    background: var(--light-green);
    color: var(--primary-green);
    padding: 16px 35px;
    font-size: 15px;
    box-shadow: 0 15px 35px rgba(163, 217, 119, 0.3);
}

/* =========================================
   SCROLL REVEAL
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE - TABLET (max 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .awards-hero-content h1 { font-size: 38px; }
    .awards-hero-desc { font-size: 15px; }

    .premium-container {
        padding: 45px 35px;
        border-radius: 28px;
    }

    .awards-container {
        padding-top: 45px;
        padding-bottom: 35px;
    }

    .section-title-wrap h2 { font-size: 26px; }

    .awards-grid {
        gap: 18px;
    }

    .awards-grid .info-box {
        width: calc(50% - 10px);
        max-width: none;
        height: 320px;
    }

    .iso-title-wrap h2 { font-size: 30px; }
    .iso-icon { font-size: 28px; }

    .iso-text { padding: 30px 32px; }
    .iso-text p { font-size: 15px; line-height: 1.9; }

    .awards-cta-content h2 { font-size: 32px; }
}

/* =========================================
   RESPONSIVE - MOBILE (max 768px)
   ========================================= */
@media (max-width: 768px) {
    .awards-hero { padding: 60px 0 50px; min-height: auto; }
    .awards-hero-content h1 { font-size: 30px; }
    .awards-hero-desc { font-size: 14px; line-height: 1.8; }

    .premium-container {
        width: 94%;
        padding: 30px 20px;
        border-radius: 24px;
        margin: 15px auto;      /* ← Tighter on mobile too */
    }

    .awards-section,
    .iso-section {
        padding: 10px 0;         /* ← Tighter on mobile */
    }

    .awards-container {
        padding-top: 30px;
        padding-bottom: 25px;
    }

    .section-title-wrap { margin-bottom: 25px; }
    .section-title-wrap h2 { font-size: 22px; gap: 10px; }
    .sparkle-inline { font-size: 20px; }

    .awards-grid { gap: 12px; }

    .awards-grid .info-box {
        width: calc(50% - 6px);
        max-width: none;
        height: 240px;
        min-height: 240px;
        background-size: cover;
        background-position: center 30% !important;
    }

    .awards-grid .info-overlay { padding: 8px; }

    .awards-grid .info-content { padding: 8px 10px; border-radius: 8px; }

    .awards-grid .info-box h3 {
        font-size: 11px;
        margin-bottom: 3px;
        padding-bottom: 5px;
        line-height: 1.2;
    }

    .awards-grid .info-box h3::after { width: 20px; height: 2px; }

    .awards-grid .view-details {
        font-size: 7px;
        letter-spacing: 0.3px;
        margin-top: 3px;
    }

    /* Modal */
    .modal { padding: 15px; align-items: flex-start; overflow-y: auto; }
    .modal-content { background: transparent; max-height: none; width: 100%; border-radius: 20px; overflow: visible; margin: 20px auto; }
    .modal-body { display: flex; flex-direction: column; min-height: auto; }

    .modal-image-container {
        min-height: 250px;
        max-height: 320px;
        padding: 25px;
        border-right: none;
        border-bottom: 3px solid #43B143;
        border-top-left-radius: 17px;
        border-top-right-radius: 17px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    #modalImage { max-height: 270px; width: auto; }

    .modal-text {
        padding: 28px 22px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 17px;
        border-bottom-right-radius: 17px;
    }

    #modalTitle { font-size: 22px; padding-bottom: 14px; margin-bottom: 14px; }
    #modalTitle::after { width: 50px; height: 4px; }
    #modalDescription { font-size: 14px; line-height: 1.8; }

    .close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 28px; }

    /* ISO + CTA */
    .iso-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .iso-title-wrap h2 { font-size: 24px; }
    .iso-icon { font-size: 22px; }
    .iso-text { padding: 25px 22px; }
    .iso-text p { font-size: 14px; line-height: 1.85; text-align: left; }

    .awards-cta { padding: 50px 0; }
    .awards-cta-content h2 { font-size: 24px; }
    .awards-cta-content p { font-size: 14px; line-height: 1.7; }
    .awards-cta-content .btn-primary { width: 100%; justify-content: center; }
}

/* =========================================
   SMALL MOBILE (max 480px)
   ========================================= */
@media (max-width: 480px) {
    .awards-hero-content h1 { font-size: 24px; }
    .awards-hero-subtitle { font-size: 10px; letter-spacing: 2px; }
    .awards-hero-subtitle::before,
    .awards-hero-subtitle::after { width: 25px; }

    .section-title-wrap h2 { font-size: 19px; }

    .premium-container { padding: 22px 14px; }

    .awards-container {
        padding-top: 25px;
        padding-bottom: 20px;
    }

    .awards-grid { gap: 10px; }

    .awards-grid .info-box {
        width: calc(50% - 5px);
        max-width: none;
        height: 220px;
        min-height: 220px;
        background-position: center 30% !important;
    }

    .awards-grid .info-overlay { padding: 6px; }
    .awards-grid .info-content { padding: 6px 8px; border-radius: 6px; }

    .awards-grid .info-box h3 {
        font-size: 10px;
        margin-bottom: 3px;
        padding-bottom: 4px;
        line-height: 1.15;
    }

    .awards-grid .info-box h3::after { width: 18px; height: 2px; }

    .awards-grid .view-details {
        font-size: 6px;
        letter-spacing: 0.2px;
        margin-top: 2px;
    }

    /* Modal */
    .modal { padding: 10px; }
    .modal-content { background: transparent; border-radius: 16px; }

    .modal-image-container {
        min-height: 200px;
        max-height: 260px;
        padding: 20px;
        border-top-left-radius: 13px;
        border-top-right-radius: 13px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    #modalImage { max-height: 220px; }

    .modal-text {
        padding: 20px 18px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 13px;
        border-bottom-right-radius: 13px;
    }

    #modalTitle { font-size: 18px; padding-bottom: 12px; margin-bottom: 12px; }
    #modalTitle::after { width: 40px; height: 3px; }
    #modalDescription { font-size: 13px; line-height: 1.7; }

    .close { top: 10px; right: 10px; width: 35px; height: 35px; font-size: 24px; }

    /* ISO + CTA */
    .iso-title-wrap h2 { font-size: 20px; }
    .iso-icon { font-size: 18px; }
    .iso-underline { width: 60px; height: 4px; }
    .iso-text { padding: 20px 18px; }
    .iso-text p { font-size: 13.5px; }
}