/* ========== Shared site styles ========== */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #3182ce;
    --highlight-color: #4299e1;
    --text-dark: #1a202c;
    --text-light: #718096;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #3182ce 100%);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4299e1;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #3182ce, transparent);
    margin: 4rem 0;
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.card-date {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

/* ========== Navigation dropdown ========== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    margin-top: 0.75rem;
    z-index: 100;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: -12px;
    right: -12px;
    height: 0.75rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 0.5rem 1.25rem;
    color: #1a202c;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.nav-dropdown-item:hover {
    background: #ebf8ff;
    color: #2b6cb0;
}

.nav-dropdown-item .item-date {
    display: block;
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.125rem;
}

.nav-dropdown-header {
    padding: 0.5rem 1.25rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #718096;
}

/* ========== Mobile menu ========== */
#mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #3182ce 100%);
    z-index: 9999;
    overflow-y: auto;
    padding: 1.5rem;
}

#mobile-menu-overlay.open {
    display: flex;
    flex-direction: column;
}

#mobile-menu-overlay .mobile-close {
    align-self: flex-end;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

#mobile-menu-overlay .mobile-nav-link {
    display: block;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#mobile-menu-overlay .mobile-section-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

#mobile-menu-overlay .mobile-sub-link {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    padding: 0.625rem 0 0.625rem 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    margin-left: 0.5rem;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* ========== About page hero ========== */
.hero-slanted {
    position: relative;
    overflow: hidden;
}

.hero-slanted::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #f9fafb;
    transform: skewY(-2deg);
    transform-origin: bottom left;
}

.hero-content-layered {
    position: relative;
    z-index: 2;
}

.hero-text-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-text-line {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-left: 4px solid #4299e1;
    margin-left: 0;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 0.8s ease-out forwards;
}

.hero-text-line:nth-child(1) { animation-delay: 0.1s; }
.hero-text-line:nth-child(2) { animation-delay: 0.3s; }
.hero-text-line:nth-child(3) { animation-delay: 0.5s; }

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.hero-icon-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
