/**
 * استایل کاربری افزونه آهولرن سوئیت — نسخه ۱.۱.۰
 *
 * @package AhuLearn_Suite
 */

/* === === === متغیرهای پایه === === === */
.ahulearn-home-wrap,
.ahu-courses-archive,
.ahu-instructor {
    --ahu-max-width: 1280px;
    --ahu-font: 'IRANSans', Tahoma, Arial, sans-serif;
    --ahu-bg: #DFF2EB;
    --ahu-text: #133E87;
    --ahu-primary: #133E87;
    --ahu-secondary: #4A628A;
    --ahu-accent: #608BC1;
    --ahu-info: #7AB2D3;
    --ahu-soft: #CBDCEB;
    --ahu-highlight: #B9E5E8;
    --ahu-paper: #F3F3E0;
    --ahu-muted: #4A628A;
    --ahu-border: #CBDCEB;
    --ahu-radius: 16px;

    direction: rtl;
    text-align: right;
    font-family: var(--ahu-font);
    color: var(--ahu-text);
    background: var(--ahu-bg);
    box-sizing: border-box;
    line-height: 1.8;
}

.ahulearn-home-wrap *,
.ahu-courses-archive *,
.ahu-instructor * {
    box-sizing: border-box;
}

.ahu-container {
    width: min(100% - 32px, var(--ahu-max-width));
    margin-inline: auto;
}

/* === === === تراز متن === === === */
.ahu-text-right { text-align: right; }
.ahu-text-center { text-align: center; }
.ahu-text-left { text-align: left; }

.ahu-align-right .ahu-hero-content { margin-right: 0; margin-left: auto; }
.ahu-align-center .ahu-hero-content { margin-inline: auto; text-align: center; }
.ahu-align-left .ahu-hero-content { margin-right: auto; margin-left: 0; }

/* === === === بخش‌های صفحه اصلی === === === */
.ahu-home-section {
    padding: 70px 0;
}

.ahu-section-head {
    margin-bottom: 32px;
}

.ahu-section-center {
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
}

.ahu-section-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.5;
    font-weight: 900;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.ahu-section-center .ahu-section-title::before,
.ahu-section-center .ahu-section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 3px;
    background: var(--ahu-accent);
    border-radius: 2px;
    transform: translateY(-50%);
}

.ahu-section-center .ahu-section-title::before { right: -50px; }
.ahu-section-center .ahu-section-title::after { left: -50px; }

.ahu-section-text {
    margin: 12px 0 0;
    color: var(--ahu-muted);
    line-height: 2;
    font-size: 15px;
}

/* === === === بخش معرفی (هیرو) === === === */
.ahu-home-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--ahu-primary);
}

.ahu-home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.ahu-hero-content {
    max-width: 720px;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.ahu-hero-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.1);
}

.ahu-hero-title {
    margin: 0;
    font-weight: 900;
    line-height: 1.35;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.ahu-hero-text {
    margin: 18px 0 0;
    line-height: 2;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.ahu-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.ahu-align-center .ahu-hero-actions {
    justify-content: center;
}

/* === === === دکمه‌ها === === === */
.ahu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.25s ease;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.ahu-btn-primary {
    color: #fff;
    box-shadow: 0 8px 24px rgba(19, 62, 135, 0.35);
}

.ahu-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(19, 62, 135, 0.45);
    color: #fff;
}

.ahu-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.ahu-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    transform: translateY(-2px);
}

.ahu-btn-arrow {
    font-size: 1.2em;
    transition: transform 0.2s ease;
    display: inline-block;
}

.ahu-btn:hover .ahu-btn-arrow {
    transform: translateX(-4px);
}

/* === === === بخش آمار === === === */
.ahu-stats {
    position: relative;
    overflow: hidden;
}

.ahu-stats-grid {
    display: grid;
    gap: 18px;
}

.ahu-stats-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ahu-stats-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ahu-stats-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ahu-stats-cols-5 { grid-template-columns: repeat(5, 1fr); }
.ahu-stats-cols-6 { grid-template-columns: repeat(6, 1fr); }
.ahu-stats-cols-7 { grid-template-columns: repeat(7, 1fr); }
.ahu-stats-cols-8 { grid-template-columns: repeat(8, 1fr); }

.ahu-stat-card {
    padding: 28px 18px;
    border: 1px solid var(--ahu-border);
    text-align: center;
    transition: transform 0.25s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.ahu-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--ahu-accent);
}

.ahu-stat-card:hover {
    transform: translateY(-4px);
}

.ahu-stat-number {
    display: block;
    font-weight: 900;
    line-height: 1.2;
}

.ahu-stat-label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--ahu-muted);
}

/* === === === بخش حوزه‌ها — فقط عکس با متن overlay === === === */
.ahu-domains-grid {
    display: grid;
    gap: 20px;
}

.ahu-domains-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ahu-domains-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ahu-domains-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ahu-domains-cols-5 { grid-template-columns: repeat(5, 1fr); }
.ahu-domains-cols-6 { grid-template-columns: repeat(6, 1fr); }
.ahu-domains-cols-7 { grid-template-columns: repeat(7, 1fr); }

.ahu-domain-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.ahu-domain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(19, 62, 135, 0.25) !important;
}

.ahu-domain-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--ahu-soft);
}

.ahu-domain-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.ahu-domain-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ahu-muted);
    font-weight: 700;
    background: linear-gradient(135deg, var(--ahu-soft), var(--ahu-highlight));
}

.ahu-domain-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ahu-domain-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 22px;
    z-index: 2;
    text-align: right;
}

.ahu-domain-content h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ahu-domain-content p {
    margin: 0;
    line-height: 1.7;
    font-size: 13px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* === === === بخش دوره‌های محبوب === === === */
.ahu-popular-grid {
    display: grid;
    gap: 18px;
}

.ahu-popular-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ahu-popular-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ahu-popular-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ahu-popular-cols-5 { grid-template-columns: repeat(5, 1fr); }
.ahu-popular-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* === === === بخش مسیر یادگیری === === === */
.ahu-learning {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--ahu-primary);
}

.ahu-learning-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.ahu-learning-content {
    padding: 40px 0;
}

.ahu-learning-title {
    margin: 0;
    font-size: 38px;
    line-height: 1.5;
    font-weight: 900;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.ahu-learning-text {
    margin: 14px 0 0;
    line-height: 2;
    font-size: 16px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.ahu-learning-steps {
    display: grid;
    gap: 14px;
}

.ahu-learning-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 18px;
    backdrop-filter: blur(10px);
    transition: background 0.25s ease;
}

.ahu-learning-step:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

.ahu-learning-index {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

.ahu-learning-step h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
}

.ahu-learning-step p {
    margin: 0;
    line-height: 1.9;
    font-size: 14px;
}

/* === === === بخش مقالات === === === */
.ahu-articles-grid {
    display: grid;
    gap: 22px;
}

.ahu-articles-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ahu-articles-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ahu-articles-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ahu-articles-cols-5 { grid-template-columns: repeat(5, 1fr); }

.ahu-article-card {
    overflow: hidden;
    border: 1px solid var(--ahu-border);
    box-shadow: 0 10px 30px rgba(19, 62, 135, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ahu-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(19, 62, 135, 0.12);
}

.ahu-article-image {
    display: block;
    overflow: hidden;
    background: var(--ahu-soft);
}

.ahu-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ahu-article-card:hover .ahu-article-image img {
    transform: scale(1.05);
}

.ahu-article-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.ahu-article-body h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.6;
}

.ahu-article-body h3 a {
    color: var(--ahu-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ahu-article-body h3 a:hover {
    color: var(--ahu-primary);
}

.ahu-article-body p {
    margin: 0;
    line-height: 1.9;
    color: var(--ahu-muted);
    font-size: 14px;
    flex: 1;
}

.ahu-article-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.ahu-article-button:hover {
    transform: translateX(-4px);
    opacity: 0.9;
}

/* === === === بخش خبرنامه === === === */
.ahu-newsletter {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.ahu-newsletter-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.ahu-newsletter h2 {
    margin: 0;
    font-weight: 900;
}

.ahu-newsletter p {
    margin: 10px 0 0;
    line-height: 2;
}

.ahu-newsletter-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
}

.ahu-newsletter-form input {
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.95);
}

.ahu-newsletter-form button {
    border: 0;
    padding: 0 26px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.ahu-newsletter-form button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.ahu-newsletter-message {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    font-size: 14px;
    min-height: 20px;
}

/* === === === آرشیو دوره‌ها === === === */
.ahu-courses-shell {
    padding: 40px 0;
}

.ahu-courses-head {
    margin-bottom: 24px;
    text-align: center;
}

.ahu-courses-title {
    margin: 0;
    color: var(--ahu-text);
    font-size: 32px;
    font-weight: 900;
}

.ahu-courses-subtitle {
    margin: 8px 0 0;
    color: var(--ahu-muted);
    font-size: 15px;
    line-height: 2;
    max-width: 820px;
    margin-inline: auto;
}

.ahu-courses-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--ahu-border);
    border-radius: var(--ahu-radius);
}

.ahu-courses-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.ahu-course-filter {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--ahu-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ahu-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.ahu-course-filter:hover,
.ahu-course-filter.is-active {
    background: var(--ahu-primary);
    border-color: var(--ahu-primary);
    color: #fff;
}

.ahu-courses-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ahu-courses-search,
.ahu-courses-sort {
    min-height: 40px;
    border: 1px solid var(--ahu-border);
    border-radius: 8px;
    background: #fff;
    color: var(--ahu-text);
    font-family: inherit;
    font-size: 13px;
    padding: 0 12px;
}

.ahu-courses-search { width: 230px; }
.ahu-courses-sort { width: 150px; }

.ahu-courses-submit {
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--ahu-primary);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    font-family: inherit;
    transition: background 0.2s ease;
}

.ahu-courses-submit:hover {
    background: var(--ahu-secondary);
}

.ahu-courses-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* === === === کارت دوره === === === */
.ahu-course-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ahu-border);
    border-radius: var(--ahu-radius);
    box-shadow: 0 10px 30px rgba(19, 62, 135, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.ahu-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(19, 62, 135, 0.18);
}

.ahu-course-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ahu-soft), var(--ahu-highlight));
}

.ahu-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ahu-course-card:hover .ahu-course-thumb img {
    transform: scale(1.08);
}

.ahu-course-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ahu-soft), var(--ahu-highlight));
}

/* نشان تخفیف دایره‌ای */
.ahu-course-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5);
    z-index: 2;
    text-align: center;
    line-height: 1.2;
}

.ahu-course-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.ahu-course-cat {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ahu-course-cat span {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--ahu-soft);
    color: var(--ahu-primary);
    font-size: 11px;
    font-weight: 700;
}

.ahu-course-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 52px;
}

.ahu-course-title a {
    color: var(--ahu-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ahu-course-title a:hover {
    color: var(--ahu-primary);
}

.ahu-course-excerpt {
    margin: 0;
    color: var(--ahu-muted);
    font-size: 13px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* مدرس */
.ahu-course-instructor {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ahu-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 2px 0;
}

.ahu-course-instructor .dashicons {
    color: var(--ahu-accent);
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ahu-instructor-label {
    color: var(--ahu-muted);
    font-weight: 400;
}

.ahu-instructor-name {
    color: var(--ahu-secondary);
    font-weight: 700;
}

/* ستاره‌های امتیاز */
.ahu-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--ahu-muted);
    font-size: 12px;
}

.ahu-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ahu-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ahu-star {
    color: #fbbf24;
    font-size: 14px;
    line-height: 1;
}

.ahu-star-full { color: #fbbf24; }
.ahu-star-half { color: #fbbf24; opacity: 0.6; }
.ahu-star-empty { color: #d1d5db; }

.ahu-rating-number {
    margin-right: 6px;
    color: var(--ahu-muted);
    font-size: 12px;
    font-weight: 600;
}

/* فوتر کارت */
.ahu-course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--ahu-border);
}

.ahu-course-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ahu-price-regular {
    color: var(--ahu-muted);
    font-size: 12px;
    text-decoration: line-through;
}

.ahu-price-final {
    color: var(--ahu-primary);
    font-size: 16px;
    font-weight: 900;
}

/* دکمه کارت دوره — مینیمال با فلش */
.ahu-course-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: var(--ahu-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 1px solid var(--ahu-primary);
    border-radius: 8px;
}

.ahu-course-button:hover {
    background: var(--ahu-primary);
    color: #fff;
    transform: translateX(-4px);
}

.ahu-courses-empty {
    padding: 50px 20px;
    border: 1px dashed var(--ahu-border);
    border-radius: var(--ahu-radius);
    background: #fff;
    color: var(--ahu-muted);
    text-align: center;
    font-weight: 700;
    grid-column: 1 / -1;
}

.ahu-courses-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.ahu-courses-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--ahu-border);
    border-radius: 8px;
    background: #fff;
    color: var(--ahu-text);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.ahu-courses-pagination .page-numbers:hover,
.ahu-courses-pagination .page-numbers.current {
    background: var(--ahu-primary);
    border-color: var(--ahu-primary);
    color: #fff;
}

.ahu-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--ahu-muted);
}

/* === === === صفحه مدرس === === === */
.ahu-instructor {
    padding: 60px 0;
}

.ahu-instructor-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
    background: #fff;
    padding: 40px;
    border-radius: var(--ahu-radius);
    box-shadow: 0 10px 40px rgba(19, 62, 135, 0.08);
}

.ahu-instructor-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 6px solid var(--ahu-soft);
}

.ahu-instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ahu-instructor-name {
    margin: 0 0 8px;
    font-size: 28px;
    color: var(--ahu-primary);
    font-weight: 900;
}

.ahu-instructor-title {
    margin: 0 0 16px;
    color: var(--ahu-accent);
    font-size: 16px;
    font-weight: 600;
}

.ahu-instructor-bio {
    color: var(--ahu-muted);
    line-height: 2;
    font-size: 15px;
}

/* === === === ریسپانسیو === === === */
@media (max-width: 1100px) {
    .ahu-stats-grid { grid-template-columns: repeat(4, 1fr) !important; }
    .ahu-domains-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .ahu-popular-grid { grid-template-columns: repeat(4, 1fr) !important; }
    .ahu-courses-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
    .ahu-hero-title { font-size: 38px !important; }
    .ahu-section-title { font-size: 26px; }
    .ahu-learning-title { font-size: 28px; }

    .ahu-stats-grid,
    .ahu-domains-grid,
    .ahu-popular-grid,
    .ahu-articles-grid,
    .ahu-learning-layout,
    .ahu-newsletter-box,
    .ahu-newsletter-form,
    .ahu-courses-grid,
    .ahu-instructor-grid {
        grid-template-columns: 1fr !important;
    }

    .ahu-home-section { padding: 50px 0; }
    .ahu-home-hero { min-height: 480px !important; }
    .ahu-hero-content { padding: 40px 0; }

    .ahu-courses-toolbar { grid-template-columns: 1fr; }
    .ahu-courses-actions { flex-direction: column; align-items: stretch; }
    .ahu-courses-search,
    .ahu-courses-sort { width: 100%; }

    .ahu-courses-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
    }
    .ahu-course-filter { white-space: nowrap; }

    .ahu-courses-grid { grid-template-columns: repeat(2, 1fr); }
    .ahu-instructor-image { width: 200px; height: 200px; }

    .ahu-section-center .ahu-section-title::before,
    .ahu-section-center .ahu-section-title::after { display: none; }
}

@media (max-width: 500px) {
    .ahu-courses-grid,
    .ahu-popular-grid,
    .ahu-articles-grid,
    .ahu-domains-grid,
    .ahu-stats-grid { grid-template-columns: 1fr !important; }

    .ahu-course-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .ahu-course-button { width: 100%; }

    .ahu-newsletter-form { grid-template-columns: 1fr; }
}
