/*
* Tracey Wallace Solicitors - Main Stylesheet
* Author: Developer
* Version: 1.0
*/

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 1rem;
    color: #002478;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #002478;
    text-decoration: none;
}

a:hover {
    color: #2c5aa5;
}

ul, ol {
    margin: 0 0 1.5rem 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

button, 
input[type="button"], 
input[type="submit"] {
    cursor: pointer;
}

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

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #002478;
    color: #fff;
}

.btn-primary:hover {
    background-color: #001c5e;
    color: #fff;
}

.btn-secondary {
    background-color: #002478;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #001c5e;
    color: #fff;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ===== HEADER ===== */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    flex: 0 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #002478;
    margin-left: 10px;
}

.logo img {
    max-height: 60px;
}

.main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.main-nav li {
    margin-left: 1.5rem;
    position: relative;
}

.main-nav a {
    font-weight: 600;
    color: #002478;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #002478;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav li.active a::after {
    width: 100%;
}

.main-nav a:hover {
    color: #002478;
}

.main-nav a.contact-btn {
    background-color: #002478;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.main-nav a.contact-btn:hover {
    background-color: #001c5e;
    color: #fff;
}

.main-nav a.contact-btn::after {
    display: none;
}

/* Sub menu */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    padding: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: block;
    border-top: 3px solid #002478;
}

.main-nav .dropdown:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .sub-menu li {
    margin: 0;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-nav .sub-menu li:last-child {
    border-bottom: none;
}

.main-nav .sub-menu a {
    padding: 12px 20px;
    text-align: left;
    font-weight: 500;
    display: block;
    color: #333;
    transition: all 0.2s ease;
}

.main-nav .sub-menu a::after {
    display: none;
}

.main-nav .sub-menu a:hover {
    background-color: #f8f8f8;
    color: #002478;
    padding-left: 25px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    display: flex;
    align-items: center;
    color: #1a3a6a;
    font-weight: 600;
}

.header-phone i {
    margin-right: 8px;
    font-size: 1rem;
}

.header-contact-btn {
    display: flex;
    align-items: center;
    background-color: #002478;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-contact-btn:hover {
    background-color: #001c5e;
    color: #fff;
}

.header-contact-btn i {
    margin-right: 8px;
    font-size: 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #002478;
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
/* Recommended hero image size: 1920px × 800px */
.hero {
    background-color: #002478;
    color: #fff;
    padding: 5rem 0;
    position: relative;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 36, 120, 0.8);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Service-specific Hero Styles */
.service-hero {
    padding: 6rem 0;
}

.service-hero:before {
    display: none; /* Hide the blue overlay for all service hero sections */
}

.service-hero .hero-content h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.service-hero .hero-content p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.criminal-law-hero {
    background-image: linear-gradient(rgba(50, 50, 50, 0.3), rgba(50, 50, 50, 0.3)), url('../images/hero-criminallaw.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.family-law-hero {
    background-image: linear-gradient(rgba(50, 50, 50, 0.3), rgba(50, 50, 50, 0.3)), url('../images/hero-familylaw.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.conveyancing-hero {
    background-image: linear-gradient(rgba(50, 50, 50, 0.3), rgba(50, 50, 50, 0.3)), url('../images/services/conveyancing-hero.jpg');
}

.wills-estates-hero {
    background-image: linear-gradient(rgba(50, 50, 50, 0.3), rgba(50, 50, 50, 0.3)), url('../images/hero-willestate.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.traffic-law-hero {
    background-image: linear-gradient(rgba(50, 50, 50, 0.3), rgba(50, 50, 50, 0.3)), url('../images/hero-trafficlaw.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.legal-aid-hero {
    background-image: linear-gradient(rgba(50, 50, 50, 0.3), rgba(50, 50, 50, 0.3)), url('../images/hero-legalaid.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.services-hero {
    background-image: linear-gradient(rgba(50, 50, 50, 0.3), rgba(50, 50, 50, 0.3)), url('../images/hero-services.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.home-hero {
    background-image: linear-gradient(rgba(50, 50, 50, 0.3), rgba(50, 50, 50, 0.3)), url('../images/hero-home.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding: 8rem 0;
}

.home-hero:before {
    display: none; /* Hide the additional overlay since we have it in the background-image gradient */
}

.home-hero .hero-content h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.home-hero .hero-content p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.about-hero {
    background-image: linear-gradient(rgba(0, 36, 120, 0.8), rgba(0, 36, 120, 0.8)), url('../images/about-hero.jpg');
    padding: 6rem 0;
}

/* Responsive Hero Styles */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    
    .home-hero {
        padding: 6rem 0;
        background-attachment: scroll; /* Mobile devices handle fixed backgrounds poorly */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 3rem 0;
    }
    
    .home-hero {
        padding: 5rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* First row: 3 cards */
    .services-grid .service-card:nth-child(1),
    .services-grid .service-card:nth-child(2),
    .services-grid .service-card:nth-child(3) {
        grid-row: 1;
    }
    
    /* Second row: 3 cards */
    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5),
    .services-grid .service-card:nth-child(6) {
        grid-row: 2;
    }
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .btn-secondary {
    background-color: #002478;
    color: #fff;
}

.service-card .btn-secondary:hover {
    background-color: #001c5e;
    color: #fff;
}

.service-icon {
    font-size: 2.5rem;
    color: #002478;
    margin-bottom: 1.5rem;
}

.service-title {
    margin-bottom: 1rem;
}

.service-desc {
    margin-bottom: 1.5rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial {
    padding: 30px;
}

.testimonial-content {
    font-size: 1.1rem;
    font-style: italic;
    position: relative;
    padding: 0 30px;
    margin-bottom: 20px;
}

.testimonial-content::before,
.testimonial-content::after {
    content: "";
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #002478;
    opacity: 0.3;
    position: absolute;
    line-height: 1;
}

.testimonial-content::before {
    top: -20px;
    left: 0;
}

.testimonial-content::after {
    content: "";
    bottom: -40px;
    right: 0;
}

.testimonial-author {
    font-weight: 600;
    color: #002478;
}

/* ===== BLOG SECTION ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 20px;
}

.blog-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.blog-meta > span {
    margin-right: 15px;
}

.blog-meta i {
    margin-right: 5px;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.blog-excerpt {
    margin-bottom: 15px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    position: relative;
}

.contact-section .contact-info {
    background-color: #002478;
    color: #fff;
    padding: 40px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.contact-section .contact-info h3 {
    color: #fff;
    margin-bottom: 20px;
}

.contact-details {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-details i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-row {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #002478;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Form validation styles */
.form-group.error .form-control {
    border-color: #dc3545;
}

.form-group.success .form-control {
    border-color: #28a745;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* ===== GOOGLE MAP ===== */
.map-container {
    height: 400px;
    margin-top: 30px;
    border-radius: 5px;
    overflow: hidden;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #001c5e;
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-widget {
    margin-bottom: 20px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 200px;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
}

.footer-widget h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0b429;
    display: inline-block;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #f0b429;
}

.contact-info {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info li i {
    margin-right: 10px;
    color: #f0b429;
}

.contact-info a {
    color: #ccc;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #fff;
}

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

/* Footer Accreditation Logos */
.footer-accreditations {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    width: 100%;
}

.accreditation-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 80%;
}

.accreditation-logos img {
    max-height: 70px;
    width: auto;
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .footer-accreditations {
        margin: 2rem 0;
    }
    
    .accreditation-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        max-width: 100%;
    }
    
    .accreditation-logos img {
        max-height: 55px;
    }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #002478;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #001c5e;
    color: #fff;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .header-contact {
        gap: 10px;
    }
    
    .header-phone span {
        display: none; /* Hide phone number text, keep only icon */
    }
    
    .header-contact-btn {
        padding: 0.5rem;
    }
    
    .header-contact-btn span {
        display: none; /* Hide contact text, keep only icon */
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        z-index: 100;
        text-align: center;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        margin: 0;
    }
    
    .main-nav li {
        margin: 0 0 1rem 0;
    }
    
    .main-nav a {
        display: inline-block;
        padding: 0.5rem 0;
    }
    
    .main-nav a::after {
        bottom: 0;
    }
    
    .main-nav .sub-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        width: 100% !important;
        border-top: none;
        border-radius: 0;
        margin-top: 10px;
        background-color: #f8f8f8;
        display: none;
    }
    
    .main-nav .dropdown.active .sub-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 500px;
        transition: max-height 0.3s ease;
    }
    
    .main-nav .sub-menu a {
        padding: 10px;
    }
    
    .main-nav .sub-menu a:hover {
        padding-left: 15px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-image {
        flex: 0 0 100%;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

@media (max-width: 575px) {
    .header-phone {
        display: none;
    }
    
    .logo-text {
        display: none; /* Hide text on very small screens */
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
}

/* ===== ADDITIONAL SERVICE PAGE STYLES ===== */
.service-page-header {
    background-color: #f5f5f5;
    padding: 150px 0 80px;
    text-align: center;
    margin-bottom: 60px;
}

.service-detail {
    margin-bottom: 60px;
}

.service-detail h2 {
    margin-bottom: 20px;
}

.service-detail ul {
    margin-bottom: 30px;
}

.service-faq {
    margin-top: 60px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.faq-question {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question i {
    transition: all 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.show {
    padding: 0 20px 20px;
    max-height: 1000px;
}

/* ===== BLOG PAGE STYLES ===== */
.blog-page-header {
    background-color: #f5f5f5;
    padding: 150px 0 80px;
    text-align: center;
    margin-bottom: 60px;
}

.blog-sidebar {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-date {
    font-size: 0.85rem;
    color: #777;
    display: block;
    margin-top: 5px;
}

.categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories li {
    margin-bottom: 10px;
}

.categories a {
    display: flex;
    justify-content: space-between;
}

.categories .count {
    background-color: #002478;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.search-form button {
    padding: 0 15px;
    background-color: #002478;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination a, 
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination span.current {
    background-color: #002478;
    color: #fff;
}

/* ===== SINGLE POST STYLES ===== */
.post-header {
    margin-bottom: 30px;
}

.post-title {
    margin-bottom: 15px;
}

.post-meta {
    color: #777;
    margin-bottom: 20px;
}

.post-meta > span {
    margin-right: 15px;
}

.post-meta i {
    margin-right: 5px;
}

.post-featured-image {
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
}

.post-content {
    margin-bottom: 40px;
}

.post-tags {
    margin-top: 30px;
}

.post-tags a {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: #f5f5f5;
    border-radius: 3px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background-color: #002478;
    color: #fff;
}

.share-buttons {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.share-buttons h4 {
    margin-bottom: 15px;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-linkedin {
    background-color: #0077b5;
}

.share-email {
    background-color: #777;
}

.share-buttons a:hover {
    opacity: 0.8;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 991px) {
    .contact-page {
        grid-template-columns: 1fr;
    }
}

/* ===== ADMIN LOGIN STYLES ===== */
.login-container {
    max-width: 400px;
    margin: 150px auto 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    height: 80px;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.login-form .form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #002478;
}

.login-form .btn {
    width: 100%;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Alert styling */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert i {
    margin-right: 8px;
}

/* Maintenance mode styling */
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.online {
    background-color: #28a745;
    color: #fff;
}

.status-badge.offline {
    background-color: #dc3545;
    color: #fff;
}

.site-status-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.maintenance-preview-link {
    margin-top: 15px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background-color: #f9f9f9;
    padding: 5rem 0;
    position: relative;
}

.about-content {
    position: relative;
    background-image: url('../images/about-tw.png');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 36, 120, 0.85);
    z-index: 1;
}

.about-text-container {
    position: relative;
    z-index: 2;
    padding: 60px;
}

.about-text {
    color: #fff;
    max-width: 650px;
}

.about-text h2 {
    color: #fff;
    margin-bottom: 20px;
}

.about-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.about-features {
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.about-feature i {
    margin-right: 15px;
    color: #fff;
    font-size: 1.2rem;
}

.about-feature h4 {
    color: #fff;
    margin-bottom: 8px;
}

.about-feature p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-text-container {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 3rem 0;
    }
    
    .about-text-container {
        padding: 30px 20px;
    }
}

.main-nav li.active a {
    color: #002478;
    font-weight: 700;
}

.main-nav li.active a::after {
    width: 100%;
}

/* Add padding to main content to account for fixed header */
.site-main {
    padding-top: 90px; /* Adjust based on header height */
} 