/* ========================================
   Police Modern School - Custom Styles
   ======================================== */

/* Root Variables */
:root {
    --primary: #1e3a8a;
    --secondary: #facc15;
    --accent: #3b82f6;
    --soft: #f3f4f6;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #1f2937;
    --light: #ffffff;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2) rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* News Ticker */
.news-ticker {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.news-ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

.news-item {
    display: inline-block;
    padding: 0 50px;
    font-weight: 500;
    color: white !important;
    /* Force white text */
}

.news-item a {
    color: white !important;
    /* Force links to be white */
    text-decoration: none;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.news-ticker:hover .news-ticker-content {
    animation-play-state: paused;
}

/* Statistics Counter */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 60px 0;
    margin-top: -80px;
    position: relative;
    z-index: 5;
}

.stat-item {
    text-align: center;
    color: white;
    padding: 20px;
}

.stat-item .counter {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
    color: var(--secondary);
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Timeline Design */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--secondary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 45%;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 55%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border: 4px solid white;
    border-radius: 50%;
    top: 0;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -60px;
}

/* FAQ Accordion */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark);
    user-select: none;
}

.faq-question:hover {
    background: var(--soft);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    color: #6b7280;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 40px;
    animation: slideIn 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--secondary);
}

.testimonial-stars {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: #4b5563;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* Download Cards */
.download-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.download-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Multi-step Form */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 50px;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e5e7eb;
    z-index: -1;
}

.progress-step:first-child::before {
    left: 50%;
}

.progress-step:last-child::before {
    right: 50%;
}

.progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.progress-step.active .progress-step-circle {
    background: var(--primary);
    color: white;
    transform: translateX(-50%) scale(1.2);
}

.progress-step.completed .progress-step-circle {
    background: var(--success);
    color: white;
}

.progress-step.completed::before {
    background: var(--success);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Dark Mode Support */
.dark-mode {
    background: #111827;
    color: #f9fafb;
}

.dark-mode .bg-white {
    background: #1f2937 !important;
}

.dark-mode .text-gray-800 {
    color: #f9fafb !important;
}

.dark-mode .text-gray-600 {
    color: #d1d5db !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        margin-left: 40px !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: -30px !important;
    }

    .stat-item .counter {
        font-size: 2rem;
    }

    .lightbox-nav {
        font-size: 30px;
        padding: 10px;
    }

    .lightbox-close {
        right: 20px;
        font-size: 30px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Firework Particle Styles */
.firework-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 20;
    /* Above badge z-10 */
    transform-origin: center;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

/* ========================================
   Overlap Gallery Slider Styles
   ======================================== */

.gallery-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    /* Full screen width */
    padding: 0;
    /* Remove visual background/border/shadow */
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Container size optimized for content */
    aspect-ratio: 20 / 5;
    /* 0.625x height compared to original 20/8 - close to requested 0.7x */
    margin: 0 auto;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 35%;
    /* Reduced from 45% to fit vertically */
    aspect-ratio: 3/2;
    /* Actual image ratio */
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    filter: brightness(0.4) blur(2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Positions Logic */

/* 1st Image (Left) */
.slide.pos-1 {
    transform: translateX(-65%) scale(0.85);
    opacity: 0.6;
    z-index: 10;
    filter: brightness(0.6) blur(1px);
    pointer-events: auto;
}

/* 2nd Image (Center - Overlapping) */
.slide.pos-2 {
    transform: translateX(0) scale(1.1);
    opacity: 1;
    z-index: 30;
    /* Highest Z-index for overlap */
    filter: brightness(1) blur(0);
    pointer-events: auto;
    /* Keep border/shadow on the center image for pop or remove if requested "only image" */
    /* Assuming user wants the image to still look good, keeping border on image itself is fine, wrapper gone */
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* 3rd Image (Right) */
.slide.pos-3 {
    transform: translateX(65%) scale(0.85);
    opacity: 0.6;
    z-index: 10;
    filter: brightness(0.6) blur(1px);
    pointer-events: auto;
}

/* Exit Animation (Left ki taraf hide hona) */
.slide.hide-left {
    transform: translateX(-150%) scale(0.5);
    opacity: 0;
    z-index: 5;
}

/* Entry Animation (Right se load hona) */
.slide.show-right {
    transform: translateX(150%) scale(0.5);
    opacity: 0;
    z-index: 5;
}

.gallery-label {
    display: none;
}

/* Mobile Gallery Adjustments */
@media (max-width: 768px) {
    .gallery-wrapper {
        aspect-ratio: 20 / 14 !important;
    }
    .slide {
        width: 75% !important;
    }
}
