/* 
 * UCM Common Style
 * Unified design system for University, Course, and Specialization templates.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-blue: #0369a1;
    --sticky-blue: #086DB5;
    --accent-orange: #ff7a1a;
    --accent-green: #0ca678;
    --light-blue: #e0f2fe;
    --dark-navy: #091a33;
    --slate-text: #475569;
    --tag-bg: #dcf0fa;
    --tag-text: #0369a1;
    --border-color: #e2e8f0;
    --ucm-font: 'Poppins', sans-serif;
    --ucm-h-padding: 60px;
}

/* --- Layout Reset --- */
.site-content,
.container,
.content-area,
.site-main,
.entry-content,
.post-content {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
}

.ucm-site-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #ffffff;
    min-height: 100vh;
    font-family: var(--ucm-font);
    overflow-x: clip;
}

/* --- Hero Section --- */
.ucm-hero-outer {
    background-color: #f8fafc;
    /* Subtle background for hero */
    border-bottom: 1px solid var(--border-color);
}

.ucm-hero {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px var(--ucm-h-padding);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}

.ucm-hero-content h1 {
    font-family: var(--ucm-font);
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--dark-navy);
    margin: 0 0 6px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.ucm-hero-content h1 span {
    color: var(--accent-orange);
}

.ucm-hero-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 13px;
    color: var(--slate-text);
    flex-wrap: wrap;
    align-items: center;
}

.ucm-hero-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ucm-hero-stats .dashicons {
    font-size: 17px;
    width: 17px;
    height: 17px;
    color: #64748b;
}

.stat-orange-text {
    color: var(--accent-orange);
    font-weight: 700;
}

.stat-blue-text {
    color: var(--primary-blue);
    font-weight: 700;
}

.ucm-mode-container {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ucm-mode-item {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ucm-mode-item .dashicons {
    font-size: 17px;
    color: var(--primary-blue);
}

.ucm-hero-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-tag {
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
}

.ucm-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ucm-logo-row img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    padding: 5px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.ucm-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero {
    font-family: var(--ucm-font);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-orange {
    background: #ff852d;
    color: white;
}

.btn-blue {
    background: #71a9f7;
    color: white;
}

.btn-green {
    background: var(--accent-green);
    color: white;
}

.btn-outline {
    background: #fff;
    color: var(--dark-navy);
    border: 2px solid var(--border-color);
}

.ucm-hero-visual {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.ucm-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ucm-rating-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ucm-rating-badge .dashicons {
    color: #fcc419;
}

/* --- Sticky Nav --- */
.ucm-sticky-nav {
    background: linear-gradient(90deg, #0B4391 0%, #12969B 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ucm-nav-container {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.ucm-sticky-nav ul {
    width: 100%;
    margin: 0;
    padding: 0 var(--ucm-h-padding);
    display: flex;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.ucm-sticky-nav ul::-webkit-scrollbar {
    display: none;
}

.ucm-sticky-nav li a {
    font-family: var(--ucm-font);
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: 0.2s;
}

.ucm-sticky-nav li a.active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 -4px 0 var(--accent-orange);
}

.ucm-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, #0B4391, rgba(11, 67, 145, 0));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.ucm-nav-next {
    right: 0;
    background: linear-gradient(to left, #12969B, rgba(18, 150, 155, 0));
}

.ucm-nav-prev {
    left: 0;
}

/* --- Content Grid --- */
.ucm-content-grid {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px var(--ucm-h-padding);
}

.ucm-section-block {
    padding: 40px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ucm-section-block:last-child {
    border-bottom: none;
}

.section-title {
    font-family: var(--ucm-font);
    font-size: 26px;
    color: var(--dark-navy);
    margin-bottom: 25px;
    font-weight: 800;
    border-left: 6px solid var(--primary-blue);
    padding-left: 20px;
    line-height: 1.2;
}

.ucm-entry-content {
    line-height: 1.8;
    color: var(--slate-text);
    font-size: 16px;
}

/* --- FAQ Styles --- */
.ucm-faq-container {
    margin-top: 20px;
}

.ucm-faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
}

.ucm-faq-question {
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--dark-navy);
    background: #f8fafc;
    font-size: 15px;
}

.ucm-faq-answer {
    display: none;
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    line-height: 1.6;
    color: var(--slate-text);
}

.ucm-faq-item.active .ucm-faq-answer {
    display: block;
}

.ucm-faq-item.active .ucm-faq-question {
    background: var(--light-blue);
    color: var(--primary-blue);
}

/* --- Common UI Elements --- */
.ucm-table-container {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    background: #fff;
}

.ucm-styled-table {
    width: 100%;
    border-collapse: collapse;
}

.ucm-styled-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    text-align: left;
    padding: 16px 20px;
    border-bottom: 2px solid var(--border-color);
    font-size: 14px;
}

.ucm-styled-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--slate-text);
    font-size: 14px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1200px) {
    :root {
        --ucm-h-padding: 30px;
    }

    .ucm-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .ucm-logo-row {
        justify-content: center;
    }

    .ucm-hero-stats {
        justify-content: center;
    }

    .ucm-mode-container {
        align-items: center;
    }

    .ucm-hero-tags {
        justify-content: center;
    }

    .ucm-hero-actions {
        justify-content: center;
    }

    .ucm-hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --ucm-h-padding: 20px;
    }

    .ucm-hero-content h1 {
        font-size: 1.8rem;
    }

    .ucm-sticky-nav ul {
        padding: 0 40px;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }
}