/* 
 * HIMABISDIG - Simple & Clean Base CSS with Dropdown
 * Version: 6.0 - Simple Dropdown Style
 * Focus: Clean, Minimal, Elegant Dropdown
 */

/* ===== VARIABLES ===== */
:root {
    /* Professional Color Palette */
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* Sophisticated Grays */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --dark: #020617;
    
    /* Professional Typography */
    --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    /* Enhanced Spacing */
    --header-height: 80px;
    --section-spacing: 6rem;
    --content-width: 1280px;
    
    /* Refined Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Elegant Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Dropdown specific */
    --dropdown-shadow: 0 8px 24px rgba(0,0,0,0.12);
    
    /* Smooth Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Body padding control - only for non-home pages */
body:not(.home-page) {
    padding-top: var(--header-height);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

p {
    margin: 0 0 1.25rem;
    line-height: 1.7;
    color: var(--gray-600);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover, a:focus {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: var(--content-width);
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-right: auto;
    margin-left: auto;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
    padding: 0;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.brand-logo {
    height: 48px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar.scrolled .brand-logo {
    height: 44px;
}

/* ===== NAVIGATION MENU ===== */
.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--gray-700);
    transition: var(--transition-fast);
    border-radius: var(--radius-md);
    text-decoration: none;
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
    background-color: rgba(30, 58, 138, 0.05);
}

/* Dropdown Arrow */
.dropdown-arrow {
    margin-left: 0.375rem;
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.nav-item.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===== SIMPLE DROPDOWN MENU ===== */
.nav-item.has-dropdown {
    position: relative;
}

.nav-item .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--dropdown-shadow);
    z-index: 200;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Desktop: Hover to show dropdown (no click needed!) */
@media (min-width: 992px) {
    .nav-item.has-dropdown:hover > .dropdown {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
}

/* Mobile: Click to show dropdown */
@media (max-width: 991px) {
    .nav-item.has-dropdown.active > .dropdown {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
}

/* Dropdown Items */
.nav-item .dropdown li {
    margin: 0;
}

.nav-item .dropdown li a {
    color: var(--gray-700);
    padding: 0.625rem 1.25rem;
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.nav-item .dropdown li a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    background-color: var(--gray-200);
    border: 0;
}

/* Mobile Toggle */
.navbar-toggler {
    display: none;
    border: none;
    padding: 0.5rem;
    background: none;
    border-radius: var(--radius);
    transition: var(--transition);
    width: 44px;
    height: 44px;
}

.navbar-toggler:hover {
    background-color: rgba(30, 58, 138, 0.05);
}

.navbar-toggler-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: block;
    background: none;
}

.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    display: block;
    background-color: var(--gray-700);
    height: 2px;
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    bottom: -8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--gray-300);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.footer-main {
    padding: 4rem 0 2rem;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--gray-400);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-400);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.125rem;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
    border-color: transparent;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-links a::before {
    content: '→';
    margin-right: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    gap: 1rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    text-align: center;
}

.event-date .day {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.event-date .month {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.125rem;
}

.event-info {
    flex: 1;
}

.event-info h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.event-info h6 a {
    color: var(--gray-200);
    transition: var(--transition-fast);
    text-decoration: none;
}

.event-info h6 a:hover {
    color: var(--white);
}

.event-location {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

.no-events {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-style: italic;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    font-size: 0.875rem;
    line-height: 1.6;
}

.contact-item i {
    width: 20px;
    font-size: 1rem;
    color: var(--primary-light);
    margin-top: 0.125rem;
}

.contact-item a {
    color: var(--gray-400);
    transition: var(--transition-fast);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--white);
}

.newsletter {
    margin-top: 2rem;
}

.newsletter-desc {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.newsletter-form .input-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.newsletter-form .input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.newsletter-form .form-control::placeholder {
    color: var(--gray-500);
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    outline: none;
}

.newsletter-form .btn {
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: var(--gray-500);
}

.copyright {
    margin: 0;
    line-height: 1.6;
}

.footer-links-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-links-inline a {
    color: var(--gray-400);
    transition: var(--transition-fast);
    text-decoration: none;
}

.footer-links-inline a:hover {
    color: var(--white);
}

.separator {
    color: var(--gray-600);
    margin: 0 0.25rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    border: none;
    font-size: 1.125rem;
}

.btn-floating.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-floating:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    :root {
        --header-height: 72px;
    }

    .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-xl);
        padding: 1.5rem;
        margin-top: 0.5rem;
        display: none;
    }

    .navbar-collapse.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .navbar-nav .nav-link {
        padding: 0.875rem 1rem;
        border-radius: var(--radius-lg);
    }

    /* Mobile Dropdown */
    .nav-item .dropdown {
        position: static;
        box-shadow: none;
        background: rgba(30, 58, 138, 0.03);
        border: none;
        border-left: 3px solid var(--primary);
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        margin: 0.5rem 0 0 1rem;
        opacity: 1;
        display: none;
        padding: 0;
    }

    .nav-item.has-dropdown.active > .dropdown {
        display: block;
    }

    .nav-item .dropdown li a {
        padding: 0.625rem 1rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --header-height: 68px;
    }

    .brand-logo {
        height: 40px;
    }

    .navbar.scrolled .brand-logo {
        height: 36px;
    }

    .footer-main {
        padding: 3rem 0 1.5rem;
    }

    .btn-floating {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

.btn:focus-visible,
.nav-link:focus-visible,
.navbar-toggler:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}