/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Global Variables */
:root {
    --primary-color: #A22D2D;
    --secondary-color: #F5B041;
    --link-color: #3B5998;
    --link-hover-color: #2E3A5F;
    --button-bg-color: #A22D2D;
    --button-text-color: #fff;
    --menu-bg-color: #EAEDED;
    --menu-link-color: #3B5998;
    --footer-bg-color: #2C3E50;
    --footer-text-color: #ECF0F1;
    --footer-link-color: #F39C12;
    --accordion-bg-color: #F5B041;
    --accordion-text-color: #2C3E50;
    --icon-color: #A22D2D;
    --card-header-bg-color: #F5B041;
    --btn-outline-primary-border-color: #A22D2D;
    --text-primary-color: #3B5998;
    --bs-primary: #A22D2D;
    --bs-secondary: #F5B041;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

h3 {
    font-weight: 500;
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
}

h4 {
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

h5 {
    font-weight: 300;
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Top Bar */
.top-bar {
    background-color: var(--menu-bg-color);
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.top-bar-text {
    font-size: 14px;
    color: var(--menu-link-color);
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Navigation */
.navbar {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 40px;
    max-height: 70px;
}

.navbar-brand img {
    max-height: 80px;
    max-width: 300px;
}

.navbar-nav .nav-link {
    color: var(--menu-link-color) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Mega Menu */
.mega-dropdown {
    position: static;
}

.mega-dropdown .mega-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1140px;
    margin-top: 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: #fff;
    z-index: 1000;
}

.mega-menu .dropdown-header {
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.mega-menu .dropdown-item {
    padding: 8px 15px;
    color: #333;
    white-space: normal;
    word-wrap: break-word;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mega-menu .dropdown-item:hover {
    background-color: var(--menu-bg-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero, .hero-section {
    width: 100%;
    height: 400px;
    max-height: 400px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before, .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-width: 1000px;
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Responsive Hero */
@media (max-width: 1200px) {
    .hero-content {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero, .hero-section {
        height: 500px;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* Breadcrumbs */
.breadcrumbs-section {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.section-secondary {
    background-color: var(--secondary-color);
    color: var(--accordion-text-color);
}

.section-light {
    background-color: #f8f9fa;
}

.section-dark {
    background-color: #343a40;
    color: #fff;
}

/* Tiles Container */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Tiles */
.tile {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    text-align: center;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.tile-icon {
    font-size: 3em;
    color: var(--icon-color);
    margin-bottom: 20px;
    text-align: center;
    display: block;
}

.tile h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card.shadow {
    background-color: #f8f9fa;
}

.table-responsive {
    background-color: #f8f9fa;
}

.card-header {
    background-color: var(--card-header-bg-color);
    color: var(--accordion-text-color);
    font-weight: 600;
    border-radius: 10px 10px 0 0 !important;
    border: none;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--button-bg-color);
    border-color: var(--button-bg-color);
    color: var(--button-text-color);
}

.btn-primary:hover {
    background-color: #8A2424;
    border-color: #8A2424;
    color: var(--button-text-color);
}

.btn-outline-primary {
    border-color: var(--btn-outline-primary-border-color);
    color: var(--btn-outline-primary-border-color);
}

.btn-outline-primary:hover {
    background-color: var(--btn-outline-primary-border-color);
    border-color: var(--btn-outline-primary-border-color);
    color: #fff;
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--accordion-text-color);
}

.btn-warning:hover {
    background-color: #E5A036;
    border-color: #E5A036;
    color: var(--accordion-text-color);
}

.btn-apply {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--accordion-text-color);
    font-weight: 600;
    animation: pulse 2s infinite;
}

.btn-apply:hover {
    background-color: #E5A036;
    border-color: #E5A036;
    color: var(--accordion-text-color);
    transform: scale(1.05);
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 176, 65, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 176, 65, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 176, 65, 0);
    }
}

.pulse-button {
    animation: pulse 2s infinite;
}

/* Accordion */
.accordion-button {
    background-color: var(--accordion-bg-color);
    color: var(--accordion-text-color);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--accordion-bg-color);
    color: var(--accordion-text-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--accordion-bg-color);
}

.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-item:first-of-type .accordion-button {
    border-radius: 8px;
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.table thead {
    background-color: var(--primary-color);
    color: #fff;
}

.table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table tbody td {
    padding: 15px;
    border-top: 1px solid #e9ecef;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Lists */
ul.list-styled {
    list-style: none;
    padding-left: 0;
}

ul.list-styled li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

ul.list-styled li:last-child {
    border-bottom: none;
}

ul.list-styled li a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

ul.list-styled li a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

ol.list-numbered {
    padding-left: 20px;
}

ol.list-numbered li {
    margin-bottom: 15px;
    padding-left: 10px;
}

ol.list-numbered li strong {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 60px 0 20px;
    margin-top: 0px !important;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-text {
    color: var(--footer-text-color);
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact-info {
    margin-top: 20px;
}

.footer-bottom {
    border-top: 1px solid #4a5f7a;
    padding-top: 30px;
    margin-top: 40px;
}

.footer-bottom-links {
    margin-bottom: 20px;
}

.footer-bottom-links a {
    color: var(--footer-link-color);
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-copyright {
    color: var(--footer-text-color);
    margin-bottom: 10px;
}

.footer-disclaimer {
    color: #b8c5d6;
    font-size: 14px;
}

.footer-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-cta {
    margin-top: 20px;
}

/* Parallax */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    padding: 100px 0;
    color: #fff;
    text-align: center;
}

/* Column Layouts */
.column-1 {
    padding: 60px 0;
}

.column-2 {
    padding: 60px 0;
}

.column-3 {
    padding: 60px 0;
}

.column-4 {
    padding: 60px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .tile {
        padding: 20px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-badges {
        justify-content: flex-start;
        margin-top: 20px;
    }
}

/* Text Colors */
.text-primary {
    color: var(--text-primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* Icon Colors */
.fa-icon {
    color: var(--icon-color);
}

/* Form Styles */
.form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(162, 45, 45, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Modal Styles */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 10px 10px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 10px 10px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.navbar-nav .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .breadcrumbs-section,
    .btn-apply {
        display: none !important;
    }
    
    .hero {
        height: auto;
        min-height: 200px;
    }
    
    .section {
        padding: 20px 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border-color: #000;
    }
    
    .card {
        border: 2px solid #000;
    }
    
    .table {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pulse-button {
        animation: none;
    }
}