/* ========================================
   St. Dominic's School - Custom Styles
   ======================================== */

/* --- Marquee Animation --- */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.animate-marquee {
    animation: marquee 25s linear infinite;
}

/* --- Alpine.js x-cloak --- */
[x-cloak] {
    display: none !important;
}

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F0FDF4;
}

::-webkit-scrollbar-thumb {
    background: #22C55E;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #16A34A;
}

/* --- Hero Slider --- */
.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
    background: #F59E0B;
    width: 32px;
    border-radius: 6px;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: white;
    background: rgba(22, 101, 52, 0.5);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: rgba(22, 101, 52, 0.8);
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* --- Gold Divider --- */
.gold-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B, #FDE68A);
    border: none;
    margin: 1rem 0;
}

.gold-divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* --- Section Heading --- */
.section-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B, #FDE68A);
}

.section-heading-left::after {
    left: 0;
    transform: none;
}

/* --- Card Hover Effects --- */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(20, 83, 45, 0.1);
}

.card-hover-scale {
    transition: all 0.3s ease;
}

.card-hover-scale:hover {
    transform: scale(1.02);
}

/* --- Image Hover Zoom --- */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.08);
}

/* --- Gradient Overlay --- */
.gradient-overlay {
    position: relative;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(22, 101, 52, 0.4), rgba(22, 101, 52, 0.7));
    z-index: 1;
}

.gradient-overlay > * {
    position: relative;
    z-index: 2;
}

/* --- Counter Section --- */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* --- Tab System --- */
.tab-btn {
    position: relative;
    padding-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #16A34A;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #F59E0B;
    border-radius: 3px 3px 0 0;
}

/* --- Gallery Masonry --- */
.masonry-grid {
    columns: 1;
    column-gap: 1rem;
}

@media (min-width: 640px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        columns: 3;
    }
}

.masonry-grid .masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

/* --- Glightbox Custom --- */
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background: rgba(22, 101, 52, 0.7);
}

/* --- Form Styles --- */
.form-input {
    transition: all 0.3s ease;
    border: 1.5px solid #BBF7D0;
}

.form-input:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
    outline: none;
}

/* --- Pulse Animation for CTA --- */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}

.pulse-gold {
    animation: pulse-gold 2s infinite;
}

/* --- Stat Counter Animation --- */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-animate {
    animation: countUp 0.5s ease-out forwards;
}

/* --- Loading Skeleton --- */
.skeleton {
    background: linear-gradient(90deg, #BBF7D0 25%, #DCFCE7 50%, #BBF7D0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Event Carousel --- */
.event-carousel .swiper-pagination-bullet {
    background: #22C55E;
    opacity: 0.3;
}

.event-carousel .swiper-pagination-bullet-active {
    background: #F59E0B;
    opacity: 1;
}

/* --- Timeline (Events Page) --- */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #F59E0B, #BBF7D0);
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 1rem;
    }
}

/* --- Breadcrumb --- */
.breadcrumb a {
    transition: color 0.2s ease;
}

/* --- Print Styles --- */
@media print {
    nav, footer, .fixed {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}
