/* ============================================
   SchoolOS Public Website Styles - v2.0
   Complete redesign inspired by LFHS patterns
   Primary: #2563eb | Secondary: #7c3aed | Accent: #C9A84C
   ============================================ */

/* ============ 1. CSS Custom Properties ============ */
:root {
    --pub-primary: #5B4EE5;
    --pub-primary-light: rgba(91,78,229,0.06);
    --pub-secondary: #7C6FF0;
    --pub-accent: #C9A84C;
    --pub-text: #1e293b;
    --pub-text-light: #475569;
    --pub-text-muted: #94A3B8;
    --pub-bg: #F8FAFF;
    --pub-white: #ffffff;
    --pub-border: rgba(91,78,229,0.08);
    --pub-radius: 14px;
    --pub-radius-lg: 20px;
    --pub-font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --pub-font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --pub-shadow-sm: 0 4px 20px rgba(91,78,229,0.06);
    --pub-shadow-md: 0 8px 32px rgba(91,78,229,0.08);
    --pub-shadow-lg: 0 20px 50px rgba(91,78,229,0.1);
    --pub-gradient: linear-gradient(135deg, #5B4EE5 0%, #7C6FF0 100%);
}

/* ============ 2. Base & Typography ============ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.pub-body {
    font-family: var(--pub-font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--pub-text);
    background: var(--pub-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Light Aurora Mesh Background */
body.pub-body::before {
    content: '';
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(ellipse 130% 80% at 10% 0%, rgba(91,78,229,0.12) 0%, transparent 50%),
        radial-gradient(ellipse 100% 70% at 90% 100%, rgba(124,111,240,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 50% 40%, rgba(59,130,246,0.04) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 20%, rgba(201,168,76,0.04) 0%, transparent 50%),
        linear-gradient(160deg, #F0EDFF 0%, #F8FAFF 25%, #FFFBF5 50%, #F5F3FF 75%, #F8FAFF 100%);
}
body.pub-body::after {
    content: '';
    position: fixed; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(91,78,229,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91,78,229,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 15%, transparent 65%);
    pointer-events: none;
}

/* Floating aurora orbs */
.pub-aurora-orb {
    position: fixed; border-radius: 50%; filter: blur(100px);
    pointer-events: none; z-index: -1; opacity: 0.5;
}
.pub-aurora-orb-1 {
    width: 500px; height: 500px; top: -10%; left: -8%;
    background: radial-gradient(circle, rgba(91,78,229,0.12), transparent 65%);
    animation: pubOrbFloat1 20s ease-in-out infinite;
}
.pub-aurora-orb-2 {
    width: 400px; height: 400px; bottom: -5%; right: -5%;
    background: radial-gradient(circle, rgba(124,111,240,0.1), transparent 65%);
    animation: pubOrbFloat2 25s ease-in-out infinite;
}
.pub-aurora-orb-3 {
    width: 350px; height: 350px; top: 40%; left: 60%;
    background: radial-gradient(circle, rgba(201,168,76,0.06), transparent 65%);
    animation: pubOrbFloat3 18s ease-in-out infinite;
}
@keyframes pubOrbFloat1 {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(40px,60px) scale(1.05); }
    66% { transform: translate(-20px,30px) scale(0.95); }
}
@keyframes pubOrbFloat2 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-50px,-40px) scale(1.08); }
}
@keyframes pubOrbFloat3 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-40px,30px) scale(1.1); }
}

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

h1 { font-size: 42px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

a {
    color: var(--pub-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--pub-secondary);
}

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

.pub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ 3. Top Bar ============ */
.pub-topbar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    padding: 0;
    position: relative;
    z-index: 1000;
}

.pub-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pub-topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pub-topbar-left a,
.pub-topbar-left span {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.pub-topbar-left a:hover {
    color: #ffffff;
}

.pub-topbar-left i {
    font-size: 12px;
    color: var(--pub-accent);
}

.pub-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pub-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--pub-accent) 0%, #d4af37 100%);
    color: #1e293b;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-topbar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.4);
    color: #1e293b;
}

.pub-topbar-social {
    display: flex;
    gap: 8px;
}

.pub-topbar-social a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    transition: all 0.3s ease;
}

.pub-topbar-social a:hover {
    background: var(--pub-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============ 4. Notice Bar ============ */
.pub-notice-bar {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 998;
}

.pub-notice-bar-inner {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pub-notice-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 15px;
}

.pub-notice-label i {
    animation: pulse 1.5s ease-in-out infinite;
}

.pub-notice-marquee {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.pub-notice-marquee:hover .pub-notice-scroll {
    animation-play-state: paused;
}

.pub-notice-scroll {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 25s linear infinite;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding-left: 100%;
}

.pub-notice-scroll a {
    color: #ffffff;
    text-decoration: underline;
    margin-left: 5px;
}

.pub-notice-item {
    display: inline;
    margin-right: 40px;
    color: #ffffff;
}

/* ============ 5. Navbar ============ */
.pub-navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(91,78,229,0.06);
}

.pub-header.scrolled .pub-navbar {
    box-shadow: 0 4px 30px rgba(91,78,229,0.06), 0 1px 3px rgba(0,0,0,0.04);
    background: rgba(255,255,255,0.88);
    border-bottom-color: rgba(91,78,229,0.08);
}

.pub-navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

.pub-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.pub-logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--pub-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(91,78,229,0.3);
    flex-shrink: 0;
}

.pub-logo-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.pub-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.pub-logo-name {
    font-family: var(--pub-font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--pub-text);
}

.pub-logo-tagline {
    font-size: 11px;
    color: var(--pub-text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ============ 6. Nav Menu ============ */
.pub-nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pub-nav-menu > li {
    position: relative;
}

.pub-nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pub-text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.pub-nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    border-radius: 2px;
    background: var(--pub-gradient);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.pub-nav-menu > li > a:hover {
    color: var(--pub-primary);
}

.pub-nav-menu > li > a:hover::after,
.pub-nav-menu > li > a.active::after {
    transform: scaleX(1);
}

.pub-nav-menu > li > a.active {
    color: var(--pub-primary);
}

.pub-nav-menu > li > a .nav-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.pub-nav-menu > li:hover > a .nav-arrow {
    transform: rotate(180deg);
}

/* ============ 7. Dropdown Submenu ============ */
.pub-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(91,78,229,0.1), 0 4px 12px rgba(0,0,0,0.04);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
    border: 1px solid rgba(91,78,229,0.08);
    list-style: none;
}

.pub-nav-menu > li:hover > .pub-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.pub-submenu li {
    position: relative;
}

.pub-submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pub-text);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.pub-submenu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 70%;
    border-radius: 0 3px 3px 0;
    background: var(--pub-gradient);
    transition: width 0.3s ease;
}

.pub-submenu li a:hover {
    background: rgba(91,78,229,0.05);
    color: var(--pub-primary);
    padding-left: 30px;
}

.pub-submenu li a:hover::before {
    width: 4px;
}

/* ============ 8. Mobile Menu ============ */
.pub-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--pub-gradient);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pub-mobile-toggle:hover {
    box-shadow: 0 0 20px rgba(91,78,229,0.3);
    transform: translateY(-1px);
}

.pub-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pub-mobile-menu.active {
    display: block;
}

.pub-mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 20px;
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(91,78,229,0.08);
    animation: slideInRight 0.3s ease;
    border-left: 1px solid rgba(91,78,229,0.06);
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.pub-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(91,78,229,0.06);
    border-radius: 10px;
    font-size: 18px;
    color: var(--pub-text);
    cursor: pointer;
    margin-left: auto;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.pub-mobile-close:hover {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

.pub-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--pub-border);
}

.pub-mobile-header .pub-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pub-mobile-header .pub-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.pub-mobile-header .pub-logo-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--pub-text);
}

.pub-mobile-nav {
    padding: 0;
    margin: 0;
}

.pub-mobile-item {
    border-bottom: 1px solid var(--pub-border);
}

.pub-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pub-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pub-mobile-link:hover {
    background: var(--pub-primary-light);
    color: var(--pub-primary);
}

.pub-mobile-link .pub-mobile-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.pub-mobile-item.active > .pub-mobile-link .pub-mobile-arrow {
    transform: rotate(180deg);
}

.pub-mobile-submenu {
    padding: 0 0 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.pub-mobile-item.active > .pub-mobile-submenu {
    max-height: 1000px;
}

.pub-mobile-sublink {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pub-text-light);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.pub-mobile-sublink:hover {
    color: var(--pub-primary);
    background: var(--pub-primary-light);
    border-left-color: var(--pub-primary);
    padding-left: 20px;
}

/* ============ 9. Hero Slider ============ */
.pub-hero {
    position: relative;
    overflow: hidden;
    height: 500px;
    background: #0f172a;
}

.pub-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.pub-hero-slide.active {
    opacity: 1;
}

.pub-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
}

.pub-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    text-align: center;
    padding: 40px 24px 60px;
}

.pub-hero-title {
    font-family: var(--pub-font-heading);
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.pub-hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.pub-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    background: var(--pub-gradient);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(91,78,229,0.35);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(91,78,229,0.5);
    color: #ffffff;
}

.pub-hero-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.pub-hero-prev,
.pub-hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--pub-gradient);
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.pub-hero-prev {
    left: 20px;
}

.pub-hero-next {
    right: 20px;
}

.pub-hero-prev:hover,
.pub-hero-next:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.pub-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.pub-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pub-carousel-dot.active {
    background: var(--pub-gradient);
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(91,78,229,0.5);
}

.pub-carousel-dot:hover {
    background: rgba(255,255,255,0.7);
}

/* ============ 10. Quick Action Cards ============ */
.pub-quick-cards {
    padding: 50px 20px;
    margin-top: -40px;
    position: relative;
    z-index: 20;
}

.pub-quick-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.pub-quick-card {
    background: var(--pub-white);
    border-radius: var(--pub-radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--pub-shadow-sm);
    transition: all 0.4s ease;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.pub-quick-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--pub-shadow-lg);
    border-top-color: transparent;
}

.pub-quick-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--pub-gradient);
}

.pub-quick-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--pub-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
    font-size: 28px;
    transition: transform 0.6s ease;
}

.pub-quick-card:hover .pub-quick-card-icon {
    transform: rotate(360deg);
}

.pub-quick-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 8px;
}

.pub-quick-card p {
    font-size: 14px;
    color: var(--pub-text-muted);
    line-height: 1.6;
}

/* ============ 11. Stats Counter ============ */
.pub-stats {
    background: var(--pub-gradient);
    padding: 60px 20px;
    margin: 40px 0;
}

.pub-stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.pub-stat-item {
    color: #ffffff;
    padding: 20px 10px;
}

.pub-stat-number {
    font-family: var(--pub-font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.pub-stat-suffix {
    font-size: 28px;
    font-weight: 600;
    opacity: 0.85;
}

.pub-stat-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ============ 12. Section Titles ============ */
.pub-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pub-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.pub-section-title .eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pub-primary);
    margin-bottom: 10px;
}

.pub-section-title h2 {
    font-family: var(--pub-font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--pub-text);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.pub-section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: var(--pub-gradient);
    margin: 15px auto 0;
}

.pub-section-title p {
    font-size: 16px;
    color: var(--pub-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============ 13. Content Sections ============ */
.pub-content-section {
    background: var(--pub-white);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: var(--pub-shadow-sm);
}

.pub-content-section h2 {
    font-family: var(--pub-font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--pub-text);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.pub-content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    border-radius: 2px;
    background: var(--pub-gradient);
}

.pub-content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--pub-text-light);
    margin-bottom: 16px;
}

.pub-content-section ul,
.pub-content-section ol {
    padding-left: 24px;
    margin-bottom: 16px;
    color: var(--pub-text-light);
}

.pub-content-section li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.pub-content-section img {
    border-radius: var(--pub-radius);
    margin: 16px 0;
}

.pub-content-section blockquote {
    border-left: 4px solid var(--pub-primary);
    padding: 16px 20px;
    margin: 20px 0;
    background: var(--pub-primary-light);
    border-radius: 0 var(--pub-radius) var(--pub-radius) 0;
    font-style: italic;
    color: var(--pub-text-light);
}

.pub-content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
}

.pub-content-section th,
.pub-content-section td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--pub-border);
    font-size: 14px;
}

.pub-content-section th {
    background: var(--pub-primary-light);
    font-weight: 700;
    color: var(--pub-text);
}

/* ============ 14. Feature Cards Grid ============ */
.pub-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.pub-feature-card {
    background: var(--pub-white);
    border-radius: var(--pub-radius-lg);
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--pub-shadow-sm);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: block;
}

.pub-feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--pub-primary);
    box-shadow: var(--pub-shadow-lg);
}

.pub-feature-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--pub-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
    font-size: 32px;
    transition: transform 0.6s ease;
}

.pub-feature-card:hover .pub-feature-card-icon {
    transform: rotate(360deg);
}

.pub-feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 10px;
}

.pub-feature-card p {
    font-size: 14px;
    color: var(--pub-text-muted);
    line-height: 1.7;
}

/* ============ 15. Gallery Grid ============ */
.pub-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.pub-gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.pub-gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.pub-gallery-item:hover img {
    transform: scale(1.1);
}

.pub-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pub-gallery-item:hover .pub-gallery-overlay {
    opacity: 1;
}

.pub-gallery-caption {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.pub-gallery-caption small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 4px;
}

/* Lightbox */
.pub-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pub-lightbox.open {
    display: flex;
}

.pub-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--pub-radius);
    object-fit: contain;
}

.pub-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pub-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.pub-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pub-lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.pub-lightbox-prev { left: 20px; }
.pub-lightbox-next { right: 20px; }

/* ============ 16. News Cards ============ */
.pub-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pub-news-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--pub-white);
    border-radius: var(--pub-radius);
    padding: 20px 25px;
    border-left: 4px solid #10b981;
    box-shadow: var(--pub-shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
}

.pub-news-item:hover {
    transform: translateX(5px);
    box-shadow: var(--pub-shadow-md);
    border-left-color: #059669;
}

.pub-news-bullet {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--pub-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.pub-news-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 4px;
    line-height: 1.4;
}

.pub-news-content p {
    font-size: 14px;
    color: var(--pub-text-light);
    line-height: 1.6;
    margin-bottom: 6px;
}

.pub-news-date {
    font-size: 12px;
    color: var(--pub-text-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* News Card variant */
.pub-news-card {
    background: var(--pub-white);
    border-radius: var(--pub-radius-lg);
    overflow: hidden;
    box-shadow: var(--pub-shadow-sm);
    transition: all 0.4s ease;
}

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

.pub-news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pub-news-card:hover img {
    transform: scale(1.05);
}

.pub-news-card-body {
    padding: 20px;
}

.pub-news-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: var(--pub-primary-light);
    color: var(--pub-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-news-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--pub-text);
}

.pub-news-card p {
    font-size: 13px;
    color: var(--pub-text-light);
    line-height: 1.6;
}

/* ============ 17. Events Cards ============ */
.pub-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.pub-event-card {
    background: var(--pub-white);
    border-radius: var(--pub-radius-lg);
    overflow: hidden;
    box-shadow: var(--pub-shadow-sm);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

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

.pub-event-card-header {
    position: relative;
    padding: 25px 20px;
    background: var(--pub-primary-light);
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.pub-event-date {
    min-width: 60px;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    background: var(--pub-gradient);
    color: #ffffff;
    flex-shrink: 0;
}

.pub-event-day {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.pub-event-month {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    display: block;
    margin-top: 2px;
}

.pub-event-info {
    flex: 1;
}

.pub-event-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.pub-event-info p {
    font-size: 14px;
    color: var(--pub-text-light);
    line-height: 1.5;
}

.pub-event-meta {
    display: flex;
    gap: 16px;
    padding: 15px 20px;
    font-size: 13px;
    color: var(--pub-text-muted);
    border-top: 1px solid var(--pub-border);
}

.pub-event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pub-event-meta i {
    font-size: 12px;
    color: var(--pub-primary);
}

/* ============ 18. Testimonials ============ */
.pub-testimonials {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--pub-border) transparent;
}

.pub-testimonials::-webkit-scrollbar {
    height: 6px;
}

.pub-testimonials::-webkit-scrollbar-track {
    background: transparent;
}

.pub-testimonials::-webkit-scrollbar-thumb {
    background: var(--pub-border);
    border-radius: 3px;
}

.pub-testimonial-card {
    flex: 0 0 340px;
    background: var(--pub-white);
    border-radius: var(--pub-radius-lg);
    padding: 30px;
    box-shadow: var(--pub-shadow-sm);
    scroll-snap-align: start;
    transition: all 0.3s ease;
}

.pub-testimonial-card:hover {
    box-shadow: var(--pub-shadow-md);
}

.pub-testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 15px;
}

.pub-testimonial-stars i {
    color: #F59E0B;
    font-size: 14px;
}

.pub-testimonial-quote {
    font-size: 14px;
    font-style: italic;
    color: var(--pub-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.pub-testimonial-quote::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 36px;
    font-family: Georgia, serif;
    color: var(--pub-primary);
    line-height: 1;
    opacity: 0.3;
}

.pub-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pub-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pub-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

.pub-testimonial-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--pub-text);
    line-height: 1.3;
}

.pub-testimonial-role {
    font-size: 12px;
    color: var(--pub-text-muted);
    font-weight: 500;
}

/* ============ 19. CTA Banner ============ */
.pub-cta-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pub-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(91,78,229,0.15) 0%, transparent 60%);
    animation: rotateBg 15s linear infinite;
}

.pub-cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.pub-cta-banner h2 {
    font-family: var(--pub-font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.pub-cta-banner p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 30px;
    line-height: 1.7;
}

.pub-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    color: var(--pub-primary);
    transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.pub-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255,255,255,0.2);
    color: var(--pub-secondary);
}

/* ============ 20. Inner Page Header ============ */
.pub-page-header {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(91,78,229,0.95), rgba(124,111,240,0.95));
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.pub-page-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.pub-page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(91,78,229,0.95), rgba(124,111,240,0.95));
    z-index: 1;
}

.pub-page-header-content {
    position: relative;
    z-index: 2;
}

.pub-page-header h1 {
    font-family: var(--pub-font-heading);
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pub-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.pub-breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pub-breadcrumb a:hover {
    color: #ffffff;
}

.pub-breadcrumb span {
    color: rgba(255,255,255,0.5);
}

.pub-breadcrumb .current {
    color: rgba(255,255,255,0.95);
    font-weight: 600;
}

/* ============ 21. Footer ============ */
.pub-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 25px;
    position: relative;
}

.pub-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pub-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.pub-footer-section h4 {
    color: #ffffff;
    font-family: var(--pub-font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.pub-footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background: var(--pub-gradient);
}

.pub-footer-section p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 15px;
}

.pub-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pub-footer-links li {
    margin-bottom: 8px;
}

.pub-footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 0;
}

.pub-footer-links a:hover {
    color: #ffffff;
    padding-left: 8px;
}

.pub-footer-links a i {
    margin-right: 8px;
    font-size: 12px;
    color: var(--pub-primary);
}

.pub-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.pub-footer-contact li i {
    color: var(--pub-accent);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.pub-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.pub-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    transition: all 0.3s ease;
}

.pub-footer-social a:hover {
    background: var(--pub-gradient);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(91,78,229,0.3);
}

.pub-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.pub-footer-bottom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pub-footer-bottom a:hover {
    color: #ffffff;
}

/* ============ 22. Animations ============ */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(91,78,229,0.3); }
    50% { box-shadow: 0 0 40px rgba(91,78,229,0.5); }
}

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

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============ 23. Scroll Reveal ============ */
.pub-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.pub-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.pub-reveal[data-delay="100"] { transition-delay: 0.1s; }
.pub-reveal[data-delay="200"] { transition-delay: 0.2s; }
.pub-reveal[data-delay="300"] { transition-delay: 0.3s; }
.pub-reveal[data-delay="400"] { transition-delay: 0.4s; }
.pub-reveal[data-delay="500"] { transition-delay: 0.5s; }

/* ============ 24. Skeleton Loading ============ */
.pub-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.pub-skeleton-text {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.pub-skeleton-text:last-child {
    width: 70%;
}

.pub-skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 15px;
    border-radius: 4px;
}

.pub-skeleton-image {
    height: 200px;
    border-radius: var(--pub-radius);
    margin-bottom: 15px;
}

.pub-skeleton-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* ============ 25. Contact Form ============ */
.pub-contact-form {
    max-width: 600px;
}

.pub-form-group {
    margin-bottom: 20px;
}

.pub-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--pub-text);
    margin-bottom: 6px;
}

.pub-contact-form input,
.pub-contact-form textarea,
.pub-contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--pub-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--pub-font-body);
    color: var(--pub-text);
    background: var(--pub-white);
    transition: all 0.3s ease;
}

.pub-contact-form input:focus,
.pub-contact-form textarea:focus,
.pub-contact-form select:focus {
    outline: none;
    border-color: var(--pub-primary);
    box-shadow: 0 0 0 4px var(--pub-primary-light);
}

.pub-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.pub-form-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--pub-font-body);
    background: var(--pub-gradient);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pub-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91,78,229,0.35);
}

/* ============ 26. CMS Content ============ */
.pub-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pub-cms-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--pub-text-light);
}

.pub-cms-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 24px 0 16px;
    color: var(--pub-text);
}

.pub-cms-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0 12px;
    color: var(--pub-text);
}

.pub-cms-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 16px 0 10px;
    color: var(--pub-text);
}

.pub-cms-content p { margin-bottom: 16px; }

.pub-cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pub-radius);
    margin: 16px 0;
}

.pub-cms-content ul,
.pub-cms-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.pub-cms-content li { margin-bottom: 6px; }

.pub-cms-content blockquote {
    border-left: 4px solid var(--pub-primary);
    padding: 16px 20px;
    margin: 16px 0;
    background: var(--pub-primary-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--pub-text-light);
}

.pub-cms-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
}

.pub-cms-content th,
.pub-cms-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--pub-border);
    font-size: 14px;
}

.pub-cms-content th {
    background: var(--pub-primary-light);
    font-weight: 700;
    color: var(--pub-text);
}

/* ============ 27. Grid Layouts ============ */
.pub-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pub-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pub-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============ 28. Pagination ============ */
.pub-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pub-pagination a,
.pub-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0 12px;
}

.pub-pagination a {
    background: var(--pub-white);
    border: 2px solid var(--pub-border);
    color: var(--pub-text);
}

.pub-pagination a:hover {
    border-color: var(--pub-primary);
    color: var(--pub-primary);
    background: var(--pub-primary-light);
}

.pub-pagination span.active {
    background: var(--pub-gradient);
    color: #ffffff;
    border: none;
}

/* ============ 29. Utility Classes ============ */
.pub-text-center { text-align: center; }
.pub-text-left { text-align: left; }
.pub-text-right { text-align: right; }

.pub-mt-0 { margin-top: 0; }
.pub-mt-10 { margin-top: 10px; }
.pub-mt-20 { margin-top: 20px; }
.pub-mt-30 { margin-top: 30px; }
.pub-mt-40 { margin-top: 40px; }
.pub-mt-50 { margin-top: 50px; }

.pub-mb-0 { margin-bottom: 0; }
.pub-mb-10 { margin-bottom: 10px; }
.pub-mb-20 { margin-bottom: 20px; }
.pub-mb-30 { margin-bottom: 30px; }
.pub-mb-40 { margin-bottom: 40px; }
.pub-mb-50 { margin-bottom: 50px; }

.pub-pt-0 { padding-top: 0; }
.pub-pt-20 { padding-top: 20px; }
.pub-pt-40 { padding-top: 40px; }

.pub-pb-0 { padding-bottom: 0; }
.pub-pb-20 { padding-bottom: 20px; }
.pub-pb-40 { padding-bottom: 40px; }

.pub-hidden-mobile { }
.pub-hidden-desktop { display: none; }

.pub-gradient-text {
    background: var(--pub-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pub-flex { display: flex; }
.pub-flex-center { display: flex; align-items: center; justify-content: center; }
.pub-flex-between { display: flex; align-items: center; justify-content: space-between; }
.pub-flex-wrap { flex-wrap: wrap; }
.pub-gap-10 { gap: 10px; }
.pub-gap-20 { gap: 20px; }
.pub-gap-30 { gap: 30px; }

.pub-w-full { width: 100%; }
.pub-rounded { border-radius: var(--pub-radius); }
.pub-rounded-lg { border-radius: var(--pub-radius-lg); }
.pub-shadow { box-shadow: var(--pub-shadow-sm); }
.pub-shadow-md { box-shadow: var(--pub-shadow-md); }

.pub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--pub-font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pub-btn-primary {
    background: var(--pub-gradient);
    color: #ffffff;
}

.pub-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91,78,229,0.35);
    color: #ffffff;
}

.pub-btn-outline {
    background: transparent;
    color: var(--pub-primary);
    border: 2px solid var(--pub-primary);
}

.pub-btn-outline:hover {
    background: var(--pub-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.pub-btn-white {
    background: #ffffff;
    color: var(--pub-primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.pub-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
    color: var(--pub-secondary);
}

.pub-btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

.pub-btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* ============ 30. Responsive: 1200px ============ */
@media (max-width: 1200px) {
    .pub-section {
        padding: 60px 20px;
    }

    .pub-content-section {
        padding: 40px 35px;
    }

    .pub-hero-title {
        font-size: 42px;
    }

    .pub-section-title h2 {
        font-size: 32px;
    }
}

/* ============ 31. Responsive: 992px ============ */
@media (max-width: 992px) {
    .pub-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pub-nav-menu {
        display: none;
    }

    .pub-topbar-social {
        display: none;
    }

    .pub-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pub-hero {
        height: 400px;
    }

    .pub-hero-title {
        font-size: 36px;
    }

    .pub-hero-subtitle {
        font-size: 16px;
    }

    .pub-hero-prev,
    .pub-hero-next {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .pub-quick-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pub-hidden-desktop { display: none; }
}

/* ============ 32. Responsive: 768px ============ */
@media (max-width: 768px) {
    .pub-topbar {
        display: none;
    }

    .pub-hidden-mobile { display: none; }
    .pub-hidden-desktop { display: block; }

    .pub-hero {
        height: 350px;
    }

    .pub-hero-title {
        font-size: 30px;
    }

    .pub-hero-subtitle {
        font-size: 15px;
        max-width: 400px;
    }

    .pub-hero-btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .pub-section {
        padding: 50px 16px;
    }

    .pub-section-title {
        margin-bottom: 35px;
    }

    .pub-section-title h2 {
        font-size: 28px;
    }

    .pub-content-section {
        padding: 30px 25px;
        border-radius: 16px;
    }

    .pub-grid-2,
    .pub-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pub-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pub-feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pub-feature-card {
        padding: 25px 20px;
    }

    .pub-feature-card-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .pub-events-grid {
        grid-template-columns: 1fr;
    }

    .pub-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .pub-gallery-item img {
        height: 180px;
    }

    .pub-quick-cards {
        margin-top: -20px;
    }

    .pub-quick-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .pub-quick-card {
        padding: 25px 15px;
    }

    .pub-quick-card-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .pub-stat-number {
        font-size: 36px;
    }

    .pub-cta-banner {
        padding: 60px 20px;
    }

    .pub-cta-banner h2 {
        font-size: 26px;
    }

    .pub-page-header {
        height: 160px;
    }

    .pub-page-header h1 {
        font-size: 28px;
    }

    .pub-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .pub-footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .pub-testimonial-card {
        flex: 0 0 280px;
    }

    .pub-news-item {
        padding: 15px 18px;
    }
}

/* ============ 33. Responsive: 576px ============ */
@media (max-width: 576px) {
    .pub-hero {
        height: 250px;
    }

    .pub-hero-title {
        font-size: 24px;
    }

    .pub-hero-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .pub-hero-btn {
        padding: 10px 24px;
        font-size: 13px;
    }

    .pub-hero-prev,
    .pub-hero-next {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .pub-carousel-dots {
        bottom: 12px;
        gap: 6px;
    }

    .pub-carousel-dot {
        width: 8px;
        height: 8px;
    }

    .pub-section {
        padding: 40px 15px;
    }

    .pub-section-title h2 {
        font-size: 24px;
    }

    .pub-section-title p {
        font-size: 14px;
    }

    .pub-content-section {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .pub-grid-2,
    .pub-grid-3,
    .pub-grid-4 {
        grid-template-columns: 1fr;
    }

    .pub-feature-grid {
        grid-template-columns: 1fr;
    }

    .pub-gallery-grid {
        grid-template-columns: 1fr;
    }

    .pub-gallery-item img {
        height: 200px;
    }

    .pub-quick-cards {
        margin-top: -15px;
        padding: 30px 15px;
    }

    .pub-quick-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pub-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .pub-stat-number {
        font-size: 30px;
    }

    .pub-stat-label {
        font-size: 12px;
    }

    .pub-cta-banner {
        padding: 50px 15px;
    }

    .pub-cta-banner h2 {
        font-size: 22px;
    }

    .pub-cta-banner p {
        font-size: 14px;
    }

    .pub-page-header {
        height: 140px;
    }

    .pub-page-header h1 {
        font-size: 24px;
    }

    .pub-breadcrumb {
        font-size: 12px;
    }

    .pub-footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .pub-testimonial-card {
        flex: 0 0 260px;
        padding: 22px;
    }

    .pub-news-item {
        flex-direction: column;
        gap: 12px;
    }

    .pub-event-card-header {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============ 34. Responsive: 480px ============ */
@media (max-width: 480px) {
    .pub-navbar-inner {
        height: 60px;
        padding: 0 15px;
    }

    .pub-logo-name {
        font-size: 16px;
    }

    .pub-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .pub-section {
        padding: 30px 12px;
    }

    .pub-content-section {
        padding: 20px 15px;
    }

    .pub-footer {
        padding: 40px 0 20px;
    }

    .pub-footer-section h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    h1 { font-size: 30px; }
    h2 { font-size: 26px; }
    h3 { font-size: 22px; }
    h4 { font-size: 18px; }

    .pub-pagination a,
    .pub-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ============ 35. ABOUT / SCHOOL INFO SECTION ============ */
.pub-about-section {
    background: var(--pub-white);
    position: relative;
    overflow: hidden;
}

.pub-about-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(91,78,229,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.pub-about-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(124,111,240,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.pub-about-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    align-items: start;
}

.pub-about-content {
    position: relative;
}

.pub-about-content .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pub-primary);
    margin-bottom: 10px;
    background: var(--pub-primary-light);
    padding: 6px 16px;
    border-radius: 30px;
}

.pub-about-content h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--pub-text);
    margin-bottom: 16px;
    line-height: 1.2;
    position: relative;
    padding-bottom: 18px;
}

.pub-about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--pub-gradient);
    border-radius: 2px;
}

.pub-about-motto {
    font-size: 17px;
    font-weight: 600;
    color: var(--pub-secondary);
    font-style: italic;
    margin-bottom: 14px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(91,78,229,0.04) 0%, rgba(124,111,240,0.04) 100%);
    border-left: 3px solid var(--pub-secondary);
    border-radius: 0 8px 8px 0;
}

.pub-about-desc {
    font-size: 15px;
    line-height: 1.85;
    color: var(--pub-text-light);
    margin-bottom: 24px;
}

.pub-about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.pub-about-highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(91,78,229,0.03) 0%, rgba(124,111,240,0.03) 100%);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.pub-about-highlight-item:hover {
    background: linear-gradient(135deg, rgba(91,78,229,0.07) 0%, rgba(124,111,240,0.07) 100%);
    border-color: rgba(91,78,229,0.12);
    transform: translateX(4px);
}

.pub-about-highlight-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 3px 8px rgba(16,185,129,0.3);
}

.pub-about-highlight-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--pub-text);
    line-height: 1.3;
}

.pub-about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--pub-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(91,78,229,0.35);
    letter-spacing: 0.3px;
}

.pub-about-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(91,78,229,0.45);
    color: #fff;
    text-decoration: none;
}

.pub-about-btn i {
    transition: transform 0.3s;
}

.pub-about-btn:hover i {
    transform: translateX(4px);
}

/* About Info Cards - Right Column */
.pub-about-info-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pub-about-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--pub-white);
    border-radius: 16px;
    border: 1px solid var(--pub-border);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pub-about-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(91,78,229,0.03) 0%, rgba(124,111,240,0.03) 100%);
    transition: width 0.4s ease;
    z-index: 0;
}

.pub-about-info-card:hover::before {
    width: 100%;
}

.pub-about-info-card:hover {
    border-color: rgba(91,78,229,0.2);
    box-shadow: 0 6px 20px rgba(91,78,229,0.1);
    transform: translateY(-2px);
}

.pub-about-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pub-about-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.pub-about-info-text strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--pub-text-muted);
    font-weight: 600;
}

.pub-about-info-text span {
    font-size: 15px;
    font-weight: 700;
    color: var(--pub-text);
}

/* ============ 36. PHOTO GALLERY SECTION ============ */
.pub-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.pub-gallery-item {
    border-radius: 16px;
    overflow: hidden;
    background: var(--pub-white);
    box-shadow: var(--pub-shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(91,78,229,0.18);
}

.pub-gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pub-gallery-link:hover {
    text-decoration: none;
    color: inherit;
}

.pub-gallery-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.pub-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-gallery-item:hover .pub-gallery-img {
    transform: scale(1.12);
}

.pub-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.pub-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(91,78,229,0.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pub-gallery-item:hover .pub-gallery-overlay {
    opacity: 1;
}

.pub-gallery-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.pub-gallery-item:hover .pub-gallery-view-btn {
    transform: translateY(0);
}

.pub-gallery-info {
    padding: 18px 20px;
}

.pub-gallery-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pub-gallery-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pub-gallery-meta span {
    font-size: 13px;
    color: var(--pub-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.pub-gallery-meta span i {
    color: var(--pub-primary);
    font-size: 12px;
}

/* Section Footer - View All Button */
.pub-section-footer {
    text-align: center;
    margin-top: 36px;
    padding-top: 10px;
}

.pub-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: transparent;
    color: var(--pub-primary);
    font-size: 15px;
    font-weight: 700;
    border: 2px solid var(--pub-primary);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.pub-view-all-btn:hover {
    background: var(--pub-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(91,78,229,0.35);
    text-decoration: none;
}

.pub-view-all-btn i {
    transition: transform 0.3s;
}

.pub-view-all-btn:hover i {
    transform: translateX(4px);
}

/* ============ 37. VIDEO GALLERY SECTION ============ */
/* Full-width dark wrapper - breaks out of parent constraints */
.pub-video-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.pub-video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(91,78,229,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(239,68,68,0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Inner constrained container */
.pub-video-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
    position: relative;
    z-index: 1;
}

.pub-video-wrapper .pub-section-title .eyebrow {
    background: rgba(239,68,68,0.15);
    color: #f87171;
}

.pub-video-wrapper .pub-section-title h2 {
    color: #fff;
}

.pub-video-wrapper .pub-section-title h2::after {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.pub-video-wrapper .pub-section-title p {
    color: #94a3b8;
}

.pub-video-wrapper .pub-view-all-btn {
    color: #f87171;
    border-color: rgba(239,68,68,0.5);
}

.pub-video-wrapper .pub-view-all-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(239,68,68,0.4);
}

.pub-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.pub-video-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(239,68,68,0.2);
    border-color: rgba(239,68,68,0.3);
    background: rgba(255,255,255,0.1);
}

.pub-video-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.pub-video-link:hover {
    text-decoration: none;
    color: inherit;
}

.pub-video-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.pub-video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.85;
}

.pub-video-card:hover .pub-video-thumb-img {
    transform: scale(1.08);
    opacity: 1;
}

.pub-video-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.pub-video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    transition: background 0.3s ease;
}

.pub-video-card:hover .pub-video-play-overlay {
    background: rgba(0,0,0,0.5);
}

.pub-video-play-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(239,68,68,0.5);
}

.pub-video-card:hover .pub-video-play-btn {
    transform: scale(1.15);
    box-shadow: 0 8px 35px rgba(239,68,68,0.65);
}

.pub-video-play-btn i {
    color: #fff;
    font-size: 22px;
    margin-left: 3px;
}

.pub-video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(239,68,68,0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2;
    letter-spacing: 0.3px;
}

.pub-video-info {
    padding: 16px 18px;
}

.pub-video-info h4 {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ 38. VIDEO MODAL OVERLAY ============ */
.pub-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pub-video-modal.active {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.pub-video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.pub-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    z-index: 1;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-video-modal.active .pub-video-modal-content {
    transform: scale(1) translateY(0);
}

.pub-video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pub-video-modal-close:hover {
    background: rgba(239,68,68,0.8);
    border-color: rgba(239,68,68,0.8);
    transform: rotate(90deg);
}

.pub-video-modal-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.pub-video-modal-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============ 39. NEW SECTION RESPONSIVE: About, Gallery, Video ============ */

/* --- 1200px --- */
@media (max-width: 1200px) {
    .pub-about-grid {
        grid-template-columns: 1fr 340px;
        gap: 40px;
    }

    .pub-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .pub-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* --- 992px --- */
@media (max-width: 992px) {
    .pub-about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pub-about-info-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .pub-about-content h2 {
        font-size: 28px;
    }

    .pub-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }

    .pub-video-inner {
        padding: 50px 20px;
    }
}

/* --- 768px --- */
@media (max-width: 768px) {
    .pub-about-highlights {
        grid-template-columns: 1fr;
    }

    .pub-about-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .pub-about-content h2 {
        font-size: 24px;
    }

    .pub-about-motto {
        font-size: 15px;
    }

    .pub-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .pub-gallery-img-wrap {
        height: 180px;
    }

    .pub-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .pub-video-play-btn {
        width: 52px;
        height: 52px;
    }

    .pub-video-play-btn i {
        font-size: 18px;
    }

    .pub-video-modal-content {
        width: 95%;
    }

    .pub-video-modal-close {
        top: -44px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* --- 576px --- */
@media (max-width: 576px) {
    .pub-about-info-cards {
        grid-template-columns: 1fr;
    }

    .pub-about-btn {
        width: 100%;
        justify-content: center;
    }

    .pub-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .pub-gallery-img-wrap {
        height: 150px;
    }

    .pub-gallery-info {
        padding: 12px 14px;
    }

    .pub-gallery-info h4 {
        font-size: 14px;
    }

    .pub-gallery-meta span {
        font-size: 11px;
    }

    .pub-video-grid {
        grid-template-columns: 1fr;
    }

    .pub-video-inner {
        padding: 40px 16px;
    }

    .pub-view-all-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
}

/* --- 480px --- */
@media (max-width: 480px) {
    .pub-about-highlight-item {
        padding: 10px 14px;
    }

    .pub-about-highlight-item span {
        font-size: 13px;
    }

    .pub-gallery-grid {
        grid-template-columns: 1fr;
    }

    .pub-gallery-img-wrap {
        height: 200px;
    }
}

/* ============ 39. Premium Glassmorphism Enhancements ============ */

/* --- Glass Card Effect --- */
.pub-quick-card,
.pub-feature-card,
.pub-news-card,
.pub-news-item,
.pub-event-card,
.pub-testimonial-card,
.pub-content-section {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.6);
}

/* --- Glass Card Hover Glow --- */
.pub-quick-card:hover,
.pub-feature-card:hover,
.pub-news-card:hover,
.pub-event-card:hover {
    background: rgba(255,255,255,0.88);
    border-color: rgba(91,78,229,0.15);
    box-shadow:
        0 20px 50px rgba(91,78,229,0.08),
        0 0 0 1px rgba(91,78,229,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.pub-testimonial-card:hover,
.pub-content-section:hover {
    border-color: rgba(91,78,229,0.1);
    box-shadow:
        0 12px 40px rgba(91,78,229,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

/* --- Animated gradient border on featured cards --- */
.pub-quick-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(91,78,229,0.2), rgba(124,111,240,0.1), rgba(201,168,76,0.1), rgba(91,78,229,0.2));
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: pubGradientBorder 6s ease infinite;
}
.pub-quick-card:hover::after {
    opacity: 1;
}

@keyframes pubGradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Premium Stats Bar with Glass --- */
.pub-stats {
    background: linear-gradient(135deg, #5B4EE5 0%, #7C6FF0 50%, #5B4EE5 100%);
    background-size: 200% 100%;
    animation: pubStatsShimmer 8s ease infinite;
    position: relative;
    overflow: hidden;
}
.pub-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 20% 50%, rgba(255,255,255,0.12) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 80% 50%, rgba(201,168,76,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.pub-stats::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
    pointer-events: none;
}
@keyframes pubStatsShimmer {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Stat Number Counter Glow --- */
.pub-stat-number {
    text-shadow: 0 0 30px rgba(255,255,255,0.3);
}
.pub-stat-item {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.pub-stat-item:hover {
    transform: translateY(-4px);
}

/* --- Section Title Enhanced --- */
.pub-section-title .eyebrow {
    background: linear-gradient(135deg, var(--pub-primary), var(--pub-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pub-section-title h2::after {
    width: 60px;
    height: 4px;
    background: var(--pub-gradient);
    box-shadow: 0 2px 12px rgba(91,78,229,0.3);
}

/* --- Feature Card Icon Pulse --- */
.pub-feature-card-icon,
.pub-quick-card-icon {
    position: relative;
}
.pub-feature-card-icon::after,
.pub-quick-card-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--pub-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    filter: blur(12px);
}
.pub-feature-card:hover .pub-feature-card-icon::after,
.pub-quick-card:hover .pub-quick-card-icon::after {
    opacity: 0.4;
    transform: scale(1.2);
}

/* --- News Item Enhanced Border --- */
.pub-news-item {
    border-left: 4px solid transparent;
    border-image: linear-gradient(to bottom, #10b981, #059669) 1;
}
.pub-news-item:hover {
    border-image: linear-gradient(to bottom, var(--pub-primary), var(--pub-secondary)) 1;
}

/* --- Event Card Glass Header --- */
.pub-event-card-header {
    background: rgba(91,78,229,0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(91,78,229,0.06);
}

/* --- Hero Enhanced Overlay --- */
.pub-hero-overlay {
    background:
        linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.7) 100%),
        linear-gradient(135deg, rgba(91,78,229,0.15) 0%, transparent 50%);
}

/* --- Hero Button Glass Effect --- */
.pub-hero-btn {
    background: rgba(91,78,229,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow:
        0 8px 32px rgba(91,78,229,0.35),
        inset 0 1px 0 rgba(255,255,255,0.2);
}
.pub-hero-btn:hover {
    background: rgba(91,78,229,1);
    box-shadow:
        0 12px 40px rgba(91,78,229,0.5),
        inset 0 1px 0 rgba(255,255,255,0.25);
}

/* --- CTA Banner Premium --- */
.pub-cta-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #1e1b4b 100%);
    background-size: 200% 100%;
    animation: pubCtaShimmer 10s ease infinite;
}
.pub-cta-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(91,78,229,0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(124,111,240,0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}
@keyframes pubCtaShimmer {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- CTA Button Glass Pill --- */
.pub-cta-btn {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}
.pub-cta-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(91,78,229,0.08), transparent);
    transition: left 0.5s ease;
}
.pub-cta-btn:hover::before {
    left: 100%;
}

/* --- Page Header Premium Gradient --- */
.pub-page-header {
    background: linear-gradient(135deg, rgba(91,78,229,0.95), rgba(124,111,240,0.9));
    position: relative;
}
.pub-page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 80% 20%, rgba(201,168,76,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}
.pub-page-header-content {
    z-index: 3;
}

/* --- Breadcrumb Glass Pill --- */
.pub-breadcrumb {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    display: inline-flex;
}

/* --- Content Section Glass Border Shimmer --- */
.pub-content-section {
    position: relative;
    overflow: hidden;
}
.pub-content-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--pub-primary), var(--pub-secondary), transparent);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: pubShimmerLine 3s ease infinite;
}
.pub-content-section:hover::before {
    opacity: 1;
}
@keyframes pubShimmerLine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Testimonial Card Quotemark Glow --- */
.pub-testimonial-quote::before {
    text-shadow: 0 0 20px rgba(91,78,229,0.2);
}

/* --- Footer Premium Gradient --- */
.pub-footer {
    background:
        linear-gradient(135deg, #1e1b4b 0%, #0f172a 40%, #1e1b4b 100%);
    position: relative;
}
.pub-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pub-primary), var(--pub-accent), var(--pub-secondary), var(--pub-primary));
    background-size: 300% 100%;
    animation: pubFooterLine 4s ease infinite;
}
@keyframes pubFooterLine {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Footer Brand Glass Badge --- */
.pub-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}

/* --- Logo Icon Pulse Ring --- */
.pub-logo-icon {
    position: relative;
    transition: transform 0.3s ease;
}
.pub-logo:hover .pub-logo-icon {
    transform: scale(1.05);
}

/* --- Gallery Item Glass Overlay --- */
.pub-gallery-overlay {
    background:
        linear-gradient(to bottom, transparent 20%, rgba(91,78,229,0.85) 100%);
}

/* --- Contact Form Glass --- */
.pub-contact-form input,
.pub-contact-form textarea,
.pub-contact-form select {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(91,78,229,0.1);
}
.pub-contact-form input:focus,
.pub-contact-form textarea:focus,
.pub-contact-form select:focus {
    background: rgba(255,255,255,0.9);
    border-color: var(--pub-primary);
    box-shadow: 0 0 0 4px rgba(91,78,229,0.08), 0 4px 20px rgba(91,78,229,0.06);
}

/* --- Premium Scroll Reveal Variants --- */
.pub-reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.pub-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

.pub-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.pub-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.pub-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.pub-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* --- Interactive Hover Tilt (CSS-only subtle) --- */
.pub-quick-card,
.pub-feature-card {
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* --- Smooth Scrollbar --- */
.pub-body::-webkit-scrollbar {
    width: 8px;
}
.pub-body::-webkit-scrollbar-track {
    background: rgba(91,78,229,0.03);
}
.pub-body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--pub-primary), var(--pub-secondary));
    border-radius: 4px;
}
.pub-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--pub-secondary), var(--pub-primary));
}

/* --- Notice Bar Premium --- */
.pub-notice-bar {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #dc2626 100%);
    background-size: 200% 100%;
    animation: pubNoticeShimmer 6s ease infinite;
    position: relative;
}
.pub-notice-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
    pointer-events: none;
}
@keyframes pubNoticeShimmer {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Carousel Dot Glow --- */
.pub-carousel-dot.active {
    box-shadow: 0 0 12px rgba(91,78,229,0.5), 0 0 24px rgba(91,78,229,0.2);
}

/* --- Topbar Premium Shine --- */
.pub-topbar {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #1e1b4b 100%);
    position: relative;
}
.pub-topbar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91,78,229,0.3), rgba(201,168,76,0.2), transparent);
    pointer-events: none;
}

/* ============ 40. Print Styles ============ */
@media print {
    .pub-topbar,
    .pub-notice-bar,
    .pub-navbar,
    .pub-footer,
    .pub-cta-banner,
    .pub-hero-controls,
    .pub-carousel-dots,
    .pub-mobile-toggle,
    .pub-mobile-menu {
        display: none !important;
    }

    .pub-hero {
        height: auto;
        background: none;
    }

    .pub-content-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    body.pub-body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}
