/*
Theme Name: AMIK Polibisnis Theme
Theme URI: https://polibisnis.ac.id/
Author: Overtime Studio
Description: Tema resmi WordPress untuk AMIK Polibisnis Sei Mangkei.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: polibisnis
Tags: custom-theme, university, education, blue, responsive-layout, dynamic-options
*/

:root {
	/* Color Palette - Presisi 100% Sesuai UI/UX AMIK Polibisnis */
	--primary-blue: #2563eb;
	--primary-blue-hover: #1d4ed8;
	--dark-blue: #1e3a8a;
	--darker-blue: #172554;
	--hero-highlight: #3b82f6;
	--accent-gold: #f5b61b;
	--accent-gold-hover: #dfa312;
	--light-blue-bg: #eff6ff;
	--light-blue-card: #dbeafe;
	--livechat-blue: #2563eb;

	/* Neutrals & Text */
	--text-dark: #1e293b;
	--text-muted: #64748b;
	--text-light: #94a3b8;
	--bg-white: #ffffff;
	--bg-light: #f8fafc;
	--border-color: #e2e8f0;

	/* Typography */
	--font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	/* Shadows & Effects */
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 12px 28px rgba(37, 99, 235, 0.08);
	--shadow-floating: 0 16px 36px rgba(29, 78, 216, 0.25);
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--radius-xl: 28px;
	--radius-pill: 9999px;

	/* Transitions */
	--transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset for Theme Consistency */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-main);
	color: var(--text-dark);
	background-color: var(--bg-white);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

/* Core Utility Classes */
.container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: var(--transition-fast);
}

ul,
ol {
	list-style: none;
}

button,
input,
select,
textarea {
	font-family: inherit;
	border: none;
	outline: none;
}

/* Typography Enhancements */
.prose p,
.prose li,
.prose div {
    text-align: justify;
}

/* Navigation Menu Styles */
.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

/* Desktop Dropdown Styles */
@media (min-width: 768px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background-color: var(--bg-white);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        padding: 0.5rem 0;
    }

    .has-dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-item-li {
        position: relative;
    }

    .dropdown-link {
        display: block;
        padding: 0.75rem 1.25rem;
        color: var(--text-dark);
        font-size: 0.95rem;
        transition: all 0.2s ease;
    }

    .dropdown-link:hover {
        background-color: var(--light-blue-bg);
        color: var(--primary-blue);
        padding-left: 1.5rem;
    }

    /* Sub-menu (3rd level) */
    .dropdown-menu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-left: 0.5rem;
    }
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .mobile-menu-container {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        padding: 1rem 0;
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    
    .dropdown-menu {
        display: none;
        padding-left: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .has-dropdown:focus-within > .dropdown-menu,
    .has-dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    .dropdown-link {
        display: block;
        padding: 0.75rem 0;
        color: var(--text-muted);
        border-bottom: 1px dashed var(--border-color);
    }
    
    .dropdown-item-li:last-child .dropdown-link {
        border-bottom: none;
    }
}

/* Modal Search */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    background-color: rgba(11, 25, 44, 0.85);
    backdrop-filter: blur(8px);
}
