/* Custom Styles for Law Firm Website - Corporate Design */

/* Root Variables - Corporate Color Palette */
:root {
  /* Primary Colors - Sophisticated Charcoal & Warm Brown */
  --primary-color: #2c2c2c;
  --primary-light: #3d3d3d;
  --primary-dark: #1a1a1a;

  /* Accent Colors - Warm Brown Tones */
  --accent-color: #8b7355;
  --accent-light: #a68968;
  --accent-dark: #6d5c48;
  --accent-warm: #b8956a;

  /* Backgrounds */
  --background-color: #ffffff;
  --background-alt: #f7f6f4;
  --background-dark: #eae8e4;
  --background-warm: #faf9f7;

  /* Text Colors */
  --text-color: #2c2c2c;
  --text-secondary: #545454;
  --text-muted: #767676;
  --text-light: #a0a0a0;

  /* Borders & Dividers */
  --border-color: #e0ddd8;
  --border-light: #ebe9e5;

  /* Shadows - Subtle & Professional */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);

  /* Effects */
  --transition-base: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 16px;

  /* Legacy compatibility */
  --text-primary: var(--text-color);
  --bg-light: var(--background-alt);
  --bg-white: var(--background-color);
  
  --bs-primary: var(--accent-color);
  --bs-primary-dark: var(--accent-dark);
  --bs-primary-light: var(--accent-light);
  --bs-primary-warm: var(--accent-warm);
  /* Gradients - Corporate Color Palette - Soft & Subtle */
  --gradient-primary: linear-gradient(135deg, #3d3024 0%, #45382a 15%, #4d4032 25%, #554738 35%, #5d4c38 45%, #554738 55%, #4d4032 65%, #45382a 75%, #3d3024 85%, #352a20 100%);
  --gradient-accent: linear-gradient(135deg, #6d5c48 0%, #7a6752 25%, #8b7355 50%, #9a7f65 75%, #a68968 100%);
  --gradient-accent-warm: linear-gradient(135deg, #8b7355 0%, #9a7f65 50%, #b8956a 100%);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Map Iframe */
.map-iframe {
    border: 0;
}

/* Page Header */
.page-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background-warm) 0%, white 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 3rem 1.5rem !important;
    margin-bottom: 3rem !important;
    border-radius: 1rem !important;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238B7355' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(139, 115, 85, 0.12) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.page-header h1 {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
    font-size: 2.5rem !important;
    z-index: 1;
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
}

.page-header .lead {
    position: relative;
    color: var(--text-primary) !important;
    font-size: 1.15rem !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.6;
}

.page-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 115, 85, 0.12);
}

@media (max-width: 768px) {
    .page-header {
        padding: 2rem 1rem !important;
        margin-bottom: 2rem !important;
    }

    .page-header h1 {
        font-size: 1.75rem !important;
    }

    .page-header .lead {
        font-size: 1.1rem !important;
    }
}

/* Header Styles - Only for top navigation */
header {
    background: var(--background-color) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-sm);
}

/* CTA Card Minimal */
.cta-card-minimal {
    background: var(--gradient-accent-warm);
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-color) !important;
    letter-spacing: -0.5px;
    transition: var(--transition-medium);
}

.site-logo {
    width: 300px;
    height: auto;
    max-width: 100%;
    transition: var(--transition-medium);
}

@media (max-width: 768px) {
    .site-logo {
        width: 220px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        width: 220px;
    }
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    color: var(--text-color) !important;
    transition: var(--transition-medium);
    position: relative;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    margin: 0 0.25rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width var(--transition-medium);
    border-radius: 2px 2px 0 0;
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

.navbar-nav .nav-link.active::after {
    width: 100%;
    height: 3px;
    background: var(--accent-color);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    background: rgba(139, 115, 85, 0.05);
}

.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
    background: rgba(139, 115, 85, 0.08);
    pointer-events: auto;
    cursor: pointer;
}

.navbar-nav .nav-link.active:hover {
    color: var(--accent-dark) !important;
    background: rgba(139, 115, 85, 0.12);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Navbar Responsive Styles */
@media (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.9rem;
        margin: 0 0.15rem;
    }
}

@media (max-width: 991.98px) {
    header {
        padding: 0.75rem 0;
    }

    .navbar-nav {
        padding: 1rem 0;
        background: var(--background-color);
        border-radius: var(--border-radius);
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: var(--border-radius-sm);
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-nav .nav-link.active {
        border-left: 3px solid var(--accent-color);
        padding-left: calc(1rem - 3px) !important;
    }
}

@media (max-width: 767.98px) {
    .site-logo {
        width: 200px;
    }

    .navbar-nav .nav-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    header {
        padding: 0.5rem 0;
    }

    .site-logo {
        width: 180px;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(139, 115, 85, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Button Styles */
.btn {
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-medium);
    font-size: 1rem;
    letter-spacing: 0.01em;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
}

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

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.btn-outline-primary:hover:not(:disabled) {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

/* Secondary Button Hover */
.btn-secondary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Light Button Hover */
.btn-light:hover {
    background: var(--background-alt);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Success Button Hover */
.btn-success:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* General Button Hover States */
.btn:hover:not(:disabled) {
    transition: var(--transition-medium);
}

.btn:disabled:hover {
    transform: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition-medium);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    background: var(--background-color);
}

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

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Practice Area Cards */
.practice-card {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.practice-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.practice-card .display-4 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.practice-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.practice-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Form Styles */
.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: var(--transition-medium);
    background: var(--background-color);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 115, 85, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Form Check Input Styles */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background-color);
    transition: var(--transition-base);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-check-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 115, 85, 0.15);
    outline: none;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input[type="radio"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--background-alt);
}

.form-check-label {
    margin-left: 0.5rem;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

/* Accordion Styles */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--background-alt);
    font-weight: 600;
    color: var(--text-color);
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Footer Styles - Minimal Design */
footer.footer-minimal {
    background: var(--background-alt);
    color: var(--text-secondary);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

footer.footer-minimal .footer-nav {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

footer.footer-minimal .footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-base);
}

footer.footer-minimal .footer-nav a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

footer.footer-minimal .footer-info {
    margin-top: 1rem;
}

footer.footer-minimal .footer-info p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

footer.footer-minimal .footer-info p:first-child {
    color: var(--text-color);
    font-weight: 500;
}

/* Badge Styles */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.875rem;
}

.bg-primary {
    background: var(--accent-color) !important;
}

/* Text Primary */
.text-primary {
    color: var(--accent-color) !important;
}

/* Border Primary */
.border-primary {
    border-color: var(--accent-color) !important;
}

/* Link Styles */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Button Link Styles */
.btn-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.btn-link:hover {
    color: var(--accent-dark);
    text-decoration: none;
}

.btn-link:focus {
    color: var(--accent-dark);
    box-shadow: none;
}

/* Button Active States */
.btn.active,
.btn:active {
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-sm) !important;
    transform: translateY(0);
}

.btn-primary.active,
.btn-primary:active {
    background: var(--accent-dark) !important;
    color: #ffffff !important;
}

.btn-outline-primary.active,
.btn-outline-primary:active {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1.5rem;
}

.alert-info {
    background: rgba(139, 115, 85, 0.1);
    color: var(--accent-dark);
    border-left: 4px solid var(--accent-color);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 5rem 0;
    border-radius: var(--border-radius-lg);
    margin: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(139, 115, 85, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2,
.cta-section h3 {
    color: #ffffff;
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-light {
    background: var(--background-color);
    color: var(--text-color);
    font-weight: 600;
}

.cta-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-section .btn-outline-light {
    border: 2px solid #ffffff;
    color: #ffffff;
}

.cta-section .btn-outline-light:hover {
    background: #ffffff;
    color: var(--text-color);
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-accent) border-box;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .practice-card {
        padding: 2rem;
    }
}

/* Hero Section Styling */
.hero-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.hero-content {
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-actions .btn-primary {
    background-color: #0d6efd;
    border: none;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.hero-actions .btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.contact-info:hover {
    background: #e9ecef;
}

.contact-info i {
    font-size: 1.5rem;
    color: #0d6efd;
}

.phone-link {
    text-decoration: none;
    color: #212529;
}

.phone-number {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.work-hours {
    color: #6c757d;
    font-size: 0.875rem;
}

.hero-footer {
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.disclaimer,
.baro-info {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer i,
.baro-info i {
    color: #0d6efd;
    font-size: 1rem;
}

.hero-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    transition: transform 0.5s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    border-radius: 1rem;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.hero-shape .shape-fill {
    fill: #FFFFFF;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        align-items: center;
    }
    
    .contact-info {
        justify-content: center;
        text-align: center;
    }
    
    .hero-image {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-image:hover {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions .btn-primary {
        width: 100%;
    }
}

/* Ensure proper spacing between sections */
section {
    padding: 5rem 0;
    position: relative;
}

/* Utility classes */
.bg-light {
    background-color: #f8f9fa !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

/* Add smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Article List Styles */
.posts-list {
    margin-top: 2rem;
}

.post-preview {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.post-preview:last-child {
    border-bottom: none;
}

.post-preview h2 {
    margin-bottom: 0.75rem;
}

.post-preview h2 a {
    color: var(--bs-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-preview h2 a:hover {
    color: var(--bs-primary);
    text-decoration: none;
}

.post-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.post-date {
    margin-right: 1rem;
}

.post-categories .badge {
    margin-right: 0.5rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

.post-summary {
    margin-bottom: 1.25rem;
    color: #495057;
    line-height: 1.7;
}

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

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

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }
}

/* Terms Pages (Categories & Tags) */
.terms-page {
    padding: 4rem 0;
}

.terms-header {
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: white;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.terms-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-transform: capitalize;
}

.terms-header .lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.term-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.term-card a {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
}

.term-card h3 {
    margin: 0 0 0.5rem;
    color: var(--accent-color);
    font-size: 1.25rem;
}

.term-card .count {
    display: inline-block;
    background: var(--accent-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .terms-header {
        padding: 3rem 1rem;
    }
    
    .terms-header h1 {
        font-size: 2rem;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
    }
}

.footer {
    background-color: var(--primary-color);
    color: #adb5bd;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Footer Top */
.footer-top {
    background-color: rgba(0, 0, 0, 0.1);
}

.footer-brand {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes logo white */
}

/* Divider */
.footer-divider {
    background-color: rgba(255, 255, 255, 0.03);
}

.divider-line {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent 100%);
}

/* Footer Bottom */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Links */
.footer-link {
    color: #ced4da !important;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-color) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Address */
.footer-address {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    max-width: 100%;
    word-break: break-word;
}

.footer-address i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Credentials */
.footer-credentials {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-family: var(--bs-font-sans-serif);
}

/* Contact Items */
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact-item {
    color: #adb5bd !important;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.footer-contact-item:hover {
    color: var(--accent-color) !important;
}

.divider {
    color: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 767.98px) {
    .footer-top, .footer-bottom {
        text-align: center;
    }

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

    .footer-link {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    .footer-contact-item {
        font-size: 0.75rem;
    }

    .footer-logo {
        height: 32px;
    }

    .footer-brand {
        font-size: 0.9rem;
    }
}