/* sections/home/assets/css/style.css */


/* Course Archive */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-thumbnail {
    position: relative;
    padding-top: 66.67%;
    /* 3:2 aspect ratio */
}

.course-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card .wp-post-image.main-cover {
    height: 20vw;
    object-fit: cover;
}

.course-level {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
}

.course-level.beginner {
    background-color: #28a745;
}

.course-level.intermediate {
    background-color: #ffc107;
}

.course-level.advanced {
    background-color: #dc3545;
}

.course-details {
    padding: 20px;
}

.course-title {
    margin: 0 0 15px;
    font-size: 1.25rem;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.875rem;
    color: #666;
}

.course-meta i {
    margin-right: 5px;
}

.course-excerpt {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.875rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.course-pricing .regular-price {
    text-decoration: line-through;
    color: #666;
    margin-right: 10px;
}

.course-pricing .sale-price,
.course-pricing .price {
    color: #28a745;
    font-weight: bold;
    font-size: 1.25rem;
}


/* Professor Archive */

.professors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.professor-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
}

.professor-image {
    width: 150px;
    height: 150px;
    margin: 20px auto;
    border-radius: 50%;
    overflow: hidden;
}

.professor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.professor-details {
    padding: 20px;
}

.professor-name {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.expertise {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 15px;
}


/* Single Course */

.single-course .course-header {
    background: #f8f9fa;
    padding: 60px 0;
}

.course-enrollment {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.price-box {
    text-align: center;
    margin-bottom: 20px;
}

.btn-enroll {
    width: 100%;
    padding: 15px;
}


/* Single Professor */

.single-professor .professor-header {
    background: #f8f9fa;
    padding: 60px 0;
}

.professor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.contact-info,
.teaching-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.contact-item,
.info-item {
    margin-bottom: 15px;
}

.contact-item i {
    width: 20px;
    margin-right: 10px;
    color: #666;
}


/* Common Components */

.page-header {
    background: #f8f9fa;
    padding: 40px 0;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-outline {
    border: 1px solid #007bff;
    color: #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: #fff;
}


/* sections/home/assets/css/style.css */


/* Course Card */

.course-card {
    transition: transform 0.3s ease;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(26, 35, 126, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
}

.course-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
}

.type-online {
    background: rgba(52, 211, 153, 0.9);
    color: white;
}

.type-offline {
    background: rgba(251, 191, 36, 0.9);
    color: white;
}

.type-hybrid {
    background: rgba(167, 139, 250, 0.9);
    color: white;
}


/* Countdown Timer */

.countdown {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
    background: #f3f4f6;
    padding: 0rem;
    border-radius: 0.5rem;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a237e;
}

.countdown-label {
    font-size: 0.75rem;
    color: #4b5563;
}


/* Course Rating */

.course-rating {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.rating-stars {
    color: #fbbf24;
    margin-left: 0.5rem;
}

.rating-count {
    color: #6b7280;
    font-size: 0.875rem;
}


/* Swiper Navigation */

.swiper-button {
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: #1a237e !important;
}

.swiper-button::after {
    font-size: 1.25rem;
}


/* Training Categories */

.training-categories {
    padding: 6rem 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.training-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.03) 0%, rgba(57, 73, 171, 0.03) 100%);
    z-index: 1;
}

.training-categories-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.training-categories {
    padding: 6rem 0;
    background-color: #f8f9fa;
    direction: rtl;
    position: relative;
    overflow: hidden;
}

.training-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.03) 0%, rgba(57, 73, 171, 0.03) 100%);
    z-index: 1;
}

.training-categories-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.training-categories-title {
    text-align: center;
    color: #2B3144;
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.training-categories-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #1a237e, #3949ab);
    border-radius: 2.5px;
}

.training-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.training-category-item {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.training-category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a237e, #3949ab);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.training-category-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.15);
}

.training-category-item:hover::before {
    opacity: 1;
}

.training-category-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: #1a237e;
    fill: #1a237e;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #1a237e, #3949ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.training-category-icon,
.training-category-icon path {
    fill: #1a237e !important;
    stroke: #1a237e !important;
}

.training-category-item:hover .training-category-icon,
.training-category-item:hover .training-category-icon path {
    color: #fff;
    -webkit-text-fill-color: #fff;
    fill: #fff !important;
    stroke: #fff !important;
}

.training-category-title {
    font-size: 1.5rem;
    color: #2B3144;
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.training-category-description {
    color: #666;
    line-height: 1.8;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.training-category-item:hover .training-category-title,
.training-category-item:hover .training-category-description {
    color: white;
}

.cta-button-container {
    text-align: center;
    margin-top: 4rem;
}

.training-cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(26, 35, 126, 0.2);
}

.training-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(26, 35, 126, 0.3);
}

@media (max-width: 1200px) {
    .training-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .training-categories-grid {
        grid-template-columns: 1fr;
    }
    .training-categories-title {
        font-size: 2rem;
    }
    .training-category-item {
        min-height: 250px;
    }
}


/* Text Truncate */

.ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-section span.text-gray-500.line-through.ml-2 {
    position: absolute;
    bottom: 2rem;
    left: 1rem;
    font-size: 0.7rem;
    color: #cacaca;
}

@keyframes shake {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }
    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a365d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.filter-tag {
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background-color: #E5E7EB;
}


/* Dashboard Layout */

.dashboard {
    @apply min-h-screen bg-gray-50;
}


/* Navigation */

.dashboard-nav-item {
    @apply flex items-center p-3 rounded-lg text-gray-600 hover: bg-blue-50 hover: text-blue-900 transition-colors;
}

.dashboard-nav-item.active {
    @apply bg-blue-900 text-white hover: bg-blue-800;
}


/* Forms */

.dashboard-form .form-section {
    @apply bg-white rounded-lg;
}

.dashboard-form .form-group {
    @apply mb-4;
}

.dashboard-form label {
    @apply block text-gray-700 text-sm font-medium mb-2;
}

.dashboard-form input[type="text"],
.dashboard-form input[type="email"],
.dashboard-form input[type="url"],
.dashboard-form input[type="number"],
.dashboard-form select,
.dashboard-form textarea {
    @apply w-full p-3 border border-gray-300 rounded-lg focus: outline-none focus: ring-2 focus: ring-blue-500 focus: border-transparent;
}

.dashboard-form textarea {
    @apply resize-y;
}


/* Buttons */

.btn {
    @apply px-6 py-2 rounded-lg transition-colors flex items-center justify-center;
}

.btn-primary {
    @apply bg-blue-900 text-white hover: bg-blue-800;
}

.btn-secondary {
    @apply bg-gray-100 text-gray-700 hover: bg-gray-200;
}


/* Notifications */

.dashboard-notification {
    @apply mb-4 p-4 rounded-lg shadow-lg;
    animation: slideIn 0.3s ease-out;
}

.dashboard-notification.success {
    @apply bg-green-500 text-white;
}

.dashboard-notification.error {
    @apply bg-red-500 text-white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Loading States */

.loading {
    @apply relative pointer-events-none opacity-75;
}

.loading::after {
    content: '';
    @apply absolute inset-0 bg-white bg-opacity-50;
}


/* File Upload */

.upload-area {
    @apply border-2 border-dashed border-gray-300 rounded-lg p-8 text-center cursor-pointer hover: border-blue-500 transition-colors;
}

.upload-area.dragging {
    @apply border-blue-500 bg-blue-50;
}


/* Responsive Adjustments */

@media (max-width: 768px) {
    .dashboard-header {
        @apply sticky top-0 z-30;
    }
}

div.swiper-wrapper {
    /* max-height: 530px; */
    height: auto !important;
    overflow:hidden
}


/* Add to sections/home/assets/css/style.css */

.persian-calendar {
    direction: rtl;
}

.persian-calendar .calendar-header {
    margin-bottom: 2rem;
}

.persian-calendar .weekdays {
    margin-bottom: 0.5rem;
}

.persian-calendar .weekday {
    padding: 0.5rem;
    text-align: center;
    background-color: #F3F4F6;
    border-radius: 0.5rem;
}

.persian-calendar .days {
    gap: 0.5rem;
}

.persian-calendar .day {
    min-height: 100px;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.persian-calendar .day:not(.empty):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.persian-calendar .day.has-events {
    border-color: #3B82F6;
}

.persian-calendar .events-container {
    max-height: calc(100% - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
}

.persian-calendar .events-container::-webkit-scrollbar {
    width: 4px;
}

.persian-calendar .events-container::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.persian-calendar .events-container::-webkit-scrollbar-thumb {
    background: #94A3B8;
    border-radius: 2px;
}

.persian-calendar .event-item {
    transition: all 0.2s ease-in-out;
}

.persian-calendar .event-item:hover {
    transform: translateX(-2px);
}

@media (max-width: 768px) {
    .persian-calendar .day {
        min-height: 80px;
    }
    .persian-calendar .events-container {
        max-height: 50px;
    }
}


/* Course List Styling */

#course-list {
    margin-top: 2rem;
}

.course-card {
    transition: all 0.2s ease-in-out;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}


/* Category Icons Styles */

.category-icons-section {
    position: relative;
}

.parent-categories-slider .swiper-container {
    padding: 0 40px;
}

.parent-categories-slider .swiper-button-next,
.parent-categories-slider .swiper-button-prev {
    width: 32px;
    height: 32px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.parent-categories-slider .swiper-button-next:after,
.parent-categories-slider .swiper-button-prev:after {
    font-size: 16px;
    color: #333;
}

.category-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.category-item:hover {
    transform: translateY(-2px);
}

.category-item.active {
    position: relative;
}

.category-item.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #2563eb;
    border-radius: 3px;
}

.child-categories-container {
    transition: all 0.3s ease;
}

.child-category-item {
    transition: transform 0.2s;
}

.child-category-item:hover {
    transform: translateY(-2px);
}

.parent-categories-slider.relative {
    overflow: hidden;
}

@media (max-width: 564px) {
    .courses-summary table {
        display: block;
    }
    .courses-summary thead {
        display: none;
    }
    .courses-summary tbody,
    .courses-summary tr {
        display: block;
    }
    .courses-summary tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        padding: 0.5rem;
    }
    .courses-summary td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        border: none !important;
    }
    .courses-summary td:nth-child(2),
    .courses-summary td:nth-child(4) {
        background-color: #f9fafb;
        border-radius: 0.25rem;
    }
    .courses-summary td:nth-child(2)::before,
    .courses-summary td:nth-child(4)::before {
        content: "مدت زمان:";
        font-weight: 600;
    }
    /* Hide empty cells on mobile */
    .courses-summary td:empty {
        display: none;
    }
}


/* Course Category Description Styles */

.category-description {
    font-family: var(--primary-font);
}


/* Title styles */

.category-title {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    color: #1e40af;
}

.category-title svg {
    width: 2rem;
    height: 2rem;
    margin-left: 0.75rem;
}


/* Benefits section */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.benefit-card {
    position: relative;
    padding: 1.25rem;
    border-radius: 0.5rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}


/* Syllabus styles */

.syllabus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.syllabus-item {
    transition: background-color 0.2s ease;
}

.syllabus-item:hover {
    background-color: #f8fafc;
}


/* Course summary table */

.courses-summary {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 1.5rem 0;
    border: solid
}

.courses-summary table {
    table-layout: fixed;
}

.courses-summary th,
.courses-summary td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Expand/Collapse button */

.expand-button {
    font-size: 0.875rem;
    opacity: 0.9;
}

.expand-button:hover {
    opacity: 1;
    background-color: #f8fafc;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .benefits-grid,
    .syllabus-grid {
        grid-template-columns: 1fr;
    }
    .courses-summary {
        margin: 1rem -1rem;
        border-radius: 0;
    }
    .category-title {
        font-size: 1.5rem;
    }
}