@import url('https://fonts.googleapis.com/css2?family=Sen:wght@400;700&display=swap');

/* ========================================
   GLOBAL TYPOGRAPHY
   ======================================== */
body,
p,
span,
li,
a,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Sen', sans-serif !important;
}

body {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #444 !important;
}

/* ========================================
   LOGO SIZE FIX
   ======================================== */

/* Fix logo size in navigation */
.navbar-brand img,
.mobile-nav .logo img {
    max-height: 60px !important;
    width: auto !important;
}

/* Desktop logo */
.main-nav .navbar-brand img {
    max-height: 60px !important;
}

/* Mobile logo */
.mobile-nav a.logo img {
    max-height: 50px !important;
}

/* ========================================
   UNIFORM TYPOGRAPHY & GLOBAL IMPROVEMENTS
   ======================================== */

/* Consistent Heading Styles Across All Sections */
.heading h2 {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 15px !important;
    text-align: center !important;
}

.heading h3 {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #666 !important;
    line-height: 1.8 !important;
    text-align: center !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}

/* Consistent Card Typography */
.feature-item h4,
.service-item h3,
.team-item h4,
.blog-item h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    margin-bottom: 12px !important;
}

.feature-item p,
.service-item p,
.team-item p,
.blog-item p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #666 !important;
}

/* ========================================
   SECTION SPACING & ALIGNMENT
   ======================================== */

/* Ensure all sections have consistent padding */
.feature,
.service,
.team,
.blog-area,
.testimonial,
.special,
.cta {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* Center all section headings */
.heading {
    text-align: center !important;
    margin-bottom: 50px !important;
}

/* ========================================
   CARD IMPROVEMENTS & GRID SPACING
   ======================================== */

/* Uniform card spacing in grid */
.feature .row>div,
.service .row>div,
.team .row>div,
.blog-area .row>div {
    margin-bottom: 30px;
}

/* ========================================
   TEAM MEMBER CARD IMPROVEMENTS
   ======================================== */

.team-item {
    background: #fff !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    transition: all 0.3s ease !important;
    margin: 10px 5px 30px 5px !important;
}

.team-photo {
    width: 100% !important;
    height: 320px !important;
    /* Fixed image height for uniformity */
    overflow: hidden !important;
    background: #f8f9fa !important;
}

.team-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s ease-in-out !important;
}

.team-item:hover .team-photo img {
    transform: scale(1.05) !important;
}

.team-text {
    background: #3867D6 !important;
    /* Consistent primary blue */
    padding: 20px 15px !important;
    text-align: center !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 110px !important;
}

.team-text h4 {
    margin: 0 0 8px 0 !important;
}

.team-text h4 a {
    color: #ffffff !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: opacity 0.3s !important;
}

.team-text h4 a:hover {
    opacity: 0.8 !important;
}

.team-text p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Social icons within team cards */
.team-social {
    background: transparent !important;
    margin-top: 15px !important;
    padding: 0 !important;
}

.team-social ul {
    gap: 10px !important;
    display: flex !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.team-social li a {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    display: inline-block !important;
    color: #fff !important;
    transition: all 0.3s !important;
}

.team-social li a:hover {
    background: #ffffff !important;
    color: #3867D6 !important;
    transform: translateY(-2px) !important;
}

/* Owl Carousel Height Normalization & Centering */
.team-carousel .owl-stage {
    display: flex !important;
    justify-content: center !important;
    /* Centers items when there are fewer than the limit */
    margin: 0 auto !important;
}

.team-carousel .owl-item {
    display: flex !important;
    justify-content: center !important;
}

.team-carousel .team-item {
    width: 100% !important;
    max-width: 350px !important;
    /* Prevent cards from getting too wide on large screens */
}

/* Center items on the Team Members page (Bootstrap Grid) */
.row.team {
    justify-content: center !important;
}


/* ========================================
   BLOG CARD IMPROVEMENTS
   ======================================== */

.blog-item {
    background: #fff !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    transition: all 0.3s ease !important;
    margin-bottom: 30px !important;
}

.blog-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.blog-image {
    width: 100% !important;
    height: 220px !important;
    /* Fixed height for all blog images */
    overflow: hidden !important;
}

.blog-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.blog-text {
    padding: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.blog-text h3 {
    margin: 0 0 15px 0 !important;
    min-height: 52px !important;
    /* Ensure title area is consistent */
    display: flex !important;
    align-items: center !important;
}

.blog-text h3 a {
    color: #1a1a2e !important;
    text-decoration: none !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.blog-text p {
    margin-bottom: 25px !important;
    flex-grow: 1 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    line-clamp: 4 !important;
    /* Limits description to 4 lines for uniformity */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 100px !important;
}

.blog-area .read-more {
    margin-top: auto !important;
    text-align: center !important;
}

.blog-area .read-more a {
    background: #00179F !important;
    color: #fff !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    display: inline-block !important;
    transition: all 0.3s !important;
}

.blog-area .read-more a:hover {
    background: #333 !important;
    transform: scale(1.05) !important;
}

/* Fix Owl Carousel for Blog items */
.blog-carousel .owl-stage {
    display: flex !important;
}

.blog-carousel .owl-item {
    display: flex !important;
}

.blog-carousel .blog-item {
    width: 100% !important;
}


/* ========================================
   CTA SECTION IMPROVEMENTS
   ======================================== */

.cta {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
}

.cta .overlay {
    background: rgba(0, 23, 159, 0.92) !important;
}

.cta h2 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 15px !important;
}

.cta p {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.8 !important;
}

.cta .btn {
    margin-top: 20px !important;
    padding: 14px 35px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    background: var(--accent-color) !important;
    border: none !important;
    color: #1a1a2e !important;
    transition: all 0.3s ease !important;
}

.cta .btn:hover {
    background: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 991px) {

    /* Reduce section padding on tablets */
    .feature,
    .service,
    .team,
    .blog-area,
    .testimonial,
    .special,
    .cta {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    /* Adjust heading sizes */
    .heading h2 {
        font-size: 28px !important;
    }

    .heading h3 {
        font-size: 15px !important;
    }

    /* Card typography adjustments */
    .feature-item h4,
    .service-item h3,
    .team-item h4,
    .blog-item h3 {
        font-size: 18px !important;
    }

    /* CTA adjustments */
    .cta h2 {
        font-size: 26px !important;
    }

    .cta p {
        font-size: 15px !important;
    }
}

/* ========================================
   GLOBAL FOOTER UNIFORMITY
   ======================================== */
.footer-area {
    background: #00179F !important;
    padding: 80px 0 0 0 !important;
    color: #fff !important;
}

.footer-item h2 {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
    position: relative !important;
    padding-bottom: 10px !important;
}

.footer-item h2::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 50px !important;
    height: 2px !important;
    background: #FFD700 !important;
    /* Gold accent for premium feel */
}

.footer-item p,
.footer-item ul li,
.footer-item ul li a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    transition: all 0.3s ease !important;
}

.footer-item ul li a:hover {
    color: #fff !important;
    padding-left: 5px !important;
    text-decoration: none !important;
}

.footer-end {
    margin-top: 50px !important;
    padding: 25px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 0 !important;
}

.footer-pages ul li a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-pages ul li a:hover {
    color: #fff !important;
}

@media (max-width: 767px) {

    /* Further reduce padding on mobile */
    .feature,
    .service,
    .team,
    .blog-area,
    .testimonial,
    .special,
    .cta {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* Mobile heading sizes */
    .heading h2 {
        font-size: 24px !important;
    }

    .heading h3 {
        font-size: 14px !important;
        padding: 0 15px !important;
    }

    /* Mobile card spacing */
    .feature .row>div,
    .service .row>div,
    .team .row>div,
    .blog-area .row>div {
        margin-bottom: 20px;
    }

    /* Mobile CTA */
    .cta h2 {
        font-size: 22px !important;
    }

    .cta p {
        font-size: 14px !important;
        padding: 0 10px !important;
    }

    .cta .btn {
        padding: 12px 28px !important;
        font-size: 14px !important;
    }

    /* Ensure cards don't overflow */
    .feature-item,
    .service-item,
    .team-item,
    .blog-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ========================================
   ACCESSIBILITY & POLISH
   ======================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent-color) !important;
    outline-offset: 2px !important;
}

/* Ensure all images are responsive */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden !important;
}

.container {
    max-width: 1600px !important;
    /* Premium wide layout */
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* Specific fix for Team Section Centering */
.team .container {
    display: block !important;
    margin: 0 auto !important;
}

.team-carousel {
    width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
}

/* ========================================
   HERO SECTION OPTIMIZATIONS
   ======================================== */
.slider-item {
    background-position: center center !important;
    background-size: cover !important;
}

.slider-bg {
    background: linear-gradient(to right, rgba(0, 23, 159, 0.7) 0%, rgba(0, 23, 159, 0.2) 100%) !important;
    opacity: 1 !important;
}

.text-animated h1 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-size: 52px !important;
    line-height: 1.2;
}

.text-animated p {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    font-size: 22px !important;
    max-width: 600px;
}

@media only screen and (max-width: 767px) {
    .slider-bg {
        background: rgba(0, 23, 159, 0.6) !important;
    }

    .text-animated h1 {
        font-size: 32px !important;
    }
}

/* ========================================
   REFORMALISED PAGES STYLING
   ======================================== */
.contact-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 45px 30px !important;
    text-align: center !important;
    height: 100% !important;
    transition: all 0.4s ease !important;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

.contact-icon-box {
    width: 90px;
    height: 90px;
    background: #f0f4ff;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 30px !important;
    transition: all 0.3s ease;
    color: #00179F;
    position: relative;
    z-index: 1;
}

.contact-card:hover .contact-icon-box {
    background: #00179F;
    color: #ffffff !important;
}

.contact-card h4 {
    color: #1a1a2e !important;
    font-weight: 800 !important;
    font-size: 22px !important;
    margin-bottom: 15px !important;
}

.contact-card .text-muted {
    color: #4b5563 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin-bottom: 0 !important;
}

.blog-grid .service-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 12px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #eee;
}

.blog-grid .service-item .photo {
    height: 220px !important;
    overflow: hidden;
}

.blog-grid .service-item .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

.blog-grid .service-item .text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 25px !important;
}

.blog-grid .service-item .text h3 {
    font-size: 21px !important;
    margin-bottom: 12px !important;
    color: #1a1a2e !important;
}

.blog-grid .service-item .text p {
    flex-grow: 1;
    color: #444 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.form-section h4 {
    font-weight: 700;
    color: #00179F;
    letter-spacing: 0.5px;
}

.border_bottom {
    border-bottom: 2px solid #f0f0f0;
}

.transition-all {
    transition: all 0.3s ease;
}

.card {
    background: #fff;
}

.pagination .page-link {
    border-radius: 5px !important;
    margin: 0 5px;
    color: #00179F;
    border: 1px solid #eee;
}

.pagination .page-item.active .page-link {
    background-color: #00179F !important;
    border-color: #00179F !important;
}

/* ========================================
   UTILITY CLASSES & ABOUT PAGE SUPPORT
   ======================================== */

.h-100-p {
    height: 100% !important;
}

.bg-white {
    background-color: #fff !important;
}

.bg-light-grey {
    background-color: #f8fafc !important;
}

.items-center {
    align-items: center !important;
}

.color-primary {
    color: #00179F !important;
}

.rounded-lg {
    border-radius: 12px !important;
}

.shadow-sm {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.about-text-content p {
    font-size: 17px !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
    color: #444 !important;
}

.feature-item {
    transition: all 0.3s ease !important;
}

.feature-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.cta-box h2 {
    color: #fff !important;
    font-size: 32px !important;
}

@media (max-width: 1024px) {
    .row.items-center {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .heading h2 {
        font-size: 28px !important;
        text-align: center !important;
    }

    .heading h3 {
        text-align: center !important;
    }

    .about-text-content {
        text-align: center !important;
    }

    .row.items-center {
        flex-direction: column-reverse !important;
        display: flex !important;
    }

    .about-image-wrapper {
        margin-bottom: 30px !important;
    }
}