:root {
    --primary-color: #F37021;
    /* Vibrant Orange */
    --secondary-color: #D35400;
    /* Darker Orange */
    --accent-color: #FFCC80;
    /* Light Orange */
    --text-color: #333333;
    --text-light: #777777;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --dark: #1a1a1a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.lead {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 112, 33, 0.6);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--primary-color);
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    color: var(--secondary-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.8rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 20px;
}

.top-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

.social-icons a {
    color: var(--white);
    margin-left: 15px;
    font-size: 0.9rem;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Header & Navbar */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.2;
    color: var(--dark);
}

.logo-text h2 {
    font-size: 0.8rem;
    margin: 0;
    font-weight: 400;
    color: var(--text-light);
}

.navbar .nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar .nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 5px;
    /* Add padding for underline */
}

/* Remove default link hover for submenu parent */
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: var(--primary-color);
}

.navbar .nav-links>li>a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar .nav-links>li>a:hover::after,
.navbar .nav-links>li>a.active::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 20px;
    transition: var(--transition);
}

.btn-contact:hover {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
}

.btn-contact::after {
    display: none !important;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    background: url('https://source.unsplash.com/1600x900/?technology,university') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

/* Fallback background if unsplash fails or is slow */
.hero {
    background-color: #333;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(243, 112, 33, 0.9), rgba(44, 62, 80, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Stats Section */
.stats {
    background-color: var(--white);
    padding: 40px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* Dean Welcome */
.dean-welcome {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.welcome-image .img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.placeholder-img {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.3rem;
}

.welcome-image img {
    width: 100%;
    display: block;
    border-radius: 20px;
}

/* Prodi Section (Homepage) */
.prodi {
    padding: 100px 0;
    background-color: var(--white);
}

.prodi .section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.prodi .prodi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.prodi .prodi-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    text-align: center;
}

.prodi .prodi-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.prodi .prodi-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(243, 112, 33, 0.1);
    color: var(--primary-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.prodi .prodi-card:hover .prodi-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.prodi .prodi-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.prodi .prodi-card p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.prodi .prodi-card a {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* News Section */
.news {
    padding: 100px 0;
    background-color: #f4f6f8;
}

.news .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-card:first-child .news-img {
    background-image: url('https://source.unsplash.com/600x400/?coding');
}

.news-card:nth-child(2) .news-img {
    background-image: url('https://source.unsplash.com/600x400/?seminar');
}

.news-card:nth-child(3) .news-img {
    background-image: url('https://source.unsplash.com/600x400/?meeting');
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.news-card h3 a:hover {
    color: var(--primary-color);
}

.news-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex: 1;
    font-size: 0.85rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Footer */
.main-footer {
    background-color: var(--dark);
    color: #bbb;
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-col h3 {
    color: var(--white);
    margin: 20px 0;
}

.footer-logo {
    height: 80px;
    /* filter: brightness(0) invert(1); */
    margin-bottom: 10px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-col li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-col i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* Dropdown Menu Styles */
.navbar .nav-links li {
    position: relative;
}

.has-submenu>a i {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.has-submenu:hover>a i {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    /* Slightly rounded corners */
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
    border-top: 3px solid var(--primary-color);
    /* Orange top border accent */
    text-align: left;
}

.submenu li {
    display: block;
    width: 100%;
    margin: 0;
    /* Reset margin */
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    /* Light separator */
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background-color: #fff5ee;
    /* Very light orange bg */
    color: var(--primary-color);
    padding-left: 25px;
    /* Slight slide effect */
}

/* Remove the active underline effect for submenu items if inherited */
.submenu li a::after {
    display: none;
}

/* Show submenu on hover */
.navbar .nav-links li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .stats {
        margin-top: 0;
        border-radius: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .welcome-grid {
        grid-template-columns: 1fr;
    }

    .welcome-image {
        order: -1;
    }

    .prodi-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .navbar .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        width: 250px;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease;
        overflow-y: auto;
        /* Enable scrolling for long menus */
    }

    .navbar .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        /* Above nav menu */
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text h2 {
        display: none;
    }

    .hero {
        height: 70vh;
        text-align: center;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .prodi-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Mobile Dropdown */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background-color: #f9f9f9;
        display: none;
        /* Hidden by default on mobile */
        padding-left: 20px;
        min-width: 100%;
    }

    .has-submenu.active .submenu {
        display: block;
        /* Show when clicked/toggled on mobile */
    }

    .has-submenu>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .navbar .nav-links {
        display: flex;
        align-items: flex-start;
        /* Align text to left in mobile menu */
    }

    .navbar .nav-links li {
        width: 100%;
    }

    .navbar .nav-links a {
        padding: 15px 20px;
    }
}

/* --- Combined Styles from Individual Files --- */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark));
    padding: 60px 0;
    color: var(--white);
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb li a:hover {
    text-decoration: underline;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb li:last-child::after {
    content: '';
}

/* Page Content */
.page-content {
    padding-bottom: 80px;
    min-height: 50vh;
}

.content-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* --- Profile Pages Styles --- */

/* Timeline / History */
.history-section {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.history-img-wrapper {
    flex: 1;
}

.history-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--hover-shadow);
}

.history-text {
    flex: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--bg-light);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    margin-bottom: 30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: auto;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    left: 10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

/* Visi Misi */
.visimisi-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.visi-card,
.misi-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.visi-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: rgba(243, 112, 33, 0.05);
}

.visi-text {
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    color: var(--dark);
    margin-top: 20px;
}

.misi-list {
    text-align: left;
    margin-top: 20px;
}

.misi-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.misi-list li i {
    color: var(--primary-color);
    margin-top: 5px;
}

/* Pimpinan & Struktur */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.leader-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 30px;
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.leader-img-container {
    height: 250px;
    overflow: hidden;
    background-color: #eee;
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.leader-info {
    padding: 20px;
}

.leader-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.leader-position {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Senat Table Style */
.senat-list {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.senat-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.senat-item:hover {
    background-color: #f9f9f9;
}

.senat-item:last-child {
    border-bottom: none;
}

.senat-name {
    font-weight: 600;
}

.senat-role {
    background-color: rgba(243, 112, 33, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Renstra */
.strategis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.strategis-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.strategis-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    display: block;
}

@media (max-width: 768px) {
    .history-section {
        flex-direction: column;
    }

    .timeline::after {
        left: 20px;
    }
}

/* --- Layout: Sidebar Page (Standard Academic Profile) --- */
.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Sidebar Styling */
.sidebar {
    position: relative;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.sidebar-title {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.sidebar-menu li a i {
    font-size: 0.8rem;
}

/* Content Area Styling */
.content-area h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.content-area h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.content-area p {
    margin-bottom: 20px;
    color: #555;
    text-align: justify;
}

.content-area ul {
    list-style: none;
    margin-bottom: 20px;
}

.content-area ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.content-area ul li::before {
    content: '\f00c';
    /* FontAwesome check */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* Responsive */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 1;
        /* Move sidebar to bottom on mobile or remove this line to keep at top */
    }
}

/* --- Program Studi List Page --- */
.program-content {
    padding-top: 80px;
    padding-bottom: 100px;
    background-color: #f9f9f9;
}

.program-content .program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.program-content .prodi-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.program-content .prodi-card:hover {
    transform: translateY(-5px);
}

.program-content .prodi-card-body {
    padding: 30px;
}

.program-content .prodi-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.program-content .prodi-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-prodi {
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-prodi-ti {
    background: var(--primary-color);
}

.btn-prodi-si {
    background: var(--secondary-color);
}

.btn-prodi-ilkom {
    background: var(--accent-color);
}

.btn-prodi:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

/* --- Program Studi Detail Page --- */
.prodi-detail-content {
    padding: 80px 0;
    background-color: #fff;
}

.prodi-detail-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.prodi-main {
    flex: 2;
    min-width: 300px;
}

.prodi-sidebar {
    flex: 1;
    min-width: 300px;
}

.prodi-title {
    margin-bottom: 20px;
    font-size: 2rem;
}

.prodi-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    text-align: justify;
}

.vision-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    border-left-width: 5px;
    border-left-style: solid;
}

.section-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.vision-text {
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-item {
    margin-bottom: 15px;
    display: flex;
    align-items: start;
    gap: 10px;
    color: #555;
    font-size: 1.05rem;
}

.competency-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.competency-badge {
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
    border-top-width: 5px;
    border-top-style: solid;
}

.sidebar-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.info-group {
    margin-bottom: 20px;
}

.info-label {
    margin-bottom: 5px;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.info-value {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
}

.accreditation-badge {
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.kaprodi-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.kaprodi-img {
    width: 50px;
    height: 50px;
    background: #eee;
    border-radius: 50%;
    overflow: hidden;
}

.kaprodi-name {
    font-weight: 700;
    color: #333;
    margin: 0;
    font-size: 1rem;
}

.btn-contact-prodi {
    display: block;
    width: 100%;
    background: #333;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 30px;
    transition: background 0.3s;
}

.btn-contact-prodi:hover {
    background: #555;
    color: white;
    text-decoration: none;
}

/* --- Consolidated Styles --- */
/* (This block replaces previous duplicates if any were found, specific implementation pending analysis of home.php) */
/* Sidebar Styles */
.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.sidebar-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu li a {
    display: block;
    padding: 10px 15px;
    color: #555;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background-color: var(--primary-color);
    color: #fff;
    padding-left: 20px;
}

.sidebar-menu li a i {
    font-size: 0.8rem;
}

/* =========================================
   RESPONSIVE STYLES (Mobile & Tablet)
   ========================================= */

@media (max-width: 992px) {

    /* Tablet & Small Desktop */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prodi-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .welcome-grid {
        grid-template-columns: 1fr;
    }

    .welcome-image {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* Mobile Devices */

    /* Header & Nav */
    .top-bar {
        display: none;
    }

    .main-header {
        padding: 10px 0;
    }

    .hamburger {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1100;
        color: var(--primary-color);
        padding: 5px;
    }

    .navbar .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        width: 280px;
        padding-top: 80px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 1000;
        display: flex;
        align-items: flex-start;
    }

    .navbar .nav-links.active {
        right: 0;
    }

    .navbar .nav-links>li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar .nav-links a {
        padding: 15px 25px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        font-size: 1rem;
    }

    /* Mobile Submenu */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background-color: #f9f9f9;
        width: 100%;
        display: none;
        padding: 0;
        min-width: 100%;
    }

    .has-submenu.active .submenu {
        display: block;
    }

    .has-submenu>a i {
        transition: transform 0.3s;
    }

    .has-submenu.active>a i {
        transform: rotate(180deg);
    }

    .submenu li a {
        padding: 12px 25px 12px 40px;
        font-size: 0.9rem;
        border-bottom: 1px solid #eee;
    }

    /* Grids to Single Column */
    .prodi-grid,
    .news-grid,
    .stats-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Typography Adjustments */
    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .logo-text h1 {
        font-size: 0.9rem;
    }

    .logo-text h2 {
        display: block;
        font-size: 0.7rem;
        margin-top: 2px;
    }

    .logo {
        height: 40px;
    }

    /* Page Layouts */
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 1;
        /* Sidebar below content on mobile */
    }

    .prodi-detail-layout {
        flex-direction: column;
    }

    .prodi-main,
    .prodi-sidebar {
        min-width: 100%;
    }

    /* Table Responsive Wrapper */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}