/* Awards Page Styles */
.award-hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, 
        rgba(97, 63, 16, 0.15) 0%, 
        rgba(139, 69, 19, 0.2) 30%, 
        rgba(205, 127, 50, 0.1) 100%);
    overflow: hidden;
    isolation: isolate;
}

.award-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.award-badge-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.badge-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8b4513;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 50px;
    border: 2px solid #cd7f32;
}

.badge-trophy {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trophy-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(205, 127, 50, 0.5));
    z-index: 2;
}

.trophy-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    z-index: 1;
    animation: trophy-pulse 3s infinite ease-in-out;
}

.badge-category {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

.award-hero-text {
    max-width: 500px;
}

.hero-award-title {
    margin-bottom: 1.5rem;
}

.award-pre-title {
    display: block;
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.award-main-title {
    display: block;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #cd7f32 0%, #ffd700 50%, #cd7f32 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(205, 127, 50, 0.4);
}

.award-hero-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.award-stats {
    display: flex;
    gap: 2rem;
}

.award-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #cd7f32;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.1;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8b4513 0%, #cd7f32 100%);
    top: -150px;
    right: -150px;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #cd7f32 0%, #ffd700 100%);
    bottom: -100px;
    left: 10%;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #ffd700 0%, #8b4513 100%);
    top: 30%;
    left: -75px;
}

.floating-particle {
    position: absolute;
    background: #cd7f32;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite linear;
}

.p1 {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 20%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.p2 {
    width: 4px;
    height: 4px;
    top: 60%;
    left: 80%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.p3 {
    width: 8px;
    height: 8px;
    top: 40%;
    left: 40%;
    animation-duration: 25s;
    animation-delay: 1s;
}

/* Section Header Center */
.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-center .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header-center .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Award Intro Section */
.award-intro-section {
    padding: 6rem 0;
    background: var(--bg);
}

.award-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.award-intro-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.achievement-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b4513 0%, #cd7f32 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.achievement-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.achievement-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.certificate-display {
    display: flex;
    justify-content: center;
}

.certificate-frame {
    position: relative;
    width: 300px;
    height: 400px;
    perspective: 1000px;
}

.certificate-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: rotate3d(0.2, 1, 0.1, 15deg);
    transition: transform 0.5s ease;
}

.certificate-frame:hover .certificate-img {
    transform: rotate3d(0.2, 1, 0.1, 5deg);
}

.certificate-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.8s ease;
}

.certificate-frame:hover .certificate-shine {
    left: 100%;
}

.certificate-ribbon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #cd7f32, #8b4513);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
}

/* Trophy Gallery Section */
.trophy-gallery-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.trophy-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gallery-main {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Main Trophy Showcase - Make it clickable */
.main-trophy-showcase {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    cursor: pointer;
    margin: 0 auto;
}

.main-trophy-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-trophy-showcase:hover .main-trophy-img {
    transform: scale(1.05);
}

.trophy-zoom-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-trophy-showcase:hover .trophy-zoom-hint {
    opacity: 1;
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-item:hover {
    opacity: 1;
    border-color: #cd7f32;
    transform: translateY(-5px);
}

.thumbnail-item.active {
    opacity: 1;
    border-color: #cd7f32;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(205, 127, 50, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* This ensures the click goes to parent */
}

/* Video Player Styles */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: #000;
}

.award-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Video controls styling */
.video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-wrapper.playing .video-controls {
    opacity: 0;
}

.video-wrapper:hover .video-controls {
    opacity: 1;
}

.video-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.video-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.4), transparent);
    z-index: 2;
    pointer-events: none;
}


/* Responsive fixes */
@media (max-width: 768px) {
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .main-trophy-showcase {
        height: 300px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
}


/* Competition Details Section */
.competition-details-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.competition-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.detail-card {
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-10px);
}

.detail-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8b4513 0%, #cd7f32 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.detail-card h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.detail-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.judging-criteria {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.judging-criteria h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text);
}

.criteria-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.criterion {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.criterion-name {
    font-weight: 600;
    color: var(--text);
}

.criterion-bar {
    grid-column: 1 / -1;
    height: 10px;
    background: var(--bg);
    border-radius: 5px;
    overflow: hidden;
}

.criterion-progress {
    height: 100%;
    background: linear-gradient(90deg, #cd7f32, #ffd700);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.criterion-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progress-shine 2s infinite;
}

.criterion-score {
    font-weight: 700;
    color: #cd7f32;
}

/* Reflection Section */
.reflection-section {
    padding: 6rem 0;
    background: var(--bg);
}

.reflection-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.reflection-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.achievement-quote {
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-left: 4px solid #cd7f32;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    margin: 2rem 0;
    color: var(--text);
    box-shadow: var(--shadow);
}

.reflection-visual {
    display: flex;
    justify-content: center;
}

.inspiration-circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: circle-rotate 20s infinite linear;
}

.circle-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b4513 0%, #cd7f32 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    transform-origin: 100px;
}

.circle-item:nth-child(1) { transform: rotate(0deg) translate(100px) rotate(0deg); }
.circle-item:nth-child(2) { transform: rotate(90deg) translate(100px) rotate(-90deg); }
.circle-item:nth-child(3) { transform: rotate(180deg) translate(100px) rotate(-180deg); }
.circle-item:nth-child(4) { transform: rotate(270deg) translate(100px) rotate(-270deg); }

/* Award CTA Section */
.award-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, 
        rgba(97, 63, 16, 0.15) 0%, 
        rgba(139, 69, 19, 0.2) 30%, 
        rgba(205, 127, 50, 0.1) 100%);
}

.award-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.award-cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.award-cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Enhanced Modal Styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


/* Modal Navigation Arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(205, 127, 50, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    z-index: 10002;
}

.modal-nav:hover {
    background: rgba(205, 127, 50, 1);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Modal Counter */
.modal-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Animations */
@keyframes trophy-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes progress-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

@keyframes circle-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .award-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .award-stats {
        justify-content: center;
    }
    
    .award-intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .reflection-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .inspiration-circle {
        width: 150px;
        height: 150px;
    }
    
    .circle-item {
        transform-origin: 75px;
        width: 50px;
        height: 50px;
        font-size: 0.7rem;
    }
    
    .circle-item:nth-child(1) { transform: rotate(0deg) translate(75px) rotate(0deg); }
    .circle-item:nth-child(2) { transform: rotate(90deg) translate(75px) rotate(-90deg); }
    .circle-item:nth-child(3) { transform: rotate(180deg) translate(75px) rotate(-180deg); }
    .circle-item:nth-child(4) { transform: rotate(270deg) translate(75px) rotate(-270deg); }
}

@media (max-width: 768px) {
    .award-main-title {
        font-size: 2.5rem;
    }
    
    .award-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .competition-details {
        grid-template-columns: 1fr;
    }
    
    .criterion {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }
    
    .criterion-bar {
        grid-column: auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .award-hero-section,
    .award-intro-section,
    .trophy-gallery-section,
    .video-showcase-section,
    .competition-details-section,
    .reflection-section,
    .award-cta-section {
        padding: 4rem 0;
    }
    
    .section-header-center .section-title {
        font-size: 2rem;
    }
    
    .badge-trophy {
        width: 200px;
        height: 200px;
    }
    
    .certificate-frame {
        width: 250px;
        height: 350px;
    }
    
    .main-trophy-showcase {
        height: 300px;
    }
}

/* Ceremony Section */
.ceremony-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.ceremony-timeline {
    max-width: 800px;
    margin: 0 auto 4rem;
    position: relative;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 2rem;
    flex-shrink: 0;
}

.marker-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b4513 0%, #cd7f32 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 2;
    position: relative;
}

.timeline-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #cd7f32, transparent);
    margin-top: 1rem;
    flex-grow: 1;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-content {
    padding: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    flex-grow: 1;
}

.timeline-content h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-date {
    color: #cd7f32;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.ceremony-gallery {
    margin-top: 4rem;
}

.ceremony-gallery h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Responsive Design for Ceremony Section */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-marker {
        flex-direction: row;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .timeline-line {
        width: 100%;
        height: 2px;
        margin-top: 0;
        margin-left: 1rem;
        flex-grow: 0;
    }
    
    .timeline-content {
        margin-left: 60px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}