/* Shared visual theme for Home views */
:root {
    --home-blue: #2457c5;
    --home-blue-dark: #173b78;
    --home-blue-soft: #eef5ff;
    --home-text: #24324a;
    --home-muted: #68758a;
    --home-border: #dce7f5;
    --home-shadow: 0 8px 26px rgba(34, 78, 145, .12);
}

body {
    color: var(--home-text);
    font-family: Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    background: #f7faff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.btn, input, select, textarea, button {
    font-family: Roboto, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--home-blue-dark);
    font-weight: 700;
    line-height: 1.35;
}

a { color: var(--home-blue); transition: color .2s ease; }
a:hover, a:focus { color: #e05252; text-decoration: none; }

.home-section,
.main-content > section,
.course-detail-page {
    background: linear-gradient(135deg, #f5f9ff 0%, #fff 55%, #eef5ff 100%);
}

.main-content .panel,
.main-content .widget,
.main-content .tags,
.main-content .comments-area,
.main-content .comment-box {
    border: 0;
    border-radius: 14px;
    box-shadow: var(--home-shadow);
}

.main-content .panel {
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.main-content .panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(34, 78, 145, .18);
}

.main-content .panel-header img,
.main-content .panel img {
    object-fit: cover;
}

.main-content .panel-body { background: #fff; }
.main-content .panel-footer { background: #fff; border-top: 1px solid var(--home-border); }

.main-content .btn,
.course-detail-page .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.main-content .btn:hover,
.course-detail-page .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(36, 87, 197, .22);
}

.form-control {
    min-height: 42px;
    border: 1px solid #cbdaf2;
    border-radius: 9px;
    box-shadow: none;
    color: var(--home-text);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus {
    border-color: #5590ee;
    box-shadow: 0 0 0 3px rgba(85, 144, 238, .15);
}

.archive_title_h1 {
    color: var(--home-blue-dark);
    font-weight: 700;
    letter-spacing: -.2px;
}

.main-content table {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--home-shadow);
}

.main-content table th {
    color: #fff;
    background: linear-gradient(135deg, var(--home-blue), #4385ed);
    font-weight: 600;
}

.main-content table td,
.main-content table th {
    padding: 10px 12px;
    border-color: var(--home-border) !important;
}

@@media (max-width: 767px) {
    body { font-size: 14px; line-height: 1.58; }
    .main-content .container-fluid { padding-right: 10px !important; padding-left: 10px !important; }
    .archive_title_h1 { font-size: 22px; }
    .main-content .panel { margin-bottom: 14px !important; }
    .main-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

@@media (max-width: 480px) {
    .main-content .btn { font-size: 13px; padding: 7px 10px; }
    h1 { font-size: 25px; }
    h2 { font-size: 22px; }
    h3 { font-size: 19px; }
}
