/* ==========================================================================
   Template Home Styles
   ========================================================================== */

/* Global overflow prevention */
.services-section,
.recent-posts,
.about-section,
.founder-section {
    overflow-x: hidden;
}

/* Section Titles */
.section-title {
    color: #0076AD;
    font-weight: 700;
}

.section-heading {
    font-size: 2.5rem;
    letter-spacing: 2px;
    background: rgba(0, 118, 173, 0.8);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.section-heading:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   Services Slider
   ========================================================================== */

.services-section {
    background-color: #f8f9fa;
    overflow: hidden;
}

.services-swiper-wrapper {
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.services-swiper {
    width: 100%;
    padding: 20px 0 50px;
    overflow: hidden;
}

.services-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.services-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.services-swiper .swiper-pagination {
    bottom: 10px;
}

.services-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #0076AD;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.services-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

.services-swiper .swiper-button-next,
.services-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #0076AD;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.services-swiper .swiper-button-next:after,
.services-swiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.services-swiper .swiper-button-next:hover,
.services-swiper .swiper-button-prev:hover {
    background: #0076AD;
    color: #fff;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 118, 173, 0.15);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0, 118, 173, 0.1);
}

.service-icon-wrapper i {
    color: #0076AD;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
}

/* Font Awesome Brands icons */
.service-icon-wrapper i.fa-brands {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1);
    background: #0076AD;
}

.service-card:hover .service-icon-wrapper i {
    color: #fff;
}

.service-title {
    color: #333;
    line-height: 1.3;
}

.service-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d;
}

/* Button Styles - All Filled Buttons */
.service-btn {
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-width: 2px;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Primary Button - Blue (#0076AD) */
.service-btn.primary {
    background-color: #0076AD !important;
    border-color: #0076AD !important;
    color: #fff !important;
}

.service-btn.primary:hover,
.service-btn.primary:focus {
    background-color: #005c8a !important;
    border-color: #005c8a !important;
    color: #fff !important;
}

/* YouTube Button - Red (#FF0000) */
.service-btn.youtube {
    background-color: #FF0000 !important;
    border-color: #FF0000 !important;
    color: #fff !important;
}

.service-btn.youtube:hover,
.service-btn.youtube:focus {
    background-color: #cc0000 !important;
    border-color: #cc0000 !important;
    color: #fff !important;
}

/* Success Button - Green (#28a745) */
.service-btn.success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

.service-btn.success:hover,
.service-btn.success:focus {
    background-color: #218838 !important;
    border-color: #218838 !important;
    color: #fff !important;
}

/* ==========================================================================
   Recent Posts
   ========================================================================== */

.posts-grid {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
}

.post-column {
    flex: 0 0 auto;
    width: 25%;
    max-width: 300px;
}

.post-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.post-thumbnail {
    height: 180px;
    overflow: hidden;
}

.post-thumbnail img {
    object-fit: cover;
}

.post-overlay {
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7) 100%);
}

.post-badge {
    background-color: #0076AD;
    font-size: 0.75rem;
}

.post-card .card-body {
    background: white;
}

.post-card .post-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.post-card .post-excerpt {
    font-size: 0.85rem;
    color: #6c757d;
}

.post-card .post-date {
    font-size: 0.75rem;
}

.post-card .post-btn {
    background-color: #0076AD;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

.view-all-btn {
    background-color: white;
    color: #0076AD;
    border: 2px solid white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background-color: #0076AD;
    color: white;
    transform: translateY(-5px);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
    background-color: #f8f9fa;
}

.about-image-wrapper {
    transition: all 0.3s ease;
    box-shadow: 0 15px 25px rgba(0, 118, 173, 0.15);
    border-radius: 15px;
}

.about-image-inner {
    border-radius: 15px;
    overflow: hidden;
}

.about-image {
    transition: transform 0.4s ease-in-out;
    transform-origin: center;
}

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

.about-overlay {
    background: linear-gradient(to bottom, rgba(0, 118, 173, 0.2), rgba(0, 118, 173, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.about-image-wrapper:hover .about-overlay {
    opacity: 1;
}

.about-title {
    color: #0076AD;
    letter-spacing: -1px;
}

.about-excerpt {
    color: #6c757d;
    line-height: 1.6;
}

.about-quote i {
    color: #0076AD;
}

.about-quote p {
    color: #0076AD;
    font-size: 1.1rem;
}

.about-btn {
    background-color: #0076AD;
    color: white;
    border: 2px solid #0076AD;
    transition: all 0.3s ease;
}

.about-btn:hover {
    background-color: #005c8a;
    transform: translateY(-3px);
}

/* ==========================================================================
   Founder Section
   ========================================================================== */

.founder-section {
    background-color: #f8f9fa;
}

.founder-image-wrapper {
    box-shadow: 0 15px 25px rgba(0, 118, 173, 0.15);
    border-radius: 15px;
}

.founder-image-inner {
    border-radius: 15px;
    overflow: hidden;
}

.founder-image {
    transition: transform 0.4s ease-in-out;
    transform-origin: center;
}

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

.founder-overlay {
    background: linear-gradient(to bottom, rgba(0, 118, 173, 0.2), rgba(0, 118, 173, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.founder-image-wrapper:hover .founder-overlay {
    opacity: 1;
}

.founder-title {
    color: #0076AD;
    letter-spacing: -1px;
}

.founder-excerpt {
    color: #6c757d;
    line-height: 1.6;
}

.founder-quote {
    border-left: 4px solid #0076AD;
    padding-left: 15px;
    font-style: italic;
    color: #0076AD;
    font-size: 1.1rem;
}

.founder-btn {
    background-color: #0076AD;
    color: white;
    border: 2px solid #0076AD;
    transition: all 0.3s ease;
}

.founder-btn:hover {
    background-color: #005c8a;
    transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1400px) {
    .post-column {
        width: 33.333%;
        max-width: none;
    }
}

@media (max-width: 1024px) {
    .posts-grid {
        margin-left: -2%;
        margin-right: -2%;
    }

    .post-column {
        width: 50%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    /* Services Swiper Mobile */
    .services-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .services-swiper-wrapper {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .services-swiper {
        padding: 10px 0 60px;
        overflow: visible;
    }

    .services-swiper .swiper-wrapper {
        display: flex;
        align-items: center;
    }

    .services-swiper .swiper-slide {
        width: 85% !important;
        flex-shrink: 0;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }

    .services-swiper .swiper-button-next,
    .services-swiper .swiper-button-prev {
        display: none;
    }

    .services-swiper .swiper-pagination {
        bottom: 10px;
    }

    .services-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: #0076AD;
        opacity: 0.5;
    }

    .services-swiper .swiper-pagination-bullet-active {
        opacity: 1;
    }

    /* Service Card Mobile */
    .service-card {
        border-radius: 20px;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
        height: 100%;
        max-width: 100%;
        margin: 0;
    }

    .service-card .card-body {
        padding: 2rem 1.5rem !important;
    }

    .service-icon-wrapper {
        width: 70px !important;
        height: 70px !important;
        font-size: 28px !important;
    }

    .service-title {
        font-size: 1.2rem !important;
    }

    .service-desc {
        font-size: 0.9rem !important;
    }

    .service-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        width: 100%;
        max-width: 100%;
    }

    /* Posts Grid Mobile */
    .posts-grid {
        margin-left: 0;
        margin-right: 0;
    }

    .post-column {
        width: 100%;
        max-width: 450px;
        margin: 0 auto 20px;
    }

    .post-card {
        max-width: 450px;
        margin: 0 auto;
    }

    /* Sections Mobile */
    .section-heading {
        font-size: 2rem;
    }

    .about-content,
    .founder-content {
        text-align: center;
    }

    .about-image-wrapper,
    .founder-image-wrapper {
        max-width: 400px;
        margin: 0 auto 30px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-title + p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-heading {
        font-size: 1.75rem;
        padding: 0.75rem 1.5rem;
    }

    .about-title,
    .founder-title {
        font-size: 2rem;
    }

    .services-swiper .swiper-slide {
        width: 90% !important;
    }

    .service-icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-desc {
        font-size: 0.9rem;
    }
}
