/*
Theme Name: CUET Clone
Theme URI: https://cuet.nta.nic.in/
Author: Antigravity
Author URI: https://google.com
Description: A clone of the CUET NTA website for educational purposes.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cuet-clone
*/

:root {
    /* NTA / NIC Official Color Palette */
    --primary-blue: #052963;
    /* Main Brand Color */
    --dark-blue: #052963;
    /* Darker shade for text/footers */
    --accent-orange: #FBAC1B;
    /* Highlights */
    --accent-green: #138808;
    /* Success/Active states */
    --bg-beige: #E5E2DB;

    /* Bootstrap 5 Variable Overrides */
    --bs-primary: var(--primary-blue);
    --bs-primary-rgb: 5, 41, 99;
    --bs-secondary: #f8f9fa;
    --bs-secondary-rgb: 248, 249, 250;
    --bs-success: var(--accent-green);
    --bs-success-rgb: 19, 136, 8;

    --text-color: #000;
    --bg-light: var(--bg-beige);
    --header-bg: #fff;
    --nav-bg: #f8f9fa;
    --nav-text: var(--primary-blue);
    --footer-bg: #212529;
    --card-bg: #fff;
    --border-color: #ddd;
    --font-primary: 'Roboto', sans-serif;
    
    --premium-blue-start: #2563eb;
    --premium-blue-end: #3b82f6;
    --premium-purple-start: #8b5cf6;
    --premium-purple-end: #6366f1;
    --premium-teal-start: #0d9488;
    --premium-teal-end: #14b8a6;
    
    --transition-speed: 0.3s;
    
    /* UI Polish: Glassmorphism & Depth */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --box-shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-theme="dark"] {
    --text-color: #e0e0e0;
    --bg-light: #121212;
    --header-bg: #1e1e1e;
    --nav-bg: #2d2d2d;
    --nav-text: #ffffff;
    --footer-bg: #000000;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --primary-blue: #4d8dfb;
    --dark-blue: #bbd3fb;
}

/* Global Responsive Fixes */
.btn.rounded-pill {
    white-space: nowrap;
    min-width: fit-content;
}

.countdown-container {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .site-title-main {
        font-size: 1rem;
    }
    .btn-primary-blue, .btn-outline-primary {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem;
    }
}

/* Theme Transition */
body {
    transition: background-color var(--transition-speed), color var(--transition-speed);
}
header, nav, main, footer, .card, .list-group-item {
    transition: background-color var(--transition-speed), border-color var(--transition-speed), color var(--transition-speed);
}

/* Ensure these are applied globally */
html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ... existing code ... */


.bg-primary {
    background-color: var(--primary-blue) !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

.bg-secondary {
    background-color: var(--accent-orange) !important;
    color: #fff !important;
}

.text-secondary {
    color: var(--accent-orange) !important;
}

.border-secondary {
    border-color: var(--accent-orange) !important;
}

/* Custom Badge Colors */
.badge.bg-danger {
    background-color: #dc3545 !important;
}

/* Keep standard red for 'New' */

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

ul {
    /* list-style: none; */
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

/* Top Bar */
.top-bar {
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
    font-size: 0.85rem;
    padding: 5px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Header */
.site-header {
    background: var(--header-bg);
    border-bottom: 4px solid var(--accent-orange);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
    /* Allow it to grow */
}

.emblem {
    height: 60px;
    flex-shrink: 0;
}

.site-title h1 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.site-title p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.right-logos {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.nta-logo,
.cuet-logo {
    height: 50px;
    width: auto;
}

/* Navigation */
.main-navigation {
    background: var(--nav-bg);
    color: var(--nav-text);
    position: relative;
    border: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
}


.main-navigation li {
    position: relative;
    list-style: none;
}

.main-navigation a {
    display: block;
    padding: 12px 20px;
    color: var(--bs-link-color);
    font-weight: 500;
    transition: background 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-orange) !important;
    text-decoration: none;
}

/* Dropdown support */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.main-navigation ul ul a {
    color: #333;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.main-navigation ul ul a:hover {
    background: #f8f9fa;
    color: var(--primary-blue);
}

/* Hover dropdowns for desktop only */
@media (min-width: 992px) {
    .main-navigation li:hover>ul {
        display: block;
    }
}

/* Marquee */
.news-ticker-section {
    background: var(--primary-blue) !important;
    color: #fff;
}

.news-ticker-section marquee {
    color: #fff !important;
    font-weight: bold;
}

.news-ticker-section a {
    color: #fff !important;
    text-decoration: none;
}

.news-ticker-section .badge {
    background-color: var(--accent-orange) !important;
    color: #fff !important;
}

.ticker-label {
    background: var(--accent-orange);
    color: #fff;
    padding: 5px 10px;
    margin-right: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Home Layout */
.home-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Content | Sidebar */
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
}

/* Cards & Sections */
.section-title {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 10px;
    margin-bottom: 20px;
    
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.activity-link {
    display: block;
    padding: 15px;
    background: #fff;
    border-left: 5px solid var(--accent-green);
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
}

.activity-link:hover {
    transform: translateX(5px);
    text-decoration: none;
    background: #f0fff4;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Improved responsive grid */
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widgets h3 {
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-widgets ul li {
    margin-bottom: 8px;
}

.footer-widgets a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.8rem;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet & Mobile (Max Width 992px) */
@media (max-width: 991px) {

    /* Header Adjustments */
    .header-inner {
        flex-direction: column;
        align-items: center;
        /* Center align for mobile */
        text-align: center;
    }

    .logo-section {
        flex-direction: column;
        justify-content: center;
    }

    .site-title h1 {
        font-size: 1.2rem;
    }

    .right-logos {
        justify-content: center;
        margin-top: 10px;
    }

    /* Navigation - Off-canvas or Toggle */
    .menu-toggle {
        display: flex;
        margin: 10px 0;
    }

    /* NTA Tabs */
    .nta-tabs {
        border-bottom: none;
    }

    .nta-tabs .nav-link {
        border: none;
        border-radius: 0;
        color: #666;
        background-color: #f1f1f1;
        font-weight: 500;
        padding: 10px 20px;
        margin-right: 2px;
    }

    .nta-tabs .nav-link.active {
        background-color: #fff;
        color: var(--primary-blue);
        border-top: 3px solid var(--accent-orange);
        font-weight: 700;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    }

    .nta-tab-content {
        background: #fff;
        border: 1px solid #ddd;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .nta-tab-content .list-group-item {
        font-size: 0.95rem;
    }

    .hover-primary:hover {
        color: var(--primary-blue) !important;
        text-decoration: underline !important;
    }

    /* Intro Section */
    .intro-section {
        background: #fff;
    }

    .intro-content {
        font-size: 1rem;
        line-height: 1.7;
        text-align: justify;
    }

    .intro-section h2 {
        font-size: 1.75rem;
        border-bottom: 2px solid #f1f1f1;
        padding-bottom: 10px;
    }

    .main-navigation.toggled ul {
        display: block;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation ul ul {
        position: static;
        /* Stack naturally */
        background: rgba(0, 0, 0, 0.1);
        box-shadow: none;
    }

    .main-navigation ul ul a {
        color: #ddd;
        padding-left: 30px;
        /* Indent submenus */
    }

    /* Layout */
    .home-layout {
        grid-template-columns: 1fr;
        /* Stack sidebar below content */
    }
}

/* Mobile Small (Max Width 576px) */
@media (max-width: 576px) {
    .top-bar-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .site-title-main {
        font-size: 0.95rem !important;
        padding: 0 10px;
    }

    .header-tools {
        gap: 8px !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .countdown-container {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
    }
}

/* Dynamic Menu Tabs */
.nta-custom-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nta-custom-menu li {
    position: relative;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: flex-start;
}

.nta-custom-menu li:last-child {
    border-bottom: none;
}

.nta-custom-menu li::before {
    content: "•";
    color: #dc3545;
    /* text-danger */
    margin-right: 10px;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.nta-custom-menu li a {
    text-decoration: none;
    color: #212529;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.nta-custom-menu li a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ============================================
   Premium Header Styling - All Screens
   ============================================ */

/* Header Title Section */
.header-title-section {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 2px solid rgba(5, 41, 99, 0.1);
}

/* Header Wrapper */
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 991px) {
    .header-wrapper {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1rem 0;
        gap: 20px;
    }
    .site-title-wrapper {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .header-tools {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .site-title-main {
        font-size: 1.1rem !important;
    }
    .site-name br {
        display: none !important; /* Let CSS handle the wrap naturally */
    }
}

/* Site Title - All Screens */
.site-title-wrapper {
    flex: 1;
    text-align: center;
}

.site-title-main {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

.site-title-main a {
    text-decoration: none;
}

.site-title-main .site-name {
    background: linear-gradient(135deg, #052963 0%, #0a4299 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.site-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

/* Premium Mobile Toggler */
.premium-toggler {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(5, 41, 99, 0.1) 0%, rgba(251, 172, 27, 0.1) 100%);
    border: 2px solid rgba(5, 41, 99, 0.2);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    z-index: 1050; /* Ensure it stays above the navigation menu overlay */
}

.premium-toggler:hover {
    background: linear-gradient(135deg, rgba(5, 41, 99, 0.15) 0%, rgba(251, 172, 27, 0.15) 100%);
    border-color: #052963;
    transform: scale(1.05);
}

.premium-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 41, 99, 0.2);
}

/* Animated Hamburger Lines */
.toggler-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #052963 0%, #0a4299 100%);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* When menu is OPEN (not collapsed) - Transform to X */
.premium-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: translateY(20px) rotate(45deg);
}

.premium-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.premium-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 767px) {
    .main-navigation {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .site-title-wrapper {
        text-align: unset;
    }

    #navbar {
        margin-top: 1rem;
    }

    .navbar-nav {
        background: linear-gradient(135deg, rgba(5, 41, 99, 0.03) 0%, rgba(251, 172, 27, 0.03) 100%);
        border-radius: 12px;
        padding: 0.5rem;
    }

    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.875rem 1.25rem;
        border-radius: 8px;
        font-weight: 600;
        color: #052963;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(135deg, #FBAC1B 0%, #ff9800 100%);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: linear-gradient(135deg, rgba(5, 41, 99, 0.08) 0%, rgba(251, 172, 27, 0.08) 100%);
        padding-left: 1.75rem;
    }

    .navbar-nav .nav-link:hover::before,
    .navbar-nav .nav-link.active::before {
        transform: scaleY(1);
    }

    /* Dropdown Menu Mobile */
    .navbar-nav .dropdown-menu {
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(5, 41, 99, 0.1);
        border-radius: 8px;
        margin-top: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .dropdown-item {
        padding: 0.75rem 1.5rem;
        color: #052963;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .navbar-nav .dropdown-item:hover {
        background: linear-gradient(135deg, rgba(251, 172, 27, 0.1) 0%, rgba(251, 172, 27, 0.05) 100%);
        padding-left: 2rem;
    }
}

/* Desktop - Hide Only Toggler */
@media (min-width: 768px) {
    .premium-toggler {
        display: none !important;
    }

    .site-title-main {
        font-size: 1.75rem;
    }

    .site-subtitle {
        font-size: 0.95rem;
    }
}

/* Tablet Adjustments */
@media (max-width: 991px) and (min-width: 768px) {
    .site-title-main {
        font-size: 1.3rem;
    }

    .site-subtitle {
        font-size: 0.8rem;
    }
}

/* Mobile Small Screens */
@media (max-width: 576px) {
    .site-title-main {
        font-size: 1rem;
    }

    .site-subtitle {
        font-size: 0.7rem;
    }
}

/* Mobile Medium Screens */
@media (max-width: 767px) and (min-width: 577px) {
    .site-title-main {
        font-size: 1.2rem;
    }

    .site-subtitle {
        font-size: 0.75rem;
    }
}

/* ============================================
   Footer Link Styling
   ============================================ */

.site-footer a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: #ff9800;
    text-decoration: underline;
}

.footer-widgets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
}

.footer-widgets ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

.footer-widgets h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(251, 172, 27, 0.3);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-orange);
    font-weight: 600;
}

/* ============================================
   Premium Tool Gradients & Utilities
   ============================================ */
.bg-gradient-premium-blue {
    background: linear-gradient(135deg, var(--premium-blue-start) 0%, var(--premium-blue-end) 100%) !important;
}
.bg-gradient-premium-purple {
    background: linear-gradient(135deg, var(--premium-purple-start) 0%, var(--premium-purple-end) 100%) !important;
}
.bg-gradient-premium-teal {
    background: linear-gradient(135deg, var(--premium-teal-start) 0%, var(--premium-teal-end) 100%) !important;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}
.hover-lift:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}

.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.bg-light-blue { background-color: var(--light-blue) !important; }
.transition-all { transition: all 0.3s ease; }

/* ============================================
   Advanced Premium Animations & UI
   ============================================ */

/* Glassmorphism Classes */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float { animation: float 4s ease-in-out infinite; }

/* Tool Card Polish */
.card-premium {
    border-radius: 1.5rem !important;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: var(--box-shadow-premium);
    transition: var(--transition-smooth) !important;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-15%, -15%);
    pointer-events: none;
}

.card-premium:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .card-premium:hover {
        transform: none;
    }
    .card-premium {
        padding: 1.5rem !important;
    }
}

/* Typography Refinement */
h1, h2, h3, .h1, .h2, .h3 {
    letter-spacing: -0.025em;
    font-weight: 700;
}

.trending-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-orange);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(251, 172, 27, 0.3);
}

.bg-pattern-dots {
    background-image: radial-gradient(#2563eb 0.5px, transparent 0.5px);
    background-size: 24px 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .h1, h1 { font-size: 1.75rem !important; }
    .h2, h2 { font-size: 1.5rem !important; }
    .lead { font-size: 1rem !important; }
}

/* --- Language Switcher & Google Translate Hiding --- */
#google_translate_element {
    display: none !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

.lang-switch-wrapper .btn-primary-blue {
    transition: all 0.3s ease;
    min-width: 70px;
    border: 1px solid rgba(255,255,255,0.2);
}

.lang-switch-wrapper .btn-primary-blue:hover {
    background-color: var(--accent-orange, #f7b733); /* Warning color for contrast on switch */
    border-color: var(--accent-orange, #f7b733);
    transform: scale(1.05);
}

/* Hide Google's "Translate" tooltip */
.goog-te-balloon-frame {
    display: none !important;
}

/* --- University Archive Premium Overhaul --- */
.uni-hero-premium {
    background: linear-gradient(135deg, #001f3f 0%, #003366 50%, #001f3f 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    color: white;
    padding: 25px 0;
    box-shadow: inset 0 -40px 100px rgba(0,0,0,0.2), 0 10px 30px rgba(0,0,0,0.1);
    margin-top: -24px; /* Compensate for potential margin from news ticker */
}

.uni-hero-premium .position-absolute {
    pointer-events: none;
}

.uni-card-glass {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(8px);
    border-radius: 1.25rem !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.uni-card-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 51, 102, 0.12);
    border-color: rgba(0, 51, 102, 0.1) !important;
}

.uni-logo-box {
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.uni-logo-box img {
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
    transition: transform 0.4s ease;
}

.uni-card-glass:hover .uni-logo-box img {
    transform: scale(1.08);
}

.uni-badge-floating {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: white;
    color: #003366;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-transform: uppercase;
}

.uni-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
    margin-right: 12px;
}

.uni-meta-item i {
    color: #3b82f6;
    width: 14px;
}

/* Sidebar Widget Refresh */
.sidebar-wrapper .widget {
    background: #fff;
    border-radius: 1rem;
    padding: 24px;
    border: 1px solid #f1f5f9;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.sidebar-wrapper .widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #0f172a;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-wrapper .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #3b82f6;
    border-radius: 4px;
}

.sidebar-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-wrapper ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
}

.sidebar-wrapper ul li:last-child {
    border-bottom: none;
}

.sidebar-wrapper ul li a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.sidebar-wrapper ul li a:hover {
    color: #3b82f6;
}

/* Mobile Scroll Nav */
.mobile-scroll-container {
    padding: 10px 0;
    margin-bottom: 30px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.mobile-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Fix single university spacing */
.single-university .entry-content {
    color: #334155;
    line-height: 1.7;
}

.goog-tooltip {
    display: none !important;
}

.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}/* Hide Google Translate Toolbar & Popups */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}
.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Fix for Google Translate repositioning the body */
body > .skiptranslate {
    display: none !important;
}

/* Language Toggle Pulse Effect */
@keyframes translatePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(5, 41, 99, 0.4); }
    100% { transform: scale(1); }
}

.pulse-effect {
    animation: translatePulse 0.5s ease-in-out;
}

#lang-toggle {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#lang-toggle:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: #0a4299;
}


/* Premium Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0; /* Hidden initially, then animated */
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

.hover-lift:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

button, .btn {
    transition: all 0.3s ease;
}

/* Premium Hero Search UI */
.premium-hero-search .input-group {
    background: #ffffff;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-hero-search .form-control {
    font-size: 0.95rem;
    color: #1e293b;
}

.premium-hero-search .form-control::placeholder {
    color: #94a3b8;
}

.premium-hero-search .btn-primary-blue {
    background: #052963;
    border: none;
    padding: 10px 25px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.premium-hero-search .btn-primary-blue:hover {
    background: #0a4299;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 41, 99, 0.3);
}

@media (max-width: 767px) {
    .search-hero-section {
        padding: 2.5rem 0 !important; /* Slightly more compact */
    }
    .search-hero-section h1.display-5 {
        font-size: 1.6rem !important;
        margin-bottom: 1.2rem !important;
        padding: 0 15px;
    }
    /* Robust suppression of backgrounds circles on mobile */
    .search-hero-section .rounded-circle,
    .search-hero-section [class*="rounded-circle"],
    .uni-hero-premium .rounded-circle {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

@media (max-width: 576px) {
    .premium-hero-search .input-group {
        border-radius: 0 !important; /* Kill the giant oval */
        flex-direction: column !important;
        background: transparent !important; 
        box-shadow: none !important;
        padding: 0 !important;
        gap: 12px !important;
        border: none !important;
    }
    .premium-hero-search .input-group > * {
        width: 100% !important;
        border-radius: 12px !important; /* Clean rounded corners for stacked items */
        margin: 0 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        flex: none !important;
    }
    .premium-hero-search .input-group-text {
        display: none !important;
    }
    .premium-hero-search .form-control {
        background: #ffffff !important;
        padding: 16px 20px !important;
        border: none !important;
        height: auto !important;
        min-height: 55px;
        text-align: center;
    }
    .premium-hero-search .btn-primary-blue {
        padding: 16px !important;
        font-size: 0.95rem !important;
        height: auto !important;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100% !important;
    }
}

/* Search Result Specific Styles */
.search-result-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 16px;
    background: #ffffff;
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}

.search-badge-pill {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 50px;
}

.search-badge-university { background: rgba(5, 41, 99, 0.1); color: #052963; }
.search-badge-news { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.search-badge-article { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.search-badge-page { background: rgba(108, 117, 125, 0.1); color: #6c757d; }
.search-badge-default { background: rgba(15, 23, 42, 0.1); color: #0f172a; }

/* ============================================
   Premium Article UI (Theme-Centric)
   ============================================ */

/* Archive Card Redesign (Vertical Grid Style) */
.premium-post-card {
    border-radius: 1.25rem !important;
    border: 1px solid rgba(5, 41, 99, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.premium-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(5, 41, 99, 0.1) !important;
    border-color: rgba(251, 172, 27, 0.3) !important;
}

/* Force Square/Ratio Article Images in Archive Grid */
.premium-post-card .img-fluid {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.premium-post-card:hover .img-fluid {
    transform: scale(1.1);
}

/* Pagination Premium Styling */
.pagination-premium {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.pagination-premium .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.pagination-premium .page-numbers.current,
.pagination-premium .page-numbers:hover {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.theme-premium-search .input-group {
    border: 1px solid rgba(5, 41, 99, 0.1);
    transition: all 0.3s ease;
}

.theme-premium-search .input-group:focus-within {
    border-color: var(--accent-orange);
    box-shadow: 0 10px 25px rgba(5, 41, 99, 0.1) !important;
}

/* UI Utility: Line Clamping */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em; /* Ensure consistent title height for alignment */
}

/* Single Article Hero (Solid Navy) */
.article-hero-theme {
    background-color: var(--primary-blue) !important;
    border-bottom: 4px solid var(--accent-orange);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

/* Accent Badge for Category */
.theme-badge-saffron {
    background-color: var(--accent-orange) !important;
    color: var(--primary-blue) !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(251, 172, 27, 0.2);
}

/* Article Typography Refinement */
.article-body-premium {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    line-height: 1.85;
    color: #1e293b;
}

.article-body-premium h2, 
.article-body-premium h3 {
    color: var(--primary-blue);
    font-weight: 800;
    margin-top: 2.5rem;
    border-left: 4px solid var(--accent-orange);
    padding-left: 15px;
}

.article-meta-theme {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.article-meta-theme i {
    color: var(--accent-orange);
}

/* Featured Image Wrapper */
.featured-image-premium {
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(5, 41, 99, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* External Link Box (Clean Theme Style) */
.external-link-theme-box {
    background-color: #f8fafc;
    border: 1px solid rgba(5, 41, 99, 0.05);
    border-left: 5px solid var(--primary-blue);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

/* Sidebar Polish */
.sidebar-article-widget .widget-title {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    font-size: 1rem;
    margin-bottom: 0;
}

.sidebar-article-widget .widget-body {
    border: 1px solid rgba(5, 41, 99, 0.1);
    border-radius: 0 0 8px 8px;
    padding: 15px;
}

/* Utility Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 991px) {
    .article-hero-theme {
        padding: 40px 0 !important;
        text-align: center;
    }
}

/* ==========================================================================
   NEW HEADER DESIGN (Based on Layout Image)
   ========================================================================== */

/* Top Bar */
.top-bar {
    background-color: var(--primary-blue);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: white;
}

.top-bar .btn-orange {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.top-bar .btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 172, 27, 0.3);
}

.top-bar .btn-blue {
    background-color: #2b5a9a;
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.top-bar .btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 90, 154, 0.3);
}

/* Main Header */
.site-header-main {
    background: #fff;
    padding: 15px 0;
    border-bottom: 2px solid var(--accent-orange);
    position: relative;
    z-index: 1000;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-box {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-block;
}

.site-info .site-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.1;
    margin: 0;
}

.site-info .site-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-weight: 500;
    display: none; /* Hidden by default, shown on XL screens only */
}

@media (min-width: 1200px) {
    .site-info .site-subtitle {
        display: block !important;
    }
}

/* Navigation Menu - Refined Thin Design */
.navbar-main .navbar-nav .nav-item {
    margin-left: 8px;
}

.navbar-main .navbar-nav .nav-link {
    color: #374151 !important; /* Slightly softer dark gray */
    font-weight: 700 !important;
    padding: 6px 16px !important; /* Reduced vertical padding for 'thin' look */
    border-radius: 50px !important; /* Modern pill shape */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.3px;
    border: 1px solid transparent !important;
}

.navbar-main .navbar-nav .nav-link:hover {
    background-color: #f3f4f6 !important;
    color: var(--primary-blue) !important;
    transform: translateY(-1px);
}

/* Refined Active State - Thin & Premium */
.navbar-main .navbar-nav .nav-item.active .nav-link,
.navbar-main .navbar-nav .current-menu-item > .nav-link {
    background-color: var(--primary-blue) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(5, 41, 99, 0.15);
}


/* Intermediate Desktop (992px to 1200px) */
@media (min-width: 992px) and (max-width: 1210px) {
    .navbar-main .navbar-nav .nav-link {
        padding: 10px 8px !important;
        font-size: 0.85rem !important;
    }
    .logo-wrapper {
        gap: 8px !important;
    }
    .logo-box {
        padding: 8px 12px !important;
        font-size: 1.2rem !important;
    }
    .site-info .site-name {
        font-size: 1rem !important;
    }
    .top-bar .btn-orange, 
    .top-bar .btn-blue {
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
    }
}

/* Mobile Adjustments for New Header */
@media (max-width: 991px) {
    .site-header-main .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 5px 10px !important;
        flex-wrap: nowrap !important;
        max-width: 100% !important;
        overflow: visible !important;
        position: static !important; /* Allow collapse to anchor to header-main */
    }
    
    .logo-wrapper {
        flex: 0 1 auto !important;
        min-width: 0;
        max-width: calc(100% - 60px); /* Leave space for hamburger */
    }

    .logo-wrapper a {
        gap: 6px !important;
        overflow: hidden;
    }

    .logo-box {
        padding: 4px 8px !important;
        font-size: 0.9rem !important;
        border-radius: 4px !important;
        flex-shrink: 0;
    }

    .site-info {
        min-width: 0;
    }

    .site-info .site-name {
        font-size: 0.95rem !important;
        white-space: nowrap;
        margin: 0 !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .navbar-main {
        width: auto !important;
        margin-left: 10px !important;
        padding: 0 !important;
        flex-shrink: 0;
        position: static !important; /* Don't anchor dropdown here */
    }

    .premium-toggler {
        width: 40px !important;
        height: 35px !important;
        padding: 8px !important;
        margin: 0 !important;
        background: #f8f9fa !important;
        border: 1px solid #ddd !important;
        border-radius: 6px !important;
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .toggler-line {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--primary-blue);
        border-radius: 2px;
        transition: all 0.3s;
    }
    
    .top-bar .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
    }

    .top-bar-left {
        gap: 8px !important;
        font-size: 0.7rem !important;
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
    }
    
    .top-bar-right {
        gap: 4px !important;
        flex-shrink: 0;
    }

    .top-bar .btn-orange, 
    .top-bar .btn-blue {
        padding: 4px 10px !important;
        font-size: 0.7rem !important;
        white-space: nowrap;
    }
    
    .top-bar .btn-orange i,
    .top-bar .btn-blue i {
        font-size: 14px !important;
        margin: 0 !important;
    }
    
    /* Stronger label hiding to prevent top-bar overflow */
    @media (max-width: 600px) {
        .top-bar .label-text { display: none !important; }
        .top-bar .btn-orange, .top-bar .btn-blue { padding: 4px 8px !important; }
        .top-bar-left { font-size: 0.65rem !important; gap: 5px !important; }
    }
    
    /* Ensure News Ticker doesn't cause overflow */
    .news-ticker-section .container, 
    .news-ticker-section .row {
        max-width: 100% !important;
        margin: 0 !important;
        overflow: hidden;
    }

    /* Fixed alignment for mobile header */
    .site-header-main {
        padding: 8px 0 !important;
    }
    
    .navbar-main .navbar-collapse {
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1100;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        padding: 20px !important;
        border-top: 1px solid #eee;
        display: none !important; /* Managed by .show class */
    }
    
    .navbar-main .navbar-collapse.show {
        display: block !important;
    }

    .navbar-main .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin: 0 !important;
    }
    
    /* Animation for the toggler when open */
    .premium-toggler:not(.collapsed) .toggler-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .premium-toggler:not(.collapsed) .toggler-line:nth-child(2) { opacity: 0; }
    .premium-toggler:not(.collapsed) .toggler-line:nth-child(3) { transform: rotate(-45deg) translate(7px, -8px); }
}

/* Prevent any horizontal scroll from the news ticker or header */
#wrapper {
    overflow-x: hidden !important;
}


/* =============================================
   RE-DESIGNED QUICK ACTION CARDS
   ============================================= */
.quick-action-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
}

.quick-action-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.qa-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

/* Tints for Icon Boxes */
.qa-icon-box.bg-light-blue   { background-color: #eef4ff; color: #3b82f6; }
.qa-icon-box.bg-light-orange { background-color: #fff7ed; color: #f97316; }
.qa-icon-box.bg-light-green  { background-color: #f0fdf4; color: #22c55e; }

.quick-action-card .card-title {
    color: #052963;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.quick-action-card .card-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

.quick-action-card .btn-cta {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    transition: all 0.2s;
}

.btn-cta.btn-dark-blue { background-color: #1e3a8a; color: white; }
.btn-cta.btn-orange    { background-color: #f59e0b; color: white; }
.btn-cta.btn-green     { background-color: #10b981; color: white; }

.btn-cta:hover {
    transform: scale(1.05);
    opacity: 0.9;
    color: white;
}

/* =============================================
   UNIVERSITY LISTING (IMAGE 3 LAYOUT)
   ============================================= */
.uni-cat-header {
    background: #052963;
    color: white;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uni-cat-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uni-cat-header .view-all-link {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.uni-cat-subtitle {
    background-color: #f8faff;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: #555;
    border-bottom: 1px solid #eee;
}

.uni-card-grid {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.uni-card-premium {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.uni-card-premium:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.uni-card-main {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.uni-logo-box {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    overflow: hidden;
}

.uni-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.uni-info-content {
    min-width: 0;
}

.uni-info-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uni-estd {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 10px;
}

.uni-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-badge {
    background: #f0f7ff;
    color: #3b82f6;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.btn-view-more {
    width: 100%;
    background: var(--primary-blue) !important;
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-view-more:hover {
    background: #fbac1b !important; /* Theme accent color on hover */
    color: white !important;
}


/* =============================================
   DEFAULT TABLE ENHANCEMENTS
   ============================================= */


/* =============================================
   NORMAL THIN GRID TABLE (NAVY HEADER)
   ============================================= */
.wp-block-table, 
.entry-content table,
.article-body-premium table {
    border-collapse: collapse !important;
    width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.9rem !important;
}

.wp-block-table table {
    border: none !important;
}

/* Thin Navy Header */
.wp-block-table thead th,
.entry-content table thead th,
.article-body-premium table thead th {
    background-color: #052963 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 8px 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: left !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.wp-block-table tbody td,
.entry-content table tbody td,
.article-body-premium table tbody td {
    padding: 8px 15px !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    line-height: 1.4 !important;
}

/* Zebra Striping: One row lite grey, one row white */
.wp-block-table tbody tr:nth-child(even) td,
.entry-content table tbody tr:nth-child(even) td {
    background-color: #f8fafc !important;
}

.wp-block-table tbody tr:nth-child(odd) td,
.entry-content table tbody tr:nth-child(odd) td {
    background-color: #ffffff !important;
}

/* =============================================
   IMPORTANT NOTE BLOCK PATTERN
   ============================================= */
.important-note-premium {
    background-color: #fff1f2 !important; /* Very light pink/red */
    border-left: 6px solid #e11d48 !important; /* Solid red border */
    padding: 1.5rem 2rem !important;
    border-radius: 8px !important;
    margin: 2.5rem 0 !important;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.05) !important;
    position: relative;
    overflow: hidden;
}

.important-note-premium p {
    margin: 0 !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: #374151 !important;
    font-family: inherit !important;
}

.important-note-premium strong {
    color: #991b1b !important;
    font-weight: 800 !important;
    margin-right: 4px;
}

/* =============================================
   SEARCH RESULTS GRID LAYOUT
   ============================================= */
.search-results-grid {
    margin-top: 10px;
}

.search-result-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #ffffff;
    border: 1px solid #f0f0f0 !important;
}

.search-result-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(5, 41, 99, 0.1) !important;
    border-color: var(--primary-blue) !important;
}

.search-result-thumb-top {
    border-bottom: 1px solid #f8f8f8;
}

.search-result-card .result-title a {
    color: #052963 !important;
}

.search-result-card .result-title a:hover {
    color: #fbac1b !important;
}

/* Search Badges */
.search-badge-pill {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-badge-university { background: #eef2ff; color: #4338ca; }
.search-badge-news       { background: #fff7ed; color: #c2410c; }
.search-badge-article    { background: #f0fdf4; color: #15803d; }
.search-badge-default    { background: #f3f4f6; color: #4b5563; }

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

@media (max-width: 768px) {
    .search-result-card {
        margin-bottom: 20px;
    }
}

/* =============================================
   PREMIUM FOOTER STYLES
   ============================================= */
.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

.site-footer {
    position: relative;
    z-index: 10;
}

.footer-brand {
    letter-spacing: -0.5px;
}

.footer-desc {
    line-height: 1.8;
}

.footer-social .social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

.footer-title {
    letter-spacing: 1px;
    position: relative;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: block;
}

.footer-list a:hover {
    color: white !important;
    padding-left: 5px;
}

.footer-bottom-links a:hover {
    opacity: 1 !important;
}

/* Floating Buttons */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 50%;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(251, 172, 27, 0.3);
    z-index: 9999;
    transition: all 0.3s;
    cursor: pointer;
}

.back-to-top-btn:hover {
    transform: translateY(-5px);
    background: #e59a16;
}

/* Premium Pagination Fix */
.premium-pagination .nav-links,
.pagination-premium .nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.premium-pagination .page-numbers,
.pagination-premium .page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #fff;
    color: #052963;
    border: 1px solid #e2e8f0;
    border-radius: 50% !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.premium-pagination .page-numbers:hover,
.pagination-premium .page-numbers:hover {
    background: #f8fafc;
    border-color: #052963;
    transform: translateY(-3px);
    color: #052963;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.premium-pagination .page-numbers.current,
.pagination-premium .page-numbers.current {
    background: #052963 !important;
    color: #fff !important;
    border-color: #052963 !important;
    box-shadow: 0 10px 20px rgba(5, 41, 99, 0.2) !important;
}

.premium-pagination .page-numbers.dots,
.pagination-premium .page-numbers.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: default;
    transform: none;
}

/* Fix for cases where buttons are inside links */
.premium-pagination .nav-links a span.btn,
.pagination-premium .nav-links a span.btn {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    display: inline !important;
    color: inherit !important;
}

@media (max-width: 991px) {
    .footer-chat-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
}




