/* ==========================================================================
   Editorial Single, University & Country Detail Template Styles
   Handles Table of Contents, Sticky Sidebar, Article Typography & Responsiveness
   ========================================================================== */

.university-page,
.country-page {
    background: #ffffff;
}

/* Hero Section */
.university-hero,
.country-hero {
    background: linear-gradient(135deg, #102A43 0%, #1E3A8A 50%, #CE2B37 100%) !important;
    color: white !important;
    padding: 80px 0 60px !important;
    margin-top: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.university-hero::before,
.country-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.university-hero .hero-content,
.country-hero .hero-content {
    text-align: center;
    width: 100% !important;
    max-width: 1200px !important;
    padding: 0 20px !important;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
}

/* Breadcrumb Navigation */
.hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-size: 13px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 100%;
    box-sizing: border-box;
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-breadcrumb a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.hero-breadcrumb a i {
    font-size: 13px;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.breadcrumb-current {
    color: #fff;
    font-weight: 600;
    white-space: normal;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

.university-title,
.country-title,
#hero-university-title {
    font-size: clamp(26px, 3.2vw, 52px) !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    text-align: center !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

.university-description,
.country-description {
    font-size: 18px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 auto 25px auto !important;
    max-width: 800px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* University Meta Info */
.university-meta-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.university-meta-info .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Content Layout Section */
.university-content-section,
.country-content-section {
    padding: 60px 0;
    background: #f8fafc;
    position: relative;
}

.university-layout,
.country-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Navigation */
.university-sidebar,
.country-sidebar {
    position: relative;
    align-self: start;
}

.sidebar-sticky {
    position: sticky;
    top: 90px;
    width: 300px;
    background: #0F172A;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
    border: 1px solid #1E293B;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #334155 #0F172A;
}

.sidebar-logo {
    text-align: center;
    padding: 20px;
    background: #1E293B;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 1px solid #334155;
}

.sidebar-logo .university-logo-img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0;
    padding: 16px 20px;
    background: #1E293B;
    border-bottom: 2px solid #D97706;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.university-nav,
.country-nav {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.university-nav ul,
.country-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.university-nav li,
.country-nav li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.university-nav a,
.country-nav a {
    display: block;
    padding: 10px 20px;
    color: #94A3B8;
    font-size: 13.5px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.university-nav a:hover,
.country-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #D97706;
    color: #FFFFFF;
}

.university-nav a.active,
.country-nav a.active {
    background: rgba(217, 119, 6, 0.15);
    border-left-color: #D97706;
    color: #F8FAFC;
    font-weight: 600;
}

/* Main Content Area */
.university-main-content,
.country-main-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 45px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
}

.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4 {
    color: #0F172A;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-top: 10px;
    scroll-margin-top: 110px;
    font-weight: 700;
}

.content-wrapper h2 {
    font-size: 26px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F1F5F9;
}

.content-wrapper h3 {
    font-size: 20px;
}

.content-wrapper p {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 20px;
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 20px 0;
    padding-left: 28px;
}

.content-wrapper li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #334155;
}

.content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.content-wrapper table th,
.content-wrapper table td {
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    text-align: left;
}

.content-wrapper table th {
    background: #1E293B;
    color: white;
    font-weight: 600;
}

.content-wrapper table tr:nth-child(even) {
    background: #F8FAFC;
}

.content-wrapper blockquote {
    background: #FFFBEB;
    border-left: 4px solid #D97706;
    padding: 18px 24px;
    margin: 25px 0;
    font-style: italic;
    color: #78350F;
    border-radius: 0 8px 8px 0;
}

/* Responsive */
@media (max-width: 992px) {
    .university-layout,
    .country-layout {
        grid-template-columns: 1fr;
    }
    
    .university-sidebar,
    .country-sidebar {
        order: 2;
        margin-top: 25px;
    }
    
    .sidebar-sticky {
        position: static !important;
        width: 100%;
        max-height: none;
    }
    
    .university-main-content,
    .country-main-content {
        order: 1;
        padding: 30px 20px;
    }
}
