/* Font settings */
@font-face {
    font-family: 'HanumanPro-Light';
    src: url('/static/font/HanumanPro-Light.ttf') format('truetype');
}

body {
    background-color: #f8f9fa;
    padding-bottom: 60px; /* Add padding to prevent overlap with fixed footer */
    font-family: 'Ubuntu', serif; /* Use 'Lora' for body text */
}

h1, h2, h3, h4 {
    font-family: 'Ubuntu', sans-serif; /* Use 'Montserrat' for headings */
}
p {
    font-family: 'Inter', sans-serif; /* Clean and readable paragraphs */
}
.navbar {
    font-family: 'Ubuntu', sans-serif;
    margin-bottom: 50px;
    font-weight: bold;
    background-color: #007bff !important;
}

.navbar-nav .nav-link {
    padding: 0.2rem 1rem;
    color: #f8f9fa;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #0056b3;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.navbar-nav .nav-link.d-inline {
    padding: 0.3rem 0.6rem;
    margin-right: 5px;
    font-size: 1rem;
}

.container {
    margin-top: 50px;
    margin-bottom: 80px;
}

/* Header Section with Watermark-Style Background Image */
.header-section {
    background: linear-gradient(rgba(0, 123, 255, 0.5), rgba(0, 123, 255, 0.5)), url('/static/img/lawoffice3.jpg') no-repeat center center;
    background-size: cover;
    background-blend-mode: overlay; /* Blends the gradient and image for a watermark effect */
    color: white;
    padding: 100px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0.2; /* Low opacity to create the subtle watermark effect */
    z-index: 10;
    border-radius: 10px;
}

.header-section h1, .header-section p {
    position: relative; /* Ensures text stays above the watermark layer */
    z-index: 1;
}

.header-section h1 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1.5), 
                 -3px -3px 6px rgba(0, 0, 0, 1.2); /* Adds stronger multi-directional shadow */
}

.header-section p {
    font-family: 'Ubuntu', serif;
    color: white;
    font-size: 1.5rem;
    margin-top: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1.3), 
                 -3px -3px 6px rgba(0, 0, 0, 1.1); /* Increases shadow intensity */
}

/* Contact Section */
.contact-section {
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Lora', serif;
    color: #333;
}

.contact-section h2 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 15px;
}

.contact-section p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.contact-section a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-section a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Categories Section */
.categories-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    padding: 0 15px;
}

.category-card {
    font-family: 'Ubuntu', sans-serif;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
}

.category-card a {
    color: #007bff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: bold;
    display: block;
    padding: 10px 0;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.category-card a:hover {
    color: #0056b3;
    background-color: #e9ecef;
    text-decoration: none;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: #007bff;
    color: white;
    text-align: center;
    line-height: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer a {
    color: #f8f9fa;
    text-decoration: none;
}

footer a:hover {
    color: #e9ecef;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-section {
        padding: 60px 10px;
    }

    .header-section h1 {
        font-size: 2.5rem;
    }

    .header-section p {
        font-size: 1.2rem;
    }

    .contact-section {
        padding: 15px;
        margin: 15px auto;
    }

    .contact-section h2 {
        font-size: 1.5rem;
    }

    .contact-section p {
        font-size: 0.9rem;
    }

    .category-card {
        padding: 15px;
    }

    .category-card img {
        height: 120px;
    }

    .category-card a {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .header-section h1 {
        font-size: 2rem;
    }

    .header-section p {
        font-size: 1rem;
    }

    .contact-section {
        margin: 10px auto;
    }

    .categories-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card {
        width: 100%;
    }
}

.navbar-toggler {
    border-color: white;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.title {
    padding: 0.2rem 1rem;
}
.profile-header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}
.profile-header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
}
.profile-content {
    margin-top: 30px;
}
.quote {
    font-style: italic;
    color: #555;
    text-align: center;
    margin-top: 20px;
}