/* style.css - Main Stylesheet for Casil Accountants */

/* Base Styles */
:root {
    /* Primary Colors - Professional Blue Family */
    --primary      : #00144b;
    --primary-dark : #00144b;
    --primary-light: #00316d;

    /* Secondary Colors - Success Green Family */
    --secondary      : #10b981;
    --secondary-dark : #059669;
    --secondary-light: #34d399;

    /* Accent Colors */
    --accent     : #ffc107;
    --accent-dark: #f59e0b;

    /* Neutral Colors */
    --dark      : #111827;
    --gray-dark : #374151;
    --gray      : #6b7280;
    --gray-light: #f3f4f6;
    --light     : #ffffff;

    /* Shadow System */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow   : 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Gradients */
    --gradient-primary  : linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    --gradient-hero     : linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
}

* {
    margin    : 0;
    padding   : 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color      : var(--dark);
    background : var(--light);
}

a {
    text-decoration: none;
    color          : var(--primary);
    transition     : all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height   : auto;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin   : 0 auto;
    padding  : 0 20px;
}

.text-center {
    text-align: center;
}

.btn {
    display      : inline-block;
    padding      : 12px 24px;
    border-radius: 8px;
    font-weight  : 600;
    text-align   : center;
    cursor       : pointer;
    transition   : all 0.3s ease;
    border       : none;
}

.btn-primary {
    background: var(--primary);
    color     : var(--light);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform : translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color     : var(--light);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform : translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    color     : var(--dark);
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform : translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section-header {
    text-align   : center;
    margin-bottom: 40px;
}

.section-header h2 {
    color        : var(--primary-dark);
    font-size    : 2rem;
    margin-bottom: 15px;
    position     : relative;
    display      : inline-block;
}

.section-header h2::after {
    content   : '';
    position  : absolute;
    bottom    : -10px;
    left      : 50%;
    transform : translateX(-50%);
    width     : 80px;
    height    : 3px;
    background: var(--secondary);
}

.section-header p {
    color    : var(--gray-dark);
    max-width: 700px;
    margin   : 0 auto;
}

/* Header Styles */
.header {
    background: var(--light);
    box-shadow: var(--shadow-sm);
    position  : fixed;
    width     : 100%;
    top       : 0;
    left      : 0;
    z-index   : 1000;
    padding   : 15px 0;
}

.header .container {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
}

.logo img {
    height    : 90px;
    max-height: 100%;
    width     : auto;
}

@media screen and (max-width: 768px) {
    .logo img {
        height: 80px;
    }
}

.navbar ul {
    display    : flex;
    align-items: center;
    gap        : 30px;
}

.navbar ul li a {
    color      : var(--dark);
    font-weight: 500;
    padding    : 5px 0;
    position   : relative;
}

.navbar ul li a::after {
    content   : '';
    position  : absolute;
    bottom    : 0;
    left      : 0;
    width     : 0;
    height    : 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 100%;
}

.navbar ul li a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display  : none;
    font-size: 24px;
    cursor   : pointer;
}

/* Hero Section */
.hero {
    padding   : 150px 0 80px;
    background: var(--gray-light);
}

.hero .container {
    display    : flex;
    align-items: center;
    gap        : 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size    : 3rem;
    color        : var(--primary-dark);
    margin-bottom: 20px;
    line-height  : 1.2;
}

.hero-content p {
    font-size    : 1.2rem;
    color        : var(--gray-dark);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap    : 15px;
}

.hero-image {
    flex     : 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Stats Section */
.stats {
    padding   : 60px 0;
    background: var(--gradient-primary);
    color     : var(--light);
}

.stats .container {
    display              : grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap                  : 30px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size    : 3rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1rem;
    opacity  : 0.9;
}

/* Services Preview Section */
.services-preview {
    padding: 80px 0;
}

.services-grid {
    display              : grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap                  : 30px;
    margin               : 40px 0;
}

.service-card {
    background   : var(--light);
    border-radius: 10px;
    padding      : 30px;
    box-shadow   : var(--shadow);
    transition   : all 0.3s ease;
    border-left  : 4px solid var(--primary);
    text-align   : center;
}

.service-card:hover {
    transform : translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card.secondary {
    border-left-color: var(--secondary);
}

.service-card.accent {
    border-left-color: var(--accent);
}

.service-icon {
    font-size    : 2.5rem;
    color        : var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    color        : var(--primary);
    margin-bottom: 15px;
}

.service-card.secondary h3 {
    color: var(--secondary);
}

.service-card.accent h3 {
    color: var(--accent-dark);
}

.service-card p {
    color        : var(--gray-dark);
    margin-bottom: 20px;
}

.service-details-btn {
    color      : var(--primary);
    font-weight: 600;
    display    : inline-flex;
    align-items: center;
    gap        : 5px;
}

.service-details-btn:hover {
    color: var(--primary-dark);
    gap  : 10px;
}

/* About Preview Section */
.about-preview {
    padding   : 80px 0;
    background: var(--gray-light);
}

.about-preview .container {
    display    : flex;
    align-items: center;
    gap        : 50px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    color        : var(--primary-dark);
    font-size    : 2.2rem;
    margin-bottom: 20px;
}

.about-content p {
    color        : var(--gray-dark);
    margin-bottom: 20px;
    font-size    : 1.1rem;
}

.about-image {
    flex         : 1;
    border-radius: 10px;
    overflow     : hidden;
    box-shadow   : var(--shadow-lg);
}

/* Testimonials Section */
.testimonials {
    padding   : 80px 0;
    background: var(--light);
}

.testimonial-slider {
    display         : flex;
    gap             : 30px;
    overflow-x      : auto;
    padding         : 20px 0;
    scroll-snap-type: x mandatory;
}

.testimonial {
    min-width        : 350px;
    background       : var(--light);
    border-radius    : 10px;
    padding          : 30px;
    box-shadow       : var(--shadow);
    scroll-snap-align: start;
}

.testimonial-content {
    font-style   : italic;
    color        : var(--gray-dark);
    margin-bottom: 20px;
    position     : relative;
}

.testimonial-content::before,
.testimonial-content::after {
    content  : '"';
    font-size: 3rem;
    color    : var(--primary-light);
    opacity  : 0.3;
    position : absolute;
}

.testimonial-content::before {
    top : -20px;
    left: -10px;
}

.testimonial-content::after {
    bottom: -40px;
    right : -10px;
}

.testimonial-author {
    display    : flex;
    align-items: center;
    gap        : 15px;
}

.testimonial-author img {
    width        : 60px;
    height       : 60px;
    border-radius: 50%;
    object-fit   : cover;
}

.testimonial-author h4 {
    color        : var(--primary-dark);
    margin-bottom: 5px;
}

.testimonial-author p {
    color    : var(--gray);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    padding   : 80px 0;
    background: var(--gradient-secondary);
    color     : var(--light);
    text-align: center;
}

.cta h2 {
    font-size    : 2.2rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin   : 0 auto 30px;
    opacity  : 0.9;
}

/* Footer Styles */
.footer {
    background: var(--dark);
    color     : var(--light);
    padding   : 60px 0 0;
}

.footer-grid {
    display              : grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap                  : 40px;
    margin-bottom        : 40px;
}

.footer-col h3 {
    color         : var(--light);
    margin-bottom : 20px;
    font-size     : 1.2rem;
    position      : relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content   : '';
    position  : absolute;
    bottom    : 0;
    left      : 0;
    width     : 40px;
    height    : 2px;
    background: var(--primary);
}

.footer-logo {
    height       : 50px;
    margin-bottom: 20px;
}

.footer-col p {
    color        : var(--gray);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap    : 15px;
}

.social-links a {
    display        : flex;
    align-items    : center;
    justify-content: center;
    width          : 40px;
    height         : 40px;
    border-radius  : 50%;
    background     : rgba(255, 255, 255, 0.1);
    color          : var(--light);
    transition     : all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform : translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color     : var(--gray);
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color       : var(--light);
    padding-left: 5px;
}

.contact-info li {
    display      : flex;
    align-items  : flex-start;
    gap          : 10px;
    margin-bottom: 15px;
    color        : var(--gray);
}

.contact-info i {
    color     : var(--primary);
    margin-top: 3px;
}

.footer-bottom {
    padding        : 20px 0;
    border-top     : 1px solid rgba(255, 255, 255, 0.1);
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    color          : var(--gray);
    font-size      : 0.9rem;
}

.footer-links {
    display: flex;
    gap    : 20px;
}

.footer-links a {
    color: var(--gray);
}

.footer-links a:hover {
    color: var(--light);
}

.testimonial-icon {
    width           : 48px;
    height          : 48px;
    background-color: #0055a5;
    color           : #fff;
    font-weight     : bold;
    font-size       : 18px;
    border-radius   : 50%;
    display         : flex;
    align-items     : center;
    justify-content : center;
    margin-bottom   : 10px;
}

/* Page Hero Styles */
.page-hero {
    padding   : 150px 0 80px;
    text-align: center;
    color     : var(--light);
    position  : relative;
}

.page-hero::before {
    content   : '';
    position  : absolute;
    top       : 0;
    left      : 0;
    width     : 100%;
    height    : 100%;
    background: linear-gradient(135deg, #00244b 0%, #003064 100%);
    z-index   : 1;
}

.page-hero .container {
    position: relative;
    z-index : 2;
}

.page-hero h1 {
    font-size    : 3rem;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin   : 0 auto;
}

.home-hero {
    background: url('../images/home-hero-bg.jpg') no-repeat center center/cover;
}

.about-hero {
    background: url('../images/about-hero-bg.jpg') no-repeat center center/cover;
}

.services-hero {
    background: url('../images/services-hero-bg.jpg') no-repeat center center/cover;
}

.contact-hero {
    background: url('../images/contact-hero-bg.jpg') no-repeat center center/cover;
}

.blog-hero {
    background: url('../images/blog-hero-bg.jpg') no-repeat center center/cover;
}

/* About Page Styles */
.our-story {
    padding: 80px 0;
}

.timeline {
    position : relative;
    max-width: 800px;
    margin   : 0 auto;
}

.timeline::before {
    content   : '';
    position  : absolute;
    top       : 0;
    left      : 50%;
    transform : translateX(-50%);
    width     : 2px;
    height    : 100%;
    background: var(--primary);
}

.timeline-item {
    display        : flex;
    justify-content: space-between;
    margin-bottom  : 40px;
    position       : relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align    : right;
}

.timeline-year {
    width          : 100px;
    height         : 100px;
    background     : var(--primary);
    color          : var(--light);
    border-radius  : 50%;
    display        : flex;
    align-items    : center;
    justify-content: center;
    font-size      : 1.5rem;
    font-weight    : 700;
    position       : relative;
    z-index        : 2;
}

.timeline-content {
    width        : calc(50% - 80px);
    padding      : 20px;
    background   : var(--light);
    border-radius: 8px;
    box-shadow   : var(--shadow);
}

.timeline-content h3 {
    color        : var(--primary-dark);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--gray-dark);
}

.our-team {
    padding   : 80px 0;
    background: var(--gray-light);
}

.team-grid {
    display              : grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap                  : 30px;
    margin-top           : 40px;
}

.team-member {
    background   : var(--light);
    border-radius: 10px;
    overflow     : hidden;
    box-shadow   : var(--shadow);
    transition   : all 0.3s ease;
}

.team-member:hover {
    transform : translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.member-image img {
    width     : 100%;
    height    : 300px;
    object-fit: cover;
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    color        : var(--primary-dark);
    margin-bottom: 5px;
}

.position {
    color        : var(--primary);
    font-weight  : 600;
    margin-bottom: 10px;
    display      : block;
}

.qualifications {
    color        : var(--secondary-dark);
    font-size    : 0.9rem;
    margin-bottom: 10px;
    display      : block;
}

.bio {
    color: var(--gray-dark);
}

.our-values {
    padding: 80px 0;
}

.values-grid {
    display              : grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap                  : 30px;
    margin-top           : 40px;
}

.value-card {
    text-align   : center;
    padding      : 30px 20px;
    background   : var(--light);
    border-radius: 10px;
    box-shadow   : var(--shadow);
    transition   : all 0.3s ease;
}

.value-card:hover {
    transform : translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    font-size    : 2.5rem;
    color        : var(--primary);
    margin-bottom: 20px;
}

.value-card h3 {
    color        : var(--primary-dark);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--gray-dark);
}

/* Services Page Styles */
.services-main {
    padding: 80px 0;
}

.services-tabs {
    margin-top: 40px;
}

.tab-buttons {
    display      : flex;
    flex-wrap    : wrap;
    gap          : 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding      : 10px 20px;
    background   : var(--gray-light);
    border       : none;
    border-radius: 5px;
    cursor       : pointer;
    font-weight  : 600;
    color        : var(--gray-dark);
    transition   : all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary);
    color     : var(--light);
}

.tab-btn:hover:not(.active) {
    background: var(--gray);
    color     : var(--light);
}

.tab-content {
    display  : none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tab-content-inner {
    display      : flex;
    gap          : 40px;
    background   : var(--light);
    padding      : 30px;
    border-radius: 10px;
    box-shadow   : var(--shadow);
}

.tab-image {
    flex         : 1;
    border-radius: 8px;
    overflow     : hidden;
}

.tab-image img {
    width     : 100%;
    height    : 100%;
    object-fit: cover;
}

.tab-text {
    flex: 1;
}

.tab-text h3 {
    color        : var(--primary-dark);
    margin-bottom: 20px;
    font-size    : 1.8rem;
}

.tab-text p {
    color        : var(--gray-dark);
    margin-bottom: 20px;
    line-height  : 1.7;
}

.service-features {
    margin-bottom: 30px;
}

.service-features li {
    display      : flex;
    align-items  : flex-start;
    gap          : 10px;
    margin-bottom: 10px;
    color        : var(--gray-dark);
}

.service-features i {
    color     : var(--secondary);
    margin-top: 3px;
}

.service-cta {
    display: flex;
    gap    : 15px;
}

.service-packages {
    padding   : 80px 0;
    background: var(--gray-light);
}

.packages-grid {
    display              : grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap                  : 30px;
    margin-top           : 40px;
}

.package-card {
    background   : var(--light);
    border-radius: 10px;
    overflow     : hidden;
    box-shadow   : var(--shadow);
    transition   : all 0.3s ease;
    position     : relative;
}

.package-card:hover {
    transform : translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.package-card.popular {
    border-top: 5px solid var(--accent);
}

.popular-badge {
    position   : absolute;
    top        : 15px;
    right      : -40px;
    background : var(--accent);
    color      : var(--dark);
    padding    : 5px 40px;
    font-weight: 600;
    transform  : rotate(45deg);
}

.package-header {
    padding      : 30px 20px;
    text-align   : center;
    border-bottom: 1px solid var(--gray-light);
}

.package-header h3 {
    color        : var(--primary-dark);
    margin-bottom: 5px;
}

.package-header p {
    color    : var(--gray);
    font-size: 0.9rem;
}

.package-price {
    margin: 20px 0;
}

.package-price .price {
    font-size  : 2.5rem;
    font-weight: 700;
    color      : var(--primary-dark);
}

.package-price .period {
    color    : var(--gray);
    font-size: 0.9rem;
}

.discount-badge {
    display      : inline-block;
    background   : var(--secondary-light);
    color        : var(--secondary-dark);
    padding      : 3px 10px;
    border-radius: 20px;
    font-size    : 0.8rem;
    font-weight  : 600;
}

.package-features {
    padding: 20px;
}

.package-features ul li {
    display      : flex;
    align-items  : center;
    gap          : 10px;
    margin-bottom: 10px;
    color        : var(--gray-dark);
}

.package-features i.fa-check {
    color: var(--secondary);
}

.package-features i.fa-times {
    color  : var(--gray);
    opacity: 0.5;
}

.package-cta {
    padding   : 20px;
    text-align: center;
}

.package-note {
    text-align: center;
    margin-top: 30px;
    color     : var(--gray-dark);
    font-size : 0.9rem;
}

.package-note a {
    color      : var(--primary);
    font-weight: 600;
}

.why-choose-us {
    padding: 80px 0;
}

.features-grid {
    display              : grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap                  : 30px;
    margin-top           : 40px;
}

.feature-card {
    text-align   : center;
    padding      : 30px 20px;
    background   : var(--light);
    border-radius: 10px;
    box-shadow   : var(--shadow);
    transition   : all 0.3s ease;
}

.feature-card:hover {
    transform : translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size    : 2.5rem;
    color        : var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    color        : var(--primary-dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray-dark);
}

/* Contact Page Styles */
.contact-main {
    padding: 80px 0;
}

.contact-grid {
    display              : grid;
    grid-template-columns: 1fr 1fr;
    gap                  : 50px;
}

.contact-info h2 {
    color        : var(--primary-dark);
    margin-bottom: 20px;
    font-size    : 1.8rem;
}

.contact-info p {
    color        : var(--gray-dark);
    margin-bottom: 30px;
    line-height  : 1.7;
}

.info-card {
    display      : flex;
    gap          : 20px;
    margin-bottom: 30px;
}

.info-icon {
    font-size : 1.5rem;
    color     : var(--primary);
    margin-top: 3px;
}

.info-content h3 {
    color        : var(--primary-dark);
    margin-bottom: 5px;
}

.info-content p {
    color        : var(--gray-dark);
    margin-bottom: 0;
}

.contact-form h2 {
    color        : var(--primary-dark);
    margin-bottom: 20px;
    font-size    : 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display      : block;
    margin-bottom: 8px;
    color        : var(--gray-dark);
    font-weight  : 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width        : 100%;
    padding      : 12px 15px;
    border       : 1px solid var(--gray-light);
    border-radius: 8px;
    font-family  : inherit;
    font-size    : 1rem;
    transition   : all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline     : none;
    box-shadow  : 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: flex;
    gap    : 20px;
}

.form-row .form-group {
    flex: 1;
}

textarea {
    resize    : vertical;
    min-height: 120px;
}

.map-section {
    padding: 0 0 80px;
}

.map-container {
    border-radius: 10px;
    overflow     : hidden;
    box-shadow   : var(--shadow);
}

.faq-section {
    padding   : 80px 0;
    background: var(--gray-light);
}

.faq-accordion {
    max-width: 800px;
    margin   : 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    background   : var(--light);
    border-radius: 8px;
    box-shadow   : var(--shadow);
    overflow     : hidden;
}

.faq-question {
    width          : 100%;
    padding        : 20px;
    text-align     : left;
    background     : var(--light);
    border         : none;
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    cursor         : pointer;
    font-weight    : 600;
    color          : var(--primary-dark);
    transition     : all 0.3s ease;
}

.faq-question:hover {
    background: var(--gray-light);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding   : 0 20px;
    max-height: 0;
    overflow  : hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding   : 0 20px 20px;
    max-height: 500px;
}

.faq-answer p {
    color      : var(--gray-dark);
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
    margin-top: 40px;
}

.faq-cta a {
    color      : var(--primary);
    font-weight: 600;
}

/* Blog Page Styles */
.blog-main {
    padding: 80px 0;
}

.blog-grid {
    display              : grid;
    grid-template-columns: 2fr 1fr;
    gap                  : 40px;
}

.featured-post {
    display              : grid;
    grid-template-columns: 1fr 1fr;
    gap                  : 30px;
    margin-bottom        : 50px;
    background           : var(--light);
    border-radius        : 10px;
    overflow             : hidden;
    box-shadow           : var(--shadow-lg);
}

.post-image {
    position: relative;
}

.post-image img {
    width     : 100%;
    height    : 100%;
    object-fit: cover;
}

.post-category {
    position     : absolute;
    top          : 20px;
    left         : 20px;
    background   : var(--primary);
    color        : var(--light);
    padding      : 5px 15px;
    border-radius: 20px;
    font-size    : 0.8rem;
    font-weight  : 600;
}

.post-content {
    padding: 30px;
}

.post-meta {
    display      : flex;
    gap          : 20px;
    margin-bottom: 15px;
    font-size    : 0.9rem;
    color        : var(--gray);
}

.post-meta i {
    margin-right: 5px;
}

.post-content h2 a {
    color        : var(--primary-dark);
    font-size    : 1.8rem;
    line-height  : 1.3;
    margin-bottom: 15px;
    display      : block;
}

.post-content h2 a:hover {
    color: var(--primary);
}

.post-excerpt {
    color        : var(--gray-dark);
    margin-bottom: 20px;
    line-height  : 1.7;
}

.read-more {
    display    : inline-flex;
    align-items: center;
    gap        : 5px;
    color      : var(--primary);
    font-weight: 600;
}

.read-more:hover {
    gap: 10px;
}

.posts-grid {
    display              : grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap                  : 30px;
    margin-bottom        : 50px;
}

.post-card {
    background   : var(--light);
    border-radius: 10px;
    overflow     : hidden;
    box-shadow   : var(--shadow);
    transition   : all 0.3s ease;
}

.post-card:hover {
    transform : translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.post-card .post-content {
    padding: 20px;
}

.post-card h3 a {
    color        : var(--primary-dark);
    font-size    : 1.2rem;
    line-height  : 1.4;
    margin-bottom: 10px;
    display      : block;
}

.post-card h3 a:hover {
    color: var(--primary);
}

.pagination {
    display        : flex;
    justify-content: center;
    gap            : 10px;
    margin-top     : 50px;
}

.page-numbers,
.next-page {
    display        : inline-flex;
    align-items    : center;
    justify-content: center;
    width          : 40px;
    height         : 40px;
    border-radius  : 50%;
    background     : var(--gray-light);
    color          : var(--gray-dark);
    font-weight    : 600;
    transition     : all 0.3s ease;
}

.page-numbers.current {
    background: var(--primary);
    color     : var(--light);
}

.page-numbers:hover:not(.current),
.next-page:hover {
    background: var(--primary);
    color     : var(--light);
}

.next-page {
    width  : auto;
    padding: 0 20px;
    gap    : 5px;
}

/* Sidebar Styles */
.blog-sidebar {
    position  : sticky;
    top       : 100px;
    align-self: flex-start;
}

.sidebar-widget {
    background   : var(--light);
    border-radius: 10px;
    padding      : 30px;
    margin-bottom: 30px;
    box-shadow   : var(--shadow);
}

.widget-title {
    color         : var(--primary-dark);
    margin-bottom : 20px;
    font-size     : 1.2rem;
    position      : relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content   : '';
    position  : absolute;
    bottom    : 0;
    left      : 0;
    width     : 40px;
    height    : 2px;
    background: var(--primary);
}

.search-form {
    position: relative;
}

.search-form input {
    width        : 100%;
    padding      : 12px 15px;
    padding-right: 40px;
    border       : 1px solid var(--gray-light);
    border-radius: 8px;
    font-family  : inherit;
    font-size    : 1rem;
}

.search-form button {
    position  : absolute;
    top       : 0;
    right     : 0;
    height    : 100%;
    width     : 40px;
    background: none;
    border    : none;
    color     : var(--gray);
    cursor    : pointer;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display        : flex;
    justify-content: space-between;
    color          : var(--gray-dark);
    padding        : 8px 0;
    border-bottom  : 1px dashed var(--gray-light);
}

.category-list a:hover {
    color: var(--primary);
}

.category-list span {
    background   : var(--gray-light);
    color        : var(--gray-dark);
    padding      : 2px 8px;
    border-radius: 10px;
    font-size    : 0.8rem;
}

.popular-posts {
    display: grid;
    gap    : 20px;
}

.popular-post {
    display: flex;
    gap    : 15px;
}

.popular-post img {
    width        : 80px;
    height       : 80px;
    border-radius: 8px;
    object-fit   : cover;
}

.popular-post-content h4 a {
    color        : var(--primary-dark);
    font-size    : 0.9rem;
    line-height  : 1.4;
    margin-bottom: 5px;
    display      : block;
}

.popular-post-content h4 a:hover {
    color: var(--primary);
}

.post-date {
    color    : var(--gray);
    font-size: 0.8rem;
}

.tag-cloud {
    display  : flex;
    flex-wrap: wrap;
    gap      : 10px;
}

.tag-cloud a {
    display      : inline-block;
    padding      : 5px 12px;
    background   : var(--gray-light);
    color        : var(--gray-dark);
    border-radius: 20px;
    font-size    : 0.8rem;
    transition   : all 0.3s ease;
}

.tag-cloud a:hover {
    background: var(--primary);
    color     : var(--light);
}

.newsletter-form input {
    width        : 100%;
    padding      : 12px 15px;
    border       : 1px solid var(--gray-light);
    border-radius: 8px;
    font-family  : inherit;
    font-size    : 1rem;
    margin-bottom: 10px;
}

/* Popup Styles */
.service-popup,
.consultation-popup,
.package-popup,
.success-popup {
    position       : fixed;
    top            : 0;
    left           : 0;
    width          : 100%;
    height         : 100%;
    background     : rgba(0, 0, 0, 0.7);
    display        : flex;
    align-items    : center;
    justify-content: center;
    z-index        : 2000;
    opacity        : 0;
    visibility     : hidden;
    transition     : all 0.3s ease;
}

.service-popup.active,
.consultation-popup.active,
.package-popup.active,
.success-popup.active {
    opacity   : 1;
    visibility: visible;
}

.popup-content {
    background   : var(--light);
    border-radius: 10px;
    width        : 90%;
    max-width    : 800px;
    max-height   : 90vh;
    overflow-y   : auto;
    padding      : 30px;
    position     : relative;
    box-shadow   : var(--shadow-lg);
    animation    : popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity  : 0;
        transform: translateY(20px);
    }

    to {
        opacity  : 1;
        transform: translateY(0);
    }
}

.close-popup {
    position  : absolute;
    top       : 15px;
    right     : 15px;
    font-size : 1.5rem;
    color     : var(--gray);
    cursor    : pointer;
    transition: all 0.3s ease;
}

.close-popup:hover {
    color    : var(--primary-dark);
    transform: rotate(90deg);
}

.popup-header {
    display      : flex;
    align-items  : center;
    gap          : 20px;
    margin-bottom: 30px;
}

.service-popup-icon {
    width          : 60px;
    height         : 60px;
    background     : var(--primary);
    color          : var(--light);
    border-radius  : 50%;
    display        : flex;
    align-items    : center;
    justify-content: center;
    font-size      : 1.8rem;
}

.popup-header h2 {
    color: var(--primary-dark);
    flex : 1;
}

.popup-body {
    display              : grid;
    grid-template-columns: 1fr 1fr;
    gap                  : 30px;
}

.service-image img {
    width        : 100%;
    border-radius: 8px;
    box-shadow   : var(--shadow);
}

.service-description p {
    color        : var(--gray-dark);
    margin-bottom: 20px;
    line-height  : 1.7;
}

.service-features h3 {
    color        : var(--primary-dark);
    margin-bottom: 15px;
}

.service-features ul {
    margin-bottom: 20px;
}

.service-features li {
    display      : flex;
    align-items  : flex-start;
    gap          : 10px;
    margin-bottom: 10px;
    color        : var(--gray-dark);
}

.service-features i {
    color     : var(--secondary);
    margin-top: 3px;
}

.popup-footer {
    margin-top: 30px;
    text-align: center;
}

.consultation-popup .popup-content {
    max-width: 600px;
}

.consultation-popup h2 {
    color        : var(--primary-dark);
    margin-bottom: 20px;
    text-align   : center;
}

.success-popup .popup-content {
    max-width : 500px;
    text-align: center;
}

.success-icon {
    font-size    : 4rem;
    color        : var(--secondary);
    margin-bottom: 20px;
}

.success-popup h2 {
    color        : var(--primary-dark);
    margin-bottom: 15px;
}

.success-popup p {
    color        : var(--gray-dark);
    margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {

    .hero .container,
    .about-preview .container {
        flex-direction: column;
    }

    .hero-content,
    .hero-image,
    .about-content,
    .about-image {
        flex : none;
        width: 100%;
    }

    .hero-image {
        order: -1;
    }

    .tab-content-inner {
        flex-direction: column;
    }

    .popup-body {
        grid-template-columns: 1fr;
    }

    .service-image {
        max-width: 400px;
        margin   : 0 auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        position  : fixed;
        top       : 80px;
        left      : 0;
        width     : 100%;
        background: var(--light);
        box-shadow: var(--shadow-md);
        padding   : 20px;
        transform : translateY(-150%);
        opacity   : 0;
        transition: all 0.3s ease;
    }

    .navbar.active {
        transform: translateY(0);
        opacity  : 1;
    }

    .navbar ul {
        flex-direction: column;
        gap           : 15px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .sidebar-widget {
        position: static;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats .container {
        grid-template-columns: 1fr;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap           : 0;
    }

    .cta-buttons {
        flex-direction: column;
    }
}