/* =========================================================
   LIBRARY AWARDS
========================================================= */

.awards-wrapper {
    width: 100%;
}

.award-session {
    height: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 24px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.award-session-title {
    background: #0dcaf0;
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 15px;
}

.award-session-title h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.award-description {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Three winners in each row */
.award-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.award-grid2 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.award-item {
    text-align: center;
}

.award-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    display: block;
}

.award-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-top: 8px;
    margin-bottom: 5px;
    line-height: 1.35;
}

/* Older awards with no reader-card */
.award-item-simple img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.award-item-simple {
    text-align: center;
}

@media (max-width: 767px) {
    .award-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .award-session {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .award-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   IMAGE MODAL
========================================================= */

#imageModal .modal-dialog {
    width: auto;
    max-width: calc(100vw - 40px);
    margin: 20px auto;
}

#imageModal .modal-content {
    width: fit-content;
    max-width: 100%;
    margin: auto;
    background: #111;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

#imageModal .modal-header {
    display: none;
}

#imageModal .modal-body {
    position: relative;
    padding: 0;
    background: #111;
    line-height: 0;
}

/* Original image */
#modalImage {
    display: block;
    width: auto;
    height: auto;

    /* Do not make modal wider than screen */
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);

    object-fit: contain;
}

/* =========================================================
   STUDENT NAME CAPTION
========================================================= */

#imageCaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 14px 18px;

    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0)
    );

    line-height: 1.4;
}

/* Close button */
#imageModal .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;

    z-index: 10;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);
    color: #fff;

    font-size: 22px;
    line-height: 36px;

    cursor: pointer;
}

#imageModal .modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}


/* Mobile */
@media (max-width: 576px) {

    #imageModal .modal-dialog {
        max-width: calc(100vw - 20px);
        margin: 10px auto;
    }

    #modalImage {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    #imageCaption {
        font-size: 0.9rem;
        padding: 12px 14px;
    }

}
.winner-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
    }
    .winner-item {
      flex: 0 0 calc(16.66% - 20px); /* 6 per row on large screens */
      box-sizing: border-box;
      position: relative;
    }
    @media (max-width: 1200px) {
      .winner-item { flex: 0 0 calc(20% - 20px); } /* 5 per row */
    }
    @media (max-width: 992px) {
      .winner-item { flex: 0 0 calc(25% - 20px); } /* 4 per row */
    }
    @media (max-width: 768px) {
      .winner-item { flex: 0 0 calc(33.33% - 20px); } /* 3 per row */
    }
    @media (max-width: 576px) {
      .winner-item { flex: 0 0 calc(50% - 20px); } /* 2 per row */
    }

    .winner-card {
      border: none;
      border-radius: 15px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      transition: transform 0.2s, box-shadow 0.2s;
      height: 100%;
    }
    .winner-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    }
    .winner-card img {
      width: 100%;
      height: 220px;
      object-fit: cover;
    }
    .winner-info {
      text-align: center;
      padding: 15px;
    }
    .winner-info h5 {
      margin-bottom: 5px;
      font-weight: 600;
      font-size: 1rem;
      text-transform: uppercase;
    }
    .winner-info p {
      margin: 0;
      color: #555;
      font-size: 0.9rem;
    }
    .ribbon {
      position: absolute;
      top: 10px;
      left: -5px;
      background: #ffc107;
      color: #000;
      padding: 5px 12px;
      font-weight: 600;
      font-size: 0.8rem;
      border-radius: 0 5px 5px 0;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    .quiz-badge {
      background: #0d6efd;
      color: #fff;
      font-size: 0.8rem;
      border-radius: 50px;
      padding: 3px 10px;
      display: inline-block;
      margin-top: 5px;
    }
	/* =========================================================
   BEST USER AWARD - IMAGE FALLBACK
========================================================= */

.award-image-fallback {
    width: 100%;
    height: 210px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    text-align: center;

    padding: 15px;

    border-radius: 12px;

    border: 1px solid #dbeafe;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(13, 202, 240, .22),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            #f0f9ff,
            #eef2ff
        );

    box-sizing: border-box;
}


.award-fallback-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 9px;

    border-radius: 50%;

    background: #ffffff;

    color: #0d6efd;

    font-size: 1.25rem;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, .08);
}


.award-fallback-name {
    font-size: .92rem;

    font-weight: 700;

    line-height: 1.3;

    color: #1e293b;
}


.award-fallback-class {
    margin-top: 3px;

    font-size: .76rem;

    font-weight: 600;

    color: #0d6efd;
}


.award-fallback-text {
    margin-top: 8px;

    font-size: .68rem;

    color: #64748b;
}
/* =========================================================
   SUMMER READING CHALLENGE
========================================================= */

.award-subtitle {
    display: flex;
    align-items: center;

    margin: 20px 0 14px;
    padding: 9px 14px;

    border-radius: 10px;

    background: #f0f9ff;
    border: 1px solid #dbeafe;

    color: #0c4a6e;

    font-size: .95rem;
    font-weight: 700;
}

.award-subtitle i {
    color: #0d6efd;
}


/* =========================================================
   IMAGE WRAPPER
========================================================= */

.award-photo-wrap {
    position: relative;
    width: 100%;
}


/* =========================================================
   SUMMER READING CARD
========================================================= */

.award-item {
    overflow: hidden;
}

.award-image2 {
    display: block;

    width: 100%;
    height: 210px;

    object-fit: cover;

    cursor: pointer;

    border-radius: 10px;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.award-item:hover .award-image2 {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(0,0,0,.12);
}

.award-name2 {
    padding: 9px 5px 3px;

    text-align: center;

    font-size: .84rem;
    line-height: 1.35;

    font-weight: 700;

    color: #334155;
}
/* =========================================================
   SUMMER READING CHALLENGE - YEAR NAVIGATION
========================================================= */

.src-year-nav {
    padding: 18px 20px;

    border: 1px solid #dbeafe;
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #eef8ff
        );

    box-shadow:
        0 5px 18px rgba(15, 23, 42, .06);
}


/* ---------------------------------------------------------
   TITLE
--------------------------------------------------------- */

.src-year-nav-title {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 15px;
}

.src-year-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    background: #fff;

    color: #0d6efd;

    font-size: 1.15rem;

    box-shadow:
        0 3px 10px rgba(15, 23, 42, .08);
}

.src-year-heading {
    font-size: .95rem;
    font-weight: 700;

    color: #1e293b;
}

.src-year-subheading {
    margin-top: 2px;

    font-size: .74rem;

    color: #64748b;
}


/* ---------------------------------------------------------
   BUTTON CONTAINER
--------------------------------------------------------- */

.src-year-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}


/* ---------------------------------------------------------
   YEAR BUTTON
--------------------------------------------------------- */

.src-year-button {
    display: flex;
    align-items: center;

    min-width: 170px;

    padding: 9px 12px;

    border: 1px solid #cfe3f5;
    border-radius: 12px;

    background: #fff;

    color: #334155;

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.src-year-button:hover {
    transform: translateY(-2px);

    border-color: #0dcaf0;

    background: #fff;

    color: #0d6efd;

    box-shadow:
        0 7px 18px rgba(13, 110, 253, .12);
}


/* ---------------------------------------------------------
   BUTTON ICON
--------------------------------------------------------- */

.src-year-button-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 10px;

    border-radius: 9px;

    background: #eaf7ff;

    color: #0d6efd;

    font-size: .85rem;
}


/* ---------------------------------------------------------
   BUTTON TEXT
--------------------------------------------------------- */

.src-year-button-text {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
}

.src-year-button-text strong {
    font-size: .85rem;
}

.src-year-button-text small {
    margin-top: 3px;

    font-size: .68rem;

    color: #64748b;
}


/* ---------------------------------------------------------
   ARROW
--------------------------------------------------------- */

.src-year-arrow {
    margin-left: auto;

    font-size: .8rem;

    color: #94a3b8;

    transition:
        transform .2s ease,
        color .2s ease;
}

.src-year-button:hover .src-year-arrow {
    color: #0d6efd;

    transform: translateX(3px);
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 575px) {

    .src-year-nav {
        padding: 15px;
    }

    .src-year-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .src-year-button {
        width: 100%;
    }

}

.award-category {
    display: block;
    margin-top: 3px;

    color: #0d6efd;

    font-size: .72rem;
    font-weight: 600;
}