/* ==========================================
   DESIGN SYSTEM & CUSTOM VARIABLES
   ========================================== */
:root {
    /* Color Palette */
    --primary: #1e3a8a;          /* Deep Navy Blue */
    --primary-light: #3b82f6;    /* Bright Blue */
    --primary-dark: #172554;     /* Darker Navy */
    --accent: #f97316;           /* Orange Accent */
    --accent-hover: #ea580c;     /* Dark Orange Accent */
    --white: #ffffff;
    --light-bg: #f8fafc;         /* Very Light Slate Gray */
    --light-bg-alt: #f1f5f9;     /* Slightly darker light gray */
    --dark-text: #0f172a;        /* Deep Slate Blue */
    --body-text: #334155;        /* Slate Gray */
    --muted-text: #64748b;       /* Cool Gray */
    --border-color: #e2e8f0;     /* Border Light Gray */
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Structural variables */
    --container-width: 1200px;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 20px 35px -8px rgba(15, 23, 42, 0.12), 0 12px 20px -8px rgba(15, 23, 42, 0.06);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--body-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-text);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light-bg-alt);
}

.bg-blue {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.badge-orange {
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--accent);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-orange {
    background-color: var(--accent);
    color: var(--white);
}

.btn-orange:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background-color: var(--light-bg-alt);
    transform: translateY(-2px);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.main-header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary);
    line-height: 1.1;
}

.accent-text {
    color: var(--accent);
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 550;
    font-size: 0.95rem;
    color: var(--muted-text);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-text);
    cursor: pointer;
}

/* Mobile Drawer */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    z-index: 999;
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted-text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background-color: var(--light-bg-alt);
    color: var(--dark-text);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--body-text);
    display: block;
    padding: 0.5rem 0;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--primary-light);
    padding-left: 0.5rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--body-text);
    margin-bottom: 2rem;
    max-width: 540px;
}

.search-bar-container {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 10;
}

.search-bar-container:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.search-icon {
    font-size: 1.15rem;
    color: var(--muted-text);
}

.search-bar-container input {
    border: none;
    background: transparent;
    padding: 0.75rem;
    width: 100%;
    font-size: 0.95rem;
}

.search-bar-container input::placeholder {
    color: #94a3b8;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted-text);
    margin-top: 0.25rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #fed7aa 100%);
    border-radius: var(--border-radius-lg);
    z-index: 1;
}

.main-hero-img {
    border-radius: var(--border-radius-lg);
    z-index: 2;
    object-fit: cover;
    height: 380px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.floating-badge {
    position: absolute;
    bottom: 25px;
    left: -20px;
    background-color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 3;
    font-weight: 700;
    color: var(--dark-text);
    animation: floating 3s ease-in-out infinite;
}

.floating-badge i {
    color: #eab308;
    font-size: 1.25rem;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ==========================================
   POPULAR COURSES CATEGORIES (HOME)
   ========================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--muted-text);
    font-size: 1.05rem;
}

.flex-header {
    text-align: left;
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.course-category-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.course-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.category-icon.engineering { background-color: #eff6ff; color: #3b82f6; }
.category-icon.medical { background-color: #fdf2f8; color: #ec4899; }
.category-icon.management { background-color: #ecfdf5; color: #10b981; }
.category-icon.law { background-color: #f5f3ff; color: #8b5cf6; }

.course-category-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.course-category-card p {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 1.25rem;
}

.course-category-card .link-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-category-card .link-text i {
    transition: transform 0.2s ease;
}

.course-category-card:hover .link-text i {
    transform: translateX(3px);
}

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

/* University Card */
.uni-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.uni-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.uni-card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.uni-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.uni-card:hover .uni-card-img-wrap img {
    transform: scale(1.05);
}

.uni-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--white);
    color: var(--primary);
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.uni-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.uni-card-location {
    font-size: 0.85rem;
    color: var(--muted-text);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.uni-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.uni-card-title a:hover {
    color: var(--primary-light);
}

.uni-card-desc {
    font-size: 0.9rem;
    color: var(--body-text);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.uni-card-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.meta-label {
    color: var(--muted-text);
    font-weight: 500;
}

.meta-val {
    font-weight: 600;
    color: var(--dark-text);
}

.uni-card-footer {
    padding: 0 1.5rem 1.5rem;
}

.uni-card-footer .btn {
    width: 100%;
}

/* ==========================================
   BLOG GRID & CARDS
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

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

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-card-img-wrap {
    height: 180px;
    overflow: hidden;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--muted-text);
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.blog-card-title a:hover {
    color: var(--primary-light);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--body-text);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.blog-card-link {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-card-link:hover {
    color: var(--accent-hover);
}

/* ==========================================
   PAGE-VIEW HANDLING
   ========================================== */
.page-view {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.page-view.active {
    display: block;
    animation: fade-in-page 0.4s ease-out forwards;
}

@keyframes fade-in-page {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    padding: 3.5rem 0;
    text-align: center;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   FILTER SYSTEM (UNIVERSITIES PAGE)
   ========================================== */
.filter-wrapper {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-filter-box {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1rem;
}

.search-filter-box input {
    border: none;
    background: transparent;
    padding: 0.4rem 0.75rem;
    width: 100%;
    font-size: 0.95rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--white);
    font-weight: 550;
    cursor: pointer;
    font-size: 0.9rem;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--primary-light);
}

.results-count-container {
    margin-bottom: 2rem;
    color: var(--muted-text);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==========================================
   UNIVERSITY DETAIL VIEW LAYOUT
   ========================================== */
.uni-detail-hero {
    position: relative;
    height: 380px;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    overflow: hidden;
    color: var(--white);
}

.uni-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uni-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.2) 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 3.5rem;
    z-index: 2;
}

.uni-detail-header-content {
    width: 100%;
}

.uni-detail-header-content h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.uni-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.uni-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.uni-meta-item i {
    color: var(--accent);
}

/* Back Link */
.back-link-wrapper {
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-light);
    font-size: 0.95rem;
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

/* Main Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.detail-main-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.detail-section {
    background-color: var(--white);
    padding: 2.25rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.detail-section h2 {
    font-size: 1.65rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.detail-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-light);
}

.detail-section p {
    margin-bottom: 1rem;
    color: var(--body-text);
}

.detail-section p:last-child {
    margin-bottom: 0;
}

/* Tables inside Detail Section */
.courses-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 500px;
}

.courses-table th {
    background-color: var(--light-bg);
    padding: 1rem;
    font-weight: 650;
    color: var(--dark-text);
    border-bottom: 2px solid var(--border-color);
}

.courses-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.courses-table tr:hover {
    background-color: #f8fafc;
}

/* Info Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.sidebar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card h3 i {
    color: var(--primary-light);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.08);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted-text);
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 550;
    color: var(--dark-text);
}

.quick-fact-row {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
}

.quick-fact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.quick-fact-row .label {
    color: var(--muted-text);
    font-weight: 500;
}

.quick-fact-row .value {
    font-weight: 600;
    color: var(--dark-text);
}

/* ==========================================
   BLOG DETAILS LAYOUT
   ========================================== */
.blog-detail-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.blog-detail-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.blog-detail-header h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-detail-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--muted-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-detail-meta i {
    color: var(--accent);
}

.blog-detail-img-wrap {
    height: 450px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.blog-detail-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
}

.blog-detail-content p {
    margin-bottom: 1.5rem;
}

.blog-detail-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1.25rem;
}

.blog-detail-content h3 {
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
}

.blog-detail-content ul, .blog-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-detail-content li {
    margin-bottom: 0.5rem;
}

.blog-detail-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--muted-text);
    margin: 2rem 0;
}

.blog-detail-footer {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding-top: 2rem;
}

.share-post {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-post span {
    font-weight: 700;
    font-size: 0.95rem;
}

.share-links {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-text);
    transition: var(--transition);
}

.share-btn:hover {
    color: var(--white);
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.main-footer {
    background-color: var(--dark-text);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 5rem;
    border-top: 5px solid var(--primary-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-desc {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-col ul a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul a:hover {
    color: var(--white);
    padding-left: 5px;
}

.disclaimer-text {
    font-size: 0.825rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 550;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--accent);
}

.footer-bottom {
    background-color: #0b0f19;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accent-heart {
    color: #ef4444;
}

/* ==========================================
   BACK TO TOP & LOADING
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

.loading-state {
    text-align: center;
    padding: 5rem 0;
    color: var(--muted-text);
}

.loading-state i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.no-results i {
    font-size: 3rem;
    color: var(--muted-text);
    margin-bottom: 1rem;
}

.no-results h3 {
    margin-bottom: 0.5rem;
}

/* ==========================================
   LEGAL PORTAL STYLES
   ========================================== */
.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.legal-sidebar {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 95px; /* Stick below header */
}

.legal-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-tab {
    padding: 0.85rem 1.25rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--body-text);
    transition: var(--transition);
}

.legal-tab:hover {
    color: var(--primary-light);
    background-color: var(--light-bg-alt);
}

.legal-tab.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.legal-tab .tab-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

.legal-content {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    min-height: 500px;
}

.legal-tab-content {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.legal-tab-content.active {
    display: block;
}

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

.legal-tab-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.last-updated {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    font-weight: 500;
}

.legal-text {
    color: var(--body-text);
    font-size: 1rem;
}

.legal-text h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.legal-text p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.legal-text ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.legal-text ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-sm);
    margin: 2.5rem 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.legal-alert i {
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.legal-alert.info {
    background-color: rgba(59, 130, 246, 0.06);
    border-left: 4px solid var(--primary-light);
    color: var(--primary-dark);
}

.legal-alert.info i {
    color: var(--primary-light);
}

.legal-alert.warning {
    background-color: rgba(249, 115, 22, 0.06);
    border-left: 4px solid var(--accent);
    color: var(--dark-text);
}

.legal-alert.warning i {
    color: var(--accent);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.footer-legal-links a {
    color: var(--muted-text);
    font-weight: 500;
}

.footer-legal-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ==========================================
   COMMENTS SECTION STYLES
   ========================================== */
.comments-section {
    max-width: 800px;
    margin: 4rem auto 0;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.comments-title i {
    color: var(--accent);
}

.comment-form {
    background-color: var(--light-bg);
    padding: 1.75rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background-color: var(--white);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.no-comments {
    text-align: center;
    padding: 3.5rem 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    border: 1px dashed var(--border-color);
    color: var(--muted-text);
}

.no-comments-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    opacity: 0.7;
    animation: commentPulse 2s infinite ease-in-out;
}

@keyframes commentPulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 0.6; }
}

.no-comments h4 {
    color: var(--dark-text);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.no-comments p {
    font-size: 0.9rem;
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.5;
}

.comment-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.comment-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.2);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(59, 130, 246, 0.15);
}

.comment-author {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-text);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--muted-text);
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--body-text);
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================== */

/* Up to 1024px (Large Tablets / Laptops) */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }
    .hero-content h1 {
        font-size: 2.75rem;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Up to 768px (Tablets / Mobile) */
@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content p {
        margin: 0 auto 2rem;
    }
    
    .search-bar-container {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .main-hero-img {
        height: 280px;
    }
    
    .filter-wrapper {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .uni-detail-hero {
        height: 280px;
    }
    
    .uni-detail-header-content h1 {
        font-size: 2rem;
    }
    
    .blog-detail-img-wrap {
        height: 280px;
    }
    
    .blog-detail-header h1 {
        font-size: 2rem;
    }

    /* Legal Responsive styles */
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .legal-sidebar {
        position: static;
        padding: 0.5rem;
        border-radius: var(--border-radius-sm);
    }
    
    .legal-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: none; /* Firefox */
    }
    
    .legal-tabs::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    
    .legal-tab {
        flex-shrink: 0;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
    }

    /* Comments Responsive styles */
    .comment-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .comments-section {
        padding: 1.75rem;
    }
}

/* Up to 480px (Small Mobile Devices) */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.15rem;
    }
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .search-bar-container {
        padding: 0.35rem 0.35rem 0.35rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        background: transparent;
        box-shadow: none;
        border: none;
    }
    .search-bar-container input {
        background-color: var(--white);
        border-radius: var(--border-radius-sm);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        padding-left: 2rem;
    }
    .search-bar-container .search-icon {
        position: absolute;
        left: 2rem;
        top: 1.25rem;
    }
    .search-bar-container .btn {
        width: 100%;
        padding: 0.85rem;
    }
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .filter-controls {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    /* Legal Mobile spacing */
    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        width: 100%;
        margin: 0.25rem 0;
    }
}
