/* ============================================================
   Aadharsheela – newcss.css
   Single source of truth for the redesigned pages.
   No inline CSS should exist in any PHP/HTML file.
   ============================================================ */

/* ---------- Base / Reset ---------- */
body {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
}

/* ---------- Brick Slider ---------- */
.brick-slider {
    position: relative;
    width: 100%;
    height: 700px;
    background: #000;
}

.brick-slide-current,
.brick-slide-next {
    position: absolute;
    inset: 0;
    background-size: 100% 100%;
    background-position: center;
}

.brick-slide-current { z-index: 1; }
.brick-slide-next    { z-index: 0; }

.brick-grid {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    gap: 0;
    pointer-events: none;
}

.brick-tile {
    overflow: hidden;
}

.brick-tile-face {
    width: 100%;
    height: 100%;
    transition-property: transform, opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tile rotates and shrinks away, revealing next image behind */
.brick-tile.flip .brick-tile-face {
    transform: perspective(600px) rotateY(90deg);
    opacity: 0;
}

@media (max-width: 768px) {
    .brick-slider { height: 350px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .brick-slider { height: 500px; }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ---------- Floating WhatsApp Button ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* ---------- Mobile Navigation ---------- */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
}

.mobile-nav-overlay.open {
    display: block;
}

.mobile-nav-panel {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav-panel.open {
    transform: translateX(0);
}

/* ---------- Nav Dropdown (custom) ---------- */
.nav-dropdown {
    display: none;
}

.nav-dropdown.open {
    display: block;
}

/* ---------- Coming Soon Page ---------- */
.coming-soon-body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: transform 0.3s, opacity 0.3s;
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* ---------- Testimonial Quote ---------- */
.font-serif {
    font-family: Georgia, 'Times New Roman', serif;
}

/* ---------- Testimonial Horizontal Scroll ---------- */
.testimonial-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #bfdbfe transparent;
}

.testimonial-scroll::-webkit-scrollbar {
    height: 6px;
}

.testimonial-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.testimonial-scroll::-webkit-scrollbar-thumb {
    background: #bfdbfe;
    border-radius: 3px;
}

.testimonial-card {
    width: 350px;
    min-width: 350px;
}

@media (max-width: 640px) {
    .testimonial-card {
        width: 280px;
        min-width: 280px;
    }
}

/* ---------- About Hero Image ---------- */
.about-hero-img {
    width: 100%;
    height: 450px;
    object-fit: fill;
    display: block;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .about-hero-img {
        height: 220px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .about-hero-img {
        height: 350px;
    }
}

/* ---------- Event Gallery Grid (Masonry) ---------- */
.event-gallery-grid {
    column-count: 2;
    column-gap: 1rem;
}

@media (min-width: 768px) {
    .event-gallery-grid { column-count: 3; }
}

@media (min-width: 1200px) {
    .event-gallery-grid { column-count: 4; }
}

.event-gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.event-gallery-img {
    width: 100%;
    display: block;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-gallery-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ---------- Event Hero Banner ---------- */
.event-hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle dot pattern overlay */
.event-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
}

/* Animated glow orb */
.event-hero-banner::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: heroFloat 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.1); }
}

.event-hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    z-index: 1;
}

.event-hero-circle-1 {
    width: 400px;
    height: 400px;
    top: -120px;
    right: -80px;
    animation: heroSpin 30s linear infinite;
}

.event-hero-circle-2 {
    width: 250px;
    height: 250px;
    bottom: -60px;
    left: -40px;
    border-width: 2px;
    border-color: rgba(59,130,246,0.15);
    animation: heroSpin 20s linear infinite reverse;
}

.event-hero-circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 60%;
    border-color: rgba(96,165,250,0.1);
    animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

@media (max-width: 768px) {
    .event-hero-banner {
        min-height: 240px;
    }
    .event-hero-circle-1 {
        width: 200px;
        height: 200px;
    }
    .event-hero-circle-2 {
        width: 120px;
        height: 120px;
    }
    .event-hero-banner::after {
        width: 250px;
        height: 250px;
    }
}

/* ---------- FAQ Hero Banner ---------- */
.faq-hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
}

.faq-hero-banner::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    animation: heroFloat 8s ease-in-out infinite;
    z-index: 1;
}

@media (max-width: 768px) {
    .faq-hero-banner {
        min-height: 240px;
    }
    .faq-hero-banner::after {
        width: 250px;
        height: 250px;
    }
}

/* ---------- FAQ Accordion ---------- */
.faq-toggle:hover {
    background: #f9fafb;
}

.faq-item:has(.faq-answer:not(.hidden)) {
    border-color: #bfdbfe;
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.1);
}

/* ---------- Dark Blue Card Shadow ---------- */
.shadow-blue {
    box-shadow: 0 4px 20px rgba(29, 78, 216, 0.12);
    position: relative;
    overflow: hidden;
}

.shadow-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #1e3a8a, #2563eb, #3b82f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.shadow-blue:hover::before {
    transform: scaleX(1);
}

.shadow-blue-lg {
    box-shadow: 0 8px 30px rgba(29, 78, 216, 0.18);
}

/* ---------- YouTube Popup Animations ---------- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(30px); }
}

/* ---------- Registration Form Inputs ---------- */
.reg-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.reg-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.reg-input::placeholder {
    color: #9ca3af;
}
