/*
 * Extras for the Laravel port of the PRR & VS Govt. College theme.
 * Everything here supplements the reference stylesheets (bootstrap 4, sky-mega-menu,
 * style2) for markup that is data-driven in Laravel and hard-coded in the reference.
 * Palette is taken from the reference: topbar #095e9f, green #4CAF50, hover #f4a024/#ff952a.
 */

/* ---- top bar: dynamic "top" menu rendered as the reference's "| link |" strip ---- */
#topbar .top-links-wrap {
    text-align: right;
}

#topbar ul.top-links {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 26px;
}

#topbar ul.top-links > li {
    display: inline-block;
    position: relative;
    padding: 0;
    color: #fff;
}

#topbar ul.top-links > li:before {
    content: "|";
    margin: 0 8px;
    color: #fff;
}

#topbar ul.top-links > li:last-child:after {
    content: "|";
    margin: 0 8px;
    color: #fff;
}

#topbar ul.top-links li a {
    color: #fff;
    text-decoration: none;
}

#topbar ul.top-links li a:hover {
    color: #ff952a;
    text-decoration: none;
}

/* dropdown panels */
#topbar ul.top-links ul.dd {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1100;
    min-width: 220px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
    background: #095e9f;
    box-shadow: 0 0 8px rgba(0, 0, 0, .35);
}

#topbar ul.top-links li.has-dd:hover > ul.dd {
    display: block;
}

#topbar ul.top-links ul.dd li {
    display: block;
    position: relative;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
    white-space: normal;
}

#topbar ul.top-links ul.dd li:first-child {
    border-top: 0;
}

#topbar ul.top-links ul.dd li:before,
#topbar ul.top-links ul.dd li:after {
    content: none !important;
}

#topbar ul.top-links ul.dd li a {
    display: block;
    padding: 6px 12px;
}

#topbar ul.top-links ul.dd ul.dd {
    top: 0;
    right: 100%;
}

@media (max-width: 991px) {
    #topbar .top-links-wrap {
        text-align: center;
    }
}

/* ---- left icon menu (style2 .ca-menu): active item + long titles ---- */
.ca-menu li.active {
    background: #f4a024;
}

.ca-menu li a:hover,
.ca-menu li a:focus {
    text-decoration: none;
}

/* the <a> is the positioning box (li content box, 28px tall): centre icon and text inside it */
.ca-menu li .ca-icon {
    top: 0;
    width: 40px;
    height: 100%;
    line-height: 28px;
}

.ca-menu li .ca-content {
    top: 0;
    right: 6px;
    display: flex;
    align-items: center;
    height: 100%;
}

.ca-menu li .ca-content .ca-main {
    margin: 0;
    font-size: 15px;
    line-height: 1.15;
}

/* ---- card title used on every inner page (reference: h4 > span.design1 + hr#line) ---- */
.design1 {
    color: #01315a;
}

#line {
    margin-top: .5rem;
    margin-bottom: 1rem;
}

/* ---- footer info block (contact / map / quick links) ---- */
.site-footer-info {
    background-color: #ffffff;
    border-top: 3px solid #4CAF50;
    padding: 15px 0;
}

.site-footer-info h6 {
    color: #4CAF50;
    text-transform: uppercase;
    font-weight: bold;
}

.site-footer-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-info ul li {
    padding: 2px 0;
}

/* ---- small helpers used by the Laravel views ---- */
.mb15 {
    margin-bottom: 15px;
}

.home-video iframe {
    width: 100%;
    height: 200px;
    border: 0;
}


/* logos never exceed their column (no effect at desktop widths) */
.header img {
    max-width: 100%;
    height: auto;
}

/* space between the content card and the footer on inner pages */
.inner-wrap {
    padding-bottom: 25px;
}

/* home side columns: fixed-width images/buttons from the reference must not overflow narrow columns */
.home-side img {
    max-width: 100%;
    height: auto;
}

.home-side .btn {
    max-width: 100%;
    white-space: normal;
}

/* wide tables / CMS content scroll inside their card instead of stretching the page on phones */
.inner-wrap .card-body {
    overflow-x: auto;
}

/* left home column: same top gap as the slider column, which starts with a <br> (24px) */
.home-top {
    padding-top: 24px;
}

/* right (Principal) column: start 24px below the menu, like the left card and the slider */
.home-top-right {
    margin-top: 24px;
}
