/* ============================================================
   PREMIER UNIVERSITY LIBRARY — LAYOUT STYLES
   File: layout.css
   ============================================================ */

/* ============================================================
   BASE
   ============================================================ */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ============================================================
   TOP BAR — full-width gradient with aligned content
   ============================================================ */
.upper_nav {
    background: #031635;
    background: linear-gradient(90deg, #031635 0%, #0a2a52 50%, #031635 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.upper_nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    padding: 0.6rem 0.4rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.upper_nav .nav-link i {
    color: #d4af37;
    margin-right: 7px;
    font-size: 0.85rem;
}

.upper_nav .nav-link:hover {
    color: #fff !important;
}

.upper_nav .nav-link:hover i {
    color: #f5d76e;
}

/* ============================================================
   BRAND HEADER — elegant white banner
   ============================================================ */
.brand-header {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4fa 100%);
    padding: 1.1rem 0;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #031635, #d4af37, #031635) 1;
}

.brand-logo {
    width: 85px;
    height: 85px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
    transition: transform 0.4s ease;
}

.brand-logo:hover {
    transform: scale(1.04);
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.95rem;
    letter-spacing: 2.5px;
    margin: 0;
    /*text-transform: uppercase;*/
    background: linear-gradient(135deg, #031635 0%, #0a3d6b 50%, #031635 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.78rem;
    letter-spacing: 3px;
    color: #6b7c93;
    /*text-transform: uppercase;*/
    margin-top: 4px;
    font-weight: 400;
}

.brand-decor {
    display: inline-block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, transparent);
    margin-top: 6px;
}

/* ============================================================
   MENU — single line on desktop only (menu design untouched)
   ============================================================ */
@media (min-width: 992px) {
    .second_nav .navbar-nav {
        flex-wrap: nowrap !important;
        white-space: nowrap;
    }
    .second_nav .navbar-nav .nav-item,
    .second_nav .navbar-nav .nav-link {
        white-space: nowrap;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .second_nav .navbar-nav .nav-link {
        padding-left: 0.7rem !important;
        padding-right: 0.7rem !important;
        font-size: 0.85rem;
    }
}

/* ============================================================
   LUXURY FOOTER
   ============================================================ */
.admission_notice_container {
    background: linear-gradient(135deg, #0b1b3a 0%, #0f3b5c 45%, #1b5a7a 100%) !important;
    padding: 3rem 0 2.5rem !important;
    color: #fff;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #d4af37, #9ad4ff, #d4af37) 1;
    position: relative;
    overflow: hidden;
}

.admission_notice_container::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.admission_notice_container::after {
    content: "";
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(154, 212, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-heading {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.footer-heading i {
    color: #f5d76e;
    margin-right: 12px;
    font-size: 1.8rem;
}

.footer-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    border: none;
    margin: 0.6rem auto 2.2rem;
    border-radius: 4px;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
}

.footer-card {
    background: rgba(255, 255, 255, 0.045);
    border-radius: 18px;
    padding: 1.8rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    height: 100%;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.footer-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #d4af37, #9ad4ff);
    transition: height 0.4s ease;
    border-radius: 0 0 4px 0;
}

.footer-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.footer-card:hover::before {
    height: 100%;
}

.footer-card-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.footer-card-title i {
    color: #f5d76e;
    font-size: 1.25rem;
}

.footer-card-title .title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.4), transparent);
    margin-left: 10px;
}

.footer-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-list li {
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    transition: all 0.25s ease;
}

.footer-list li:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.05);
}

.footer-list a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.93rem;
    width: 100%;
    transition: color 0.2s ease;
}

.footer-list li:hover a {
    color: #fff;
}

.contact-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2rem 2rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
}

.contact-card {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    line-height: 1.55;
    padding: 0.6rem 0.4rem;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.contact-card strong {
    color: #fff;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.contact-card .phone {
    color: #b8cfe0;
    font-size: 0.85rem;
}

.contact-card .phone i {
    font-size: 0.75rem;
    margin-right: 5px;
    color: #d4af37;
}

/* ============================================================
   BOTTOM COPYRIGHT BAR
   ============================================================ */
.footer-bottom {
    background: linear-gradient(90deg, #0a1729 0%, #0e1e38 50%, #0a1729 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
}

.footer-bottom a {
    color: #f5d76e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom .social-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.25s ease;
}

.footer-bottom .social-icon:hover {
    color: #f5d76e;
    transform: translateY(-2px);
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #031635, #00254e);
    border: 2px solid #d4af37;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35);
}

.to-top img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.to-top.show {
    display: flex !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .brand-title {
        font-size: 1.5rem;
        letter-spacing: 1.5px;
    }
    .brand-sub {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
    .brand-logo {
        width: 70px;
        height: 70px;
    }
    .upper_nav .nav-link {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    .brand-title {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    .brand-sub {
        font-size: 0.62rem;
        letter-spacing: 1.5px;
    }
    .brand-logo {
        width: 60px;
        height: 60px;
    }
    .footer-heading {
        font-size: 1.5rem;
    }
    .footer-card {
        padding: 1.4rem 1.2rem;
    }
    .contact-wrapper {
        padding: 1.5rem 1.2rem;
    }
    .upper_nav .nav-link {
        font-size: 0.7rem;
        padding: 0.5rem 0.2rem;
    }
}