:root {
    --primary-color: #800000;
    /* USN Maroon */
    --secondary-color: #ffd700;
    /* Gold accent */
    --fkip-yellow: #FFC107;
    /* FKIP Identity Yellow */
    --text-color: #333;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    font-size: 0.9rem;
    /* Reduced from default */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.text-fkip-yellow {
    color: var(--fkip-yellow) !important;
}

.bg-fkip-yellow {
    background-color: var(--fkip-yellow) !important;
}

/* Top Bar */
.top-bar {
    background-color: var(--fkip-yellow);
    /* Changed to FKIP Yellow */
    color: #333;
    /* Dark text for contrast */
    padding: 10px 0;
    font-size: 0.8rem;
    /* Reduced from 0.9rem */
}

.top-bar a {
    color: #333;
    /* Dark text for links */
    margin-left: 15px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: #000;
    /* Darker on hover */
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white;
}

.navbar-brand img {
    height: 45px;
    /* Slightly smaller logo */
    margin-right: 10px;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 10px 15px !important;
    font-size: 0.9rem;
    /* Added explicitly to control size */
}

.nav-link:hover,
.nav-link.active {
    color: var(--fkip-yellow) !important;
    /* Yellow for active/hover */
}

/* Hero Slider */
.hero-slider .carousel-item {
    height: 500px;
    /* Reduced height from 600px */
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 2.5rem;
    /* Reduced from 3.5rem */
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1rem;
    /* Reduced from 1.2rem */
    margin-bottom: 25px;
}

.btn-primary-custom {
    background-color: var(--fkip-yellow);
    /* FKIP Yellow Button */
    color: #000;
    /* Dark text for contrast */
    border: none;
    padding: 10px 25px;
    /* Reduced padding */
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
    font-size: 0.9rem;
    /* Reduced font size */
}

.btn-primary-custom:hover {
    background-color: #e0a800;
    color: #000;
    transform: translateY(-2px);
}

/* Dean's Welcome */
.welcome-section {
    padding: 60px 0;
    /* Reduced padding */
}

.dean-img-wrapper {
    position: relative;
    padding: 15px;
}

.dean-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    /* Reduced size */
    height: 80px;
    border-top: 5px solid var(--fkip-yellow);
    /* Yellow borders */
    border-left: 5px solid var(--fkip-yellow);
}

.dean-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    /* Reduced size */
    height: 80px;
    border-bottom: 5px solid var(--fkip-yellow);
    border-right: 5px solid var(--fkip-yellow);
}

.carousel-indicators .active {
    background-color: var(--fkip-yellow);
}

.dean-img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Stats Counter */
.stats-section {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    /* Reduced padding */
}

.stats-section i {
    color: var(--fkip-yellow) !important;
}

.stat-item h3 {
    font-size: 2.5rem;
    /* Reduced from 3rem */
    font-weight: 700;
}

/* Programs */
.programs-section {
    padding: 60px 0;
    /* Reduced padding */
    background: var(--light-bg);
}

.program-card {
    background: white;
    padding: 25px;
    /* Reduced padding */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
    text-align: center;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-icon {
    font-size: 2.5rem;
    /* Reduced from 3rem */
    color: var(--fkip-yellow);
    /* Yellow Icons */
    margin-bottom: 15px;
}

/* News */
.news-section {
    padding: 60px 0;
    /* Reduced padding */
}

.news-card {
    border: none;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-img {
    height: 180px;
    /* Reduced height */
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 15px;
    /* Reduced padding */
}

.news-date {
    color: #777;
    font-size: 0.8rem;
    /* Reduced from 0.9rem */
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.1rem;
    /* Reduced from 1.2rem */
    font-weight: 600;
    margin-bottom: 8px;
}

.news-title a {
    color: var(--text-color);
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--fkip-yellow);
}


/* Footer */
footer {
    background: #222;
    color: #ddd;
    padding: 40px 0 15px;
    /* Reduced padding */
}

.footer-logo {
    height: 50px;
    /* Reduced height */
    margin-bottom: 15px;
    background: white;
    /* Temporary for dark logo on dark bg */
    padding: 5px;
    border-radius: 5px;
}

.footer-links li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    /* Explicit size */
}

.footer-links a {
    color: #bbb;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--fkip-yellow);
}

.copyright {
    border-top: 1px solid #444;
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
    font-size: 0.8rem;
    /* Reduced from 0.9rem */
}