/* ============================================
   LOS SANTOS CITY GOVERNMENT - CUSTOM STYLES
   Modern Government Website Theme
   ============================================ */

/* === Color Variables === */
:root {
    --primary-color: #1a5f7a;
    --primary-dark: #134b61;
    --primary-light: #2d8ab8;
    --secondary-color: #c9a227;
    --accent-color: #e8b923;
    --dark-color: #1a2332;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1a5f7a 0%, #2d8ab8 100%);
    --gradient-dark: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* === Base Styles === */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none !important;
    transition: var(--transition);
}

/* === Header Styles === */
.header-top {
    min-height: 47px !important;
    font-size: 13px !important;
}

.bg-color-city {
    background: var(--gradient-dark) !important;
}

.header-container {
    background-color: var(--white);
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
    max-height: 120px !important;
}

.header-logo {
    top: 8px;
}

.header-nav-line {
    font-size: 18px !important;
}

.header-nav-main nav ul li a {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 10px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
}

.header-nav-main nav ul li a:hover {
    color: var(--primary-color) !important;
    background-color: rgba(26, 95, 122, 0.08);
}

.top-bar-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* === Hero Section New === */
.hero-section-new {
    background: linear-gradient(135deg, #1a3a52 0%, #2d6a8a 50%, #5597d1 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0 120px;
}

/* Animated Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.hero-bg-shapes .shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #7bb8e0, transparent);
    top: -200px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.hero-bg-shapes .shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #5597d1, transparent);
    bottom: -150px;
    left: -100px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.hero-bg-shapes .shape-3 {
    width: 200px;
    height: 200px;
    background: #a8d4f5;
    top: 50%;
    left: 10%;
    animation: float-medium 15s ease-in-out infinite;
}

.hero-bg-shapes .shape-4 {
    width: 150px;
    height: 150px;
    background: #5597d1;
    top: 20%;
    right: 15%;
    animation: float-medium 18s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 20px) rotate(5deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 15px) scale(1.05); }
}

/* Gradient Overlay */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(85, 151, 209, 0.35) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(123, 184, 224, 0.2) 0%, transparent 50%);
    z-index: 2;
}

/* Grid Pattern */
.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 3;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-badge i {
    color: var(--secondary-color);
}

/* Hero Title */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-highlight {
    display: block;
    background: linear-gradient(135deg, #a8d4f5 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    line-height: 1.6;
}

.hero-subtitle-small {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Hero Search */
.hero-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.search-icon-wrapper {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
}

.hero-search-input::placeholder {
    color: var(--text-muted);
}

.hero-search-btn {
    background: linear-gradient(135deg, #3d7eb8 0%, #5597d1 100%);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(85, 151, 209, 0.5);
}

/* Search Suggestions */
.search-suggestions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-suggestions span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.search-suggestions a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: var(--transition);
}

.search-suggestions a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* Hero Responsive */
@media (max-width: 991px) {
    .hero-section-new {
        min-height: 450px;
        padding: 60px 0 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .hero-section-new {
        min-height: 400px;
        padding: 50px 0 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-search-box {
        flex-direction: column;
        padding: 16px;
    }

    .search-icon-wrapper {
        display: none;
    }

    .hero-search-input {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .hero-search-btn {
        width: 100%;
        margin-top: 12px;
    }

    .hero-wave svg {
        height: 50px;
    }

    .search-suggestions {
        flex-direction: column;
        gap: 8px;
    }
}

/* === Old Hero Section (for other pages) === */
.hero-section {
    background: var(--gradient-primary);
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/search-hero.png') center/cover no-repeat;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.9) 0%, rgba(45, 138, 184, 0.8) 100%);
}

.min-vh-50 {
    min-height: 50vh;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* === Search Form Hero === */
.search-form-hero {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 50px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

.search-input-hero {
    flex: 1;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: var(--text-dark);
    font-weight: 500;
}

.search-input-hero::placeholder {
    color: var(--text-muted);
}

.search-button-hero {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-button-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === Section Styles === */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
}

/* === Quick Access Cards === */
.quick-access-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.quick-access-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.quick-access-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.1) 0%, rgba(45, 138, 184, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.card-title-custom {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* === Service Cards === */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 24px;
    color: var(--white);
}

.service-icon.bg-success { background: #28a745; }
.service-icon.bg-warning { background: #ffc107; }
.service-icon.bg-info { background: #17a2b8; }
.service-icon.bg-danger { background: #dc3545; }
.service-icon.bg-purple { background: #6f42c1; }

.service-content {
    flex: 1;
}

.service-title-new {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.service-arrow {
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* === News Cards === */
.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.2;
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.news-date .month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.news-content {
    padding: 24px;
}

.news-category {
    display: inline-block;
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-title a {
    color: var(--text-dark);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.news-link:hover {
    color: var(--primary-dark);
}

/* === Stats Section === */
.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* === Footer Styles === */
.footer-new {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
}

.footer-brand h4 {
    color: var(--white);
    font-weight: 600;
}

.footer-contact li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.department-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.department-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.department-links a:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* === Legacy Support === */
.city-title {
    font-weight: 700 !important;
    color: var(--text-dark) !important;
}

.service-title {
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    font-size: 20px !important;
}

.footer-city {
    background: var(--dark-color) !important;
    color: #fff !important;
}

.footer-city a {
    color: #fff !important;
}

/* === Old Search Form (for other pages) === */
.bg-img-search {
    height: 250px !important;
    background: var(--gradient-primary) !important;
    position: relative;
}

.bg-img-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../img/search-hero.png) center/cover no-repeat;
    opacity: 0.15;
}

.bg-img-hero {
    background: var(--gradient-primary) !important;
}

.search-form {
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    top: -40px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    border-radius: 24px;
    font-size: 16px;
    outline: none;
    color: var(--text-dark);
    font-weight: 600;
}

.search-button {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 8px 12px;
    margin-left: 8px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.search-button:hover {
    background-color: var(--primary-dark);
}

/* === Color Utilities === */
/* Blue shades */
.bg-blue-100 { background-color: #ebf8ff; }
.bg-blue-200 { background-color: #bee3f8; }
.bg-blue-300 { background-color: #90cdf4; }
.bg-blue-400 { background-color: #63b3ed; }
.bg-blue-500 { background-color: #4299e1; }

/* Red shades */
.bg-red-100 { background-color: #fff5f5; }
.bg-red-200 { background-color: #fed7d7; }
.bg-red-300 { background-color: #feb2b2; }
.bg-red-400 { background-color: #fc8181; }
.bg-red-500 { background-color: #f56565; }

/* Green shades */
.bg-green-100 { background-color: #f0fff4; }
.bg-green-200 { background-color: #c6f6d5; }
.bg-green-300 { background-color: #9ae3b4; }
.bg-green-400 { background-color: #68d391; }
.bg-green-500 { background-color: #48bb78; }

/* Yellow shades */
.bg-yellow-100 { background-color: #fffff0; }
.bg-yellow-200 { background-color: #fefcbf; }
.bg-yellow-300 { background-color: #faf089; }
.bg-yellow-400 { background-color: #f6e05e; }
.bg-yellow-500 { background-color: #ecc94b; }

/* Purple shades */
.bg-purple-100 { background-color: #faf5ff; }
.bg-purple-200 { background-color: #e9d8fd; }
.bg-purple-300 { background-color: #d6bcfa; }
.bg-purple-400 { background-color: #b794f4; }
.bg-purple-500 { background-color: #9f7aea; }

/* Teal */
.bg-teal { background-color: #17A2B8 !important; color: #fff !important; }
.bg-teal-subtle { background-color: #d1f3f6 !important; color: #0f6674 !important; }
.text-teal { color: #17A2B8 !important; }

/* Amber */
.bg-amber { background-color: #FFC107 !important; color: #212529 !important; }
.bg-amber-subtle { background-color: #fff5d6 !important; color: #8c6c00 !important; }
.text-amber { color: #FFC107 !important; }

/* Purple */
.bg-purple { background-color: #6F42C1 !important; color: #fff !important; }
.bg-purple-subtle { background-color: #ede6f7 !important; color: #3d2670 !important; }
.text-purple { color: #6F42C1 !important; }

/* Yellow */
.bg-yellow { background-color: #FFC300 !important; color: #212529 !important; }
.bg-yellow-subtle { background-color: #fff8db !important; color: #806600 !important; }
.text-yellow { color: #FFC300 !important; }

/* Gray */
.bg-gray { background-color: #9299A0 !important; color: #fff !important; }
.bg-gray-subtle { background-color: #e6e8ea !important; color: #4a4f52 !important; }
.text-gray { color: #9299A0 !important; }

.bg-grey-100 { background-color: #f8f9fa !important; }

/* === Responsive Adjustments === */
@media (max-width: 991px) {
    .hero-section {
        min-height: 350px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 300px;
    }

    .search-form-hero {
        flex-direction: column;
        border-radius: var(--border-radius);
        padding: 16px;
    }

    .search-input-hero {
        width: 100%;
        text-align: center;
    }

    .search-button-hero {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }

    .service-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* === Animation Classes === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* === Button Styles === */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================
   NEWS SECTION - NEW MODERN DESIGN
   ============================================ */

.news-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.section-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* Featured News Card */
.featured-news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-news-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-news-card:hover .featured-news-image img {
    transform: scale(1.05);
}

.featured-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.featured-news-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.featured-news-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.news-date-inline {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.news-category-tag {
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-news-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.featured-news-title a {
    color: var(--text-dark);
}

.featured-news-title a:hover {
    color: var(--primary-color);
}

.featured-news-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.featured-news-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.featured-news-link:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* News Sidebar */
.news-sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.mini-news-card {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.mini-news-card:last-of-type {
    border-bottom: none;
}

.mini-news-card:hover {
    background: #f8f9fa;
    margin: 0 -16px;
    padding: 16px;
    border-radius: 8px;
}

.mini-news-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mini-news-icon i {
    color: white;
    font-size: 1.1rem;
}

.mini-news-icon.bg-success {
    background: #28a745;
}

.mini-news-icon.bg-warning {
    background: #ffc107;
}

.mini-news-icon.bg-warning i {
    color: var(--dark-color);
}

.mini-news-content {
    flex: 1;
}

.mini-news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.mini-news-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.mini-news-title a {
    color: var(--text-dark);
}

.mini-news-title a:hover {
    color: var(--primary-color);
}

.sidebar-view-all {
    display: block;
    text-align: center;
    padding: 14px;
    margin-top: 16px;
    background: var(--gradient-primary);
    color: white !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sidebar-view-all:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* News Grid Cards */
.news-card-new {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-new:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card-new:hover .news-card-image img {
    transform: scale(1.08);
}

.news-card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--white);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-title a {
    color: var(--text-dark);
}

.news-card-title a:hover {
    color: var(--primary-color);
}

.news-card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.news-card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.news-card-link::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.news-card-new:hover .news-card-link::after {
    transform: translateX(4px);
}

/* Responsive News */
@media (max-width: 991px) {
    .featured-news-image {
        height: 220px;
    }

    .featured-news-title {
        font-size: 1.3rem;
    }

    .news-sidebar {
        margin-top: 24px;
    }
}

@media (max-width: 767px) {
    .featured-news-card {
        margin-bottom: 24px;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ============================================
   MODERN HEADER STYLES
   ============================================ */

.header-modern {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

/* Top Bar */
.header-top-bar {
    background: var(--gradient-dark);
    padding: 10px 0;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.top-bar-divider {
    color: rgba(255, 255, 255, 0.3);
}

.top-bar-slogan {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.top-bar-link:hover {
    color: var(--white);
}

/* Main Header */
.header-main {
    background: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo Area */
.header-logo-area {
    flex-shrink: 0;
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.header-logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Navigation */
.header-nav-area {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-item-new {
    position: relative;
}

.nav-link-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: var(--transition);
}

.nav-link-new:hover {
    background: rgba(26, 95, 122, 0.08);
    color: var(--primary-color);
}

.nav-link-new .nav-icon {
    font-size: 1.1rem;
    margin-bottom: 4px;
    opacity: 0.7;
    transition: var(--transition);
}

.nav-link-new:hover .nav-icon {
    opacity: 1;
    color: var(--primary-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-login-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white) !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.header-login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header-mobile-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.header-mobile-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Mobile Menu */
.header-mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px;
}

.header-mobile-menu.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list a {
    display: block;
    padding: 14px 16px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.mobile-nav-list a:hover {
    background: rgba(26, 95, 122, 0.08);
    color: var(--primary-color);
    padding-left: 24px;
}

.mobile-login-btn {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-radius: 8px;
    margin-top: 8px;
}

/* Header Responsive */
@media (max-width: 1199px) {
    .nav-link-new {
        padding: 8px 14px;
    }
}

@media (max-width: 991px) {
    .header-nav-area {
        display: none;
    }

    .header-mobile-toggle {
        display: flex;
    }

    .header-login-btn {
        display: none;
    }

    .header-logo-text {
        display: none;
    }
}

@media (max-width: 575px) {
    .top-bar-left {
        justify-content: center;
    }

    .header-main-inner {
        justify-content: space-between;
    }
}

/* ============================================
   MODERN FOOTER STYLES
   ============================================ */

.footer-modern {
    background: var(--dark-color);
    margin-top: 0;
    position: relative;
}

/* Footer Wave */
.footer-wave {
    position: relative;
    margin-top: -1px;
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* Footer Main */
.footer-main {
    background: var(--dark-color);
    padding: 60px 0 40px;
}

/* Footer About */
.footer-about {
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.footer-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.footer-logo-text h4 {
    color: var(--white);
    font-weight: 700;
    margin: 0;
    font-size: 1.3rem;
}

.footer-logo-text span {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-about-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-top: 4px;
}

.contact-item span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

/* Footer Widget */
.footer-widget {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Footer Navigation */
.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-nav a i {
    font-size: 0.65rem;
    margin-right: 10px;
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-nav a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Social */
.footer-social-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 16px;
}

.footer-social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    transition: var(--transition);
}

.social-btn.discord {
    background: #5865F2;
}

.social-btn.discord:hover {
    background: #4752C4;
    transform: translateY(-3px);
}

.social-btn.facebrowser {
    background: var(--primary-color);
}

.social-btn.facebrowser:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.social-btn.twitter {
    background: #000;
}

.social-btn.twitter:hover {
    background: #333;
    transform: translateY(-3px);
}

/* Footer Departments */
.footer-departments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dept-badge {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: var(--transition);
}

.dept-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.dept-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.copyright-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.disclaimer-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-style: italic;
}

/* Footer Responsive */
@media (max-width: 991px) {
    .footer-main {
        padding: 50px 0 30px;
    }

    .footer-widget {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .footer-wave svg {
        height: 50px;
    }

    .footer-logo-area {
        justify-content: center;
        text-align: center;
    }

    .footer-about-text {
        text-align: center;
    }

    .footer-contact-info {
        align-items: center;
    }

    .footer-widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-nav {
        text-align: center;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-departments {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .col-md-6.text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }
}

/* ============================================
   MODERN PAGE HEADER STYLES
   ============================================ */

.page-header-modern-new {
    background: linear-gradient(135deg, #1a3a52 0%, #2d6a8a 50%, #5597d1 100%);
    padding: 70px 0 100px;
    position: relative;
    overflow: hidden;
}

.page-header-modern-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* Decorative Shapes - Subtle Background */
.page-header-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.page-header-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.page-header-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #7bb8e0, transparent);
    top: -150px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.page-header-shapes .shape-2 {
    width: 250px;
    height: 250px;
    background: #5597d1;
    bottom: -100px;
    left: 5%;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.page-header-shapes .shape-3 {
    width: 150px;
    height: 150px;
    background: #a8d4f5;
    top: 30%;
    left: 15%;
    animation: float-medium 15s ease-in-out infinite;
}

/* Page Header Content Container */
.page-header-modern-new .container {
    position: relative;
    z-index: 10;
}

/* Breadcrumb Navigation - Centered */
.page-header-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.page-header-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.page-header-breadcrumb a:hover {
    color: var(--white);
}

.page-header-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.page-header-breadcrumb .current {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Badge - Centered */
.page-header-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 auto 20px auto;
    letter-spacing: 0.3px;
}

/* Ensure text-center works properly for all header elements */
.page-header-modern-new .text-center .page-header-badge {
    display: inline-flex;
}

.page-header-modern-new .text-center .page-header-title,
.page-header-modern-new .text-center .page-header-subtitle {
    text-align: center;
}

.page-header-badge i {
    color: #a8d4f5;
}

/* Title - Centered */
.page-header-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 16px 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.5px;
}

/* Subtitle - Centered */
.page-header-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto;
}

/* Page Header Wave */
.page-header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    line-height: 0;
}

.page-header-wave svg {
    width: 100%;
    height: 70px;
    display: block;
}

/* Page Header Responsive */
@media (max-width: 991px) {
    .page-header-modern-new {
        padding: 60px 0 90px;
    }

    .page-header-title {
        font-size: 2.4rem;
    }

    .page-header-subtitle {
        font-size: 1.05rem;
    }

    .page-header-wave svg {
        height: 50px;
    }
}

@media (max-width: 767px) {
    .page-header-modern-new {
        padding: 50px 0 80px;
    }

    .page-header-title {
        font-size: 2rem;
    }

    .page-header-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .page-header-badge {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .page-header-wave svg {
        height: 40px;
    }

    .page-header-breadcrumb {
        font-size: 0.85rem;
    }
}

/* ============================================
   MODERN SERVICE GRID STYLES
   ============================================ */

.services-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-header {
    margin-bottom: 40px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(85, 151, 209, 0.15) 0%, rgba(85, 151, 209, 0.05) 100%);
    color: #5597d1;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title-new {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

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

/* Modern Service Card */
.service-card-modern {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(135deg, #5597d1 0%, #7bb8e0 100%);
    transition: height 0.3s ease;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(85, 151, 209, 0.15);
    border-color: rgba(85, 151, 209, 0.2);
}

.service-card-modern:hover::before {
    height: 100%;
}

.service-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(85, 151, 209, 0.15) 0%, rgba(85, 151, 209, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card-icon i {
    font-size: 1.5rem;
    color: #5597d1;
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-card-icon {
    background: linear-gradient(135deg, #5597d1 0%, #7bb8e0 100%);
}

.service-card-modern:hover .service-card-icon i {
    color: var(--white);
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    color: #5597d1;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.service-card-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-card-modern:hover .service-card-link {
    opacity: 1;
    transform: translateY(0);
}

.service-card-link:hover i {
    transform: translateX(4px);
}

/* Icon Color Variants */
.service-card-icon.green {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(40, 167, 69, 0.05) 100%);
}

.service-card-icon.green i {
    color: #28a745;
}

.service-card-modern:hover .service-card-icon.green {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
}

.service-card-icon.orange {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.15) 0%, rgba(253, 126, 20, 0.05) 100%);
}

.service-card-icon.orange i {
    color: #fd7e14;
}

.service-card-modern:hover .service-card-icon.orange {
    background: linear-gradient(135deg, #fd7e14 0%, #ffaa4d 100%);
}

.service-card-icon.purple {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.15) 0%, rgba(111, 66, 193, 0.05) 100%);
}

.service-card-icon.purple i {
    color: #6f42c1;
}

.service-card-modern:hover .service-card-icon.purple {
    background: linear-gradient(135deg, #6f42c1 0%, #9966ff 100%);
}

.service-card-icon.red {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.05) 100%);
}

.service-card-icon.red i {
    color: #dc3545;
}

.service-card-modern:hover .service-card-icon.red {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b7a 100%);
}

.service-card-icon.teal {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.15) 0%, rgba(32, 201, 151, 0.05) 100%);
}

.service-card-icon.teal i {
    color: #20c997;
}

.service-card-modern:hover .service-card-icon.teal {
    background: linear-gradient(135deg, #20c997 0%, #4aedc4 100%);
}

/* === User Menu Styles === */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-menu-toggle {
    background: linear-gradient(135deg, #1a5f7a 0%, #2d8ab8 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(26, 95, 122, 0.2);
}

.user-menu-toggle:hover {
    background: linear-gradient(135deg, #134b61 0%, #1a5f7a 100%);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
    transform: translateY(-2px);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.user-avatar {
    font-size: 2.5rem;
    color: #1a5f7a;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.user-email {
    color: #6c757d;
    font-size: 0.8rem;
}

.user-dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0;
}

.user-dropdown-menu {
    padding: 0.5rem 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
}

.user-dropdown-item i {
    width: 20px;
    margin-right: 0.75rem;
    color: #6c757d;
}

.user-dropdown-item span:first-of-type {
    flex: 1;
}

.user-dropdown-item:hover {
    background: #f8f9fa;
}

.user-dropdown-item.panel-access-item {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    margin: 0 0.5rem;
    border-radius: 8px;
}

.user-dropdown-item.panel-access-item:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(32, 201, 151, 0.15) 100%);
}

.user-dropdown-item.panel-access-item i {
    color: #28a745;
}

.badge-access {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn {
    color: #dc3545 !important;
}

.logout-btn i {
    color: #dc3545 !important;
}

/* Mobile User Info */
.mobile-user-info {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1a5f7a 0%, #2d8ab8 100%);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    margin: 0.5rem 1rem;
}

.mobile-panel-btn {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%) !important;
    color: #28a745 !important;
    font-weight: 600 !important;
    border-radius: 8px;
    margin: 0.25rem 1rem;
}

/* Panel Access Button (fallback) */
.panel-access-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
    animation: pulse-glow 2s ease-in-out infinite;
}

.panel-access-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5) !important;
    transform: translateY(-2px);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 6px 16px rgba(40, 167, 69, 0.5);
    }
}

/* === Character Submenu Styles === */
.character-switch-item {
    position: relative;
}

.character-switch-item .fas.fa-chevron-right {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: var(--transition);
}

.character-switch-item:hover .fas.fa-chevron-right {
    opacity: 1;
    transform: translateX(2px);
}

.character-submenu {
    position: absolute;
    right: 100%;
    top: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    margin-right: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 0.5rem 0;
}

.character-submenu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.character-submenu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.character-submenu-item i {
    width: 20px;
    margin-right: 0.75rem;
    color: #1a5f7a;
    font-size: 0.9rem;
}

.character-submenu-item:hover {
    background: #f8f9fa;
    color: #1a5f7a;
}

.character-submenu-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.character-submenu-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Mobile Character Styles */
.mobile-section-header {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-character-item {
    color: #1a5f7a !important;
    font-weight: 500 !important;
}

.mobile-character-item:hover {
    background: rgba(26, 95, 122, 0.08) !important;
}

/* === Toast Notifications === */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 4px solid;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.toast-success {
    border-left-color: #28a745;
    color: #155724;
    background: #d4edda;
}

.toast-notification.toast-error {
    border-left-color: #dc3545;
    color: #721c24;
    background: #f8d7da;
}

.toast-notification.toast-info {
    border-left-color: #17a2b8;
    color: #0c5460;
    background: #d1ecf1;
}

/* === Requests Menu === */
.requests-item {
    position: relative;
    cursor: pointer;
}

.badge-count {
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    margin-left: auto;
    margin-right: 0.5rem;
    min-width: 20px;
    text-align: center;
}

.requests-item .fas.fa-chevron-right {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: var(--transition);
}

.requests-item:hover .fas.fa-chevron-right {
    opacity: 1;
    transform: translateX(2px);
}

.requests-submenu {
    position: absolute;
    right: 100%;
    top: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    margin-right: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.requests-submenu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.requests-submenu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #2c3e50;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.requests-submenu-item:hover {
    background: linear-gradient(135deg, rgba(1, 44, 73, 0.05) 0%, rgba(2, 72, 115, 0.05) 100%);
    color: var(--primary-color);
}

.requests-submenu-item i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.requests-submenu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.requests-submenu-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* === Applications Menu === */
.applications-item {
    position: relative;
    cursor: pointer;
}

.applications-item .fas.fa-chevron-right {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: var(--transition);
}

.applications-item:hover .fas.fa-chevron-right {
    opacity: 1;
    transform: translateX(2px);
}

.applications-submenu {
    position: absolute;
    right: 100%;
    top: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    margin-right: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.applications-submenu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.applications-submenu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #2c3e50;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.applications-submenu-item:hover {
    background: linear-gradient(135deg, rgba(1, 44, 73, 0.05) 0%, rgba(2, 72, 115, 0.05) 100%);
    color: var(--primary-color);
}

.applications-submenu-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.applications-submenu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.applications-submenu-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* === Edit Menu === */
.edit-item {
    position: relative;
    cursor: pointer;
}

.edit-item .fas.fa-chevron-right {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: var(--transition);
}

.edit-item:hover .fas.fa-chevron-right {
    opacity: 1;
    transform: translateX(2px);
}

.edit-submenu {
    position: absolute;
    right: 100%;
    top: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    margin-right: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.edit-submenu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.edit-submenu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #2c3e50;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.edit-submenu-item:hover {
    background: linear-gradient(135deg, rgba(1, 44, 73, 0.05) 0%, rgba(2, 72, 115, 0.05) 100%);
    color: var(--primary-color);
}

.edit-submenu-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.edit-submenu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.edit-submenu-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Business Registration Form Enhancements */
.btn-modern {
    background: linear-gradient(135deg, #012C49 0%, #024873 100%);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(1, 44, 73, 0.2);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(1, 44, 73, 0.3);
    background: linear-gradient(135deg, #024873 0%, #012C49 100%);
    color: white;
}

/* License Card Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Form Input Focus States */
.form-control:focus,
.form-select:focus {
    border-color: #012C49;
    box-shadow: 0 0 0 0.2rem rgba(1, 44, 73, 0.15);
}

/* Checkbox Styling for Licenses */
.form-check-input:checked {
    background-color: #012C49;
    border-color: #012C49;
}

.form-check-input:focus {
    border-color: #012C49;
    box-shadow: 0 0 0 0.2rem rgba(1, 44, 73, 0.15);
}

/* Shareholder Entry Animation */
.shareholder-entry {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Organization Chart Styles */
.tree {
    width: 100%;
    height: auto;
    text-align: center;
}
.tree ul {
    padding-top: 20px; 
    position: relative;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    display: flex;
    justify-content: center;
    padding-left: 0;
}
.tree li {
    float: left; text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
}
/*We will use ::before and ::after to draw the connectors*/
.tree li::before, .tree li::after{
    content: '';
    position: absolute; top: 0; right: 50%;
    border-top: 2px solid #ccc;
    width: 50%; height: 20px;
    z-index: -1;
}
.tree li::after{
    right: auto; left: 50%;
    border-left: 2px solid #ccc;
}
/*We need to remove left-right connectors from elements without any siblings*/
.tree li:only-child::after, .tree li:only-child::before {
    display: none;
}
/*Remove space from the top of single children*/
.tree li:only-child{ padding-top: 0;}
/*Remove left connector from first child and right connector from last child*/
.tree li:first-child::before, .tree li:last-child::after{
    border: 0 none;
}
/*Adding back the vertical connector to the last nodes*/
.tree li:last-child::before{
    border-right: 2px solid #ccc;
    border-radius: 0 5px 0 0;
    -webkit-border-radius: 0 5px 0 0;
    -moz-border-radius: 0 5px 0 0;
}
.tree li:first-child::after{
    border-radius: 5px 0 0 0;
    -webkit-border-radius: 5px 0 0 0;
    -moz-border-radius: 5px 0 0 0;
}
/*Time to add downward connectors from parents*/
.tree ul ul::before{
    content: '';
    position: absolute; top: 0; left: 50%;
    border-left: 2px solid #ccc;
    width: 0; height: 20px;
}
.tree li .node-card{
    border: 1px solid #ccc;
    padding: 10px;
    text-decoration: none;
    color: #666;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    display: inline-block;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    background: white;
    min-width: 120px;
    z-index: 10;
    position: relative;
}
.tree li .node-card:hover, .tree li .node-card:hover+ul li .node-card {
    background: #c8e4f8; color: #000; border: 1px solid #94a0b4;
}
.tree li .node-card:hover+ul li::after, 
.tree li .node-card:hover+ul li::before, 
.tree li .node-card:hover+ul::before, 
.tree li .node-card:hover+ul ul::before{
    border-color:  #94a0b4;
}
.tree .node-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 5px;
    border-radius: 50%;
    background: #f8f9fa;
    padding: 5px;
}
.tree .node-title {
    font-weight: 700;
    display: block;
    font-size: 0.9rem;
    color: #333;
}
.tree .node-role {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 0;
}
/* Scroll for mobile */
.tree-container {
    overflow-x: auto;
    padding-bottom: 20px;
}

/* Enhanced Node Card Design */
.tree li .node-card {
    background: #ffffff;
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    padding: 15px 10px;
    text-decoration: none;
    color: #5a5c69;
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: all 0.3s ease-in-out;
    position: relative;
    z-index: 10;
    min-width: 160px;
}
.tree li .node-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.25);
    border-color: #4e73df;
    background: #f8f9fc;
}
.tree li .node-card .node-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    border: 2px solid #eaecf4;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.tree li .node-card .node-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2e3037;
    margin-bottom: 3px;
    display: block;
}
.tree li .node-card .node-role {
    font-size: 0.75rem;
    color: #858796;
    margin-bottom: 0;
    font-style: italic;
}

/* Branch Header Enhanced */
.branch-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3);
    border: none;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}
.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #555;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.zoom-btn:hover {
    background: #4e73df;
    color: #fff;
    border-color: #4e73df;
}

/* Tree Container for Pan/Zoom */
.tree-wrapper {
    width: 100%;
    height: 700px;
    overflow: hidden;
    position: relative;
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: grab;
}
.tree-wrapper:active {
    cursor: grabbing;
}
.tree-content {
    transform-origin: center top;
    transition: transform 0.1s ease-out;
}
