/* ==========================================================
   RajTeachers Premium Custom Stylesheet (Bootstrap 5 Extended)
   Rajasthan Teachers Web Portal (rajteachers.net.in)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #0f172a;
    --primary-light: #eff6ff;
    --primary-dark: #0f172a;
    --primary: #0f172a;
    --accent-color: #e11d48;
    --accent-hover: #be123c;
    --accent-light: rgba(225, 29, 72, 0.08);
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.08), 0 4px 6px -2px rgba(15,23,42,0.08);
    --shadow-hover: 0 20px 25px -5px rgba(15,23,42,0.12), 0 8px 10px -6px rgba(15,23,42,0.12);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --font-heading: 'Outfit', 'Noto Sans Devanagari', sans-serif;
    --font-body: 'Inter', 'Noto Sans Devanagari', sans-serif;
    --font-hindi: 'Noto Sans Devanagari', 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 15px;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

.hindi { 
    font-family: var(--font-hindi); 
}

a { 
    color: var(--accent-color); 
    text-decoration: none; 
    transition: var(--transition); 
}

a:hover { 
    color: var(--accent-hover); 
}

/* Custom Micro-Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Header & Logo styling */
.logo-title {
    font-weight: 900;
    font-size: 32px;
    letter-spacing: -0.8px;
    color: #e11d48;
    line-height: 1;
}

.logo-title span {
    color: #0f172a;
}

.logo-tagline {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #64748b;
    text-transform: uppercase;
}

.header-search input {
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
    width: 280px;
    transition: var(--transition);
}

.header-search input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.header-search button {
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
    transition: var(--transition);
}

.header-search button:hover {
    background-color: var(--accent-hover);
}

/* Sticky Custom Navbar */
.custom-navbar {
    background: linear-gradient(90deg, #0f172a 0%, #1e1b4b 50%, #311042 100%) !important;
    border-bottom: 3px solid #e11d48;
    z-index: 1020;
    padding: 2px 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.custom-navbar .nav-link {
    color: #cbd5e1 !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 14px 18px !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #e11d48, #f43f5e);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.custom-navbar .nav-link:hover {
    color: #f43f5e !important;
    transform: translateY(-2px);
}

.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after {
    width: 80%;
}

.custom-navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(225, 29, 72, 0.15) !important;
    border-radius: 6px;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 8px;
    margin-top: 0;
    border-top: 3px solid var(--accent-color);
}

.navbar .dropdown-item {
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.navbar .dropdown-item:hover {
    background: var(--accent-light);
    color: var(--accent-color);
}

/* News Ticker */
.news-ticker {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.ticker-label {
    background: var(--accent-color);
    color: #fff;
    padding: 4px 12px;
    font-weight: 850;
    font-size: 11.5px;
    white-space: nowrap;
    border-radius: 4px;
    margin-right: 15px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(225, 29, 72, 0.2);
}

.ticker-wrap {
    overflow: hidden;
    flex: 1;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    font-size: 13.5px;
    font-family: var(--font-hindi);
    font-weight: 600;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Homepage 9 Modules Matrix Grid */
.matrix-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.matrix-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(225, 29, 72, 0.3);
}

.matrix-header {
    padding: 12px 16px;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

/* Matrix Colors */
.bg-jobs { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.bg-results { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.bg-admit { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.bg-keys { background: linear-gradient(135deg, #ea580c, #f97316); }
.bg-notes { background: linear-gradient(135deg, #0369a1, #0ea5e9); }
.bg-papers { background: linear-gradient(135deg, #be123c, #f43f5e); }
.bg-tests { background: linear-gradient(135deg, #374151, #4b5563); }
.bg-teacher { background: linear-gradient(135deg, #0f766e, #10b981); }
.bg-calcs { background: linear-gradient(135deg, #be123c, #dc2626); }

.matrix-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.matrix-list-item {
    border-bottom: 1px dashed var(--border-color);
    transition: var(--transition);
}

.matrix-list-item:last-child {
    border-bottom: none;
}

.matrix-list-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    font-family: var(--font-hindi);
    line-height: 1.45;
}

.matrix-list-item a:hover {
    color: var(--accent-color);
    background-color: var(--accent-light);
}

.new-badge {
    background-color: #ef4444;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    animation: blinker 1.5s linear infinite;
    flex-shrink: 0;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Format Badges */
.format-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2.5px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.badge-pdf { background-color: #fef2f2; color: #ef4444; border: 1px solid #fee2e2; }
.badge-excel { background-color: #ecfdf5; color: #10b981; border: 1px solid #d1fae5; }
.badge-word { background-color: #eff6ff; color: #3b82f6; border: 1px solid #dbeafe; }

/* ==========================================================
   SECTION TITLE - FULL WIDTH (Stretch to sidebar)
   ========================================================== */
.section-title {
    font-size: 1.5rem;
    font-weight: 850;
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100% !important;
    display: block !important;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2.5px;
    background: var(--accent-color);
}

/* Order Cards */
.order-card {
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    color: var(--text-primary);
    text-decoration: none !important;
}

.order-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: var(--text-primary);
    text-decoration: none !important;
}

.order-card .order-icon {
    width: 44px; 
    height: 44px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.order-card .order-icon.pdf { background: #fef2f2; color: var(--accent-color); }
.order-card .order-icon.img { background: #eff6ff; color: #2563eb; }

.order-card .order-title {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-hindi);
    line-height: 1.45;
    flex: 1;
}

.order-card .order-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.order-card .order-download {
    background: var(--accent-light);
    color: var(--accent-color);
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.order-card:hover .order-download {
    background: var(--accent-color);
    color: #fff;
}

/* ==========================================================
   BLOG CARDS - FULL WIDTH (Stretch to sidebar)
   ========================================================== */
.blog-card {
    background: #fff;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.blog-card:hover {
    border-color: var(--accent-color) !important;
    box-shadow: 0 10px 20px -5px rgba(225, 29, 72, 0.15) !important;
    transform: translateY(-4px);
}

.blog-card .blog-img-wrap {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.blog-card .blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-card .blog-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100% !important;
}

.blog-card .blog-category {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.blog-card .blog-title {
    font-size: 14.5px;
    font-weight: 750;
    font-family: var(--font-hindi);
    line-height: 1.45;
    color: var(--text-primary);
    margin-bottom: 12px;
    width: 100% !important;
    display: block !important;
}

.blog-card .blog-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: auto;
}

/* ==========================================================
   SIDEBAR STYLES - RIGHT PADDING REDUCED
   ========================================================== */
.sidebar-widget {
    background: #fff;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
    padding-right: 0px !important;
}

.sidebar-widget .widget-header, .widget-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: #fff !important;
    padding: 12px 16px !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    font-family: var(--font-heading) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* Center align */
    gap: 8px !important;
    border-bottom: 3px solid #e11d48 !important; /* Rose accent */
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1) !important;
}

.sidebar-widget .widget-body { 
    padding: 0; 
}

.sidebar-link {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 4px 4px 11px !important;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-hindi);
    transition: var(--transition);
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.4;
}

.sidebar-link:last-child { 
    border-bottom: none; 
}

.sidebar-link:hover { 
    background: var(--accent-light); 
    color: var(--accent-color); 
    padding-left: 16px !important;
}

.sidebar-link i { 
    color: var(--accent-color); 
    font-size: 14px; 
    flex-shrink: 0; 
    margin-top: 2px; 
}

/* AdSense wrapper */
.sidebar-ad-wrap {
    width: 100%;
    overflow: hidden;
    margin-bottom: 16px;
    box-sizing: border-box;
    text-align: center;
}

.sidebar-ad-wrap ins,
.sidebar-ad-wrap > div {
    max-width: 100% !important;
    width: 100% !important;
}

/* Calculators */
.calc-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.calc-card h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.form-label {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1.5px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: var(--transition) !important;
    background-color: #fff !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(225,29,72,.15) !important;
    outline: none !important;
}

.result-box {
    background: linear-gradient(135deg, var(--accent-light), #fffbeb);
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 20px;
}

.result-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.data-table thead th {
    background: var(--primary-color);
    color: #fff;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 3px solid var(--accent-color);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background .15s;
}

.data-table tbody tr:hover { 
    background: var(--accent-light); 
}

.data-table tbody td {
    padding: 14px 16px;
    font-size: 13.5px;
    vertical-align: middle;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.filter-tab:hover, .filter-tab.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 700;
    padding: 8px 18px;
    font-size: 13.5px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-outline-primary {
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: rgba(255,255,255,.7);
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 4px solid var(--accent-color);
}

.site-footer h5 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 15px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.site-footer a {
    color: rgba(255,255,255,.6);
    font-size: 13.5px;
    display: block;
    margin-bottom: 8px;
    transition: var(--transition);
}

.site-footer a:hover { 
    color: #fff; 
    padding-left: 4px; 
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px;
    margin-top: 30px;
    font-size: 13px;
    text-align: center;
    color: rgba(255,255,255,.4);
}

/* Pagination */
.pagination .page-link {
    border-radius: 4px !important;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    margin: 0 2px;
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Utility Classes */
.text-hindi { font-family: var(--font-hindi); }
.bg-primary-light { background: var(--primary-light); }
.rounded-xl { border-radius: var(--radius-md); }
.shadow-custom { box-shadow: var(--shadow-sm); }
.shadow-custom-lg { box-shadow: var(--shadow-lg); }

/* ==========================================================
   Sidebar + Main Content Layout (Desktop Only)
   ========================================================== */
@media (min-width: 992px) {
    /* Main content column: 69% */
    .col-lg-8.main-content-col {
        flex: 0 0 69% !important;
        max-width: 69% !important;
    }
    
    /* Sidebar column: 28% */
    .col-lg-4.sidebar-col {
        flex: 0 0 28% !important;
        max-width: 28% !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
        margin-left: auto !important;
    }
    
    /* Blog posts ke liye full width - STRETCH TO SIDEBAR */
    .main-content-col .row {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .main-content-col .col-lg-4,
    .main-content-col .col-12 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .sidebar-col .sidebar-widget,
    .sidebar-col > div {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-right: 0 !important;
    }
    
    .sidebar-col .sidebar-link:first-child {
        padding-top: 10px !important;
    }
    
    .sidebar-col .widget-body .sidebar-link:first-of-type {
        border-top: none !important;
    }
    
    .container.pe-0 {
        padding-right: 0 !important;
    }
}

/* Mobile responsive */
@media (max-width: 991px) {
    .custom-navbar .nav-link { 
        padding: 10px 14px !important; 
    }
    
    .col-lg-4.sidebar-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-top: 24px;
    }
    
    .col-lg-8.main-content-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .container.pe-0 {
        padding-right: 12px !important;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        justify-content: center !important;
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }
    
    .top-bar .d-flex {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    
    header.bg-white .container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    
    .logo-tagline {
        font-size: 10px !important;
        letter-spacing: 1px !important;
    }
    
    .header-search {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .header-search form {
        width: 100% !important;
        display: flex !important;
    }
    
    .header-search input {
        width: 0 !important;
        flex: 1 1 auto !important;
    }
    
    .matrix-list-item a {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 576px) {
    .logo-title { 
        font-size: 26px; 
    }
    
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .article-content {
        font-size: 14.5px !important;
        line-height: 1.8 !important;
    }
    
    .section-title {
        font-size: 1.25rem !important;
    }
}

/* ==========================================================
   Admin Dashboard Styles
   ========================================================== */
body.admin-body {
    background-color: #f8fafc;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 312px;
    background: #0f172a;
    color: #cbd5e1;
    z-index: 1000;
    transition: all 0.3s ease;
    border-right: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
}

.admin-sidebar .admin-logo {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #1e293b;
    background: #0b0f19;
}

.admin-sidebar .logo-icon {
    background: var(--accent-color);
    color: #fff;
    font-weight: 900;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.admin-sidebar .logo-text {
    font-weight: 800;
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
}

.admin-sidebar .logo-sub {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.admin-nav {
    flex: 1;
    padding: 10px 10px;
    overflow-y: auto;
}

.admin-nav .nav-section-title {
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 1px;
    margin: 10px 0 4px 8px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.admin-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.admin-nav-link.active {
    color: #fff;
    background: var(--accent-color);
}

.admin-nav-link.active i {
    color: #fff;
}

.admin-nav-link i {
    font-size: 16px;
    color: #64748b;
    transition: color 0.2s;
}

.admin-nav-link:hover i {
    color: #fff;
}

.admin-main {
    margin-left: 312px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.admin-topbar {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 99;
}

.admin-content {
    padding: 30px;
    flex: 1;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

.admin-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    overflow: hidden;
}

.admin-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.admin-card-header h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.admin-card-body {
    padding: 24px;
}

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-312px);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
}

/* Admin Form Styles */
.admin-main .form-control, 
.admin-main .form-select, 
.admin-main textarea {
    border: 2.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    outline: none !important;
    transition: all 0.2s ease-in-out !important;
}

.admin-main .form-control:focus, 
.admin-main .form-select:focus, 
.admin-main textarea:focus {
    border-color: #0f172a !important;
    box-shadow: 0 0 0 3.5px rgba(15, 23, 42, 0.12) !important;
    background-color: #ffffff !important;
}

/* Portal Cards */
.portal-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 22px 12px;
    height: 100%;
    color: var(--text-primary) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
    text-decoration: none !important;
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px -10px rgba(225, 29, 72, 0.25);
    border-color: rgba(225, 29, 72, 0.45);
    color: var(--accent-color) !important;
}

.portal-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.portal-card:hover .portal-icon {
    transform: scale(1.1) rotate(4deg);
    background: var(--accent-light);
}

.portal-name {
    font-size: 13.5px;
    font-weight: 750;
    font-family: var(--font-heading);
    letter-spacing: -0.3px;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.portal-card:hover .portal-name {
    color: var(--accent-color);
}

/* Featured Image */
.home-featured-img-wrap {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.home-featured-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.home-featured-img-wrap:hover img {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .home-featured-img-wrap {
        height: auto;
    }
    .col-md-5 > a {
        display: block !important;
        height: auto;
    }
    .col-md-5 > a > .home-featured-img-wrap {
        height: auto;
    }
}

.featured-image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.featured-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* User Box Cards */
.user-box-card {
    background: #ffffff;
    border: 2px solid #dc2626;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.025);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.user-box-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #dc2626, #fca5a5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-box-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    border-color: #b91c1c;
}

.user-box-card:hover::before {
    opacity: 1;
}

/* Google AdSense */
.adsbygoogle, 
ins.adsbygoogle, 
.text-center iframe, 
.text-center ins {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    text-align: center !important;
}