/*=============================================================
  PRRM College of Pharmacy — Brand Theme Override
  Loaded last in style.php to override Unipix default colors.
  DO NOT edit Unipix's style.css directly.
  All layout, spacing, typography = unchanged Unipix defaults.
=============================================================*/

:root {
    /* Primary brand — PRRM Navy Blue */
    --rt-primary:   #041259;
    --rt-primary-1: #0a1f8f;
    --rt-primary-2: #041259;
    --rt-hover:     #0a1f8f;

    /* Accent — PRRM Green (approvals, badges, success states) */
    --rt-theme:     #00992f;

    /* Secondary dark stays close to Unipix for text consistency */
    --rt-secondary: #110C2D;

    /* Footer uses navy so it matches the college brand */
    --rt-footer:    #041259;
    --footer-bg:    #041259;

    /* Header tokens */
    --prrm-nav-bg:       #ffffff;
    --prrm-nav-h:        52px;
    --prrm-logo-bg:      #ffffff;
    --prrm-drop-bg:      #ffffff;
    --prrm-drop-shadow:  0 8px 32px rgba(4,18,89,0.13);
    --prrm-accent:       #00992f;
    --prrm-font:         'Inter', 'Roboto', system-ui, sans-serif;
    --prrm-transition:   0.22s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════════════ */
.prrm-topbar {
    background-color: #041259;
    border-bottom: 2px solid #00992f;
}

/* ══════════════════════════════════════════════════════════
   MAIN HEADER WRAPPER
══════════════════════════════════════════════════════════ */
.prrm-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(4,18,89,0.12);
    font-family: var(--prrm-font);
}

/* ══════════════════════════════════════════════════════════
   ROW 1 — LOGO STRIP
══════════════════════════════════════════════════════════ */
.prrm-logo-strip {
    background: var(--prrm-logo-bg);
    border-bottom: 1px solid #e8eaf0;
    padding: 10px 0;
}

.prrm-logo-strip__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;   /* ← centred as requested */
    align-items: center;
}

/* Brand link */
.prrm-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.prrm-brand__logo {
    height: 58px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.prrm-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.prrm-brand__name {
    font-size: 20px;
    font-weight: 800;
    color: #041259;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.prrm-brand__sub {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* NAAC pill — sits right of text, centred with logo */
.prrm-naac-pill {
    display: inline-flex;
    align-items: center;
    background: var(--prrm-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,153,47,0.25);
}

/* ══════════════════════════════════════════════════════════
   ROW 2 — NAV BAR
══════════════════════════════════════════════════════════ */
.prrm-navbar {
    background: var(--prrm-nav-bg);
    min-height: var(--prrm-nav-h);
    position: relative;
    border-top: 1px solid #e8eaf0;
    border-bottom: 3px solid var(--prrm-accent);
}

.prrm-navbar__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 0;
    min-height: var(--prrm-nav-h);
}

/* ── Navigation list ─────────────────────────────────── */
.prrm-nav {
    flex: 1;
    display: flex;
    align-items: center;
}

.prrm-nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: nowrap;
}

/* ── Nav items ───────────────────────────────────────── */
.prrm-nav__item {
    position: relative;
}

.prrm-nav__link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    height: var(--prrm-nav-h);
    color: #1e2340;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
    transition: color var(--prrm-transition), background var(--prrm-transition);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    position: relative;
}

.prrm-nav__link:hover,
.prrm-nav__item--drop:hover > .prrm-nav__link {
    color: #041259;
    background: #f0f4ff;
    border-bottom-color: var(--prrm-accent);
}

/* Arrow chevron inside link */
.prrm-arrow {
    font-size: 9px;
    opacity: 0.45;
    transition: transform var(--prrm-transition);
    flex-shrink: 0;
    color: #041259;
}

.prrm-nav__item--drop:hover > .prrm-nav__link .prrm-arrow {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--prrm-accent);
}

/* ── Dropdown panel ──────────────────────────────────── */
.prrm-drop {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    min-width: 230px;
    background: var(--prrm-drop-bg);
    border-top: 3px solid var(--prrm-accent);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--prrm-drop-shadow);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--prrm-transition), transform var(--prrm-transition), visibility var(--prrm-transition);
    z-index: 999;
}

.prrm-nav__item--drop:hover > .prrm-drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.prrm-drop li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 20px;
    color: #1e2340;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--prrm-transition), color var(--prrm-transition), padding-left var(--prrm-transition);
    border-left: 3px solid transparent;
}

.prrm-drop li a:hover {
    background: #f0f4ff;
    color: #041259;
    padding-left: 26px;
    border-left-color: var(--prrm-accent);
}

/* ── Fly-out (3rd level) ─────────────────────────────── */
.prrm-drop__item--has-fly {
    position: relative;
}

.prrm-drop__item--has-fly > a {
    justify-content: space-between;
}

.prrm-fly-arrow {
    font-size: 10px;
    opacity: 0.5;
    transition: opacity var(--prrm-transition);
    flex-shrink: 0;
}

.prrm-fly {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 230px;
    background: var(--prrm-drop-bg);
    border-top: 3px solid var(--prrm-accent);
    border-radius: 0 8px 8px 8px;
    box-shadow: var(--prrm-drop-shadow);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity var(--prrm-transition), transform var(--prrm-transition), visibility var(--prrm-transition);
    z-index: 1000;
}

.prrm-drop__item--has-fly:hover > .prrm-fly {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.prrm-drop__item--has-fly:hover > a .prrm-fly-arrow {
    opacity: 1;
}

.prrm-fly li a {
    padding: 9px 20px;
    color: #1e2340;
    font-size: 13px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.prrm-fly li a:hover {
    background: #f0f4ff;
    color: #041259;
    padding-left: 26px;
    border-left-color: var(--prrm-accent);
}

/* ── Quick Links CTA ─────────────────────────────────── */
.prrm-quick-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #041259;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 5px;
    border: 2px solid rgba(255,255,255,0.25);
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.3px;
    transition: background var(--prrm-transition), border-color var(--prrm-transition);
    flex-shrink: 0;
    margin-left: 12px;
}

.prrm-quick-links:hover {
    background: #0a1f8f;
    border-color: rgba(255,255,255,0.5);
}

/* ══════════════════════════════════════════════════════════
   HAMBURGER (MOBILE)
══════════════════════════════════════════════════════════ */
.prrm-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid rgba(4,18,89,0.25);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    margin-right: auto;
    transition: border-color var(--prrm-transition);
}

.prrm-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #041259;
    border-radius: 2px;
    transition: all var(--prrm-transition);
}

.prrm-hamburger:hover {
    border-color: rgba(4,18,89,0.6);
}

/* Animate to X when active */
.prrm-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.prrm-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.prrm-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════
   MOBILE OVERLAY
══════════════════════════════════════════════════════════ */
.prrm-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4,18,89,0.55);
    backdrop-filter: blur(2px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--prrm-transition), visibility var(--prrm-transition);
}

.prrm-mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ══════════════════════════════════════════════════════════
   MOBILE SLIDE-IN MENU
══════════════════════════════════════════════════════════ */
.prrm-mobile-nav {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 90vw;
    height: 100dvh;
    background: #fff;
    z-index: 1060;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 30px rgba(4,18,89,0.18);
    display: flex;
    flex-direction: column;
}

.prrm-mobile-nav.is-open {
    left: 0;
}

.prrm-mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8faff;
    border-bottom: 2px solid #e8eaf0;
    flex-shrink: 0;
}

.prrm-brand--sm {
    gap: 10px;
}

.prrm-mobile-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #041259;
    cursor: pointer;
    padding: 0 4px;
    transition: color var(--prrm-transition);
}

.prrm-mobile-close:hover {
    color: var(--prrm-accent);
}

/* Mobile list */
.prrm-mobile-list {
    list-style: none;
    margin: 0;
    padding: 8px 0 60px;
    flex: 1;
}

.prrm-mobile-list > li > a,
.prrm-mobile-list > li > .prrm-mob-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1e2340;
    text-decoration: none;
    border-bottom: 1px solid #f0f2f8;
    transition: background var(--prrm-transition), color var(--prrm-transition);
    width: 100%;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
    text-align: left;
}

.prrm-mobile-list > li > a:hover,
.prrm-mobile-list > li > .prrm-mob-toggle:hover {
    background: #f0f4ff;
    color: #041259;
}

.prrm-mobile-list > li > .prrm-mob-toggle[aria-expanded="true"] {
    color: #041259;
    background: #eef2ff;
}

.prrm-mobile-list > li > .prrm-mob-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.prrm-mobile-list > li > .prrm-mob-toggle i {
    transition: transform var(--prrm-transition);
    font-size: 12px;
    opacity: 0.6;
}

/* Mobile sub-list */
.prrm-mob-drop > ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8faff;
}

.prrm-mob-drop > ul.is-open {
    display: block;
}

.prrm-mob-drop > ul li a {
    display: block;
    padding: 10px 20px 10px 36px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #eef0f8;
    transition: background var(--prrm-transition), color var(--prrm-transition);
}

.prrm-mob-drop > ul li a:hover {
    background: #e8eeff;
    color: #041259;
}

/* ══════════════════════════════════════════════════════════
   STICKY SHRINK EFFECT
══════════════════════════════════════════════════════════ */
.prrm-header.is-scrolled .prrm-logo-strip {
    padding: 5px 0;
}

.prrm-header.is-scrolled .prrm-brand__logo {
    height: 42px;
}

.prrm-header.is-scrolled .prrm-brand__name {
    font-size: 16px;
}

/* ══════════════════════════════════════════════════════════
   NEWS TICKER
══════════════════════════════════════════════════════════ */
.prrm-news-ticker {
    background-color: #041259;
    border-bottom: 3px solid #00992f;
}

.prrm-news-ticker .ticker-label {
    background-color: #00992f;
    color: #fff;
    font-weight: 700;
    padding: 0 16px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
    font-size: 12px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.prrm-news-ticker .ticker-track {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.prrm-news-ticker .ticker-track a {
    color: #fff;
    text-decoration: none;
    padding: 0 24px 0 0;
    transition: color 0.3s ease;
}

.prrm-news-ticker .ticker-track a:hover {
    color: #00992f;
}

.prrm-news-ticker .ticker-new-badge {
    display: inline-block;
    background: #ff4500;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 4px;
    vertical-align: middle;
    text-transform: uppercase;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.rts-footer .footer-widget .footer-title {
    color: #fff;
}

.rts-footer .footer-widget p,
.rts-footer .footer-widget li,
.rts-footer .footer-widget a {
    color: rgba(255, 255, 255, 0.75);
}

.rts-footer .footer-widget a:hover {
    color: #00992f;
}

.footer-payment-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #00992f;
    color: #fff !important;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 8px;
    transition: background 0.3s ease;
}

.footer-payment-link:hover {
    background: #007a25 !important;
    color: #fff !important;
}

/* ══════════════════════════════════════════════════════════
   MISC OVERRIDES
══════════════════════════════════════════════════════════ */
.breadcumb-bg {
    position: relative;
}

.single-cat-item .cat-meta {
    border-top: 3px solid var(--rt-primary);
}

.rts-theme-btn,
.rts-theme-btn:focus {
    background-color: var(--rt-primary);
    border-color: var(--rt-primary);
    color: #fff;
}

.rts-theme-btn:hover {
    background-color: var(--rt-hover);
    border-color: var(--rt-hover);
}

.single-cta-item__title {
    color: var(--rt-primary);
}

/* Active nav underline */
.navigation__menu--item.active > a,
.navigation__menu--item > a:hover {
    color: #00992f;
}

/* Active PRRM nav item */
.prrm-nav__item--active > .prrm-nav__link {
    color: #041259 !important;
    border-bottom-color: var(--prrm-accent) !important;
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════════════════ */

/* Large desktop — tighten nav padding */
@media (max-width: 1280px) {
    .prrm-nav__link {
        padding: 0 9px;
        font-size: 12px;
    }
    .prrm-logo-strip__inner,
    .prrm-navbar__inner {
        padding: 0 16px;
    }
}

/* Medium laptop — tighten further */
@media (max-width: 1100px) {
    .prrm-nav__link {
        padding: 0 7px;
        font-size: 11.5px;
    }
    .prrm-brand__name {
        font-size: 17px;
    }
    .prrm-brand__logo {
        height: 50px;
    }
    .prrm-quick-links {
        padding: 8px 12px;
        font-size: 11.5px;
    }
}

/* Tablet / mobile — hide desktop nav, show hamburger */
@media (max-width: 991px) {
    .prrm-nav {
        display: none;
    }

    .prrm-hamburger {
        display: flex;
    }

    .prrm-quick-links {
        margin-left: auto;
        font-size: 12px;
        padding: 8px 14px;
    }

    .prrm-brand__name {
        font-size: 15px;
    }

    .prrm-brand__sub {
        font-size: 10px;
    }

    .prrm-brand__logo {
        height: 44px;
    }

    .prrm-naac-pill {
        font-size: 10px;
        padding: 4px 9px;
    }

    .prrm-logo-strip__inner {
        justify-content: center;   /* Keep centered on tablet too */
    }
}

/* Small mobile */
@media (max-width: 576px) {
    .prrm-brand__text {
        display: none;  /* Show only logo + NAAC pill on tiny screens */
    }

    .prrm-brand__logo {
        height: 38px;
    }

    .prrm-logo-strip {
        padding: 8px 0;
    }

    .prrm-navbar__inner {
        padding: 0 12px;
    }

    .prrm-quick-links span {
        display: none;
    }
}

/* Right-align fly-out if nav item is near right edge */
@media (min-width: 992px) {
    .prrm-nav__item:nth-last-child(-n+3) .prrm-drop {
        left: auto;
        right: 0;
    }

    .prrm-nav__item:nth-last-child(-n+3) .prrm-drop__item--has-fly .prrm-fly {
        left: auto;
        right: 100%;
        border-radius: 8px 0 8px 8px;
    }
}
