:root {
    --primary: #1a3a5f;
    --secondary: #e63946;
    --accent: #2a9d8f;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 15px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--primary);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.logo-icon {
    font-size: 28px;
    color: var(--accent);
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 24px;
    margin: 0;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-description {
    font-size: 14px;
    color: var(--light-gray);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 25px;
    position: relative;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
    display: block;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--accent);
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    padding: 5px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 58, 95, 0.8), rgba(26, 58, 95, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: #c1121f;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-read-more {
    background-color: var(--primary);
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-read-more:hover {
    background-color: #0d2b4d;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 3rem;
    padding: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 10px;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--dark);
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: var(--accent);
    opacity: 0.1;
    z-index: -1;
    border-radius: 8px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

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

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.contact-item-content h3 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-item-content p {
    color: var(--gray);
    margin: 0;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

/* Blog & Page Styles */
.site-main {
    padding: 60px 0;
}

.blog-posts {
    display: grid;
    gap: 40px;
}

.blog-post {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--accent);
}

.entry-meta {
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.post-thumbnail {
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.blog-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.entry-content {
    line-height: 1.8;
    color: var(--dark);
}

.entry-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Pagination */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 10px;
}

.page-numbers {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--accent);
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: block;
}

.footer-column ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-menu li a {
    color: #ddd !important;
}

.footer-menu li a:hover {
    color: var(--accent) !important;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaa;
}

.copyright a {
    color: var(--accent);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Error & Search Pages */
.error-404,
.no-content,
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.error-404 .page-title,
.no-content h2,
.no-results h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.search-form-404,
.search-form-search {
    max-width: 500px;
    margin: 30px auto;
}

.back-to-home {
    margin-top: 30px;
}

/* Comments */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.comments-title {
    color: var(--primary);
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.comment {
    background: var(--light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-metadata {
    color: var(--gray);
    font-size: 0.9rem;
}

.comment-content {
    line-height: 1.6;
}

.comment-respond {
    background: var(--light);
    padding: 30px;
    border-radius: 8px;
}

.comment-reply-title {
    color: var(--primary);
    margin-bottom: 20px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.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;
}