:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #0ea5e9;
    --accent: #f43f5e;
    --background: #f8fafc;
    --surface: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 1.25rem;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--background);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    min-height: 100vh;
    direction: rtl;
    line-height: 1.6;
}

/* Slider Section */
.slider-container {
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    text-align: right;
}

.slide-overlay h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.slide-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* Dropdown Redesign */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu-glass {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 480px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 1rem;
    margin-top: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
}

.dropdown:hover .dropdown-menu-glass {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-glass li {
    margin-bottom: 0.25rem;
}

.dropdown-menu-glass li:last-child {
    margin-bottom: 0;
}

.dropdown-menu-glass a {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem !important;
    color: var(--text-main) !important;
    text-decoration: none;
    border-radius: 1rem;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    text-align: right;
}

.dropdown-menu-glass a:hover {
    background: rgba(79, 70, 229, 0.08) !important;
    color: var(--primary) !important;
    transform: translateX(-5px);
}

.cat-icon {
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

/* Header */
header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1600px;
    z-index: 1000;
    padding: 0.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    top: 0.5rem;
    padding: 0.3rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 1);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 0.1rem 0.5rem;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

/* Hero Section */
.hero-new {
    padding: 6rem 2rem 3rem;
    min-height: unset;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

.hero-blob {
    position: absolute;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
    filter: blur(70px);
    border-radius: 50%;
    z-index: 1;
}

.blob-1 { top: -50px; right: 5%; }
.blob-2 { bottom: -50px; left: 5%; background: rgba(244, 63, 94, 0.04); }

.hero-new-fullscreen {
    padding: 0;
    margin: 6.5rem 0 2rem;
    min-height: unset;
    position: relative;
    background: transparent;
    width: 100%;
    height: 550px;
}

.hero-slider-wrapper-full {
    width: calc(100% - 4rem);
    max-width: 1600px;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

.slider-container {
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.slide-content-modern {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 20;
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slide-content-modern h1 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: inline-block;
}

.slide-content-modern p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 750px;
}

.slide-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay-modern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    pointer-events: none;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 100px;
}

/* Modern News Section */
.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.section-header-modern .title {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    border-right: 5px solid var(--primary);
    padding-right: 1.5rem;
    margin: 0;
}

.section-header-modern .view-all-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.section-header-modern .view-all-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.news-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card-modern {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.2);
}

.news-img-wrapper {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card-modern:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.news-date-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.news-content-modern {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-title-modern {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-card-modern:hover .news-title-modern {
    color: var(--primary);
}

.news-desc-modern {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.news-read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(79, 70, 229, 0.03);
    border-radius: 1.5rem;
    border: 2px dashed rgba(79, 70, 229, 0.1);
}

.news-empty-state span {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 1rem;
    display: block;
}

.news-empty-state p {
    color: #64748b;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1300px;
    margin: 0 auto;
}

.card {
    background: var(--surface);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 70, 229, 0.15);
}

.card-img-wrapper {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #0f172a;
    line-height: 1.3;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.price-tag {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

/* Horizontal Scroller */
.horizontal-scroller {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    padding: 2rem 1rem 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
    margin: 0 -1rem;
}

.horizontal-scroller::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.horizontal-scroller .card {
    min-width: 350px;
    max-width: 350px;
}


/* Glassy Bootstrap Modal */
.modal-backdrop {
    background-color: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.modal-content {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2) !important;
}

/* Redesigned Location Button */
.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
    border-radius: 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.location-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.horizontal-scroller::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.horizontal-scroller .card {
    min-width: 350px;
    max-width: 350px;
}

@media (max-width: 768px) {
    .horizontal-scroller .card {
        min-width: 300px;
        max-width: 300px;
    }
}

/* Buttons */
.btn {
    padding: 0.85rem 1.75rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.btn-glass:hover {
    background: white;
    border-color: var(--primary);
}

/* Footer */
footer {
    padding: 6rem 2rem;
    text-align: center;
    margin-top: 5rem;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Mobile Friendly */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-text {
        text-align: center;
        padding: 2.5rem 1.5rem;
    }
    .hero-visual {
        padding: 0;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btns {
        justify-content: center;
    }
}

/* Mobile Navigation base styles (hidden on desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-dropdown-header {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
    display: none;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 1rem;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-menu a {
    border-bottom: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-search {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

.course-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.course-title-main {
    font-size: 4rem;
}

.news-detail-container {
    max-width: 900px;
    margin: 120px auto 40px;
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    html {
        font-size: 14px; /* Scales down all rem-based fonts and spacings */
    }
    .hero-new {
        padding-top: 8rem;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .slider-container {
        height: 300px;
    }
    .desktop-nav {
        display: none !important;
    }
    .desktop-admin-btn, .desktop-search {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    header {
        width: 100%;
        border-radius: 0 0 1.5rem 1.5rem;
        top: 0;
    }
    .grid, .news-grid-modern, .course-detail-grid, .course-price-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }
    .course-title-main {
        font-size: 2.5rem;
    }
    .news-detail-container {
        margin: 100px 15px 40px;
        padding: 1.5rem;
    }
    .category-grid-modern {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem !important;
    }
    .cat-card-modern {
        padding: 1rem 0.5rem !important;
    }
    .cat-card-icon-modern {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.8rem !important;
    }
    .cat-card-icon-modern img {
        width: 35px !important;
        height: 35px !important;
    }
    .cat-card-name-modern {
        font-size: 0.75rem !important;
    }
    #footer > div {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem;
    }
    #footer div:first-child > div:first-child {
        justify-content: center;
    }
    #footer h4 {
        border-right: none !important;
        border-bottom: 4px solid var(--primary);
        padding-right: 0 !important;
        padding-bottom: 0.5rem;
        display: inline-block;
    }
    .center-hero-container {
        grid-template-columns: 1fr;
    }
    .center-image-box {
        height: 250px;
    }
}


/* Admin Button */
.btn-admin {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-admin:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background: rgba(241, 245, 249, 0.8);
    padding: 0 0.5rem 0 1.25rem;
    height: 44px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%;
    max-width: 280px;
    transition: all 0.4s ease;
    margin: 0;
}

.search-bar:hover, .search-bar:focus-within {
    background: white;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
    max-width: 320px;
}

.search-bar input {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    width: 100%;
    color: var(--text-main);
    outline: none;
}

.search-bar input::placeholder {
    color: #94a3b8;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.search-bar button:hover {
    transform: scale(1.1);
    opacity: 1;
}


/* Logo Styles */
.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    border-radius: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.3rem 0.6rem;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(-5deg);
}

/* Logo & Search Group */
.logo-search-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

/* Category Filter Bar Redesign */
.category-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    padding: 0.5rem;
    justify-content: center;
}

.cat-pill {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.cat-pill:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.15);
    border-color: var(--primary);
}

.category-grid-modern {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cat-card-modern {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.cat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.2);
    border-color: var(--primary);
}

.cat-card-modern::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 1.1rem;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.cat-card-modern::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    border: 1.5px dashed rgba(14, 165, 233, 0.4);
    border-radius: 0.8rem;
    opacity: 0.5;
    transform: scale(1.1);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.cat-card-modern:hover::before {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(79, 70, 229, 0.8);
}

.cat-card-modern:hover::after {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(14, 165, 233, 0.8);
    animation: pulseBorder 2s infinite alternate;
}

@keyframes pulseBorder {
    from { opacity: 0.6; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1.02); }
}

.cat-card-icon-modern {
    font-size: 3rem;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.cat-card-modern:hover .cat-card-icon-modern {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.cat-card-name-modern {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    position: relative;
    z-index: 2;
}

.cat-pill-icon {
}

/* Final Category UI Refinement */
.cat-pill-icon {
    font-size: 1.3rem !important;
    width: 38px !important;
    height: 38px !important;
    background: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.cat-pill:hover .cat-pill-icon {
    background: var(--primary) !important;
    color: white !important;
    transform: rotate(15deg) !important;
}

/* Night Theme for Categories */
.cat-pill {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.cat-pill-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    box-shadow: none !important;
}

.cat-pill:hover {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4) !important;
    border-color: var(--primary) !important;
}

/* Smaller Categories */
.cat-pill {
    padding: 0.45rem 1rem !important;
    font-size: 0.85rem !important;
    gap: 0.6rem !important;
}

.cat-pill-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 1rem !important;
}

/* Ultra Small Categories */
.cat-pill {
    padding: 0.3rem 0.8rem !important;
    font-size: 0.75rem !important;
    gap: 0.4rem !important;
}

.cat-pill-icon {
    width: auto !important;
    height: auto !important;
    background: none !important;
    box-shadow: none !important;
    font-size: 0.9rem !important;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 4rem 0;
}

.pagination-glass {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.page-link:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    transform: translateY(-2px);
}

.page-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* Modern Pagination Redesign */
.modern-pagination {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-num-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.page-num-link:hover {
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
}

.page-num-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.page-nav-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: var(--text-main);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.page-nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Center Detail Redesign */
.center-hero {
    background: #f8fafc;
    padding-bottom: 2rem;
}

.center-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
}

.center-image-box {
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.center-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center-info-glass {
    background: white;
    padding: 2.5rem;
    border-radius: 2.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
}

.center-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    border-radius: 2rem;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.center-name-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1rem;
}

.center-meta-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--text-muted);
}

.center-desc-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #475569;
    margin-bottom: 2.5rem;
}

.center-address-box {
    padding: 1.5rem;
    background: #f1f5f9;
    border-radius: 1.5rem;
    border-right: 4px solid var(--primary);
}

.center-address-box small {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.center-content-section {
    padding: 3rem 0;
    background: white;
}

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header-modern {
    margin-bottom: 2rem;
}

.section-header-modern h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1rem;
}

.header-line {
    width: 80px;
    height: 5px;
    background: var(--primary);
    border-radius: 10px;
}

.center-categories-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.center-cat-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 2rem;
    font-weight: 700;
    color: #334155;
}

.course-cat-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.btn-view-course {
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    color: white !important;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-view-course:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

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

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Smooth Transitions for everything */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 3px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Section Spacing */
section {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Button Glow */
.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
/* Mobile Styles (Moved to bottom) */
@media (max-width: 768px) {
    .horizontal-scroller .card {
        min-width: 300px;
        max-width: 300px;
    }
}

/* Extra small Mobile Styles (Moved to bottom) */
@media (max-width: 480px) {
    .slide-overlay-modern {
        height: 70%;
    }
    .slide-content-modern h1 {
        font-size: 1.3rem;
    }
    .slide-content-modern p {
        font-size: 0.8rem;
    }
    .section-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
