 :root {
        --primary-color: #A36ABF; 
        --secondary-color: #6A1B9A; 
        --accent-color: #ff4081;
        --dark-color: #4A148C; 
        --light-color: #f3e5f5;
        --text-color: #333;
        --light-text: #fff;
        --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Poppins', sans-serif;
    }

    body {
        background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
        color: var(--text-color);
        min-height: 100vh;
    }

    
    .account-nav {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); 
        padding: 1rem 2rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .account-nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
    }

    .logo a {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: var(--light-text);
    }

    .logo img {
        height: 80px;
        margin-right: 10px;
    }

    .logo-text {
        font-size: 1.5rem;
        font-weight: 700;
        font-family: 'Quicksand', sans-serif;
    }

    .nav-links {
        display: flex;
        list-style: none;
    }

    .nav-links li a {
        color: var(--light-text);
        text-decoration: none;
        margin: 0 15px;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }

    .nav-links li a:hover {
        color: #ffeb3b;
    }

    .nav-links li a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: #ffeb3b;
        transition: width 0.3s ease;
    }

    .nav-links li a:hover::after {
        width: 100%;
    }

    /* Əsas Kontent */
    .courses-container {
        max-width: 1200px;
        margin: 2rem auto;
        padding: 0 20px;
    }

    .welcome-section {
        text-align: center;
        margin-bottom: 3rem;
        animation: fadeIn 1s ease;
    }

    .welcome-title {
        font-size: 2.5rem;
        color: var(--secondary-color); 
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .welcome-subtitle {
        font-size: 1.2rem;
        color: var(--dark-color);
        max-width: 700px;
        margin: 0 auto;
    }

    
    .categories-section {
        margin-bottom: 3rem;
        animation: fadeIn 1s ease;
    }

    .categories-title {
        text-align: center;
        font-size: 1.8rem;
        color: var(--secondary-color);
        margin-bottom: 1.5rem;
    }

    .categories-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 2rem;
    }

    .category-btn {
        padding: 10px 20px;
        background: white;
        border: 2px solid var(--primary-color);
        border-radius: 30px;
        color: var(--primary-color);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .category-btn:hover, .category-btn.active {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    
    .courses-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
        margin-bottom: 3rem;
    }

    .course-card {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: var(--card-shadow);
        transition: transform 0.4s ease, box-shadow 0.4s ease;
        animation: slideUp 0.6s ease;
    }

    .course-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .course-image {
        height: 200px;
        overflow: hidden;
        position: relative;
    }

    .course-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .course-card:hover .course-image img {
        transform: scale(1.05);
    }

    .course-level {
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--accent-color);
        color: white;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .course-content {
        padding: 1.5rem;
    }

    .course-title {
        font-size: 1.4rem;
        color: var(--secondary-color);
        margin-bottom: 0.8rem;
    }

    .course-description {
        color: #666;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }

    .course-meta {
        display: flex;
        justify-content: space-between;
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
        color: #777;
    }

    .course-meta span {
        display: flex;
        align-items: center;
    }

    .course-meta i {
        margin-right: 5px;
        color: var(--primary-color);
    }

    .course-btn {
        display: block;
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        text-decoration: none;
    }

    .course-btn:hover {
        background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }


    .newsletter-section {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        padding: 3rem 2rem;
        border-radius: 15px;
        text-align: center;
        color: white;
        margin-bottom: 3rem;
        animation: fadeIn 1s ease;
    }

    .newsletter-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .newsletter-text {
        max-width: 600px;
        margin: 0 auto 1.5rem;
        font-size: 1.1rem;
    }

    .newsletter-form {
        display: flex;
        max-width: 500px;
        margin: 0 auto;
    }

    .newsletter-input {
        flex: 1;
        padding: 12px 15px;
        border: none;
        border-radius: 8px 0 0 8px;
        font-size: 1rem;
    }

    .newsletter-btn {
        padding: 0 20px;
        background: var(--accent-color);
        color: white;
        border: none;
        border-radius: 0 8px 8px 0;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .newsletter-btn:hover {
        background: #e91e63;
    }

    
    .add-course-section {
        background: white;
        padding: 2rem;
        border-radius: 15px;
        box-shadow: var(--card-shadow);
        margin-bottom: 3rem;
        display: none;
    }

    .add-course-section.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

    .add-course-title {
        font-size: 1.8rem;
        color: var(--secondary-color);
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .course-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group.full-width {
        grid-column: span 2;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: var(--secondary-color);
    }

    .form-control {
        width: 100%;
        padding: 10px 15px;
        border: 2px solid #ddd;
        border-radius: 8px;
        font-size: 1rem;
        transition: border-color 0.3s ease;
    }

    .form-control:focus {
        border-color: var(--primary-color);
        outline: none;
    }

    textarea.form-control {
        min-height: 100px;
        resize: vertical;
    }

    .form-actions {
        grid-column: span 2;
        display: flex;
        justify-content: flex-end;
        gap: 15px;
        margin-top: 1rem;
    }

    .btn {
        padding: 10px 20px;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .btn-secondary {
        background: #ddd;
        color: #333;
    }

    .btn-secondary:hover {
        background: #ccc;
    }

    .toggle-form-btn {
        display: block;
        margin: 0 auto 2rem;
        padding: 12px 25px;
        background: var(--accent-color);
        color: white;
        border: none;
        border-radius: 30px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .toggle-form-btn:hover {
        background: #e91e63;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    
    .admin-controls {
        text-align: center;
        margin-bottom: 2rem;
    }

    
    .account-footer {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        padding: 2rem 0;
        text-align: center;
        margin-top: 3rem;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .delay-1 { animation-delay: 0.2s; }
    .delay-2 { animation-delay: 0.4s; }
    .delay-3 { animation-delay: 0.6s; }


    .hamburger {
        display: none;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1100;
    }

    .hamburger .bar {
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    @media (max-width: 768px) {
        .account-nav-container {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            padding: 10px 20px;
        }

        .hamburger {
            display: flex;
            order: 1;
        }

        .logo {
            order: 0;
        }

         .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        flex-direction: column;
        align-items: center;
        padding: 0; /* Başlanğıcda padding 0 olsun */
        height: 0; /* <--- BU SƏTİRİ ƏLAVƏ EDİN VƏ YA DÜZƏLDİN */
        overflow: hidden; /* <--- BU SƏTİRİ ƏLAVƏ EDİN */
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease; /* <--- height-i əlavə edin */
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        z-index: 999;
    }

    .nav-links.active {
        display: flex; /* Bu hissəni saxlayın */
        height: auto; /* <--- BU SƏTİRİ ƏLAVƏ EDİN */
        opacity: 1;
        transform: translateY(0);
        padding: 20px 0; /* <--- Menyunu açanda padding verin */
    }

        .nav-links li {
            margin: 10px 0;
            width: 100%;
            text-align: center;
        }

        .nav-links li a {
            padding: 10px 0;
            display: block;
            width: 100%;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            margin: 0;
        }
        .nav-links li:last-child a {
            border-bottom: none;
        }

        .welcome-title {
            font-size: 2rem;
        }

        .courses-grid {
            grid-template-columns: 1fr;
        }

        .newsletter-form {
            flex-direction: column;
        }

        .newsletter-input {
            border-radius: 8px;
            margin-bottom: 10px;
        }

        .newsletter-btn {
            border-radius: 8px;
            padding: 12px;
        }

        .course-form {
            grid-template-columns: 1fr;
        }

        .form-group.full-width {
            grid-column: span 1;
        }

        .form-actions {
            grid-column: span 1;
            flex-direction: column;
        }
    }

    @media (max-width: 480px) {
        .account-nav-container {
            padding: 10px;
        }
        .logo img {
            height: 80x;
        }
        .logo-text {
            font-size: 1.3rem;
        }
        .welcome-title {
            font-size: 1.8rem;
        }
        .welcome-subtitle {
            font-size: 1rem;
        }
    }
    