/* Awards & Accolades Page Styles */

/* Banner Sections (Full-width) */
.awards-banner-section {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.awards-banner-section .banner-image {
    width: 100%;
}

.awards-banner-section .banner-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Banner caption container - styles now handled by individual .image-caption elements */
.awards-banner-section .banner-caption {
    background: transparent;
}

/* Banner caption styles - converted to fine print like the-book.php */
.awards-banner-section .image-caption {
    font-size: 13px;
    text-align: center;
    color: #666;
    font-style: normal;
    margin-top: 0.25rem;
    line-height: 1.4;
    font-weight: normal;
}

.awards-banner-section .banner-caption .sub-caption {
    margin-top: 5px;
}

.awards-banner-section .banner-caption strong {
    display: inline;
    font-weight: bold;
}

/* Awards Introduction Section */
.awards-intro-section {
    padding: 20px 0 40px 0;
    background: transparent;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 5;
}

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

.awards-intro-section .section-title {
    text-align: center;
    font-size: 32px;
    color: #4a90e2 !important;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
}

.awards-intro-section .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666 !important;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
}

.awards-intro-section .intro-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.awards-intro-section .intro-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #333 !important;
    margin-bottom: 20px;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
}

.awards-intro-section .lifetime-achievement {
    text-align: center;
    margin-top: 60px;
}

.awards-intro-section .lifetime-achievement img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Lifetime Achievement Full Width Section */
.lifetime-achievement-section {
    width: 100%;
    margin-bottom: 40px;
}

.lifetime-achievement-image {
    width: 100%;
}

.lifetime-achievement-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Ensure video thumbnail is visible when not playing video */
.lifetime-achievement-image.video-banner-wrapper img.video-thumbnail {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    z-index: 1 !important;
    position: relative !important;
    object-fit: cover !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Video Player Styles for Lifetime Achievement Section */
.lifetime-achievement-image.video-banner-wrapper {
    position: relative;
    cursor: pointer;
    line-height: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.lifetime-achievement-image .video-thumbnail {
    width: 100%;
    height: auto;
    display: block !important;
    z-index: 1;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
}

.lifetime-achievement-image .video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.lifetime-achievement-image .video-play-overlay:hover {
    background: rgba(0,0,0,0.4);
}

.lifetime-achievement-image .play-button {
    transition: transform 0.3s ease;
    z-index: 3;
}

.lifetime-achievement-image .video-play-overlay:hover .play-button {
    transform: scale(1.1);
}

.lifetime-achievement-image .youtube-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 10;
}

.lifetime-achievement-image .youtube-video.hidden {
    display: none;
}

.achievement-caption-container {
    text-align: center;
    padding: 20px;
    background: transparent;
    margin-top: 0.25rem;
}

/* Achievement caption - now handled by universal .image-caption class */

.achievement-caption strong {
    display: inline;
    font-weight: bold;
}

/* Awards Grid Section */
.awards-grid-section {
    padding: 40px 0;
    background: transparent;
}

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

.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.award-item {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e5e7eb;
}

.award-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.award-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Award caption styles - now handled by universal .image-caption class */
.award-item .award-caption {
    padding: 20px;
    flex: 1;
    display: block;
}

.award-item .award-caption strong {
    display: inline;
    font-weight: bold;
    white-space: normal;
}

/* Letters of Commendation Section */
.commendation-section {
    padding: 40px 0;
    background: transparent;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 5;
}

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

.commendation-section .section-title {
    text-align: center;
    font-size: 2rem;
    color: #4a90e2 !important;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
}

.commendation-section .section-description {
    text-align: center;
    font-size: 1.05rem;
    color: #555 !important;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
}

/* Chiefs Message Carousel */
.chiefs-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    pointer-events: all;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.carousel-prev:disabled,
.carousel-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Stamps Section */
.stamps-section {
    padding: 40px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.stamps-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.stamps-section .section-title {
    text-align: center;
    font-size: 2rem;
    color: #4a90e2 !important;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 3;
    opacity: 1 !important;
    visibility: visible !important;
}

.stamps-section .section-description {
    text-align: center;
    font-size: 1.05rem;
    color: #555 !important;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
    position: relative;
    z-index: 3;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Stamps Carousel */
.stamps-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stamps-carousel .carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stamps-carousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.stamps-carousel .carousel-slide {
    min-width: 100%;
    position: relative;
}

.stamps-carousel .carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.stamps-carousel .carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

.stamps-carousel .carousel-prev,
.stamps-carousel .carousel-next {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    z-index: 2;
}

.stamps-carousel .carousel-prev:hover,
.stamps-carousel .carousel-next:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

.stamps-carousel .carousel-prev:disabled,
.stamps-carousel .carousel-next:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    transform: none;
}

.stamps-carousel .carousel-prev:disabled:hover,
.stamps-carousel .carousel-next:disabled:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: none;
}

/* Universal image caption styling - exactly matching the-book.css to override sections.css */
.image-caption {
    font-size: 1rem;
    color: #666;
    text-align: center;
    font-weight: 500;
    line-height: 1.6;
    max-width: 800px;
    margin: 0.75rem auto 0 auto;
    padding: 0 1rem;
}

.view-more-btn-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.btn-view-more {
    background: #2c5282;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.btn-view-more:hover {
    background: #2a4a7c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 82, 130, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .awards-banner-section .banner-image {
        width: 100%;
        height: auto;
    }
    
    .section-1 .banner-image,
    .section-4 .banner-image,
    .section-7 .banner-image {
        width: 100%;
        height: auto;
    }
    
    /* Banner caption container responsive - now handled by .image-caption */
    
    /* Banner caption responsive - now handled by universal .image-caption */
    
    .awards-intro-section .section-title {
        font-size: 1.8rem;
        padding: 0 15px;
        line-height: 1.2;
    }
    
    .awards-intro-section .section-subtitle {
        font-size: 1rem;
        padding: 0 15px;
        line-height: 1.4;
    }
    
    .awards-intro-section .intro-text {
        padding: 0 15px;
    }
    
    .awards-intro-section .intro-text p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .award-item img {
        height: auto;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .stamps-carousel .carousel-prev,
    .stamps-carousel .carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .stamps-carousel .carousel-controls {
        padding: 0 10px;
    }
    
    .commendation-section .section-title,
    .stamps-section .section-title {
        font-size: 1.5rem;
    }

    /* Universal image caption responsive - matching the-book.css */
    .image-caption {
        font-size: 0.9rem;
    }

    /* Banner caption fine print responsive */
    .awards-banner-section .image-caption {
        font-size: 12px;
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    /* Universal image caption responsive - matching the-book.css */
    .image-caption {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    /* Banner caption fine print responsive */
    .awards-banner-section .image-caption {
        font-size: 11px;
        text-align: center;
        padding: 0 10px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .awards-intro-section {
        padding: 30px 0;
    }

    .awards-grid-section,
    .stamps-section {
        padding: 30px 0;
    }

    .commendation-section {
        padding: 30px 0;
    }

    .awards-banner-section,
    .lifetime-achievement-section {
        margin-bottom: 20px;
    }

    .awards-intro-section .section-title {
        font-size: 1.5rem;
        padding: 0 10px;
        margin-bottom: 15px;
    }

    .awards-intro-section .section-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .awards-intro-section .intro-text {
        padding: 0 10px;
        margin-bottom: 40px;
    }

    .awards-intro-section .intro-text p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* All caption responsive styles now handled by universal .image-caption */

    .carousel-controls {
        padding: 0 10px;
    }

    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
    }

    .commendation-section .section-title {
        font-size: 1.3rem;
        padding: 0 10px;
    }

    .commendation-section .section-description {
        font-size: 0.9rem;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .stamps-section .section-title {
        font-size: 1.3rem;
        padding: 0 10px;
    }

    .stamps-section .section-description {
        font-size: 0.9rem;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .stamps-carousel {
        margin: 0 10px;
    }

    .stamps-carousel .carousel-container {
        border-radius: 6px;
    }

    .btn-view-more {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    /* Universal image caption responsive - matching the-book.css */
    .image-caption {
        font-size: 0.8rem;
        padding: 0 8px;
    }

    /* Banner caption fine print responsive */
    .awards-banner-section .image-caption {
        font-size: 10px;
        padding: 0 8px;
        margin-top: 8px;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .awards-intro-section {
        padding: 25px 0;
    }
    
    .awards-grid-section,
    .stamps-section,
    .commendation-section {
        padding: 25px 0;
    }
    
    .awards-intro-section .section-title {
        font-size: 1.3rem;
        padding: 0 8px;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .awards-intro-section .section-subtitle {
        font-size: 0.85rem;
        padding: 0 8px;
        margin-bottom: 25px;
        line-height: 1.3;
    }
    
    .awards-intro-section .intro-text {
        padding: 0 8px;
        margin-bottom: 30px;
    }
    
    .awards-intro-section .intro-text p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    /* All caption responsive styles now handled by universal .image-caption */

    .award-item {
        margin: 0 5px;
    }
    
    .carousel-controls {
        padding: 0 5px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 30px;
        height: 30px;
    }
    
    .carousel-prev svg,
    .carousel-next svg {
        width: 16px;
        height: 16px;
    }
    
    .commendation-section .section-title {
        font-size: 1.2rem;
        padding: 0 8px;
        line-height: 1.2;
    }
    
    .commendation-section .section-description {
        font-size: 0.85rem;
        padding: 0 8px;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    .stamps-section .section-title {
        font-size: 1.2rem;
        padding: 0 8px;
        line-height: 1.2;
    }
    
    .stamps-section .section-description {
        font-size: 0.85rem;
        padding: 0 8px;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    .stamps-carousel {
        margin: 0 5px;
    }
    
    .stamps-carousel .carousel-prev,
    .stamps-carousel .carousel-next {
        width: 30px;
        height: 30px;
    }
    
    .btn-view-more {
        padding: 8px 20px;
        font-size: 0.85rem;
        min-width: 120px;
    }
    
    .container {
        padding: 0 10px;
    }

    /* Universal image caption responsive - matching the-book.css */
    .image-caption {
        font-size: 0.8rem;
        padding: 0 8px;
    }

    /* Banner caption fine print responsive */
    .awards-banner-section .image-caption {
        font-size: 9px;
        padding: 0 5px;
        margin-top: 5px;
        line-height: 1.3;
    }
}