/* Project MoSAic Modern Premium UI Stylesheet (modern-mosaic.css)
   Completely redesigned layout, branding, typography, dashboard elements, and navigation for a state-of-the-art academic portal. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Pure Modern Brand Palette: Black, White, and Custom Blue #345dab */
    --mosaic-primary: #000000;         /* Pure premium Black */
    --mosaic-primary-hover: #345dab;   /* Exact requested Brand Blue */
    --mosaic-primary-light: #f4f7fc;   /* Soft premium slate/blue background */
    --mosaic-secondary: #345dab;       /* Accent Blue */
    --mosaic-secondary-hover: #264684; /* Darker Brand Blue */
    --mosaic-secondary-light: #f5f8ff; /* Soft Brand Blue tint */
    
    --mosaic-ink: #000000;             /* Pure black for high readability */
    --mosaic-slate-800: #0f172a;       /* Slate 900 for dark texts */
    --mosaic-slate-700: #334155;       /* Slate 700 */
    --mosaic-muted: #64748b;           /* Slate 500 */
    --mosaic-slate-400: #94a3b8;       /* Slate 400 */
    --mosaic-slate-300: #cbd5e1;       /* Slate 300 */
    --mosaic-line: #e2e8f0;            /* Slate 200 hair lines */
    --mosaic-line-light: #f1f5f9;    /* Slate 100 hair lines */
    --mosaic-bg: #ffffff;            /* Pure white background instead of dingy grey */
    --mosaic-card: #ffffff;
    
    --mosaic-accent: #345dab;        /* Primary Accent Color */
    --mosaic-accent-light: #f0f4fa;  
    
    /* Premium High-End Minimalist Shadows */
    --mosaic-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
    --mosaic-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.04);
    --mosaic-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.06);
    --mosaic-shadow-xl: 0 30px 70px rgba(0, 0, 0, 0.08);
    --mosaic-shadow-premium: 0 40px 90px rgba(52, 93, 171, 0.12);
    
    /* System font stacks override */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

/* Global Styles & Kinetic Smooth Scroll */
html {
    background: var(--mosaic-bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--mosaic-slate-700);
    background: var(--mosaic-bg) !important;
    font-family: var(--font-sans);
    font-size: 16px; /* Increased font scale base by 1 */
    line-height: 1.8;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Global Container Optimization - Now massively wider (1600px max) */
.wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

/* Seamless Alignment Across All Elements */
.container,
#main-nav,
.mosaic-hero-wrap,
#main {
    max-width: 1600px; /* Vastly expanded width to feel high-end, immersive and full */
    width: calc(100% - 64px); /* Optimized padding gap for desktop viewports */
    margin-left: auto;
    margin-right: auto;
}

/* Redesigned Header: Premium Modern Gradient Mesh */
#branding.mosaic-branding {
    position: relative;
    overflow: visible;
    z-index: 10;
    padding: 0 0 60px; /* Decreased bottom padding to align layout density */
    background: 
        radial-gradient(circle at 5% 10%, rgba(52, 93, 171, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 95% 15%, rgba(0, 0, 0, 0.04) 0%, transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfd 50%, #ffffff 100%);
    border-bottom: 1px solid var(--mosaic-line-light);
}

#branding.mosaic-branding:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -60px;
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: -1;
}

.hgroup-wrap {
    padding: 32px 0 16px; /* Reduced vertical padding */
    border: 0;
}

#site-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#site-title {
    margin: 0;
    font-family: var(--font-heading);
}

#site-title a {
    color: var(--mosaic-ink);
    font-size: clamp(36px, 4vw, 52px); /* Slightly increased size for modern typography impact */
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-decoration: none;
    background: linear-gradient(135deg, #000000 40%, var(--mosaic-primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

#site-title a:hover {
    transform: scale(1.01);
}

#site-description {
    max-width: 900px;
    margin: 10px 0 0;
    color: var(--mosaic-muted);
    font-size: 16px !important; /* Increased font size */
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Glassmorphic Ultra-Wide Horizontal Navigation Bar */
#main-nav {
    position: relative;
    z-index: 100;
    min-height: 0;
    margin-top: -12px;
    margin-bottom: 40px; /* Integrated seamlessly toward the hero section */
    padding: 6px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 999px;
    box-shadow: var(--mosaic-shadow-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: visible;
    text-shadow: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-nav:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(52, 93, 171, 0.25);
    box-shadow: var(--mosaic-shadow-xl);
}

#main-nav > ul {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

#main-nav li {
    float: none !important;
    position: relative;
    list-style: none;
    padding: 0;
}

#main-nav a {
    float: none !important;
    display: block;
    height: auto;
    min-height: 0;
    padding: 10px 24px;
    color: var(--mosaic-slate-700);
    background: transparent;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 15px; /* Increased font scale */
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-nav a:hover,
#main-nav li:hover > a,
#main-nav a:focus {
    color: var(--mosaic-primary-hover); /* exact brand hover colour */
    background: rgba(52, 93, 171, 0.06);
}

#main-nav ul li.current_page_item > a,
#main-nav ul li.current-menu-item > a,
#main-nav ul li.current_page_ancestor > a,
#main-nav ul li.current-menu-ancestor > a {
    color: #ffffff;
    background: linear-gradient(135deg, var(--mosaic-primary-hover), #203e7a);
    box-shadow: 0 8px 24px rgba(52, 93, 171, 0.3);
}

/* Dropdown menus stylings */
#main-nav ul li ul {
    position: absolute;
    display: block !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    top: 52px;
    left: 0;
    width: 290px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow: var(--mosaic-shadow-xl);
    overflow: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-nav ul li:hover ul {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#main-nav ul li ul li {
    border: 0;
}

#main-nav ul li ul li a,
#main-nav ul li.current-menu-item ul li a,
#main-nav ul li.current_page_item ul li a,
#main-nav ul li.current_page_ancestor ul li a,
#main-nav ul li.current-menu-ancestor ul li a {
    color: var(--mosaic-slate-700);
    background: #ffffff;
    box-shadow: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

#main-nav ul li ul li a:hover,
#main-nav ul li ul li:hover > a {
    color: var(--mosaic-primary-hover);
    background: var(--mosaic-accent-light);
}

/* Expanded & Integrated Hero Wrapper
   Spans exactly from menu end down to start of content block */
.mosaic-hero-wrap {
    position: relative;
    z-index: 5;
    margin-top: -12px;
    margin-bottom: 24px;
    animation: mosaicRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Abstract modern blueprint grid layout to modernize traditional hero sliders */
.mosaic-hero-wrap:before {
    content: "";
    position: absolute;
    inset: -32px -32px -40px;
    border-radius: 40px;
    background: 
        radial-gradient(circle at 5% 50%, rgba(52, 93, 171, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 95% 50%, rgba(0, 0, 0, 0.03) 0%, transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2));
    pointer-events: none;
    z-index: -1;
}

.featured-slider,
.featured-slider.mosaic-hero-slider,
.featured-slider .slider-cycle,
.featured-slider .unslider,
.featured-slider .unslider-wrap {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.featured-slider.mosaic-hero-slider {
    display: block !important;
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 32px; /* Smoother curve */
    box-shadow: var(--mosaic-shadow-premium);
    overflow: hidden;
}

.featured-slider.mosaic-hero-slider:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(52, 93, 171, 0.02) 0%, transparent 20%, transparent 80%, rgba(52, 93, 171, 0.02) 100%);
    pointer-events: none;
    z-index: 3;
}

.mosaic-hero-slider > ul,
.mosaic-hero-slider .unslider-wrap,
.mosaic-hero-slider li,
.mosaic-hero-slider p {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: 0;
}

.mosaic-hero-slider.single-slide li,
.mosaic-hero-slider.single-slide p,
.mosaic-hero-slider.single-slide img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.mosaic-hero-slider img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: clamp(380px, 45vw, 650px); /* Massive increase in vertical presence */
    object-fit: cover;
    object-position: center;
    border: 0 !important;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.unslider-nav {
    position: relative;
    z-index: 5;
    margin: 16px 0 0;
}

.unslider-nav ol {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.unslider-nav ol li {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--mosaic-slate-300);
    text-indent: -9999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.unslider-nav ol li.unslider-active {
    width: 28px;
    background: linear-gradient(90deg, var(--mosaic-primary-hover), #203e7a);
}

/* Dynamic Main Grid - Custom Ultra-Wide Structure */
#main {
    position: relative;
    z-index: 10;
    margin-top: 16px; /* Optimized layout gap to sit snug under the hero */
    margin-bottom: 80px;
    padding: 0;
    background: transparent;
}

#main > .mosaic-layout-grid,
#main > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px; /* Wider sidebar grid */
    gap: 40px;
    align-items: start;
}

body.page-News #main > .mosaic-layout-grid,
body.page-Blog #main > .mosaic-layout-grid,
body[class*="page-News-"] #main > .mosaic-layout-grid,
body[class*="page-Blog-"] #main > .mosaic-layout-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
}

#primary,
#secondary {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    min-width: 0;
}

#content .page,
#content article {
    background: transparent;
}

/* The Immersive Main Article Canvas Card */
#content article {
    background: var(--mosaic-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 32px; /* Super-curves for state-of-the-art feel */
    padding: clamp(32px, 5vw, 64px); /* Optimized padding density */
    box-shadow: var(--mosaic-shadow-xl);
    animation: mosaicRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

/* Modern Minimalist Article Typography */
#content article h1,
#content article h2,
#content article h3,
#content article h4,
#content article h5,
#content article h6 {
    color: var(--mosaic-ink);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

#content article h1:first-child,
#content article h2:first-child,
#content article h3:first-child,
#content article h4:first-child {
    margin-top: 0;
}

#content article h1 {
    font-size: clamp(32px, 3.8vw, 44px); /* Larger scale */
    font-weight: 900;
    border-bottom: 2px solid var(--mosaic-line-light);
    padding-bottom: 16px;
    margin-bottom: 32px;
}

#content article h2 { font-size: clamp(24px, 2.8vw, 32px); }
#content article h3 { font-size: 22px; }
#content article h4 {
    font-size: 19px;
    color: var(--mosaic-primary-hover);
    border-left: 4px solid var(--mosaic-primary-hover);
    padding-left: 16px;
    margin-top: 2.2em;
}

#content article p {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--mosaic-slate-700);
}

/* Fluid Hyperlinks & Interactive Focus */
#content article a,
.widget a {
    color: var(--mosaic-primary-hover);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.25s ease;
}

#content article a::after,
.widget a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--mosaic-primary-hover);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#content article a:hover,
.widget a:hover {
    color: var(--mosaic-primary-hover);
}

#content article a:hover::after,
.widget a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#content article img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

#content article img:hover {
    transform: scale(1.01);
}

/* Elegant Bullets Override */
#content article ul {
    margin-top: 0;
    margin-bottom: 28px;
    padding-left: 20px;
}

#content article ul li {
    position: relative;
    list-style-type: none;
    margin-bottom: 12px;
    padding-left: 20px;
    color: var(--mosaic-slate-700);
}

#content article ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background-color: var(--mosaic-primary-hover);
}

/* Premium Minimalist Tables */
table {
    border-collapse: collapse;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--mosaic-line);
    border-radius: 16px;
    overflow: hidden;
    margin: 32px 0;
    box-shadow: var(--mosaic-shadow-sm);
}

th, td {
    border: 1px solid var(--mosaic-line-light);
    padding: 16px 20px;
    vertical-align: middle;
}

th {
    background: var(--mosaic-line-light);
    color: var(--mosaic-ink);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    text-align: left;
}

tr:nth-child(even) td {
    background: #fafbfc;
}

/* Keywords Block / Accent Notice Styling */
#content article > p:has(b) {
    background: var(--mosaic-accent-light);
    border: 1px dashed rgba(52, 93, 171, 0.4);
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 15px;
    line-height: 1.6;
    margin: 24px 0 32px;
    position: relative;
}

#content article > p:has(b) b {
    color: var(--mosaic-primary-hover);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
}

/* Premium Homepage Dashboard Component Columns Layout */
#content article > .container {
    max-width: none;
    width: auto;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin: 32px 0 0;
}

#content article .left-column,
#content article .right-column {
    background: var(--mosaic-primary-light) !important;
    border: 1px solid var(--mosaic-line) !important;
    border-radius: 20px !important;
    padding: 28px 32px !important;
    box-shadow: var(--mosaic-shadow-sm) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#content article .left-column:hover,
#content article .right-column:hover {
    border-color: rgba(52, 93, 171, 0.4) !important;
    box-shadow: var(--mosaic-shadow-lg) !important;
    background: #ffffff !important;
    transform: translateY(-4px);
}

#content article .left-column h7,
#content article .right-column h7 {
    display: block;
    margin-top: 24px;
    color: var(--mosaic-slate-400) !important;
    font-family: var(--font-heading) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

#content article .left-column h7:first-child,
#content article .right-column h7:first-child {
    margin-top: 0;
}

#content article .left-column h7 b,
#content article .right-column h7 b {
    font-weight: 700;
}

#content article .left-column p,
#content article .right-column p {
    margin: 6px 0 0 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
    color: var(--mosaic-slate-800) !important;
}

#content article .left-column ul,
#content article .right-column ul {
    margin: 12px 0 0 !important;
    padding-left: 0 !important;
}

#content article .left-column ul li,
#content article .right-column ul li {
    list-style-type: none !important;
    padding-left: 20px !important;
    margin-bottom: 10px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--mosaic-slate-700) !important;
}

#content article .left-column ul li::before,
#content article .right-column ul li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 10px !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 99px !important;
    background-color: var(--mosaic-primary-hover) !important;
}

/* Timelines / Dynamic Updates Page Feed */
body.page-News #content article h6,
body[class*="page-News-"] #content article h6 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 10px;
    border-left: 4px solid var(--mosaic-primary-hover);
    padding-left: 16px;
}

body.page-News #content article h6 a,
body[class*="page-News-"] #content article h6 a {
    color: var(--mosaic-ink);
    text-decoration: none;
}

body.page-News #content article h6 a:hover,
body[class*="page-News-"] #content article h6 a:hover {
    color: var(--mosaic-primary-hover);
}

body.page-News #content article b,
body[class*="page-News-"] #content article b {
    font-size: 13px;
    color: var(--mosaic-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.page-News #content article p:has(a[href*="News"]) {
    margin-top: 8px;
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--mosaic-slate-700);
}

body.page-News #content article a[href*="News"] {
    display: inline-block;
    margin-left: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: var(--mosaic-primary-hover);
}

body.page-News #content article a[href*="News"]::after {
    content: " →";
}

/* Elegant Premium Sidebar Component */
#secondary {
    position: sticky;
    top: 40px;
    align-self: start;
    animation: mosaicRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.widget {
    position: relative;
    background: var(--mosaic-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    box-shadow: var(--mosaic-shadow-md);
    padding: 0;
    margin: 0 0 28px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.widget:hover {
    border-color: rgba(52, 93, 171, 0.2);
    box-shadow: var(--mosaic-shadow-xl);
    transform: translateY(-2px);
}

/* Thin vertical brand border accent */
.widget:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--mosaic-primary-hover), var(--mosaic-primary));
}

.widget-title {
    margin: 0;
    padding: 20px 24px 18px 28px;
    color: var(--mosaic-ink);
    background: linear-gradient(180deg, #ffffff, var(--mosaic-primary-light));
    border-bottom: 1px solid var(--mosaic-line);
    font-family: var(--font-heading);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.widget-inner {
    padding: 20px 24px 24px 28px;
}

.widget-inner > *:first-child { margin-top: 0; }
.widget-inner > *:last-child { margin-bottom: 0; }

.widget p {
    color: var(--mosaic-slate-700);
    font-size: 14.5px;
    line-height: 1.6;
}

.widget ul {
    margin: 0;
    padding: 0;
}

.widget ul li {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--mosaic-line-light);
    background-image: none;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--mosaic-slate-700);
}

.widget ul li:last-child {
    border-bottom: 0;
}

.widget img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Sidebar Contact Details Profiles (Grid Mapped Icons) */
.widget-sidebars-0-contact ul {
    display: grid;
    gap: 14px;
}

.widget-sidebars-0-contact ul li {
    padding: 16px 20px !important;
    border: 1px solid var(--mosaic-line-light) !important;
    border-radius: 16px !important;
    background: var(--mosaic-primary-light) !important;
    box-shadow: var(--mosaic-shadow-sm) !important;
    overflow: hidden;
}

.widget-sidebars-0-contact b,
.widget-sidebars-0-contact strong {
    display: inline-block;
    margin: 0 0 4px;
    color: var(--mosaic-ink);
    font-family: var(--font-heading);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.widget-sidebars-0-contact > .widget-inner > ul > li:first-child img {
    display: block;
    max-width: 140px;
    margin-top: 10px;
    border: 0;
    padding: 0;
}

.widget-sidebars-0-contact a[href*="campus-map"]:after {
    content: " ↗";
    font-size: 12px;
    opacity: 0.72;
}

/* Profile Hyperlink Icon Grid System */
.widget-sidebars-0-contact a:has(img[src*="linkedin_logo"]),
.widget-sidebars-0-contact a:has(img[src*="scopus_logo"]),
.widget-sidebars-0-contact a:has(img[src*="google_scholar_logo"]),
.widget-sidebars-0-contact a:has(img[src*="ideas_repec_logo"]),
.widget-sidebars-0-contact a:has(img[src*="orcid_logo"]),
.widget-sidebars-0-contact a:has(img[src*="wos-logo"]) {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px 8px 4px 0;
    border: 1px solid var(--mosaic-line);
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.widget-sidebars-0-contact a:has(img):hover {
    transform: translateY(-3px);
    box-shadow: var(--mosaic-shadow-md);
    border-color: var(--mosaic-primary-hover);
    background: var(--mosaic-accent-light);
}

.widget-sidebars-0-contact img[src*="_logo"],
.widget-sidebars-0-contact img[src*="wos-logo"] {
    max-width: 30px !important;
    max-height: 30px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* Inner Menu Widget Hover Triggers */
.widget[class*="-sidebars-1-contents"] ul li {
    padding: 0;
    border: 0;
}

.widget[class*="-sidebars-1-contents"] ul li a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    color: var(--mosaic-slate-700);
}

.widget[class*="-sidebars-1-contents"] ul li a:hover {
    background: var(--mosaic-accent-light);
    color: var(--mosaic-primary-hover);
}

/* Cognito Forms Custom Integration styling */
.widget:has(iframe[src*="cognitoforms"]) {
    overflow: visible;
}

.widget:has(iframe[src*="cognitoforms"]) .widget-inner {
    padding: 0;
}

.widget:has(iframe[src*="cognitoforms"]) .widget-title:empty {
    display: none;
}

.widget:has(iframe[src*="cognitoforms"]) h4,
.widget:has(iframe[src*="cognitoforms"]) h3,
.widget:has(iframe[src*="cognitoforms"]) h2 {
    margin: 0;
    padding: 20px 24px 18px 28px;
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--mosaic-ink);
    border-bottom: 1px solid var(--mosaic-line);
    background: linear-gradient(180deg, #ffffff, var(--mosaic-primary-light));
}

.widget iframe[src*="cognitoforms"],
iframe[src*="cognitoforms"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 600px;
    border: 0 !important;
    border-radius: 0 0 24px 24px;
    background: #ffffff;
}

/* Centered Layout Page Overrides */
body.page-receivereport #main > .mosaic-layout-grid,
body.page-contactform #main > .mosaic-layout-grid,
body[class*="page-survey-"] #main > .mosaic-layout-grid,
body[class*="page-event-waste"] #main > .mosaic-layout-grid {
    grid-template-columns: 1fr;
    max-width: 960px; /* Slightly wider centered canvas */
    margin: 0 auto;
}

body.page-receivereport #secondary,
body.page-contactform #secondary,
body[class*="page-survey-"] #secondary,
body[class*="page-event-waste"] #secondary {
    display: none;
}

/* Form Fields & High-End Interactions */
input, textarea, select {
    max-width: 100%;
    border: 1px solid var(--mosaic-slate-300);
    border-radius: 10px;
    padding: 10px 14px;
    background: #ffffff;
    font-family: var(--font-sans);
    color: var(--mosaic-ink);
    transition: all 0.25s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--mosaic-primary-hover);
    box-shadow: 0 0 0 4px rgba(52, 93, 171, 0.15);
}

button, input[type="submit"], input[type="button"] {
    background: linear-gradient(135deg, var(--mosaic-primary-hover), #203e7a);
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(52, 93, 171, 0.2);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(52, 93, 171, 0.3);
    filter: brightness(1.08);
}

/* High-End Minimalist Footer */
#footerarea {
    background: #ffffff;
    border-top: 1px solid var(--mosaic-line);
    color: var(--mosaic-slate-400);
}

#site-generator {
    background: transparent;
    border: 0;
    color: var(--mosaic-slate-400);
    padding: 36px 0; /* Expanded padding */
}

#site-generator .copyright {
    font-size: 14px;
    font-weight: 500;
}

#site-generator a {
    color: var(--mosaic-slate-700);
    font-weight: 600;
}

#site-generator a:hover {
    color: var(--mosaic-primary-hover); /* Brand Blue hover color */
}

/* Aesthetic Micro-Animations */
@keyframes mosaicRise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive Fluid Layouts */
@media (max-width: 1200px) {
    #main > .mosaic-layout-grid,
    #main > div,
    body.page-News #main > .mosaic-layout-grid,
    body.page-Blog #main > .mosaic-layout-grid,
    body[class*="page-News-"] #main > .mosaic-layout-grid,
    body[class*="page-Blog-"] #main > .mosaic-layout-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 32px;
    }
}

@media (max-width: 960px) {
    .container,
    #main-nav,
    .mosaic-hero-wrap,
    #main {
        width: calc(100% - 40px);
    }
    
    #main {
        margin-top: 10px;
    }
    
    #main > .mosaic-layout-grid,
    #main > div,
    body.page-News #main > .mosaic-layout-grid,
    body.page-Blog #main > .mosaic-layout-grid,
    body[class*="page-News-"] #main > .mosaic-layout-grid,
    body[class*="page-Blog-"] #main > .mosaic-layout-grid {
        grid-template-columns: 1fr;
    }
    
    #secondary {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
    
    #secondary .widget {
        margin-bottom: 0;
    }
    
    .widget:has(iframe[src*="cognitoforms"]) {
        grid-column: 1 / -1;
    }
    
    #content article > .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    #branding.mosaic-branding {
        padding-bottom: 40px;
    }
    
    .hgroup-wrap {
        padding: 24px 0 12px;
    }
    
    #site-title a {
        font-size: 30px;
    }
    
    #site-description {
        font-size: 15px !important;
    }
    
    #main-nav {
        border-radius: 12px;
        padding: 8px;
        margin-bottom: 24px;
    }
    
    #main-nav ul {
        display: none;
    }
    
    #main-nav select {
        display: block;
        width: 100%;
        border: 1px solid var(--mosaic-line);
        border-radius: 8px;
        background: #ffffff;
        padding: 10px;
        color: var(--mosaic-slate-800);
        font-family: var(--font-sans);
        font-weight: 600;
        font-size: 14px;
    }
    
    .mosaic-hero-wrap:before {
        inset: -10px -10px -24px;
        border-radius: 20px;
    }
    
    .featured-slider.mosaic-hero-slider {
        padding: 6px;
        border-radius: 20px;
    }
    
    .mosaic-hero-slider img {
        max-height: 260px;
        border-radius: 14px;
    }
    
    #content article {
        border-radius: 20px;
        padding: 24px;
    }
    
    #secondary {
        grid-template-columns: 1fr;
    }
}

/* Wrocycle Helper - App Mode Layout */
body[class*="page-wrocycle-helper"] #branding,
body[class*="page-wrocycle-helper"] #secondary,
body[class*="page-wrocycle-helper"] #footerarea {
    display: none !important;
}

body[class*="page-wrocycle-helper"] {
    background: var(--mosaic-bg) !important;
}

/* Reset layout wrappers, margins, paddings, borders, and shadows for true app immersion */
body[class*="page-wrocycle-helper"] .wrapper,
body[class*="page-wrocycle-helper"] .mosaic-layout-grid,
body[class*="page-wrocycle-helper"] #primary,
body[class*="page-wrocycle-helper"] #content,
body[class*="page-wrocycle-helper"] .page,
body[class*="page-wrocycle-helper"] article {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
}

/* Immersive layout container */
body[class*="page-wrocycle-helper"] #main {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 32px 0 48px !important;
    max-width: 1600px !important; /* Matches main ultra wide setting */
    width: calc(100% - 40px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 720px) {
    body[class*="page-wrocycle-helper"] #main {
        width: calc(100% - 24px) !important;
        padding: 20px 0 32px !important;
    }
}

/* Immersive Frame for Streamlit application */
body[class*="page-wrocycle-helper"] iframe {
    width: 100% !important;
    height: 82vh !important;
    min-height: 620px !important;
    border: none !important;
    border-radius: 24px !important; /* Matching premium scale */
    box-shadow: var(--mosaic-shadow-xl) !important;
    background: #ffffff !important;
    display: block !important;
}

@media (max-width: 720px) {
    body[class*="page-wrocycle-helper"] iframe {
        height: 78vh !important;
        min-height: 480px !important;
        border-radius: 14px !important;
    }
}

.back-to-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    color: var(--mosaic-slate-700) !important;
    border: 1px solid var(--mosaic-line);
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: var(--mosaic-shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 24px;
}

.back-to-project-btn:hover {
    background: var(--mosaic-accent-light);
    color: var(--mosaic-primary-hover) !important;
    border-color: rgba(52, 93, 171, 0.3);
    transform: translateX(-4px); /* Sleek shift animation */
    box-shadow: var(--mosaic-shadow-md);
}

.wrocycle-attribution {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--mosaic-slate-400) !important;
    margin-top: -12px !important;
    margin-bottom: 24px !important;
    max-width: 900px;
}