/* ==========================================================
   ADAPTIVE PREMIUM THEME (TEACHING.CSS)
========================================================== */

/* Layout & Spacing */
.teaching-page,
.teaching-details {
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main, var(--text, #0f172a));
}

.section-subtitle {
    max-width: 680px;
    margin: 0.5rem auto 3.5rem;
    text-align: center;
    color: var(--text-muted, var(--text-light, #64748b));
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
}

/* ==========================================================
   PAGE HEADER
========================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.page-header .section-title {
    margin: 0;
}

/* ==========================================================
   GROUPS & SECTION HEADINGS
========================================================== */
.teaching-group {
    margin-bottom: 4.5rem;
}

.teaching-group-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: var(--text-main, var(--text, #0f172a));
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.teaching-group-title i {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary, #2563eb), var(--secondary, #4f46e5));
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

/* ==========================================================
   SUBJECT CARDS
========================================================== */
.teaching-card {
    background: var(--bg-surface, #ffffff);
    border-radius: 18px;
    padding: 2.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
    box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, 0.03));
    height: 100%;
    position: relative;
    overflow: hidden;
}

.teaching-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary, #2563eb), var(--secondary, #4f46e5));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.teaching-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
}

.teaching-card:hover::before {
    opacity: 1;
}

.teaching-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary, #2563eb), var(--secondary, #4f46e5));
    color: #ffffff;
    flex-shrink: 0;
    font-size: 1.5rem;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.teaching-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.teaching-card-title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main, var(--text, #0f172a));
    line-height: 1.4;
    letter-spacing: -0.015em;
}

.teaching-btn {
    margin-top: auto;
    align-self: flex-start;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    transition: all 0.25s ease;
}

/* ==========================================================
   INSTITUTION SECTION
========================================================== */
.teaching-college {
    background: var(--bg-surface, #ffffff);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, 0.03));
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
}

.college-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
}

.college-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary, #2563eb), var(--secondary, #4f46e5));
    color: #ffffff;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.college-info {
    flex: 1;
}

.college-title {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-main, var(--text, #0f172a));
    font-weight: 800;
    letter-spacing: -0.02em;
}

.college-department {
    margin: 0.35rem 0 0;
    color: var(--text-muted, var(--text-light, #64748b));
    font-size: 0.975rem;
    font-weight: 500;
}

/* ==========================================================
   OFFERING GRID & CARDS
========================================================== */
.offering-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.offering-card {
    background: var(--bg-subtle, #f8fafc);
    border-radius: 14px;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.offering-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}

.offering-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--primary, #2563eb), var(--secondary, #4f46e5));
    color: #ffffff;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.offering-body {
    padding: 1.25rem 1.5rem;
}

.offering-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px dashed var(--border-subtle, rgba(0, 0, 0, 0.08));
}

.offering-row:last-child {
    border-bottom: none;
}

.offering-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-muted, var(--text-light, #64748b));
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.offering-value {
    flex: 1;
    text-align: right;
    color: var(--text-main, var(--text, #0f172a));
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-word;
}

/* ==========================================================
   COURSE MATERIALS
========================================================== */
.course-material-section {
    margin-top: 4rem;
    padding: 4rem 2rem;
    background: var(--bg-surface, #ffffff);
    border-radius: 20px;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
    box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, 0.03));
    text-align: center;
}

.course-material-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main, var(--text, #0f172a));
    letter-spacing: -0.025em;
}

.course-material-title i {
    margin-right: 0.6rem;
    color: var(--primary, #2563eb);
}

.course-material-text {
    max-width: 620px;
    margin: 0 auto 2.25rem;
    color: var(--text-muted, var(--text-light, #64748b));
    line-height: 1.7;
    font-size: 1.05rem;
}

.course-btn {
    padding: 0.9rem 2.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

/* ==========================================================
   EMPTY STATE
========================================================== */
.empty-state {
    max-width: 540px;
    margin: 4rem auto;
    padding: 3.5rem 2rem;
    text-align: center;
    background: var(--bg-surface, #ffffff);
    border-radius: 20px;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
}

.empty-state h2 {
    margin-bottom: 0.75rem;
    color: var(--text-main, var(--text, #0f172a));
    font-weight: 800;
}

.empty-state p {
    color: var(--text-muted, var(--text-light, #64748b));
    line-height: 1.6;
}

/* ==========================================================
   ANIMATIONS & RESPONSIVE DESIGN
========================================================== */
.teaching-card,
.offering-card,
.teaching-college {
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .teaching-page,
    .teaching-details {
        padding: 2rem 1rem 4rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .college-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .teaching-card {
        flex-direction: column;
    }

    .course-material-section {
        padding: 2.5rem 1.25rem;
    }
}
