/* style.css */
:root {
    --deep-civic-blue: #344d7c;
    --vibrant-unity-blue: #162549;
    --civic-gold: #F4C542;
    --soft-gov-gray: #ECF0F5;
    --pure-white: #FFFFFF;
}

body {
    background-color: var(--soft-gov-gray);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ============ LOGO STYLING (PenLoan Style) ============ */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
}

.navbar-brand:hover img {
    opacity: 0.9;
}

/* Navbar Styling */
.navbar {
    background: linear-gradient(135deg, var(--deep-civic-blue) 0%, var(--vibrant-unity-blue) 100%) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section with Government Background */
.hero-section {
    background: linear-gradient(135deg, rgba(17, 37, 75, 0.85) 0%, rgba(24, 51, 119, 0.85) 100%), 
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Cards */
.service-card, .feature-card {
    background: var(--pure-white);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.service-card:hover, .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--vibrant-unity-blue) 0%, var(--deep-civic-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.75rem;
}

/* Login Card */
.login-card {
    background: var(--pure-white);
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--civic-gold);
    position: sticky;
    top: 20px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--vibrant-unity-blue) 0%, var(--deep-civic-blue) 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--deep-civic-blue) 0%, var(--vibrant-unity-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 107, 255, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--vibrant-unity-blue);
    color: var(--vibrant-unity-blue);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--vibrant-unity-blue);
    color: white;
}

/* Section Titles */
.section-title {
    color: var(--deep-civic-blue);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--civic-gold);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Footer */
footer {
    background: var(--deep-civic-blue);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--civic-gold);
}

/* Search Box */
.search-container {
    max-width: 600px;
    margin: 2rem auto;
}

.search-box {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: 2px solid #dee2e6;
    background: white;
}

.search-box:focus {
    border-color: var(--vibrant-unity-blue);
    box-shadow: 0 0 0 0.25rem rgba(49, 107, 255, 0.25);
}

/* Quick Access */
.quick-access-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--pure-white);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
    cursor: pointer;
}

.quick-access-item:hover {
    border-color: var(--vibrant-unity-blue);
    background-color: #f8f9fa;
}

.quick-access-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--civic-gold) 0%, #ffd700 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-civic-blue);
    margin-right: 1rem;
    font-size: 1.25rem;
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.badge-resident {
    background-color: #e3f2fd;
    color: var(--vibrant-unity-blue);
}

.badge-official {
    background-color: #fff3cd;
    color: #856404;
}

/* FAQ Accordion */
.accordion-button {
    font-weight: 600;
    color: var(--deep-civic-blue);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(49, 107, 255, 0.1);
    color: var(--deep-civic-blue);
}

.accordion-button:focus {
    border-color: var(--vibrant-unity-blue);
    box-shadow: 0 0 0 0.25rem rgba(49, 107, 255, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 4rem 0;
        background-attachment: scroll;
    }
    
    .login-card {
        margin-top: 2rem;
        position: static;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .service-card, .feature-card {
        padding: 1.5rem !important;
    }
}

/* Government Building Pattern */
.gov-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%231a3d7c' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}