/* --- تنظیمات کلی --- */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background-color: #dde5ed;
}

/* FontAwesome Icon Fix */
.fas, .far, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
    font-weight: 900;
    font-style: normal;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure icons are visible */
i.fas, i.far, i.fab {
    opacity: 1;
    visibility: visible;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- هدر --- */
.site-header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #ffffff;
}

/* بخش ۱: نوار بالایی (زرد) */
.top-bar {
    background-color: #ffde59;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 40px;
    font-size: 14px;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-left: 5px;
}

.search-container form {
    display: flex;
    align-items: center;
}

.search-container input {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 5px 0 0 5px;
    border-left: none;
}
.search-container input::placeholder {
    color: #555;
}

.search-container button {
    border: 1px solid #ccc;
    background-color: #eee;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 0 5px 5px 0;
    border-right: none;
}

/* بخش ۲: هدر اصلی (سفید) */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    margin-bottom: 0;
    flex-direction: row-reverse; /* Reverse the order */
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between logo and cart icon */
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.cart-icon-next-logo {
    position: relative;
    font-size: 24px;
    color: #555;
    text-decoration: none;
}

.cart-icon-next-logo:hover {
    color: #333;
}

.cart-icon-next-logo .cart-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: none;
    justify-content: center;
    align-items: center;
    min-width: 18px;
    z-index: 10;
}

.cart-icon-next-logo .cart-badge.show {
    display: flex !important;
}

.main-nav {
    flex-grow: 1;
    text-align: right; /* Align navigation to the right */
    margin-left: 0;
    margin-right: 1cm; /* 1cm distance from logo */
}

.main-nav ul {
    display: inline-flex;
    margin-right: 0;
}

.main-nav ul li a {
    padding: 10px 20px;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #8a2be2;
}

.user-actions {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    background-color: #2c3e50;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    white-space: nowrap;
}

/* --- بخش دوره‌ها --- */
.course-section {
    padding: 50px 0;
    margin-top: 30px;
}

.course-section:first-of-type {
    margin-top: 40px;
}

.section-title {
    text-align: right;
    margin-bottom: 40px;
}

.section-title h2 {
    margin: 0;
    font-size: 28px;
}

.course-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.course-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    padding: 20px;
    width: 280px;
    text-align: right;
    transition: transform 0.3s, box-shadow 0.3s;
}
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.card-title-group h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}
.card-title-group span {
    color: #888;
    font-size: 14px;
}

.card-header img {
    width: 60px;
    height: 60px;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
}

.course-number-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.c1 { background-color: #6f42c1; }
.c2 { background-color: #0d6efd; }
.c3 { background-color: #8e44ad; }
.c4 { background-color: #1abc9c; }


/* --- صفحات داخلی (درباره ما، ویدئوها و ...) --- */
.page-container {
    padding: 50px 15px;
}
.page-container .page-header {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    text-align: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.bio-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.bio-card h1 {
    font-size: 36px;
    margin-top: 0;
    text-align: center;
}

.bio-card .subtitle {
    text-align: center;
    font-size: 18px;
    color: #888;
    margin-top: -15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.bio-card h2 {
    font-size: 24px;
    border-bottom: 2px solid #ffde59;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.bio-card p {
    line-height: 1.9;
    color: #333;
    font-size: 16px;
    text-align: justify;
}

.bio-image {
    float: left;
    margin: 10px 0 15px 30px;
    width: 220px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.achievements-list {
    list-style: none;
    padding-right: 0;
}

.achievements-list li {
    padding-right: 25px;
    position: relative;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
}

.achievements-list li::before {
    content: '✅';
    position: absolute;
    right: 0;
    top: 0;
    color: #27ae60;
}

/* --- صفحه ویدئوها --- */
.video-category {
    max-width: 1000px;
    margin: 0 auto;
}
.video-category h2 {
    font-size: 24px;
    border-bottom: 2px solid #ffde59;
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-align: right;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
}

.video-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    width: calc(50% - 15px);
    overflow: hidden;
    transition: transform 0.3s;
}
.video-card:hover {
    transform: translateY(-5px);
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #000;
}
.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-title {
    padding: 15px;
    background-color: #fff;
}
.video-title h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* --- صفحه آزمون --- */
.quiz-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    position: relative;
}

/* --- صفحه تماس با ما / دیدگاه‌ها --- */
.comment-area {
    max-width: 900px;
    margin: 0 auto;
}

.comment-form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.comment-form-container h2 {
    margin-top: 0;
    font-size: 24px;
}

.comment-form-container p {
    color: #666;
    margin-bottom: 20px;
}

.comment-form-container textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.form-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.form-fields {
    display: flex;
    gap: 15px;
    flex-grow: 1;
}

.input-group {
    position: relative;
    flex: 1;
}

.input-group input {
    width: 100%;
    height: 45px;
    padding-right: 40px;
    padding-left: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #27ae60;
    color: white;
}
.btn-primary:hover {
    background-color: #229954;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
}
.btn-secondary:hover {
    background-color: #e0e0e0;
}

.comments-section h3 {
    font-size: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.comment {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.author-name {
    font-weight: bold;
    font-size: 16px;
}

.author-badge {
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.guest-badge {
    background-color: #ecf0f1;
    color: #7f8c8d;
}

.author-badge {
    background-color: #9b59b6;
    color: white;
}

.timestamp {
    color: #999;
    font-size: 13px;
    margin-right: auto;
}

.comment-body p {
    margin: 0;
    line-height: 1.8;
}

.comment-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    color: #888;
}

.comment-action {
    font-size: 14px;
    cursor: pointer;
}
.comment-action:hover {
    color: #333;
}
.comment-action i {
    margin-left: 5px;
}

.replies {
    margin-top: 20px;
    margin-right: 40px;
    border-right: 3px solid #f0f0f0;
    padding-right: 20px;
}
/* --- صفحه ورود --- */
.login-page-body {
    background-color: #1a202c;
    color: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background-color: #2d3748;
    padding: 40px;
    border-radius: 15px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 28px;
    color: #718096;
    text-decoration: none;
    line-height: 1;
}
.close-btn:hover {
    color: #e2e8f0;
}

.login-container h1 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #4a5568;
}

.tab-btn {
    background: none;
    border: none;
    color: #a0aec0;
    padding: 10px 20px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.input-group-login {
    display: flex;
    align-items: center;
    background-color: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 20px;
}

.input-group-login .country-code {
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #a0aec0;
}
.input-group-login .country-code img {
    width: 20px;
    margin-left: 8px;
}

.input-group-login input {
    flex-grow: 1;
    background: none;
    border: none;
    color: #e2e8f0;
    padding: 10px;
    font-size: 16px;
    text-align: left;
    direction: ltr;
}

.input-group-login input:focus {
    outline: none;
}

.btn-submit {
    width: 100%;
    background-color: #ffffff;
    color: #1a202c;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
.btn-submit:hover {
    background-color: #e2e8f0;
}

.signup-link {
    margin-top: 25px;
    font-size: 14px;
    color: #a0aec0;
}
.signup-link a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}
.signup-link a:hover {
    text-decoration: underline;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #718096;
    margin: 30px 0;
    font-size: 13px;
}
.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #4a5568;
}
.separator:not(:empty)::before {
    margin-left: .5em;
}
.separator:not(:empty)::after {
    margin-right: .5em;
}

.btn-google {
    width: 100%;
    background-color: #4285f4;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    transition: background-color 0.3s;
}
.btn-google:hover {
    background-color: #357ae8;
}
.btn-google i {
    font-size: 20px;
}

.google-signin-container {
    margin: 15px 0;
    text-align: center;
}

.g_id_signin {
    margin: 10px auto;
    display: flex;
    justify-content: center;
}
/* --- فوتر --- */
.site-footer {
    background-color: #1a2035;
    color: #a0aec0;
    padding-top: 60px;
}

.footer-main {
    max-width: 1100px; /* عرض فوتر کمتر شد */
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap; /* از شکستن ستون‌ها جلوگیری می‌کند */
    gap: 30px;
}

.footer-column {
    flex-shrink: 1;
}

.footer-column.about {
    flex-basis: 35%; /* ستون درباره ما فضای بیشتری می‌گیرد */
}

.footer-column h4 {
    color: #ffffff;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-column h4::after {
    content: '....';
    position: absolute;
    right: 0;
    bottom: -5px;
    letter-spacing: 2px;
    color: #4a5568;
}

.footer-logo {
    width: 100px;
    margin-bottom: 20px;
}

.about p {
    font-size: 14px;
    line-height: 1.8;
}

.about .phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: bold;
    margin-top: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ffffff;
}
.footer-column ul li a::before {
    content: "- ";
}

.symbols-column img {
    max-width: 120px;
    background-color: #fff;
    padding: 5px;
    border-radius: 8px;
}

.footer-bottom {
    background-color: #111629;
    text-align: center;
    padding: 20px 15px;
    margin-top: 40px;
    font-size: 14px;
}

/* دکمه‌های شناور */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-buttons a {
    width: 50px;
    height: 50px;
    background-color: #00a896;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.floating-buttons a:last-child {
    background-color: #9b59b6;
}

.floating-buttons a:hover {
    transform: scale(1.1);
}
/* دکمه‌های شناور */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-buttons a {
    width: 50px;
    height: 50px;
    background-color: #00a896;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.floating-buttons a:last-child {
    background-color: #9b59b6;
}

.floating-buttons a:hover {
    transform: scale(1.1);
}

/* === Beautiful Modal Styles === */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s ease-in-out;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #000;
}

/* Phone Modal Specific Styles */
.phone-modal-content {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.phone-modal-header {
    padding: 40px 30px 20px;
}

.phone-icon-large {
    background-color: #27ae60;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

.phone-icon-large i {
    font-size: 36px;
    color: white;
}

.phone-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

.phone-modal-body {
    padding: 20px 30px 40px;
    background-color: white;
    color: #333;
}

.contact-message {
    font-size: 18px;
    margin-bottom: 20px;
    color: #555;
}

.phone-number {
    margin: 30px 0;
}

.phone-number a {
    display: inline-block;
    font-size: 32px;
    font-weight: bold;
    color: #27ae60;
    text-decoration: none;
    background-color: #f8f9fa;
    padding: 15px 30px;
    border-radius: 15px;
    border: 2px solid #27ae60;
    transition: all 0.3s;
}

.phone-number a:hover {
    background-color: #27ae60;
    color: white;
    transform: scale(1.05);
}

.working-hours {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.working-hours h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.working-hours p {
    margin: 5px 0;
    color: #555;
    font-weight: 500;
}

/* Message Modal Specific Styles */
.message-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.message-modal-header {
    padding: 40px 30px 20px;
    text-align: center;
}

.message-icon-large {
    background-color: #9b59b6;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.message-icon-large i {
    font-size: 36px;
    color: white;
}

.message-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

.message-modal-body {
    padding: 20px 30px 40px;
    background-color: white;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-cancel,
.btn-send {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.btn-cancel {
    background-color: #95a5a6;
    color: white;
}

.btn-cancel:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.btn-send {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.btn-send:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

.message-status {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 600px) {
    .modal-content {
        margin: 2% auto;
        width: 95%;
    }
    
    .phone-modal-header,
    .message-modal-header {
        padding: 30px 20px 15px;
    }
    
    .phone-modal-body,
    .message-modal-body {
        padding: 15px 20px 30px;
    }
    
    .phone-number a {
        font-size: 24px;
        padding: 12px 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-send {
        width: 100%;
    }
}
.course-page-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.course-main-content {
    flex: 3; /* بخش اصلی محتوا سه برابر سایدبار فضا می‌گیرد */
    min-width: 300px;
}

.course-sidebar {
    flex: 1;
    min-width: 280px;
}

.course-main-image {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
}

.course-main-content h1 {
    font-size: 32px;
    margin-top: 0;
}

.course-main-content h2 {
    font-size: 24px;
    border-bottom: 2px solid #ffde59;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.course-main-content p {
    line-height: 1.9;
    font-size: 16px;
    color: #333;
}

.lesson-list {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}
.lesson-item:last-child {
    border-bottom: none;
}
.lesson-item:nth-child(even) {
    background-color: #f9f9f9;
}

.lesson-item i {
    font-size: 20px;
    color: #00a896;
    margin-left: 15px;
}
.lesson-item i.fa-lock {
    color: #aaa;
}

.lesson-title {
    flex-grow: 1;
    font-weight: bold;
}

.lesson-duration {
    font-size: 14px;
    color: #888;
}

.course-info-box {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    position: sticky; /* سایدبار با اسکرول صفحه حرکت می‌کند */
    top: 20px;
}

.course-info-box .info-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}
.course-info-box .info-item:last-of-type {
    border-bottom: none;
}
.course-info-box .info-item.price {
    font-size: 18px;
}

.course-info-box .info-item i {
    font-size: 18px;
    color: #2c3e50;
    margin-left: 15px;
    width: 20px;
    text-align: center;
}

.enroll-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 18px;
    background-color: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
}
.enroll-btn:hover {
    background-color: #229954;
}
/* --- محتوای راهنمای دوره --- */
.course-guide-content {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.course-guide-content h3 {
    font-size: 22px;
    margin-top: 30px;
}

.course-guide-content h4 {
    font-size: 18px;
    color: #333;
    margin-top: 25px;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.guide-table th, .guide-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.guide-table thead {
    background-color: #2c3e50; /* سرمه‌ای */
    color: #ffffff;
}

.guide-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.guide-table strong {
    font-size: 15px;
}

.guide-list {
    list-style: none;
    padding-right: 0;
}

.guide-list li {
    padding-right: 25px;
    position: relative;
    margin-bottom: 15px;
    line-height: 1.8;
}

.guide-list li::before {
    content: '🎯';
    position: absolute;
    right: 0;
    top: 0;
}
/* --- هدر قهرمان (Hero Header) صفحه دوره --- */
.course-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to left, #f4f0ff, #ffffff); /* گرادینت ملایم بنفش به سفید */
    padding: 30px 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.course-hero .hero-content h1 {
    font-size: 32px; /* اندازه عنوان اصلی */
    color: #2c3e50; /* رنگ سرمه‌ای تیره */
    margin: 0;
}

.course-hero .hero-content .breadcrumb {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #555;
}

.course-hero .hero-content .breadcrumb a {
    color: #8a2be2; /* رنگ بنفش برای لینک */
    text-decoration: none;
    transition: color 0.3s;
}

.course-hero .hero-content .breadcrumb a:hover {
    color: #5e1a9c;
}

.course-hero .hero-logo img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* --- استایل‌های جدید بخش ثبت‌نام دوره --- */
.registration-panel {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    position: sticky;
    top: 20px;
}

.registration-panel h2 {
    text-align: center;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
}

.registration-tabs {
    display: flex;
    margin-bottom: 20px;
    background-color: #f0f2f5;
    border-radius: 10px;
    padding: 5px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    font-family: inherit;
    border: none;
    background-color: transparent;
    color: #555;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: #ffffff;
    color: #8a2be2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.subject-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    background-color: #fdfdfd;
}

.subject-card:last-of-type {
    margin-bottom: 20px;
}

.subject-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #2c3e50;
}

.schedule-info {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.schedule-info li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #555;
}

.schedule-info li i {
    margin-left: 10px;
    color: #999;
    width: 16px;
    text-align: center;
}

.subject-card .price {
    font-size: 22px;
    font-weight: bold;
    color: #27ae60;
    text-align: center;
    margin: 20px 0;
}

.capacity-status {
    margin-bottom: 15px;
}

.capacity-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #1abc9c;
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.status-note {
    font-size: 13px;
    color: #888;
    text-align: center;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    line-height: 1.6;
}
.status-note i {
    margin-left: 5px;
}
/* استایل دکمه ثبت‌نام در سایدبار دوره */
.subject-card .enroll-btn {
    display: block;         /* برای اعمال عرض 100% روی تگ a */
    width: 100%;
    box-sizing: border-box; /* برای محاسبه صحیح padding و width */
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;        /* کمی کوچک‌تر شدن فونت برای جا شدن متن */
    font-weight: bold;
    color: white;
    background-color: #27ae60; /* رنگ سبز */
    border: none;
    border-radius: 8px;
    text-decoration: none;  /* حذف خط زیر لینک */
    text-align: center;     /* متن وسط‌چین */
    white-space: nowrap;    /* جلوگیری از شکستن و چند خطی شدن متن */
    cursor: pointer;
    transition: background-color 0.3s;
}

.subject-card .enroll-btn:hover {
    background-color: #229954; /* رنگ سبز تیره‌تر هنگام هاور */
}
/* --- استایل‌های هدر در حالت لاگین کرده --- */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: #f8f9fa;
    padding: 8px 15px;
    border-radius: 25px;
    border: 1px solid #e9ecef;
}

.user-menu .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 10px;
}

.user-menu span {
    font-weight: bold;
    color: #333;
}

.user-menu .fa-chevron-down {
    margin-right: 10px;
    font-size: 12px;
    color: #888;
}

.user-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 180px;
    z-index: 100;
    overflow: hidden;
}

.user-menu:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    font-size: 14px;
}
.dropdown-menu li a:hover {
    background-color: #f8f9fa;
}

.dropdown-menu li a i {
    margin-left: 10px;
    color: #888;
}

/* --- استایل‌های صفحه داشبورد --- */
.dashboard-page-container {
    padding: 40px 15px;
    background-color: #f8f9fa; /* پس‌زمینه کلی صفحه */
}

.dashboard-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* سایدبار */
.dashboard-sidebar {
    flex: 0 0 280px; /* عرض ثابت سایدبار */
    background-color: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.sidebar-profile .avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #eee;
}

.sidebar-profile h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.sidebar-profile p {
    margin: 0; /* margin-bottom از اینجا حذف شد */
    color: #888;
    font-size: 14px;
}
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.sidebar-nav a {
    display: block;
    padding: 15px;
    border-radius: 8px;
    color: #555;
    font-weight: bold;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.sidebar-nav a i {
    margin-left: 12px;
    width: 20px;
    color: #999;
}

.sidebar-nav a:hover {
    background-color: #f1f0ff;
    color: #8a2be2;
}
.sidebar-nav a.active {
    background-color: #8a2be2;
    color: white;
}
.sidebar-nav a.active i {
    color: white;
}

.logout-link {
    display: block;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #c0392b;
    font-weight: bold;
}
.logout-link:hover {
    color: #e74c3c;
}

/* محتوای اصلی داشبورد */
.dashboard-content {
    flex-grow: 1;
}

.welcome-header {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.welcome-header h2 { margin: 0; }
.welcome-header p { margin: 5px 0 0 0; color: #666; }

.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.stat-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: white;
    margin-left: 15px;
}
/* رنگ‌های آیکون‌ها از استایل کارت‌های صفحه اصلی گرفته شده */
.stat-card .card-icon.c1 { background-color: #6f42c1; }
.stat-card .card-icon.c2 { background-color: #0d6efd; }
.stat-card .card-icon.c3 { background-color: #8e44ad; }

.card-info span {
    display: block;
    color: #888;
    font-size: 14px;
}
.card-info strong {
    font-size: 20px;
}

.latest-courses h3 {
    margin-bottom: 20px;
}

.dashboard-course-card {
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.dashboard-course-card img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    margin-left: 20px;
}

.course-details {
    flex-grow: 1;
}

.course-details h4 {
    margin: 0 0 10px 0;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.progress-bar-container span {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}
.progress {
    height: 100%;
    background-color: #1abc9c;
    border-radius: 4px;
}

.btn-continue {
    background-color: #2980b9;
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.btn-continue:hover {
    background-color: #3498db;
}
/* --- استایل جدید و زیبا برای جداول راهنمای سمپاد --- */

.sampad-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden; /* برای گرد شدن گوشه‌های جدول */
}

.sampad-guide-table thead tr {
    background-color: #6f42c1; /* بنفش تیره و جذاب */
    color: #ffffff;
    font-weight: bold;
}

.sampad-guide-table th,
.sampad-guide-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
}

.sampad-guide-table tbody tr {
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

.sampad-guide-table tbody tr:nth-child(even) {
    background-color: #f9f6ff; /* بنفش خیلی روشن برای ردیف‌های زوج */
}

.sampad-guide-table tbody tr:hover {
    background-color: #e9e1f8; /* هایلایت بنفش در هاور */
    cursor: default;
}

.sampad-guide-table tbody tr:last-of-type {
    border-bottom: 2px solid #6f42c1;
}

.sampad-guide-table tfoot {
    font-weight: bold;
    color: #333;
    background-color: #f3f3f3;
}

/* استایل برای نوشته‌های توضیحی */
.note {
    background-color: #fffbe6;
    border-right: 4px solid #ffc107;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 14px;
}
/* --- استایل های جدید برای بخش تدریس خصوصی --- */

/* کانتینر اصلی که اطلاعیه و کارت ها را کنار هم می چیند */
.hero-section-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* برای نمایش بهتر در موبایل */
    gap: 25px;
}

/* استایل کادر اطلاعیه تدریس خصوصی */
.private-tutoring-ad {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    padding: 25px;
    width: 320px; /* عرض کادر */
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.private-tutoring-ad:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(111, 66, 193, 0.15); /* سایه بنفش در هاور */
}

/* استایل آیکون بالای کادر */
.private-tutoring-ad .fa-chalkboard-teacher {
    font-size: 40px;
    color: #fff;
    background-color: #8e44ad; /* بنفش هماهنگ با سایت */
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

/* استایل عنوان */
.private-tutoring-ad h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #2c3e50;
}

/* استایل پاراگراف توضیحات */
.private-tutoring-ad p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* استایل لینک تلگرام */
.telegram-link {
    display: inline-block;
    background-color: #0088cc; /* رنگ تلگرام */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
}

.telegram-link:hover {
    background-color: #0077b5;
}

.telegram-link i {
    margin-left: 8px;
}
/* --- استایل های جدید برای صفحه راهنمای ثبت نام --- */

.guide-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* هدر بالای صفحه راهنما */
.guide-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f3e7ff, #e8f1f9); /* گرادیانت ملایم بنفش و آبی */
    padding: 30px 40px;
    border-radius: 20px;
    margin: 0 auto 40px auto;
    max-width: 1100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.guide-hero .hero-content h1 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0;
}

.guide-hero .hero-content .breadcrumb {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #555;
}

.guide-hero .hero-content .breadcrumb a {
    color: #8a2be2;
    text-decoration: none;
    transition: color 0.3s;
}

.guide-hero .hero-content .breadcrumb a:hover {
    color: #5e1a9c;
}

.guide-hero .hero-content .breadcrumb i {
    font-size: 12px;
    margin: 0 5px;
}

.guide-hero .hero-icon {
    font-size: 40px;
    color: #fff;
    background-color: #8a2be2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* کارت اصلی محتوای راهنما */
.guide-card {
    max-width: 1100px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.guide-card .intro-text {
    font-size: 17px;
    line-height: 2;
    color: #444;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.section-heading {
    text-align: center;
    font-size: 24px;
    margin-top: 50px;
    margin-bottom: 30px;
    position: relative;
    color: #333;
}
.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ffde59; /* زرد */
    margin: 10px auto 0;
    border-radius: 2px;
}

/* کانتینر مقایسه */
.comparison-container, .steps-container {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.guide-column, .step-column {
    flex: 1;
    background-color: #f9f9f9;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.guide-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.column-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.column-header i {
    font-size: 24px;
    color: #fff;
    background-color: #0d6efd; /* آبی */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}
.guide-column:last-child .column-header i {
    background-color: #6f42c1; /* بنفش */
}

.column-header h3 {
    margin: 0;
    font-size: 20px;
}

.guide-column p, .step-column li {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.guide-column h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.guide-column ul {
    list-style: none;
    padding-right: 0;
}
.guide-column ul li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 8px;
}
.guide-column ul li::before {
    content: '✔';
    position: absolute;
    right: 0;
    color: #27ae60;
}

.ideal-for {
    background-color: #e8f4fd;
    border-right: 4px solid #0d6efd;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
}
.guide-column:last-child .ideal-for {
    background-color: #f4eefc;
    border-right-color: #6f42c1;
}

/* بخش خلاصه */
.summary-note {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-right: 5px solid #ffde59;
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
    font-size: 16px;
    line-height: 1.9;
}

/* بخش مراحل ثبت نام */
.step-column {
    background-color: transparent;
    border-style: dashed;
}
.step-column h3 { font-size: 18px; }
.step-column ol { padding-right: 20px; }
.step-column li { margin-bottom: 10px; }
.step-column i { margin-left: 10px; color: #555; }

/* بخش سوالات متداول */
.faq-section {
    margin-top: 20px;
}
.faq-item {
    background-color: #fdfdfd;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-item h4 {
    font-size: 17px;
    margin: 0 0 10px 0;
    position: relative;
    padding-right: 25px;
}
.faq-item h4::before {
    content: '❓';
    position: absolute;
    right: 0;
}
.faq-item p {
    margin: 0;
    color: #666;
    line-height: 1.8;
    padding-right: 25px;
}

/* === End of Basic Styles === */

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: none;
    justify-content: center;
    align-items: center;
    min-width: 18px;
    z-index: 10;
}

.cart-badge.show {
    display: flex !important;
}

.cart-link {
    position: relative;
}

/* Cart Page Layout */
.cart-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h1 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.cart-content {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-main {
    flex: 2;
}

.cart-sidebar {
    flex: 1;
    max-width: 400px;
}

/* Cart Items */
.cart-items {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    overflow: hidden;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.item-image {
    width: 80px;
    height: 80px;
    margin-left: 20px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.item-details {
    flex: 1;
    margin-left: 20px;
}

.item-details h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #2c3e50;
}

.item-group {
    color: #7f8c8d;
    font-size: 14px;
    margin: 5px 0;
}

.item-schedule {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.item-schedule small {
    background-color: #ecf0f1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #2c3e50;
}

.item-price {
    text-align: center;
    margin: 0 20px;
    min-width: 120px;
}

.item-price .price {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.remove-item {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.remove-item:hover {
    background-color: #c0392b;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.empty-cart i {
    font-size: 64px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.empty-cart h3 {
    margin: 0 0 10px 0;
    color: #7f8c8d;
}

.empty-cart p {
    color: #95a5a6;
    margin-bottom: 30px;
}

/* Cart Summary */
.cart-summary {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    padding: 25px;
    margin-bottom: 20px;
    position: sticky;
    top: 20px;
}

.cart-summary h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #2c3e50;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 16px;
}

.summary-row.discount {
    color: #e74c3c;
    font-weight: bold;
}

.summary-row.total {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    border-top: 2px solid #ecf0f1;
    padding-top: 15px;
    margin-top: 10px;
}

/* Discount Code */
.discount-code {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

.discount-code h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2c3e50;
}

.discount-input {
    display: flex;
    gap: 10px;
}

.discount-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.btn-apply {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.btn-apply:hover {
    background-color: #2980b9;
}

#discount-message {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover:not(:disabled) {
    background-color: #229954;
}

.checkout-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.continue-shopping {
    text-align: center;
    margin-top: 20px;
}

.continue-shopping a {
    color: #3498db;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.continue-shopping a:hover {
    text-decoration: underline;
}

/* Payment Methods */
.payment-methods {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    padding: 20px;
    text-align: center;
}

.payment-methods h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.payment-icons i {
    font-size: 24px;
    color: #7f8c8d;
    padding: 10px;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    transition: color 0.2s;
}

.payment-icons i:hover {
    color: #2c3e50;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #27ae60;
}

.notification.error {
    background-color: #e74c3c;
}

.notification.warning {
    background-color: #f39c12;
}

.notification.info {
    background-color: #3498db;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.notification-actions {
    text-align: center;
    margin-top: 10px;
}

.notification-btn {
    background-color: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.notification-btn:hover {
    background-color: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
}

/* Floating Cart Summary */
.floating-cart-summary {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2c3e50;
    color: white;
    border-radius: 12px;
    padding: 15px;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    z-index: 999;
    animation: slideInFromBottom 0.3s ease;
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.floating-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.floating-cart-header i {
    color: #e74c3c;
    margin-left: 8px;
}

.close-floating-cart {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-floating-cart:hover {
    color: #e74c3c;
}

.floating-cart-total {
    text-align: center;
    margin: 10px 0;
    font-size: 18px;
}

.floating-cart-actions {
    text-align: center;
}

.view-cart-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s;
    display: inline-block;
}

.view-cart-btn:hover {
    background-color: #c0392b;
    color: white;
    text-decoration: none;
}

/* Responsive Design for Cart */
@media (max-width: 768px) {
    .cart-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .item-image {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px auto;
    }
    
    .item-details {
        margin: 0;
        width: 100%;
    }
    
    .item-schedule {
        justify-content: center;
    }
    
    .item-price {
        margin: 15px 0;
        width: 100%;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
        min-width: auto;
    }
    
    .notification.show {
        transform: translateY(0);
    }
}