/* 
========================================================================
   CUSTOM UI STYLES - OM PRAKASH MISHRA GROUP OF INSTITUTIONS
======================================================================== 
*/

:root {
    --primary-red: #a41212;
    --primary-dark: #820b0b;
    --primary-light: #fef7f7;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition-fast: all 0.2s ease-in-out;
    --transition-base: all 0.3s ease-in-out;
}

/* Base Overrides */
body {
    color: var(--text-main);
    background-color: var(--bg-light);
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
}
a {
    transition: var(--transition-base);
}

/* ====================================
   Generic Components
==================================== */

.ui-section {
    padding: 80px 0;
    background: var(--bg-light);
}
.ui-section.bg-white {
    background: var(--white);
}
.ui-section-title {
    text-align: center;
    margin-bottom: 50px;
}
.ui-section-title h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}
.ui-section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}
.ui-section-title p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.ui-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
    overflow: hidden;
    height: 100%;
}
.ui-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

/* Buttons */
.ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--primary-red);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
}
.ui-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}
.ui-btn-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}
.ui-btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* ====================================
   Blog specific styles
==================================== */
.ui-blog-card .blog-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}
.ui-blog-card .blog-body {
    padding: 24px;
}
.ui-blog-card .blog-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}
.ui-blog-card .blog-meta i {
    color: var(--primary-red);
    margin-right: 5px;
}
.ui-blog-card .blog-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}
.ui-blog-card .blog-title a {
    color: var(--text-main);
    text-decoration: none;
}
.ui-blog-card .blog-title a:hover {
    color: var(--primary-red);
}
.ui-blog-card .blog-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Detail Page */
.ui-blog-detail {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-top: -60px; /* Pull up over hero */
    position: relative;
    z-index: 10;
}
.ui-blog-detail-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}
.ui-blog-detail-content {
    padding: 40px;
}
.ui-blog-detail-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}
.ui-blog-detail-header h1 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 15px;
}
.ui-blog-detail-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 15px;
}
.ui-blog-detail-body {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}
.ui-blog-detail-body p {
    margin-bottom: 20px;
}
.ui-blog-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

/* Page Header Hero */
.ui-page-hero {
    background: linear-gradient(135deg, #a41212 0%, #680404 100%);
    padding: 100px 0 120px;
    text-align: center;
    color: var(--white);
}
.ui-page-hero h1 {
    color: var(--white);
    font-size: 42px;
    margin-bottom: 15px;
}
.ui-page-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ====================================
   Contact Page Styles
==================================== */
.ui-contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition-base);
}
.ui-contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red);
}
.ui-contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}
.ui-contact-info-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}
.ui-contact-info-card p, .ui-contact-info-card a {
    color: var(--text-muted);
    font-size: 15px;
    text-decoration: none;
    line-height: 1.6;
}
.ui-contact-info-card a:hover {
    color: var(--primary-red);
}

.ui-contact-form-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.ui-form-group {
    margin-bottom: 20px;
}
.ui-form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-main);
    transition: var(--transition-fast);
}
.ui-form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(164, 18, 18, 0.1);
}
textarea.ui-form-control {
    resize: vertical;
    min-height: 120px;
}

/* ====================================
   Standard Page Styles (Dynamic Pages)
==================================== */
.ui-standard-page {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.ui-standard-page-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}
.ui-standard-page-content h2, .ui-standard-page-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .ui-section {
        padding: 50px 0;
    }
    .ui-page-hero {
        padding: 80px 0 100px;
    }
    .ui-page-hero h1 {
        font-size: 32px;
    }
    .ui-blog-detail-content {
        padding: 25px;
    }
    .ui-blog-detail-header h1 {
        font-size: 28px;
    }
    .ui-contact-form-box {
        padding: 25px;
    }
}
/* ===== HOMEPAGE SPECIFIC STYLES ===== */

/* Hero Slider */
.opm-hero { position: relative; overflow: hidden; background: var(--bg-light); }
.opm-hero ul#lSlider { margin: 0; padding: 0; list-style: none; display: flex; }
.opm-hero ul#lSlider li { width: 100%; flex: 0 0 100%; }
.opm-hero ul#lSlider li img { width: 100%; height: auto; display: block; }

/* Stats Bar */
.opm-stats-bar {
    background: var(--primary-red);
    padding: 0;
}
.opm-stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid rgba(255,255,255,0.1);
}
.opm-stat-item {
    padding: 30px 20px; text-align: center; color: var(--white);
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-fast);
}
.opm-stat-item:hover { background: var(--primary-dark); }
.opm-stat-number { font-size: 36px; font-weight: 800; color: #ffd700; line-height: 1; }
.opm-stat-label { font-size: 13px; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; }

/* Sections & Typography */
.opm-section { padding: 80px 0; background: var(--white); }
.opm-section-alt { padding: 80px 0; background: var(--bg-light); }
.opm-section-dark { padding: 80px 0; background: var(--text-main); color: var(--white); }
.opm-section-title { text-align: center; margin-bottom: 50px; }
.opm-pre-title {
    display: inline-block; background: var(--primary-light); color: var(--primary-red);
    padding: 6px 16px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600;
    text-transform: uppercase; margin-bottom: 12px;
}
.opm-title { font-size: 36px; font-weight: 700; color: var(--text-main); margin: 0; }
.opm-title-light { font-size: 36px; font-weight: 700; color: var(--white); margin: 0; }
.opm-divider { width: 60px; height: 3px; background: var(--primary-red); margin: 20px auto 0; }
.opm-divider-left { width: 60px; height: 3px; background: var(--primary-red); margin: 20px 0 0; }

/* Institution Cards */
.opm-inst-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
    transition: var(--transition-base); display: block; color: inherit; text-decoration: none;
}
.opm-inst-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-red); }
.opm-inst-card-banner { height: 6px; background: var(--primary-red); }
.opm-inst-card-body { padding: 24px; }
.opm-inst-icon {
    width: 50px; height: 50px; border-radius: var(--radius-md); background: var(--bg-light); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 15px;
}
.opm-inst-card:hover .opm-inst-icon { background: var(--primary-light); color: var(--primary-red); }
.opm-inst-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; color: var(--text-main); }
.opm-inst-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.opm-inst-card-footer {
    padding: 15px 24px; border-top: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center; background: var(--bg-light);
}
.opm-inst-badge { background: var(--primary-light); color: var(--primary-red); padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.opm-inst-arrow { color: var(--primary-red); font-size: 14px; transition: transform 0.2s; }
.opm-inst-card:hover .opm-inst-arrow { transform: translateX(4px); }

/* News Panel */
.opm-news-panel {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); height: 100%;
}
.opm-news-header {
    padding: 16px 20px; display: flex; align-items: center; gap: 10px;
    background: var(--text-main); color: var(--white);
}
.opm-news-header h5 { margin: 0; font-size: 15px; font-weight: 600; color: var(--white); }
.opm-news-body { padding: 10px 0; }
#newsslide, #newsslide1, #newsslide2, .news-list-static { padding: 0; list-style: none; margin: 0; }
.news-item {
    padding: 12px 20px; border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.news-item:last-child { border-bottom: none; }
.news-item .fixline { font-size: 14px; color: var(--text-main); line-height: 1.5; cursor: pointer; }
.news-item .fixline:hover { color: var(--primary-red); text-decoration: underline; }
.read_more { font-size: 12px; font-weight: 600; color: var(--primary-red); text-decoration: none; white-space: nowrap; margin-left: 10px; }
.read_more:hover { color: var(--primary-dark); text-decoration: underline; }

/* About Section */
.opm-about-img-wrap img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.opm-about-img-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--primary-red); color: var(--white);
    border-radius: var(--radius-md); padding: 20px 24px; text-align: center;
    box-shadow: var(--shadow-lg); min-width: 150px;
}
.opm-about-img-badge .num { font-size: 42px; font-weight: 800; display: block; line-height: 1; margin-bottom: 5px; }
.opm-about-img-badge .label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Faculty & Courses */
.opm-team-card, .opm-course-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition-fast);
}
.opm-team-card:hover, .opm-course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-red); }
.opm-team-card img, .opm-course-card img { width: 100%; height: 200px; object-fit: cover; }
.opm-team-card-body { padding: 20px; background: var(--bg-light); text-align: center; }
.opm-team-card-body h5 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.opm-team-card-body span { font-size: 13px; color: var(--text-muted); }
.opm-course-card-body { padding: 20px; }
.opm-course-card-body h6 { font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0; color: var(--text-main); }
.opm-course-card-img-placeholder { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary-red); }

/* CTA Band */
.opm-cta-band {
    background: var(--primary-red); padding: 70px 0; text-align: center; color: var(--white);
}
.opm-cta-band h2 { font-size: 32px; font-weight: 700; margin-bottom: 15px; color: var(--white); }
.opm-cta-band p { font-size: 16px; opacity: 0.9; max-width: 600px; margin: 0 auto 30px; }
  /* CTA Band Buttons */
  .opm-cta-buttons {
      display: flex;
      gap: 20px;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 10px;
  }
  .opm-cta-buttons a {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 32px;
      border-radius: 50px;
      font-weight: 700;
      text-decoration: none;
      font-size: 15px;
      transition: all 0.3s ease;
  }
  .opm-cta-buttons .opm-btn-primary {
      background: var(--white);
      color: var(--primary-red);
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  .opm-cta-buttons .opm-btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  }
  .opm-cta-buttons .opm-btn-outline {
      background: rgba(255,255,255,0.15);
      color: var(--white);
      border: 2px solid rgba(255,255,255,0.4);
  }
  .opm-cta-buttons .opm-btn-outline:hover {
      background: rgba(255,255,255,0.25);
      border-color: var(--white);
      transform: translateY(-3px);
  }

/* Responsive Overrides */
@media (max-width: 768px) {
    .opm-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .opm-about-img-badge { right: 0; bottom: 0; }
}
/* ====================================
   Header & Navigation
==================================== */
.ui-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.ui-header-top {
    background: linear-gradient(135deg, #105015, #155a0d);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}
.ui-header-top a {
    color: var(--white);
    text-decoration: none;
    margin-right: 15px;
    opacity: 0.8;
}
.ui-header-top a:hover {
    opacity: 1;
}

.ui-header-main {
    padding: 15px 49px 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ui-header-logo img {
    max-height: 70px;
}

.ui-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ui-nav > li {
    position: relative;
}
.ui-nav > li > a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ui-nav > li > a:hover {
    color: var(--primary-red);
}

/* Dropdown styling */
.ui-nav li.has-droupdown > .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    z-index: 100;
    list-style: none;
}
.ui-nav li.has-droupdown:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ui-nav .submenu li {
    position: relative;
}
.ui-nav .submenu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}
    .ui-nav .submenu li a:hover {
        background: var(--primary-red);
        ;
        color: var(--bg-light); padding-left: 25px;
    }

/* Sub-dropdown */
.ui-nav .submenu li.has-droupdown > .ssubmenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 10px 0;
    margin-left: -5px; /* Bridge the hover gap */
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.25s ease-in-out;
    z-index: 1001;
    list-style: none;
}
/* Invisible hover bridge */
.ui-nav .submenu li.has-droupdown > .ssubmenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 15px;
    height: 100%;
    background: transparent;
}
.ui-nav .submenu li.has-droupdown:hover > .ssubmenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ====================================
   Footer Redesign
==================================== */
.ui-footer {
    background: #1e293b; /* Premium slate color */
    color: #cbd5e1;
    padding: 80px 0 0;
    margin-top: 60px;
    font-family: 'Inter', sans-serif;
}
.ui-footer h4 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}
.ui-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 40px;
    background: var(--primary-red);
    border-radius: 2px;
}
.ui-footer p {
    font-size: 15px;
    line-height: 1.8;
    color: #cbd5e1;
}
.ui-footer-logo {
    margin-bottom: 25px;
}
.ui-footer-logo img {
    max-width: 220px;
}
.ui-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ui-footer-links li {
    margin-bottom: 16px;
}
.ui-footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-fast);
    display: inline-block;
}
.ui-footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}
.ui-footer-info {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ui-footer-info li {
    margin-bottom: 18px;
    display: flex;
    gap: 15px;
    font-size: 15px;
    align-items: flex-start;
}
.ui-footer-info i {
    color: var(--primary-red);
    font-size: 18px;
    margin-top: 4px;
}
.ui-footer-bottom {
    background: #0f172a; 
    padding: 24px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
}
.ui-footer-bottom a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
}
.ui-footer-bottom a:hover {
    color: var(--primary-red);
}
/* ====================================
   Page Hero (Inner Pages)
==================================== */
.ui-page-hero {
    background: var(--primary-red);
    padding: 100px 0;
    text-align: center;
    position: relative;
    color: var(--white); /* FORCE WHITE TEXT */
}
.ui-page-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--white); /* FORCE WHITE TEXT */
}
.ui-page-hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: var(--white); /* FORCE WHITE TEXT */
}
.ui-page-hero a {
    color: var(--white);
    opacity: 0.8;
}
.ui-page-hero a:hover {
    opacity: 1;
    text-decoration: underline;
}
/* ====================================
   Blog Detail Page Redesign
==================================== */
.ui-blog-detail {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-top: -60px; /* Overlaps the hero section slightly for premium feel */
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-color);
}
.ui-blog-detail-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}
.ui-blog-detail-content {
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
}
.ui-blog-detail-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
    margin-bottom: 35px;
    text-align: center;
}
.ui-blog-detail-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}
.ui-blog-detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}
.ui-blog-detail-body {
    font-size: 18px;
    line-height: 1.8;
    color: #374151; /* Dark gray for readability */
}
.ui-blog-detail-body p {
    margin-bottom: 25px;
}
.ui-blog-detail-body h2, .ui-blog-detail-body h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}
.ui-blog-detail-body img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 30px 0;
}
/* ====================================
   Comprehensive Responsive Overrides (index.cshtml & Global)
==================================== */
@media (max-width: 992px) {
    .opm-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ui-header-main { flex-direction: column; gap: 15px; padding: 10px 0; }
    .ui-nav { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .ui-nav > li > a { padding: 5px 0; font-size: 14px; }
}

@media (max-width: 768px) {
    .opm-stats-grid { grid-template-columns: repeat(1, 1fr); }
    .opm-stat-item { padding: 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .opm-stat-item:last-child { border-bottom: none; }
    
    .opm-section, .opm-section-alt { padding: 50px 0; }
    .opm-title { font-size: 28px; }
    
    .opm-about-img-wrap { padding-right: 0; padding-bottom: 20px; margin-bottom: 30px; }
    .opm-about-img-badge { right: 10px; bottom: 10px; transform: scale(0.8); }
    
    .opm-cta-band { padding: 50px 0; text-align: center; }
    .opm-cta-band h2 { font-size: 26px; }
    .opm-cta-buttons { flex-direction: column; gap: 15px; justify-content: center; }
    .opm-cta-buttons a { width: 100%; justify-content: center; }
    
    .opm-news-panel { margin-bottom: 20px; }
    
    .ui-footer { padding: 50px 0 0; text-align: center; }
    .ui-footer-info { display: flex; flex-direction: column; align-items: center; }
    .ui-footer h4::after { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 576px) {
    .ui-header-top { display: none; } /* Hide top bar on very small screens if needed, or stack */
    .opm-title { font-size: 24px; }
    .opm-pre-title { font-size: 13px; }
    .opm-team-card img { height: 250px; }
    .ui-nav { display: none; } /* On a real mobile layout, this should be a hamburger menu. I will leave it visible for now or assume Bootstrap navbar toggle handles it if we convert it */
}

  /* News Popups / Modals */
  .opm-news-modal .modal-content {
      border: none;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 15px 50px rgba(0,0,0,0.2);
  }
  .opm-news-modal .modal-header {
      border-bottom: none;
      padding: 20px 24px;
  }
  .opm-news-modal .modal-title {
      font-weight: 700;
      font-size: 18px;
  }
  .opm-news-modal .modal-body {
      padding: 30px 24px;
      background: var(--white) !important;
      color: var(--text-main) !important;
      font-size: 15px;
      line-height: 1.6;
  }
  /* Force override any weird inline styles from DB content */
  .opm-news-modal .modal-body * {
      background: transparent !important;
      color: var(--text-main) !important;
      font-family: 'Inter', sans-serif !important;
  }
  .opm-news-modal .modal-footer {
      border-top: 1px solid #eee;
      background: #f9f9f9;
      padding: 12px 24px;
  }
  .opm-news-modal .opm-btn-close {
      border-radius: 50px;
      padding: 8px 24px;
      font-weight: 600;
      background: #e2e8f0;
      color: #334155;
      border: none;
      transition: all 0.3s ease;
  }
  .opm-news-modal .opm-btn-close:hover {
      background: #cbd5e1;
  }