@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #c0510a; /* Primary orange - FISIP UBB */
    --accent-gold: #ffbe28; /* Gold color for login button/accents */
    --light-bg: #f8f9fa; /* Background for sections */
    --text-main: #333333;
    --text-muted: #6c757d;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    padding-top: 0; /* Hero starts at top */
}

/* Navbar */
.navbar-custom {
    background-color: transparent;
    padding: 20px 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar-custom.scrolled {
    background-color: rgba(255, 255, 255, 1);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.navbar-custom .nav-link {
    color: white;
    font-weight: 500;
    margin: 0 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--accent-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.navbar-custom .nav-link:hover::after {
    transform: scaleX(1);
}
.navbar-custom.scrolled .nav-link {
    color: var(--primary-blue);
}
.navbar-custom .nav-link:hover {
    color: var(--accent-gold);
}

/* Responsive adjustments to prevent menu crowding on laptop/desktop screens */
@media (min-width: 992px) and (max-width: 1400px) {
    .navbar-custom .nav-link {
        margin: 0 5px !important;
        font-size: 13px !important;
    }
    .navbar-custom .nav-link::after {
        left: 5px !important;
        right: 5px !important;
    }
    .navbar-brand span {
        font-size: 1.05rem !important;
    }
    .navbar-actions .btn-join-us {
        padding: 5px 12px !important;
        font-size: 0.8rem !important;
    }
    .quick-access-link {
        font-size: 13px !important;
    }
}
@media (min-width: 1401px) and (max-width: 1550px) {
    .navbar-custom .nav-link {
        margin: 0 8px !important;
        font-size: 14px !important;
    }
    .navbar-custom .nav-link::after {
        left: 8px !important;
        right: 8px !important;
    }
}

.navbar-custom .navbar-brand span {
    color: white;
    transition: opacity 0.3s ease;
}
.navbar-custom.scrolled .navbar-brand span {
    color: var(--primary-blue);
}
.site-logo {
    max-height: 50px;
    transition: opacity 0.3s ease;
}

/* Integrated Search Bar */
.navbar-search-integrated {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 0;
    background: white;
    padding: 8px 20px;
    border-radius: 50px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1050;
    display: flex;
    align-items: center;
}
.navbar-search-integrated.active {
    width: 90%;
    max-width: 800px;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
#navbarLogo, #navbarAKU {
    transition: opacity 0.3s ease;
}
.navbar-custom .nav-link:hover {
    color: var(--accent-gold);
}
.btn-login {
    background-color: var(--accent-gold);
    color: #fff;
    font-weight: 600;
    border-radius: 20px;
    padding: 8px 25px;
    border: none;
    transition: all 0.3s ease;
}
.btn-login:hover {
    background-color: #e5a91f;
    transform: translateY(-2px);
}

.btn-join-us {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    font-weight: 700;
    border-radius: 50px;
    padding: 8px 22px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(255,190,40,0.25);
}
.btn-join-us:hover {
    background-color: #fff;
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,190,40,0.4);
}

.nav-icon-link {
    color: white;
    transition: color 0.3s ease;
}
.navbar-custom.scrolled .nav-icon-link {
    color: var(--primary-blue);
}
.nav-icon-link:hover {
    color: var(--accent-gold) !important;
}

/* Mega Menu & Submenu */
.mega-dropdown {
    position: relative !important;
}
.mega-menu {
    width: max-content;
    max-width: 90vw;
    left: 50%;
    display: none;
    background: #fff;
    border-radius: 15px !important;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    padding: 30px !important;
    margin-top: -1px; /* Remove any un-hoverable gap */
}
.mega-dropdown:hover .mega-menu,
.mega-dropdown .mega-menu.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-item {
    font-size: 13.5px;
    color: #555;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background: transparent;
    color: var(--accent-gold);
    padding-left: 5px !important;
}
.dropdown-header {
    font-size: 15px;
    text-transform: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

@media (max-width: 991.98px) {
    .navbar-custom {
        background-color: var(--primary-blue) !important;
        padding: 10px 0;
    }
    .navbar-collapse {
        background: var(--primary-blue);
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 20px;
        overflow-y: auto;
    }
    .navbar-nav .nav-link {
        font-size: 18px;
        margin: 15px 0;
        padding: 0;
    }
    .mega-menu {
        position: relative !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        background: transparent !important;
        padding: 0 15px !important;
        box-shadow: none !important;
    }
    .mega-menu .dropdown-header {
        color: var(--accent-gold) !important;
        border-color: rgba(255,255,255,0.1);
        padding-top: 20px;
    }
    .mega-menu .dropdown-item {
        color: rgba(255,255,255,0.8);
        font-size: 16px;
    }
    .navbar-search-integrated.active {
        top: 30px;
        width: 95%;
    }
}

/* Hero Slider Section */
#heroSlider {
    height: 100vh; /* Full viewport height */
    background-color: #000;
    margin-top: 0;
}
.carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.carousel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(11, 52, 92, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}
.slider-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 900px;
}

/* Animations */
.slide-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 1s ease 0.3s;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.slide-subtitle {
    display: block;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease 0.5s;
}
.slide-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease 0.7s;
}
.slide-btns {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s ease 0.9s;
}

/* Active Triggers */
.carousel-item.active .slide-title {
    opacity: 1;
    transform: translateY(0);
}
.carousel-item.active .slide-subtitle {
    opacity: 1;
    transform: translateX(0);
}
.carousel-item.active .slide-text {
    opacity: 1;
    transform: translateY(0);
}
.carousel-item.active .slide-btns {
    opacity: 1;
    transform: scale(1);
}
.btn-outline-light {
    border-radius: 20px;
    padding: 10px 25px;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}
.btn-outline-light:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
}

/* Section Titles */
.section-title {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Profile Unit */
.profile-section {
    padding: 60px 0;
    background-color: white;
}
.profile-card {
    background: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 25px;
    height: 100%;
    transition: transform 0.3s ease;
    border-top: 3px solid var(--accent-gold);
}
.profile-card:hover {
    transform: translateY(-5px);
}
.profile-card h5 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.profile-card h5 i {
    margin-right: 10px;
    color: var(--accent-gold);
}

/* IKU Section */
.iku-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
}

.chart-container {
    padding: 20px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.chart-container:hover {
    transform: translateY(-5px);
}

/* Tree Visualization Styles (Vertical Layout) */
.iku-tree-wrapper {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.03);
    overflow: hidden;
}

.tree-list {
    list-style: none;
    padding-left: 20px;
    position: relative;
}

.tree-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #eef2f7;
}

.tree-item {
    position: relative;
    padding: 15px 0 15px 30px;
}

.tree-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 28px;
    width: 20px;
    height: 2px;
    background: #eef2f7;
}

.tree-item:last-child::after {
    content: '';
    position: absolute;
    left: -2px;
    top: 28px;
    bottom: 0;
    width: 4px;
    background: white;
}

.tree-node-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    border: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.tree-node-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.tree-node-info h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.tree-node-info small {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-top: 2px;
}

.tree-node-progress {
    width: 120px;
    text-align: right;
}

.tree-node-progress .progress {
    height: 6px;
    background: #f1f4f8;
    border-radius: 10px;
    margin-top: 5px;
}

.tree-node-val {
    font-size: 0.9rem;
    font-weight: 800;
}

/* IKU Chart Styles */
.iku-chart-container {
    background: #fff;
    transition: all 0.3s ease;
}
.iku-chart-container:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

.iku-legend-container {
    background: #f8faff;
}

.iku-list-scroll::-webkit-scrollbar {
    width: 5px;
}
.iku-list-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.iku-list-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}
.iku-list-scroll::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Old Grid Metrics (Legacy support or fallback) */
.iku-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.iku-metric-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--accent-gold);
}

.iku-metric-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.iku-metric-label {
    background: #f8faff;
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iku-metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.iku-metric-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.9rem;
}

.iku-metric-footer {
    border-top: 1px solid #f1f4f8;
    padding-top: 15px;
    margin-top: auto;
}

/* Services */
.services-section {
    padding: 60px 0;
}
.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.service-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}
.service-card h6 {
    font-weight: 600;
    color: var(--primary-blue);
}
.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* News and Docs */
.news-docs-section {
    padding: 60px 0;
    background: #fdfdfd;
}
.news-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    display: flex;
    align-items: flex-start;
    border-left: 4px solid var(--primary-blue);
}
.news-date {
    background: var(--primary-blue);
    color: white;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 15px;
    font-weight: 500;
    white-space: nowrap;
}
.news-content h6 {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}
.news-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.news-content a {
    font-size: 0.85rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

/* Download Cards */
.doc-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}
.doc-card:hover {
    border-color: var(--accent-gold);
}
.doc-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}
.doc-card h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.doc-card small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Footer */
.footer-custom {
    background-color: var(--primary-blue);
    color: white;
    padding: 50px 0 20px;
}
.footer-custom h5 {
    font-weight: 600;
    margin-bottom: 30px;
}
.footer-info {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.footer-info-icon {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

/* Language Switcher */
.language-switcher .btn {
    color: var(--primary-blue) !important;
    font-size: 13px !important;
    font-weight: 500;
}
.language-switcher .btn:hover {
    color: var(--accent-gold) !important;
}
.language-switcher .dropdown-menu {
    font-size: 13px;
    min-width: 150px;
}
.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Hide Google Translate elements that clutter the UI */
.goog-te-banner-frame {
    display: none !important;
}
body {
    top: 0 !important;
}
.goog-te-menu-value span:nth-child(5) {
    display: none !important;
}
.goog-te-menu-value img {
    display: none !important;
}
.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 100px 20px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-content .btn-outline-light {
        display: block;
        margin: 10px auto;
        width: 100%;
        max-width: 300px;
    }
    .footer-custom {
        padding: 40px 0 20px;
    }
    .footer-info-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin-right: 10px;
    }
    .section-title {
        font-size: 1.5rem;
    }
}


/* Social Media Icons in Footer */
.footer-social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.footer-social-icon.fb:hover { background: #1877F2; border-color: #1877F2; }
.footer-social-icon.ig:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent; }
.footer-social-icon.x:hover { background: #000000; border-color: #333; }
.footer-social-icon.yt:hover { background: #FF0000; border-color: #FF0000; }
.footer-social-icon.tk:hover { background: #010101; border-color: #010101; }

@media (max-width: 768px) {
    .footer-social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
/* Document Items in Sidebar/Tab */
.doc-item {
    transition: all 0.2s ease;
    border-left: 4px solid transparent !important;
}

.doc-item:hover {
    background-color: #f8f9fa !important;
    border-left-color: var(--primary-blue) !important;
    transform: translateX(5px);
}

.doc-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.doc-item:hover .doc-item-icon {
    background-color: var(--primary-blue) !important;
}

.doc-item:hover .doc-item-icon i {
    color: white !important;
}

#docTab .nav-link {
    color: #666;
    background: white;
    border-color: #eee !important;
    white-space: nowrap;
}

#docTab .nav-link.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue) !important;
}
/* News Item Simple List */
.news-item-list {
    transition: all 0.3s ease;
    border-left: 4px solid transparent !important;
}

.news-item-list:hover {
    transform: translateY(-3px);
    border-left-color: var(--primary-blue) !important;
    background-color: #fcfcfc !important;
}

.news-list-date {
    min-width: 60px;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-thumb img {
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.news-item-list:hover .news-list-thumb img {
    transform: scale(1.05);
}

/* ==========================================================================
   Bootstrap Override Styles for Orange Theme Integration
   ========================================================================== */
.nav-pills .nav-link.active, 
.nav-pills .show > .nav-link {
    background-color: var(--primary-blue) !important;
    color: white !important;
}

.nav-link {
    color: #444;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.text-primary {
    color: var(--primary-blue) !important;
}

.btn-primary {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: var(--primary-blue) !important;
}

.btn-outline-primary {
    color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: white !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

/* Hover lift transition utility */
.transition-hover {
    transition: all 0.25s ease-in-out;
}
.transition-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(192, 81, 10, 0.25) !important;
}
