:root {
    --primary-color: #0b3954;
    --primary-dark: #08283b;
    --secondary-color: #c97a29;
    --accent-gold: #ffb703;
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(11, 57, 84, 0.08);
    --shadow-hover: 0 12px 30px rgba(11, 57, 84, 0.14);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: #f4f6f9;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Colors & Gradients */
.bg-primary-dark {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.hero-banner {
    background: linear-gradient(135deg, #072233 0%, #0c3d5a 50%, #154c6e 100%);
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 183, 3, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* Brand Identity */
.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ffb703, #fb8500);
    color: #072233;
    border-radius: 12px;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(251, 133, 0, 0.3);
}

.brand-title {
    letter-spacing: -0.3px;
    font-weight: 800;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}

/* Service & Category Cards */
.card-service {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-service:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.service-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background-color: rgba(11, 57, 84, 0.08);
    color: var(--primary-color);
    transition: var(--transition);
}

.card-service:hover .service-icon-wrapper {
    background-color: var(--primary-color);
    color: #fff;
}

/* Category Feature Card */
.category-feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-main);
    display: block;
}

.category-feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
}

/* Quick Search Hero Input */
.hero-search-box {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
}

.hero-search-input {
    height: 56px;
    padding-right: 52px;
    padding-left: 120px;
    border-radius: 28px;
    border: 2px solid transparent;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    font-size: 1.05rem;
}

.hero-search-input:focus {
    border-color: var(--accent-gold);
    outline: none;
    box-shadow: 0 8px 35px rgba(255, 183, 3, 0.25);
}

.hero-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--text-muted);
}

.hero-search-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 22px;
    padding: 0.45rem 1.2rem;
    font-weight: 700;
}

/* Section Headings */
.section-title {
    position: relative;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Official Tag */
.badge-official {
    background-color: rgba(25, 135, 84, 0.12);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.25);
    font-weight: 600;
}

/* Footer styling */
.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffb703 !important;
    padding-right: 4px;
}

/* Intermediate /go/ redirection card */
.redirect-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    background: #fff;
    overflow: hidden;
}

.redirect-pulse {
    animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
    100% { transform: scale(1); opacity: 1; }
}

/* Admin Dashboard Specific */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #0b1e2d;
    color: #cbd5e1;
}

.admin-sidebar .nav-link {
    color: #94a3b8;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-card-stat {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.admin-card-stat:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
