﻿/* Modern VidaMehr Website Styles */

/* CSS Variables for consistent theming */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(45deg, #ff6b6b, #ee5a24);
    --accent-color: #ffd700;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: rgba(255,255,255,0.9);
    --bg-overlay: rgba(0,0,0,0.1);
    --shadow-light: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-medium: 0 6px 25px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --border-radius-lg: 15px;
    --border-radius-xl: 25px;
    --transition: all 0.3s ease;
}

/* Modern Header Styles */
.modern-header {
    background: var(--primary-gradient);
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Top Bar */
.top-bar {
    background: var(--bg-overlay);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-info {
    color: var(--text-light);
    font-size: 14px;
}

.date-info i {
    margin-left: 8px;
    color: var(--accent-color);
}

.top-actions {
    text-align: left;
}

.top-actions .btn {
    margin-left: 8px;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    transition: var(--transition);
}

.top-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Main Header */
.main-header {
    padding: 20px 0;
    background: transparent;
}

.logo-section {
    text-align: right;
}

.logo-img {
    max-height: 60px;
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Search Section */
.search-section {
    padding: 0 20px;
}

#course-search-form.modern-search-form,
#product-search-form.modern-search-form,
#blog-search-form.modern-search-form {
    position: relative;
    padding: 5px;
}

#course-search-form .search-input-group,
#product-search-form .search-input-group,
#blog-search-form .search-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    background: rgba(255,255,255,0.95);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

#course-search-form .search-input-group:focus-within,
#product-search-form .search-input-group:focus-within,
#blog-search-form .search-input-group:focus-within {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

#course-search-form .search-input,
#product-search-form .search-input,
#blog-search-form .search-input {
    flex: 1;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    background: transparent;
    outline: none;
    color: var(--text-primary);
}

#course-search-form .search-input::placeholder,
#product-search-form .search-input::placeholder,
#blog-search-form .search-input::placeholder {
    color: var(--text-secondary);
}

#course-search-form .search-btn,
#product-search-form .search-btn,
#blog-search-form .search-btn {
    background: var(--secondary-gradient);
    border: none;
    padding: 0 22px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    font-weight: 600;
}

#course-search-form .search-btn:hover,
#product-search-form .search-btn:hover,
#blog-search-form .search-btn:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    transform: scale(1.05);
}

/* Select inside modern search */
#course-search-form .search-select,
#product-search-form .search-select,
#blog-search-form .search-select {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    padding: 0 16px;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#course-search-form .search-select option,
#product-search-form .search-select option,
#blog-search-form .search-select option { color: var(--text-primary); }

/* Subtle dividers between controls */
#course-search-form .search-input-group > .search-select,
#course-search-form .search-input-group > .search-btn,
#product-search-form .search-input-group > .search-select,
#product-search-form .search-input-group > .search-btn,
#blog-search-form .search-input-group > .search-select,
#blog-search-form .search-input-group > .search-btn {
    position: relative;
}

#course-search-form .search-input-group > .search-select:before,
#course-search-form .search-input-group > .search-btn:before,
#product-search-form .search-input-group > .search-select:before,
#product-search-form .search-input-group > .search-btn:before,
#blog-search-form .search-input-group > .search-select:before,
#blog-search-form .search-input-group > .search-btn:before {
    content: "";
    position: absolute;
    top: 25%;
    bottom: 25%;
    right: 0;
    width: 1px;
    background: rgba(0,0,0,0.08);
}

#course-search-form .search-input-group > .search-btn:before,
#product-search-form .search-input-group > .search-btn:before,
#blog-search-form .search-input-group > .search-btn:before { display: none; }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.action-btn {
    position: relative;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    z-index: 10;
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn i {
    font-size: 18px;
    pointer-events: none;
}

.action-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Navigation */
.main-navigation {
    background: var(--bg-overlay);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-wrapper {
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.nav-link i {
    margin-left: 8px;
    font-size: 16px;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-color), #ffed4e);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Mobile Search Section */
#mobile-search-section {
    animation: slideDown 0.3s ease;
}

#mobile-search-section .search-section {
    padding: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Card Styles */
.modern-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.modern-card-header {
    padding: 20px;
    background: var(--primary-gradient);
    color: white;
}

.modern-card-body {
    padding: 20px;
}

.modern-card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Modern Button Styles */
.btn-modern {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius-xl);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-modern-secondary {
    background: var(--secondary-gradient);
}

.btn-modern-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-modern-outline:hover {
    background: #667eea;
    color: white;
}

.btn-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-modern:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Modern Form Styles */
.modern-form-group {
    margin-bottom: 20px;
}

.modern-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.modern-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.modern-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modern-form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.modern-form-input.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.modern-form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Modern Section Styles */
.modern-section {
    padding: 60px 0;
}

.modern-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.modern-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.modern-section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Grid System */
.modern-grid {
    display: grid;
    gap: 30px;
}

.modern-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.modern-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.modern-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Modern Badge Styles */
.modern-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-badge-primary {
    background: var(--primary-gradient);
    color: white;
}

.modern-badge-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.modern-badge-warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: white;
}

.modern-badge-danger {
    background: linear-gradient(45deg, #dc3545, #e83e8c);
    color: white;
}

/* Modern Alert Styles */
.modern-alert {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.modern-alert.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.modern-alert-success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.modern-alert-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.modern-alert-danger {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.modern-alert-info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* Mobile Tab Bar */
.mobile-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1050;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding-bottom: env(safe-area-inset-bottom);
}

.tab-menu {
    background: var(--primary-gradient) !important;
    color: white !important;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: var(--shadow-light);
}

.tab-menu:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.tab-menu .tab-icon i {
    color: white !important;
}

.tab-menu .tab-label {
    color: white !important;
}

.tab-menu.active {
    background: var(--secondary-gradient) !important;
    transform: scale(1.05);
}

.tab-menu.active .tab-icon i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mobile-tab-bar .tab-item {
    flex: 1;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 11px;
    padding: 8px 4px 4px 4px;
    transition: var(--transition);
    border-radius: 8px 8px 0 0;
    position: relative;
}

.mobile-tab-bar .tab-item:hover,
.mobile-tab-bar .tab-item:active {
    color: #667eea;
    background-color: #f8f9fa;
}

.mobile-tab-bar .tab-item.active {
    color: #667eea;
    background-color: #e3f2fd;
}

.mobile-tab-bar .tab-icon {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
    line-height: 1;
}

.mobile-tab-bar .tab-label {
    display: block;
    font-weight: 500;
    line-height: 1.2;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Blinking animation for notifications */
.blinking {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Loading Spinner */
.modern-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Improved Focus States */
.action-btn:focus,
.btn-modern:focus,
.modern-form-input:focus,
.search-input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .main-header {
        padding: 15px 0;
    }

    .main-header .row {
        flex-direction: column;
        text-align: center;
    }

    .main-header .col-lg-3,
    .main-header .col-md-4 {
        order: 1;
        margin-bottom: 15px;
    }

    .main-header .col-lg-6,
    .main-header .col-md-5 {
        order: 3;
        display: none; /* Hide desktop search */
    }

    .main-header .col-lg-3:last-child,
    .main-header .col-md-3:last-child {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    .logo-img {
        max-height: 50px;
        margin: 0 auto;
    }

    .header-actions {
        gap: 15px;
        justify-content: center;
    }

    .action-btn {
        width: 50px;
        height: 50px;
        min-height: 50px;
        min-width: 50px;
        background: rgba(255,255,255,0.3);
        border: 2px solid rgba(255,255,255,0.1);
        font-size: 20px;
        cursor: pointer;
        pointer-events: auto;
        z-index: 1001;
        position: relative;
    }

    .action-btn:hover,
    .action-btn:focus,
    .action-btn:active {
        background: rgba(255,255,255,0.4);
        transform: scale(0.95);
        box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
    }

    .action-btn i {
        font-size: 20px;
    }

    /* Mobile Navigation - Bottom Menu */
    .main-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.95);
        -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
        z-index: 1000;
        transform: translateY(100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        padding: 20px 0;
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }

    .main-navigation.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-wrapper {
        max-width: 100%;
    }

    .nav-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 20px;
        margin: 0;
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 10px;
        border-radius: var(--border-radius);
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.1);
        transition: var(--transition);
        text-align: center;
        min-height: 80px;
        justify-content: center;
    }

    .nav-link:hover {
        background: rgba(255,255,255,0.2);
        transform: translateY(-2px);
    }

    .nav-link i {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .nav-link span {
        font-size: 12px;
        font-weight: 500;
    }

    .modern-section {
        padding: 40px 0;
        margin-bottom: 100px; /* Space for bottom menu */
    }

    .modern-section-title {
        font-size: 2rem;
    }

    .modern-grid {
        gap: 20px;
    }

    .modern-card {
        margin-bottom: 20px;
    }

    /* Mobile Search Section */
    #mobile-search-section {
        order: 4;
        margin-top: 15px;
        padding: 0 20px;
    }

    #mobile-search-section .search-input-group {
        margin-bottom: 15px;
    }

    #mobile-search-section .search-input {
        font-size: 14px;
        padding: 8px 11px;
        border-radius: var(--border-radius-xl);
    }

    #mobile-search-section .search-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }

    .btn-modern {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Hide mobile tab bar on desktop */
@media (min-width: 768px) {
    .mobile-tab-bar {
        display: none !important;
    }
}

/* Add padding to body for mobile tab bar */
@media (max-width: 767px) {
    body {
        padding-bottom: 80px;
    }

    .floatingbutton {
        bottom: 77px;
    }

    /* Prevent scrolling when mobile menu is open */
    body.menu-open {
        overflow: hidden;
        padding-bottom: 0;
    }

    /* Mobile Tab Bar - Keep visible when menu is open */
    .mobile-tab-bar.menu-open {
        position: fixed;
        bottom: 0;
        z-index: 1001;
    }
}

/* iOS specific improvements */
@supports (-webkit-touch-callout: none) {
    .mobile-tab-bar {
        padding-bottom: 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #e9ecef;
        --text-secondary: #adb5bd;
        --bg-overlay: rgba(255,255,255,0.1);
    }

    .modern-card {
        background: #343a40;
        color: var(--text-primary);
    }

    .modern-form-input {
        background: #495057;
        border-color: #6c757d;
        color: var(--text-primary);
    }

    .modern-form-input:focus {
        border-color: #667eea;
    }
}

/* Print styles */
@media print {
    .modern-header,
    .mobile-tab-bar,
    .floatingbutton {
        display: none !important;
    }

    .modern-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .modern-header {
        background: #000;
    }

    .nav-link {
        color: #fff;
    }

    .modern-card {
        border: 2px solid #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .ripple {
        display: none;
    }
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer-main {
    padding: 34px 0 8px;
    position: relative;
}

.footer-main .footer-widget {
    margin-bottom: 30px;
}

.footer-main .footer-logo {
    margin-bottom: 20px;
}

.footer-main .footer-logo .logo-img {
    max-height: 60px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-main .company-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.footer-main .footer-description {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-main .trust-badges {
    margin-top: 20px;
}

.footer-main .trust-badge {
    display: inline-block;
    transition: var(--transition);
}

.footer-main .trust-badge:hover {
    transform: translateY(-2px);
}

.footer-main .trust-badge img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.footer-main .widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-main .widget-title i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.footer-main .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-main .footer-links li {
    margin-bottom: 0;
}

.footer-main .footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    padding: 8px 0;
    border-radius: var(--border-radius);
}

.footer-main .footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    background: rgba(255,255,255,0.05);
    padding-right: 10px;
}

.footer-main .footer-links i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.footer-main .contact-info {
    margin-bottom: 30px;
}

.footer-main .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
}

.footer-main .contact-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.footer-main .contact-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-main .contact-item a:hover {
    color: var(--accent-color);
}

.footer-main .social-media h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
}

.footer-main .social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-main .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.footer-main .social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(255,255,255,0.2);
}

.footer-main .social-link.whatsapp:hover {
    background: #25d366;
    color: white;
}

.footer-main .social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.footer-main .social-link.telegram:hover {
    background: #0088cc;
    color: white;
}

.footer-main .social-link.youtube:hover {
    background: #ff0000;
    color: white;
}

.footer-main .social-link.facebook:hover {
    background: #1877f2;
    color: white;
}

.footer-main .social-link.aparat:hover {
    background: #ff6b35;
    color: white;
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 5px 0;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-widget {
        margin-bottom: 25px;
    }
    
    .widget-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .copyright {
        text-align: center;
        margin-bottom: 10px;
    }
}

/* ===========================================
   HOMEPAGE STYLES
   =========================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-gradient), var(--secondary-gradient));
    padding: 22px 0; 
       position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #483434;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-slider {
    position: relative;
    z-index: 2;
}

/* Course Categories (scoped) */
#course-categories {
    background: #ffffff;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

#course-categories .category-header {
    background: linear-gradient(90deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
    border-radius: var(--border-radius);
}

#course-categories .category-title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-primary);
}

#course-categories .category-title i {
    font-size: .7rem;
    color: var(--primary-color);
}

#course-categories .category-list li a {
    padding: 6px 10px;
    transition: var(--transition);
}

#course-categories .category-list li a:hover {
    background: rgba(102,126,234,0.06);
    transform: translateX(-4px);
}

#course-categories .category-name {
    font-weight: 600;
}

#course-categories .category-arrow {
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

#course-categories .category-list li a:hover .category-arrow {
    transform: translateX(-4px);
}

/* Product & Blog Categories mirror Course styles */
#product-categories,
#blog-categories {
    background: #ffffff;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

#product-categories .category-header,
#blog-categories .category-header {
    background: linear-gradient(90deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
    border-radius: var(--border-radius);
}

#product-categories .category-title,
#blog-categories .category-title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-primary);
}

#product-categories .category-title i,
#blog-categories .category-title i {
    font-size: .7rem;
    color: var(--primary-color);
}

#product-categories .category-list li a,
#blog-categories .category-list li a {
    padding: 6px 10px;
    transition: var(--transition);
}

#product-categories .category-list li a:hover,
#blog-categories .category-list li a:hover {
    background: rgba(102,126,234,0.06);
    transform: translateX(-4px);
}

#product-categories .category-name,
#blog-categories .category-name {
    font-weight: 600;
}

#product-categories .category-arrow,
#blog-categories .category-arrow {
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

#product-categories .category-list li a:hover .category-arrow,
#blog-categories .category-list li a:hover .category-arrow {
    transform: translateX(-4px);
}

/* Mobile refinements for search + categories */
@media (max-width: 576px) {
    /* Search form: stack neatly */
    #course-search-form .search-input-group,
    #product-search-form .search-input-group {
        flex-direction: column;
        border-radius: 16px;
        box-shadow: var(--shadow-light);
    }
    #course-search-form .search-input-group > .search-select:before,
    #course-search-form .search-input-group > .search-btn:before,
    #product-search-form .search-input-group > .search-select:before,
    #product-search-form .search-input-group > .search-btn:before {
        display: none;
    }
    #course-search-form .search-input,
    #product-search-form .search-input {
        padding: 12px 14px;
        font-size: 14px;
        width: 100%;
    }
    #course-search-form .search-select,
    #product-search-form .search-select {
        padding: 10px 14px;
        font-size: 14px;
        width: 100%;
        border-top: 1px solid rgba(0,0,0,0.06);
    }
    #course-search-form .search-btn,
    #product-search-form .search-btn {
        width: 100%;
        min-height: 44px;
        padding: 12px 14px;
        border-radius: 0 0 16px 16px;
    }

    /* Category card: tighter spacing */
    #course-categories {
        border-radius: var(--border-radius);
    }
    #course-categories .category-header {
        padding: 8px 12px !important;
        border-radius: 12px;
    }
    #course-categories .category-title {
        font-size: 0.95rem;
    }
    #course-categories .category-title i {
        font-size: 0.9rem;
    }
    #course-categories .category-list li a {
        padding: 10px 12px;
    }
    #course-categories .category-arrow {
        font-size: 0.9rem;
    }
}

/* Banner Section */
.banner-section {
    padding: 15px 0;
    background: var(--light-bg);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover .feature-icon::before {
    transform: translateX(100%);
}

.feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Stats Section */
.stats-section {
    padding: 22px 0;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.stats-container {
    position: relative;
    z-index: 2;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    display: block;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    color: white;
    text-decoration: none;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content {
    color: white;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-label {
    /*font-size: 1rem;*/
    margin-bottom: 0;
    opacity: 0.9;
    color: white;
}

/* Social & Contact Section */
.social-contact-section {
    padding: 15px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    position: relative;
    overflow: hidden;
}

/* ===========================================
   BANNERS (scoped)
   =========================================== */
.modern-banners {
    width: 100%;
}

.modern-banners .banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.modern-banners .banner-card-wrapper {
    width: 100%;
}

.modern-banners .banner-card {
    position: relative;
    display: block;
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modern-banners .banner-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.12) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.modern-banners .banner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.modern-banners .banner-card:hover::after {
    opacity: 1;
}

.modern-banners .banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 576px) {
    .modern-banners .banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .modern-banners .banner-card {
        border-radius: var(--border-radius);
    }
}

.social-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="social-dots" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1.5" fill="%23667eea" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23social-dots)"/></svg>');
    pointer-events: none;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Social Section */
.social-section-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.social-section-wrapper * {
    box-sizing: border-box;
}

.social-section-wrapper .social-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-section-wrapper .social-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-gradient);
}

.social-section-wrapper .social-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    width: 100%;
}

.social-section-wrapper .social-cards-grid > * {
    display: block;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-section-wrapper .social-card {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 0;
    min-height: 120px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-section-wrapper .social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.social-section-wrapper .social-card:hover::before {
    transform: scaleX(1);
}

.social-section-wrapper .social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.social-section-wrapper .social-link {
    display: flex;
    flex-direction: column;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    min-height: 120px;
}

.social-section-wrapper .social-link:hover {
    text-decoration: none;
    color: inherit;
}

.social-section-wrapper .social-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    width: 100%;
}

.social-section-wrapper .social-icon {
    width: 50px;
    height: 50px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    transition: all 0.3s ease;
}

.social-section-wrapper .social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-section-wrapper .social-badge {
    width: 32px;
    height: 32px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-section-wrapper .social-card:hover .social-badge {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
}

.social-section-wrapper .instagram-card .social-icon {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(240, 148, 51, 0.3);
}

.social-section-wrapper .telegram-card .social-icon {
    background: linear-gradient(135deg, #0088cc 0%, #00a8ff 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
}

.social-section-wrapper .whatsapp-card .social-icon {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.social-section-wrapper .social-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.social-section-wrapper .social-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.social-section-wrapper .social-content p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.social-section-wrapper .social-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    display: block;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Contact Section */
.contact-section-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form-section {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

.contact-form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive Design for Homepage */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    /* Social & Contact Section Mobile */
    .social-contact-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .social-section-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .social-card {
        margin-bottom: 1rem;
        display: block;
        width: 100%;
    }
    
    .social-link {
        padding: 1.5rem;
    }
    
    .social-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .social-content h4 {
        font-size: 1.1rem;
    }
    
    .social-content p {
        font-size: 0.9rem;
    }
    
    .social-description {
        font-size: 0.8rem;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .contact-title {
        font-size: 1.25rem;
    }
    
    .contact-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .social-contact-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .social-link {
        padding: 1.25rem;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .contact-form-section {
        padding: 1.25rem;
    }
}