:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --secondary: #1e3a8a;
    --text: #1f2937;
    --text-light: #4b5563;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-dark: #111827;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-light);
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    font-size: 1rem;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container, .navbar-container, .content-container, .top-footer-container, .wrap-footer-container, .bottom-footer-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}



/* Styling untuk container */
.container-lg {
    max-width: 80%; /* Batasi lebar maksimum untuk keseimbangan */
    margin: 0 auto; /* Rata tengah */
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Styling untuk navbar */
/* Styling untuk navbar */
.navbar {
    background: linear-gradient(90deg, #2c3e50 40%, red 90%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    width: 100%;
    max-width: 100%;
    overflow: visible; /* Changed from hidden to allow dropdown visibility */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050; /* Increased z-index to ensure navbar is above other sections */
}

/* Styling untuk navbar container */
.navbar-container {
    width: 100%;
    max-width: 100%;
    padding-left: 30px; /* 30px from left for logo */
    padding-right: 10px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: visible; /* Ensure container doesn’t clip dropdown */
}

/* Styling untuk logo */
.navbar-brand {
    margin: 0;
    padding: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.4);
}

/* Styling untuk toggler */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler i {
    font-size: 1.5rem;
    color: #fff;
}

/* Styling untuk menu */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow: visible; /* Ensure nav doesn’t clip dropdown */
}

.nav-item {
    position: relative; /* Positioning context for dropdown */
}

.nav-link {
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.5rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: red !important;
    background: rgba(255, 255, 0.7);
    border-radius: 4px;
}

/* Styling untuk dropdown */
.dropdown-toggle {
    position: relative;
    padding-right: 1.2rem !important;
}

.dropdown-toggle::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    border: #fff;
    color: #fff;
    font-size: 0.6rem;
    position: absolute;
    right: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.3s ease;
}

.dropdown-toggle:hover::after {
    color: #c0392b;
}

.dropdown-menu {
    background: #2c3e50;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-top: 0; /* Adjusted to align directly below nav-link */
    min-width: 160px;
    z-index: 1051; /* Increased z-index */
    position: absolute;
    top: 100%; /* Position directly below parent */
    left: 0;
    visibility: visible; /* Force visibility */
    opacity: 1; /* Ensure it’s not faded */
    display: none; /* Controlled by Bootstrap JS */
}

.dropdown-menu.show {
    display: block; /* Ensure visibility when toggled */
    background: #2c3e50 !important; /* Debugging: distinct color */
}

.dropdown-item {
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
    background: #c0392b;
    color: #fff !important;
}

/* Ensure collapse doesn’t clip */
.navbar-collapse {
    overflow: visible;
    z-index: 1051; /* Match dropdown z-index */
}

/* Responsivitas */
@media (max-width: 991px) {
    .navbar-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem;
        background: #2c3e50;
        margin-top: 0.5rem;
        border-radius: 8px;
        overflow: visible;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem !important;
    }

    .dropdown-menu {
        width: 100%;
        background: #34495e;
        z-index: 1051;
        position: static; /* Adjust for mobile */
        margin-top: 0;
    }

    .dropdown-item {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .navbar-brand img {
        height: 45px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px;
    }

    .nav-link {
        font-size: 0.8rem;
    }
}




/* Content Section */
.content-section {
    margin-top: 80px;
    padding: 3rem 0;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    min-height: calc(100vh - 80px);
}

/* Footer */
.top-footer {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 2.5rem 0;
}

.top-footer .owl-carousel .item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-footer .owl-carousel img {
    width: 140px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.top-footer .owl-carousel img:hover {
    transform: scale(1.05);
}

.wrap-footer {
    background: var(--bg-light);
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-column {
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-title {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.4rem;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-column p, .footer-column ul li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-logo img {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.bottom-footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.social-buttons {
    display: flex;
    gap: 1.5rem;
}

.social-buttons a {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-buttons a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

.quicklinks p {
    margin: 0;
    color: #fff;
}

.quicklinks a {
    color: #fff;
    transition: color 0.3s ease;
}

.quicklinks a:hover {
    color: var(--primary);
}

/* Page Content */
.page-content {
    overflow-x: hidden;
    background: var(--bg-light);
}

/* Header Carousel */
header {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-inner .item {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-inner .item.active {
    display: block;
    opacity: 1;
}

.carousel-title {
        color:#FFFFFF;
        font-size: 3.5rem;
        font-weight: 800;
        margin-bottom: 1rem;
        text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

.carousel-title a {
        color:#FFFFFF;
        font-size: 3.5rem;
        font-weight: 800;
        margin-bottom: 1rem;
        text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
.carousel-title a:hover {
        color:#ccc;
        font-size: 3.5rem;
        font-weight: 800;
        margin-bottom: 1rem;
        text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
.carousel-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.carousel-indicators li {
    background-color: #fff;
    opacity: 0.6;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    border: none;
    transition: opacity 0.3s ease;
}

.carousel-indicators li.active {
    background-color: var(--primary);
    opacity: 1;
}

.carousel-scroll-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-scroll-btn .btn-circle {
    background: var(--primary);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-scroll-btn .btn-circle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 10;
}

.header-text h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.carousel-control {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: background 0.3s ease;
    text-decoration: none;
}

.carousel-control.left {
    left: 0;
}

.carousel-control.right {
    right: 0;
}

.carousel-control .glyphicon {
    color: #fff;
    font-size: 2.5rem;
    position: static;
    margin-top: 0;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-control .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Content Sections */
.box-content {
    padding: 4rem 0;
    background: var(--bg-white);
}

.heading {
    margin-bottom: 2rem;
    text-align: center;
}

.heading h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.heading-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.intro {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    background: var(--bg-light);
}

.welcome-section p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Dekan Section */
.dekan-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.dekan-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dekan-text {
    padding: 1rem;
}

.dekan-text h3 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.dekan-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.dekan-text strong {
    font-weight: 700;
}

/* Facilities Section */
.facilities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.service-box {
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    background: var(--bg-light);
    transition: transform 0.3s ease;
    flex: 1 1 calc(25% - 1rem);
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.facility-icon {
    height: 60px;
    margin-bottom: 1rem;
}

.service-box h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.service-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Middle Section */
.skill {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.skill h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.skill p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.progress-wrap {
    margin-bottom: 1rem;
}

.progress-wrap h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.progress {
    height: 1.5rem;
    background-color: #e0e6e0;
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: #fff;
    font-size: 0.85rem;
    transition: width 2s ease-in-out;
}

.progress-bar.color1 {
    background: var(--primary);
}

.progress-bar.color4 {
    background: var(--secondary);
}

.progress-bar.color3 {
    background: #f57836;
}

.accordion .panel {
    border: none;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.accordion .panel-heading {
    background: var(--bg-white);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.accordion .panel-heading:hover {
    background: var(--bg-light);
}

.accordion .panel-title a {
    font-size: 1.1rem;
    color: var(--primary);
    display: block;
    padding: 1rem;
}

.accordion .panel-body {
    font-size: 0.95rem;
    line-height: 1.8;
    padding: 1rem;
}

/* FAQ Section */
.parallax-section {
    background: var(--bg-light);
    padding: 4rem 0;
}


.panel-group .panel {
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.panel-group .panel-heading {
    background: var(--bg-white);
    border-radius: 8px;
}

.panel-group .panel-title a {
    font-size: 1.2rem;
    color: var(--primary);
    padding: 1rem;
    display: block;
}

.panel-group .panel-body {
    font-size: 0.95rem;
    line-height: 1.8;
    padding: 1rem 1.5rem;
}

/* Gallery Section */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    justify-content: center;
}

.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    margin: 0.5rem;
}

.gallery-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-box:hover .gallery-img {
    transform: scale(1.05);
}

.portfolio-box-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.portfolio-box:hover .portfolio-box-caption {
    opacity: 1;
}

.portfolio-box-caption-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.project-category {
    font-size: 1rem;
    font-weight: 500;
}

/* News Section */
.news-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-main {
    flex: 1 1 50%;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.news-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.news-main h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.news-main .info {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.news-main p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.news-sidebar {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post {
    display: flex;
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.post-img {
    width: 120px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.post .wrapper {
    flex: 1;
}

.post h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.post .info {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hide Google Translate header */
.goog-te-banner-frame, .skiptranslate, #goog-gt-tt {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .container, .navbar-container, .content-container, .top-footer-container, .wrap-footer-container, .bottom-footer-container {
        max-width: 1000px;
    }

    .carousel-inner {
        height: 400px;
    }

    .header-text h1 {
        font-size: 2.5rem;
    }

    .portfolio-box {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 42px;
    }

    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .content-section {
        margin-top: 70px;
        padding: 2.5rem 0;
        border-radius: 10px;
    }

    .wrap-footer {
        padding: 3rem 0;
    }

    .footer-title {
        font-size: 1.3rem;
    }

    .footer-logo img, .top-footer .owl-carousel img {
        width: 120px;
    }

    .translate-widget {
        left: 16px;
    }

    .language-panel {
        left: 70px;
        min-width: 180px;
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .carousel-inner {
        height: 300px;
    }

    .header-text h1 {
        font-size: 2rem;
    }

    .carousel-control {
        width: 40px;
    }

    .carousel-control .glyphicon {
        font-size: 1.5rem;
    }

    .dekan-section {
        flex-direction: column;
    }

    .dekan-text {
        padding: 0;
    }

    .news-grid {
        flex-direction: column;
    }

    .news-main, .news-sidebar {
        flex: 1 1 100%;
    }

    .box-content {
        padding: 2rem 0;
    }

    .heading h2 {
        font-size: 2rem;
    }

    .facilities-grid {
        gap: 0.5rem;
    }

    .service-box {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .portfolio-box {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .footer-bottom-content {
        flex-direction: column;
        gap: 1.2rem;
    }

    .navbar-brand img {
        height: 38px;
    }

    .content-section {
        padding: 2rem 0;
        border-radius: 8px;
    }

    .translate-widget {
        left: 12px;
    }

    .language-panel {
        left: 60px;
        min-width: 160px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .container, .navbar-container, .content-container, .top-footer-container, .wrap-footer-container, .bottom-footer-container {
        padding: 0 1rem;
    }

    .carousel-inner {
        height: 250px;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }

    .carousel-scroll-btn .btn-circle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .carousel-control {
        width: 30px;
    }

    .carousel-control .glyphicon {
        font-size: 1.2rem;
    }

    .welcome-section, .dekan-section, .skill {
        padding: 1rem;
    }

    .post-img {
        width: 100px;
        height: 80px;
    }

    .box-content {
        padding: 1.5rem 0;
    }

    .service-box {
        flex: 1 1 100%;
    }
}


.dekan-section {
    display: flex;
    align-items: stretch;
}
.dekan-text {
    padding: 20px;
}
.dekan-img {
    object-fit: cover;
}