/* ==========================================================================
   Homepage Styles
   ========================================================================== */

.home-hero {
    padding: 6rem 5%;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    color: var(--text-primary);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.hero-description {
    color: var(--text-primary);
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Services Section (Homepage)
   ========================================================================== */
.home-services {
    padding: 6rem 5%;
    background-color: var(--bg-color); 
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 3.5rem;
    transition: color 0.3s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.service-card {
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

[data-theme="dark"] .service-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.service-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-title a:hover {
    opacity: 0.7;
}

.service-excerpt {
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-link {
    color: #17a2b8;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: opacity 0.2s ease;
}

.service-link:hover {
    opacity: 0.7;
}

.services-action {
    text-align: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-primary);
    color: var(--bg-color);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Who We Help Section
   ========================================================================== */
.home-who-we-help {
    padding: 6rem 5%;
    background-color: var(--header-bg); 
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.help-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.help-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #17a2b8;
}

[data-theme="dark"] .help-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.help-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(23, 162, 184, 0.08);
    border-radius: 50%;
    padding: 1rem;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .help-icon {
    background-color: rgba(23, 162, 184, 0.15);
}

.help-icon img {
    width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    filter: var(--icon-filter, none); 
}

.help-card-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    transition: color 0.3s ease;
}

.help-card-desc {
    color: var(--text-primary);
    opacity: 0.8;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.home-pricing {
    padding: 6rem 5%;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #17a2b8;
}

[data-theme="dark"] .pricing-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.plan-name {
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    transition: color 0.3s ease;
}

.plan-price {
    color: #17a2b8;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ==========================================================================
   Blog Slider Section
   ========================================================================== */
.home-blog {
    padding: 6rem 5%;
    background-color: var(--header-bg);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.blog-slider {
    margin: 0 -1rem;
}

.blog-slide-item {
    padding: 1rem;
    box-sizing: border-box;
    display: flex !important;
    height: auto;
}

.blog-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

[data-theme="dark"] .blog-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.blog-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-size: 0.85rem;
    color: var(--text-primary);
    opacity: 0.6;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-card-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #17a2b8;
}

.blog-card-excerpt {
    color: var(--text-primary);
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.slick-dots {
    display: flex !important;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    gap: 0.5rem;
}

.slick-dots li button {
    border: none;
    background: var(--text-primary);
    opacity: 0.2;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    text-indent: -9999px;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.slick-dots li.slick-active button {
    background: #17a2b8;
    opacity: 1;
}

/* ==========================================================================
   Slick Slider Custom Arrows Layout Fixes
   ========================================================================== */
.blog-slider-container {
    position: relative;
    padding: 0 3rem;
    width: 100%;
    box-sizing: border-box;
}

.blog-slider .slick-track {
    display: flex !important;
}

.blog-slider .slick-slide {
    height: auto !important;
    display: flex !important;
}

.blog-slider-container .slick-prev,
.blog-slider-container .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    background: var(--header-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .blog-slider-container .slick-prev,
[data-theme="dark"] .blog-slider-container .slick-next {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.blog-slider-container .slick-prev:hover,
.blog-slider-container .slick-next:hover {
    color: #17a2b8;
    border-color: #17a2b8;
}

.blog-slider-container .slick-prev {
    left: 0.5rem;
}

.blog-slider-container .slick-next {
    right: 0.5rem;
}

.blog-slider-container .slick-disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   Global Layout Media Queries (Fluid Responsiveness)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container { 
        gap: 2rem; 
    }
    .hero-title { 
        font-size: 2.5rem; 
    }
    .blog-slider-container { 
        padding: 0; 
    }
    .blog-slider-container .slick-prev { 
        left: -0.5rem; 
    }
    .blog-slider-container .slick-next { 
        right: -0.5rem; 
    }
}

@media (max-width: 992px) {
    .home-hero { 
        padding: 4rem 5%; 
    }
    .hero-container { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
    }
    .hero-image-wrapper { 
        justify-content: center; 
    }
}

@media (max-width: 768px) {
    .home-services, 
    .home-who-we-help, 
    .home-pricing, 
    .home-blog { 
        padding: 4rem 5%; 
    }
    .section-title { 
        font-size: 2rem; 
        margin-bottom: 2.5rem; 
    }
    .blog-slider-container .slick-prev, 
    .blog-slider-container .slick-next { 
        display: none !important; 
    }
}