/* Modern Educational Website Styles - Test Loading */
body { font-family: 'Inter', sans-serif !important; }

/* Modern Educational Website Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    overflow-x: hidden;
}

/* Modern Button Styles */
.btn-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-primary-modern {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-modern {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Card Animations */
.card-modern {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-modern .card-image {
    position: relative;
    overflow: hidden;
}

.card-modern .card-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modern:hover .card-image img {
    transform: scale(1.1);
}

/* Course Card Styles */
.course-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.course-card .course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-card .course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-card .course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 102, 255, 0.8), rgba(255, 102, 102, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-card .course-content {
    padding: 1.5rem;
}

.course-card .course-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.course-card .course-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.course-card .price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.course-card .buy-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.course-card .buy-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-modern {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation Enhancements */
.navbar-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}

.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

/* Body padding for fixed navbar */
body {
    padding-top: 100px;
}

.nav-link-modern {
    position: relative;
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.3s ease;
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link-modern:hover::after,
.nav-link-modern.active::after {
    width: 100%;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    color: var(--primary);
}

/* Remove hero section styles that cause blue stripes */

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* App Store Button Fix */
.app-store-btn:hover {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: white !important;
}

.app-store-btn:hover .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Responsive Grid */
.grid-modern {
    display: grid;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.row > * {
    padding-left: 12px;
    padding-right: 12px;
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hover-scale:hover {
    transform: scale(1.05);
}

/* Spinner Enhancement */
.spinner-modern {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Book/E-book specific styles */
.book-card {
    width: 200px;
    margin: 0 auto;
}

.book-card .book-image {
    height: 280px;
    background: var(--gray-800);
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.book-card .book-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.book-card:hover .book-image::after {
    transform: translateX(100%);
}

/* Test Series Cards */
.test-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.test-card .test-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.test-card .test-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* About Section Enhancement */
.about-feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    color: #334155;
}

.about-feature:hover {
    background: #6366f1;
    color: white !important;
    transform: translateX(10px);
}

.about-feature i {
    margin-right: 0.75rem;
    color: #6366f1 !important;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.about-feature:hover i {
    color: white !important;
}

.about-feature span {
    color: #334155;
    font-weight: 500;
    font-size: 0.9rem;
}

.about-feature:hover span {
    color: white !important;
}

/* Fix for feature cards visibility */
.bg-primary.bg-opacity-10 {
    background-color: rgba(99, 102, 241, 0.1) !important;
}

.bg-primary.bg-opacity-10 i {
    color: #6366f1 !important;
}

.bg-success.bg-opacity-10 i {
    color: #10b981 !important;
}

.bg-info.bg-opacity-10 i {
    color: #3b82f6 !important;
}

.bg-warning.bg-opacity-10 i {
    color: #f59e0b !important;
}

.bg-danger.bg-opacity-10 i {
    color: #ef4444 !important;
}

/* Badge text visibility */
.badge.bg-primary.bg-opacity-10 {
    background-color: rgba(99, 102, 241, 0.1) !important;
    color: #6366f1 !important;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge.bg-primary.bg-opacity-10 i {
    color: #6366f1 !important;
}

/* Card text visibility */
.card h5, .card h6 {
    color: #1e293b !important;
}

.card .text-muted {
    color: #64748b !important;
}

/* Feature box icons */
.hover-scale .rounded-circle i {
    color: #6366f1 !important;
}

.bg-success.bg-opacity-10 .rounded-circle i {
    color: #10b981 !important;
}

.bg-info.bg-opacity-10 .rounded-circle i {
    color: #3b82f6 !important;
}

.bg-warning.bg-opacity-10 .rounded-circle i {
    color: #f59e0b !important;
}

/* Custom Carousel Dots */
.custom-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.custom-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.custom-dot.active {
    background: #dc3545;
    border-color: #dc3545;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.custom-dot:hover {
    background: #dc3545;
    border-color: #dc3545;
    transform: scale(1.1);
}

/* Remove white background from logos and favicons */
.navbar-brand img,
.footer-modern img,
link[rel="icon"],
link[rel="apple-touch-icon"] {
    background: transparent !important;
    mix-blend-mode: multiply;
}

/* Specific logo styling */
img[src*="sherdaclass.png"] {
    background: transparent !important;
    mix-blend-mode: multiply;
}



/* Footer Enhancement */
.footer-modern {
    background: var(--gray-900);
    color: var(--gray-300);
}

.footer-modern .footer-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-modern .footer-link:hover {
    color: var(--primary);
}

/* Modern Carousel Styles */
.hero-carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin: 0;
}

.carousel-slide {
    position: relative;
    height: 308px;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Mobile carousel height reduction */
@media (max-width: 768px) {
    .carousel-slide {
        height: 262px !important; /* 15% reduction from 308px */
    }
    
    .header-carousel .owl-item,
    .header-carousel .owl-stage-outer,
    .header-carousel {
        height: 262px !important;
    }
    
    .header-carousel .carousel-slide img {
        height: 262px !important;
        max-height: 262px !important;
    }
}

/* Owl Carousel Custom Dots */
.header-carousel .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.header-carousel .owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.header-carousel .owl-dot.active {
    background: #dc3545;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.6);
}

.header-carousel .owl-dot:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* Smooth transitions */
.header-carousel .owl-stage-outer {
    border-radius: 15px;
    overflow: hidden;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}