/* Custom Styles & Animations */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #047857;
    /* Emerald 700 */
    --secondary: #D4AF37;
    /* Metallic Gold */
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #10B981;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Islamic Pattern Overlay - Subtle */
.pattern-overlay {
    background-color: #f9fafb;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2310b981' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Mega Menu Styles */
.mega-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    pointer-events: none;
}

.group:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mega Menu Sub-category Hover Effect */
.course-category-link {
    transition: all 0.2s;
}

.course-category-link:hover {
    background-color: var(--color-emerald-50, #ecfdf5);
    color: var(--color-emerald-700, #047857);
    padding-left: 1.25rem;
}

/* Dynamic Content Display */
.category-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.category-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Accordion */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-submenu.open {
    max-height: 1000px;
    /* Arbitrary large height for transition */
}

/* Logo Styling */
.logo-main {
    height: 95px;
    /* Standout size for desktop */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    padding: 5px 0;
}

@media (max-width: 1024px) {
    .logo-main {
        height: 80px;
        /* Slightly smaller for tablets */
    }
}

@media (max-width: 640px) {
    .logo-main {
        height: 65px;
        /* Balanced for mobile */
    }
}

/* Brand Name Text */
.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.85rem;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-left: 0.75rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .brand-name {
        font-size: 1.5rem;
    }
}

/* Swiper Hero Customization */
.hero-slider {
    width: 100%;
    height: 100%;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease;
}

@media (max-width: 1024px) {
    .hero-slider .swiper-slide img {
        opacity: 1;
    }
}

/* Hero Section Refinements */
section.relative.pt-32 {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    section.relative.pt-32 {
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .hero-slider-container {
        height: 100%;
    }
}

.hero-slider-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}