/* Jagatara Portal - Components CSS */

/* ===== STATS CARDS ===== */
.stat-card {
    @apply bg-white rounded-xl p-6 text-center shadow-md transition-all;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    @apply shadow-xl;
}

.stat-card .counter {
    @apply text-3xl md:text-4xl font-bold;
    background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PROGRAM CARDS ===== */
.program-card {
    @apply bg-white rounded-xl shadow-lg overflow-hidden transition-all;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.program-card:hover {
    transform: translateY(-6px);
    @apply shadow-2xl;
    border-color: transparent;
}

.program-card .program-icon {
    @apply w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.program-card .program-icon i {
    background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NEWS CARDS ===== */
.news-card {
    @apply bg-white rounded-xl shadow-md overflow-hidden transition-all;
}

.news-card:hover {
    transform: translateY(-4px);
    @apply shadow-xl;
}

.news-card .news-category {
    @apply inline-block px-3 py-1 rounded-full text-xs font-semibold;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: #059669;
}

/* ===== PROGRESS BAR ===== */
.progress-bar-container {
    @apply w-full bg-gray-200 rounded-full h-2.5 overflow-hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #059669 0%, #2563eb 100%);
    border-radius: 9999px;
    transition: width 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.3) 0%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0.3) 100%);
    animation: shimmer 2s infinite;
    transform: translateX(-100%);
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* ===== BUTTONS ===== */
.btn-primary {
    @apply inline-flex items-center px-6 py-3 rounded-full text-white font-semibold transition-all;
    background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    transform: translateY(-2px);
    @apply shadow-xl;
    background: linear-gradient(135deg, #047857 0%, #1d4ed8 100%);
}

.btn-secondary {
    @apply inline-flex items-center px-6 py-3 rounded-full font-semibold transition-all;
    border: 2px solid #059669;
    color: #059669;
}

.btn-secondary:hover {
    @apply bg-green-50;
    transform: translateY(-2px);
}

/* ===== SECTION TITLES ===== */
.section-title {
    @apply text-3xl md:text-4xl font-bold text-center mb-4;
    background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    @apply text-gray-600 text-center mb-12 max-w-2xl mx-auto;
}

/* ===== HERO SECTION ===== */
.hero-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

/* ===== FORM ELEMENTS ===== */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-green-500 focus:border-transparent transition;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-1;
}

.form-error {
    @apply text-red-600 text-sm mt-1;
}

/* ===== PAGINATION ===== */
.pagination {
    @apply flex justify-center space-x-2 mt-8;
}

.pagination-item {
    @apply px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-50 transition;
}

.pagination-item.active {
    @apply bg-green-600 text-white border-green-600;
}

/* ===== BADGES ===== */
.badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.badge-green {
    @apply bg-green-100 text-green-800;
}

.badge-blue {
    @apply bg-blue-100 text-blue-800;
}

/* ===== CARDS HOVER EFFECTS ===== */
.hover-lift {
    transition: transform 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* ===== DIVIDERS ===== */
.divider {
    @apply w-20 h-1 mx-auto my-6 rounded-full;
    background: linear-gradient(90deg, #059669 0%, #2563eb 100%);
}

/* Slider/Carousel Styles */
.slider-container {
    position: relative;
}

.slider {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.slider .snap-start {
    scroll-snap-align: start;
}

.snap-mandatory {
    scroll-snap-type: x mandatory;
}

.slider-prev,
.slider-next {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-container:hover .slider-prev,
.slider-container:hover .slider-next {
    opacity: 1;
}

/* Scrollbar hide utility */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Card hover effects */
.slider .group:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 640px) {
    .slider-prev,
    .slider-next {
        display: none;
    }
    
    .slider .flex-none {
        width: calc(100vw - 2rem) !important;
    }
}
/* ===== TYPOGRAPHY ENHANCEMENTS ===== */
.gradient-text {
    background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    @apply text-gray-600 text-center mb-12 max-w-2xl mx-auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== CARD ENHANCEMENTS ===== */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: transparent;
}

/* ===== BADGE STYLES ===== */
.badge-green {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(5, 150, 105, 0.2) 100%);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge-blue {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.2) 100%);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-orange {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(217, 119, 6, 0.2) 100%);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

/* ===== BUTTON ENHANCEMENTS ===== */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-glow:hover::after {
    opacity: 1;
}

/* ===== STATS CARD ENHANCEMENTS ===== */
.stat-card-modern {
    @apply bg-white rounded-2xl p-6 text-center;
    box-shadow: 0 10px 40px -15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.stat-card-modern .counter {
    @apply text-4xl font-bold mb-2;
    background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #059669, #2563eb, #059669);
    margin: 2rem auto;
    border-radius: 2px;
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}