:root {
    --primary-color: #0056b3;
    /* Faculty Blue */
    --secondary-color: #f1c40f;
    /* Gold */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --footer-bg: #1a1a1a;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Helper Classes */
.bg-primary-usn {
    background-color: var(--primary-color) !important;
    color: white;
}

.text-primary-usn {
    color: var(--primary-color) !important;
}

.bg-gold {
    background-color: var(--secondary-color) !important;
    color: #000;
}

.text-gold {
    color: var(--secondary-color) !important;
}

/* Top Bar */
.top-bar {
    background-color: #800000;
    color: #fff;
    font-size: 0.85rem;
    padding: 5px 0;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

/* Navigation */
.navbar-custom {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand img {
    height: 50px;
    margin-right: 10px;
}

.navbar-brand span {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
}

.nav-link {
    color: #333 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 15px !important;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(128, 0, 0, 0.05);
    /* Light maroon tint */
    border-radius: 5px;
}

/* Hero Slider */
.hero-section {
    position: relative;
    height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('gedung.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-gold {
    background-color: var(--secondary-color);
    color: #000;
    font-weight: 700;
    border: none;
    padding: 12px 30px;
    text-transform: uppercase;
    transition: transform 0.2s;
}

.btn-gold:hover {
    background-color: #d4ac0d;
    transform: translateY(-2px);
    color: #000;
}

/* Features / stats */
.stats-section {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--secondary-color);
}

.stat-item p {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* News Section */
.section-title {
    position: relative;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin-top: 10px;
}

.news-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    overflow: hidden;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-img {
    height: 200px;
    object-fit: cover;
}

.news-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.news-title a {
    text-decoration: none;
    color: inherit;
}

.news-title a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #bbb;
    padding-top: 60px;
    font-size: 0.9rem;
}

footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-left: 3px solid var(--secondary-color);
    padding-left: 10px;
}

footer a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    background-color: #000;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}