/* 
    E-Graduate UI/UX Modernization 2026
    Custom Styles
*/

.transition {
    transition: all 0.3s ease-in-out;
}

.hover-transform:hover {
    transform: translateY(-10px);
}

.hover-shadow:hover {
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.15)!important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #003399 0%, #0066cc 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
}

/* Custom RU Orange/Gray — synced with :root variables in style.css */
.text-ru-orange  { color: var(--ru-orange) !important; }
.bg-ru-orange    { background-color: var(--ru-orange) !important; }
.text-ru-gray    { color: var(--ru-gray) !important; }
.bg-ru-gray      { background-color: var(--ru-gray) !important; }
.border-ru-orange { border-color: var(--ru-orange) !important; }
/* Legacy aliases */
.text-ru-blue { color: var(--ru-orange) !important; }
.bg-ru-blue   { background-color: var(--ru-orange) !important; }
.text-ru-gold { color: var(--ru-gray) !important; }
.bg-ru-gold   { background-color: var(--ru-gray) !important; }

/* Dashboard adjustments */
.media-body {
    flex: 1;
}

.bg-darken-2 {
    filter: brightness(0.9);
}

/* ============================================
   Page Header (Masthead) — RU Orange Theme
   Colors extracted from images/asset-11.png
   ============================================ */
.masthead {
    position: relative;
    min-height: 220px;
    background-image: url('../themes/startbootstrap/img/home-bg.jpg');
    background-size: cover;
    background-position: center 40%;
    background-attachment: fixed;
    margin-top: 59px; /* navbar height + border offset */
}

.masthead-overlay {
    position: absolute;
    inset: 0;
    background: var(--header-gradient,
        linear-gradient(160deg,
            rgba(60, 25, 5, 0.90) 0%,
            rgba(180, 70, 10, 0.82) 50%,
            rgba(232, 104, 26, 0.72) 100%));
    display: flex;
    align-items: center;
    min-height: 220px;
    padding: 2.5rem 0;
}

/* Orange accent bar at bottom of header */
.masthead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient,
        linear-gradient(90deg, #c45512 0%, #F47B20 50%, rgba(244,123,32,0.25) 100%));
}

.masthead-logo-img {
    height: 68px;
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5)) brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.masthead-logo-img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 14px rgba(232,104,26,0.7)) brightness(0) invert(1);
}

.masthead-title {
    font-size: clamp(1.25rem, 3.2vw, 1.9rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.025em;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.masthead-subtitle {
    font-size: clamp(0.85rem, 1.8vw, 1.05rem);
    color: rgba(255, 230, 210, 0.88);
    font-weight: 300;
    margin-bottom: 1.2rem;
    letter-spacing: 0.04em;
}

.masthead-divider {
    width: 56px;
    height: 3px;
    background: var(--accent-gradient,
        linear-gradient(90deg, #c45512, #F47B20, rgba(244,123,32,0.2)));
    border-radius: 2px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .masthead {
        background-attachment: scroll;
        min-height: 180px;
    }
    .masthead-overlay {
        min-height: 180px;
        padding: 1.75rem 0;
    }
    .masthead-logo-img {
        height: 50px;
    }
}
