/* Banner Slider Styles */
.banner-slider {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 1s ease;
    width: 100%;
    height: 100%;
    cursor: grab;
    user-select: none;
}

.slider-container:active {
    cursor: grabbing;
}

.slide {
    flex: 1 0 100%;
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Slider Dots */
.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    opacity: 1 !important;
    background-color: #fff !important;
    transform: scale(1.3);
}

.slider-dot:hover {
    opacity: 1 !important;
}

/* Slider Arrows */
.slider-arrow {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

/* Course Modal Styles */
#courseModal {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#courseModal > div {
    animation: slideUp 0.3s ease-in-out;
}

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

/* Smooth scroll for modal content */
#courseModal .overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: #d83929 #f1f1f1;
}

#courseModal .overflow-y-auto::-webkit-scrollbar {
    width: 8px;
}

#courseModal .overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#courseModal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #d83929;
    border-radius: 10px;
}

#courseModal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #cc372a;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    z-index: 20;
}

.slider-arrow:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(1.05);
}

.slider-prev {
    left: 1rem;
}

.slider-next {
    right: 1rem;
}

/* Mobile responsive for arrows */
@media (max-width: 768px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
        opacity: 0.5;
    }
    
    .slider-arrow i {
        font-size: 1rem;
    }
    
    .slider-prev {
        left: 0.5rem;
    }
    
    .slider-next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .slider-arrow {
        width: 36px;
        height: 36px;
    }
    
    .slider-arrow i {
        font-size: 0.875rem;
    }
}

/* Mobile responsive for slider */
@media (max-width: 768px) {
    .banner-slider {
        height: 500px;
    }
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    nav .flex-shrink-0 a span {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

@media (max-width: 640px) {
    nav .flex.items-center {
        gap: 0.5rem;
    }
    
    nav img {
        width: 60px !important;
    }
    
    #languageBtn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    #loginBtn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    #loginBtn i {
        display: none;
    }
}

/* Hero Section Responsive */
@media (max-width: 768px) {
    section.relative {
        padding: 2rem 0 !important;
    }
    
    section h1 {
        font-size: 1.75rem !important;
    }
    
    section h2 {
        font-size: 1.25rem !important;
    }
    
    section p {
        font-size: 0.875rem !important;
    }
    
    section .w-full {
        width: 100% !important;
        padding-left: 0 !important;
        text-align: center !important;
    }
    
    #submitDocsBtn {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* Admission Info Cards */
@media (max-width: 1024px) {
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    section.py-16 {
        padding: 2rem 0 !important;
    }
    
    section h3 {
        font-size: 1.5rem !important;
    }
    
    section h4 {
        font-size: 1.125rem !important;
    }
    
    section .text-lg {
        font-size: 0.875rem !important;
    }
    
    .bg-gradient-to-br {
        padding: 1rem !important;
    }
}

/* Footer Responsive - Mobile only changes */
@media (max-width: 768px) {
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    footer .md\:col-span-8,
    footer .md\:col-span-2 {
        grid-column: span 1 !important;
    }
    
    /* Footer logos horizontal on mobile */
    footer #footer-logos {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    
    footer #footer-logos img {
        height: 48px;
    }
    
    /* Text below logos on mobile */
    footer .flex.flex-col {
        align-items: center !important;
    }
    
    footer span.text-sm {
        font-size: 0.75rem !important;
        text-align: center !important;
    }
}

@media (max-width: 640px) {
    footer {
        padding: 2rem 0 !important;
    }
    
    footer h4 {
        font-size: 1rem !important;
    }
    
    footer p, footer a {
        font-size: 0.75rem !important;
    }
}

/* Navbar Mobile Responsive - Only for mobile */
@media (max-width: 768px) {
    /* Navbar height smaller on mobile */
    nav .flex.justify-between {
        height: 64px !important;
    }
    
    /* Logos smaller on mobile */
    nav .flex-shrink-0 img {
        height: 32px !important;
    }
    
    /* Hide "Vebster" text on mobile */
    nav .flex-shrink-0 span {
        display: none !important;
    }
    
    /* Language button smaller */
    nav #languageBtn {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Apply button - only icon on very small screens */
    nav #loginBtn {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    /* nav #loginBtn span {
        display: none !important;
    } */
}

/* General Mobile Fixes */
@media (max-width: 640px) {
    .max-w-7xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .space-x-4 {
        gap: 0.5rem !important;
    }
}

/* IT Courses Card Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

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

/* Course Card Styles */
.course-card {
    animation: slideInUp 0.6s ease-out;
    transition: all 0.3s ease;
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
.course-card:nth-child(4) { animation-delay: 0.4s; }
.course-card:nth-child(5) { animation-delay: 0.5s; }
.course-card:nth-child(6) { animation-delay: 0.6s; }

.course-card:hover {
    transform: translateY(-10px);
}

.course-card-icon {
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.course-card:hover .course-card-icon {
    animation: pulse 1s ease-in-out infinite;
}

.course-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.skill-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin: 2px;
    transition: transform 0.2s ease;
}

.skill-badge:hover {
    transform: scale(1.1);
}

/* Gradient backgrounds for course cards */
.gradient-network {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-frontend {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-backend {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-computer {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.gradient-mobile {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.gradient-robotics {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Icon container with glass effect */
.icon-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Stats counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 1s ease-out;
}

/* Responsive animations */
@media (max-width: 768px) {
    .course-card-icon {
        animation: none;
    }
    
    .course-card:hover .course-card-icon {
        animation: none;
    }
}

/* PDF Preview Styles */
.pdf-preview-container-small {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.pdf-preview-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.pdf-preview-link:hover {
    transform: translateY(-3px);
}

.pdf-thumbnail-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #374151;
    transition: all 0.3s ease;
}

.pdf-thumbnail-wrapper:hover {
    box-shadow: 0 10px 30px rgba(216, 57, 41, 0.4);
}

.pdf-canvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.pdf-preview-link:hover .pdf-overlay {
    opacity: 1;
}

.pdf-download-icon-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(216, 57, 41, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.pdf-preview-link:hover .pdf-download-icon-small {
    transform: scale(1.1);
}

/* Responsive PDF Preview */
@media (max-width: 1024px) {
    .pdf-preview-container-small {
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    .pdf-preview-container-small {
        max-width: 200px;
    }
    
    .pdf-download-icon-small {
        width: 40px;
        height: 40px;
    }
    
    .pdf-overlay p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .pdf-preview-container-small {
        max-width: 180px;
    }
    
    .pdf-download-icon-small {
        width: 35px;
        height: 35px;
    }
    
    .pdf-download-icon-small i {
        font-size: 1.25rem;
    }
    
    .pdf-overlay p {
        font-size: 0.7rem;
    }
}