/* ===== ELEGANT FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Source+Sans+3:wght@300;400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
}

/********** Template CSS **********/

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Button ***/
.btn {
    transition: .5s;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 15px 0;
    /* CHANGED: elegant serif-accented nav — using body font for clarity */
    font-family: var(--font-body);
    font-size: 16px;
    letter-spacing: 0.3px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: var(--bs-dark);
    white-space: nowrap;
    /* CHANGED: slightly smaller, refined weight */
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #0a4fa3;
    transition: width 0.3s;
}

.service-card {
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background: #fff;
    transition: 0.3s ease;
    margin-top: 15px;
    overflow: hidden;
}

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

/* CHANGED: elegant serif for section titles */
.services-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.carousel-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.horizontal-img {
    width: 100%;
    height: 430px;
}

.project-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-overlay h4,
.project-overlay small {
    color: #fff !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    /* CHANGED: serif heading in overlays */
    font-family: var(--font-heading);
}


.service-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* Indicators Position */
#servicesCarousel .carousel-indicators {
    bottom: -40px;
}

/* Slides Dot */
#servicesCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #bbb !important;
    margin: 0 6px;
    opacity: 1;
    transition: 0.3s ease;
}

/* Active dot */
#servicesCarousel .carousel-indicators .active {
    background-color: #0D6B68 !important;
    transform: scale(1.3);
}

/* Hover effect */
#servicesCarousel .carousel-indicators button:hover {
    background-color: #555 !important;
    transform: scale(1.2);
}

.service-image-area {
    padding: 20px;
}

.service-content {
    background: #0D6B68;
    color: #fff;
    padding: 15px;
    width: 100%;
    font-weight: 700;
    /* CHANGED: body font for card labels */
    font-family: var(--font-body);
    letter-spacing: 0.4px;
}

/* CHANGED: service card headings get elegant serif */
.service-content h3 {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.logo-img {
    width: 3000px;
    max-width: 100%;
    height: auto;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

/* CHANGED: dropdown items use clean body font */
.navbar .dropdown-menu .dropdown-item {
    font-family: var(--font-body);
    font-size: 15px;
}

.bg-light-blue {
    background-color: #eef6ff;
}

.bg-dark-teal {
    background-color: #0f6f68;
}

.bg-light-teal {
    background-color: #e9f4f3;
}

.service-box {
    padding: 40px 30px;
    min-height: 360px;
    font-family: var(--font-body);
}

/* CHANGED: service box headings — editorial serif */
.service-box h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 24px;
}

.service-image {
    text-align: center;
    margin-bottom: 20px;
}

.service-image img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    padding: 6px;
}

.service-box p {
    font-size: 15px;
    line-height: 1.75;
    font-family: var(--font-body);
    font-weight: 300;
}

.inner-page .hero-header {
    margin-top: 0;
    padding-top: 100px;
}

/* Container */
.brand-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Logo */
.logo-img {
    height: 48px;
    width: auto;
    margin-right: 10px;
}

/* Text wrapper */
.brand-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

/* Main brand text — CHANGED: Playfair for premium brand feel */
.brand-text {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 800;
    font-family: var(--font-heading);
}

/* Text styles */
.brand-eworld {
    font-size: 28px;
    color: #2f6fb3;
    font-family: var(--font-heading);
}

.brand-e {
    color: #4ea44f;
}

.brand-publish {
    font-size: 28px;
    color: #2f6fb3;
    font-weight: 600;
    font-family: var(--font-heading);
}

.brand-services {
    font-size: 28px;
    color: #4ea44f;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* CHANGED: Cormorant Garamond italic for elegant tagline */
.brand-tagline {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: #666;
    margin-top: 3px;
}

.partner-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.partner-icon {
    width: 70px;
    height: 70px;
    background: #e9f2ff;
    color: #2f6fb3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 15px;
}

/* CHANGED: partner role label — body font, uppercase tracking */
.partner-role {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: #4ea44f;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.partner-card a {
    color: #333;
    text-decoration: none;
    font-family: var(--font-body);
}

.partner-card a:hover {
    color: #2f6fb3;
    text-decoration: underline;
}


@media (max-width: 991px) {
    .service-box {
        min-height: auto;
        text-align: center;
    }
}


@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: -100px;
    padding-top: 150px;
    background: url(../img/hero-bg.jpg) top center no-repeat;
    background-size: cover;
}

/* CHANGED: hero headings should use Playfair for dramatic editorial feel */
.hero-header h1,
.hero-header h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.header-carousel {
    position: relative;
    padding: 45px 90px 45px 0;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

/* Common button styles */
.header-carousel .owl-prev,
.header-carousel .owl-next {
    position: absolute;
    top: 20%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    z-index: 10;
}

/* Right button */
.header-carousel .owl-next {
    right: -20px;
}

/* Tablet */
@media (max-width: 992px) {
    .header-carousel .owl-prev {
        left: 5px;
    }
    .header-carousel .owl-next {
        right: 5px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .header-carousel .owl-prev,
    .header-carousel .owl-next {
        width: 38px;
        height: 38px;
        top: 90%;
    }

    .header-carousel .owl-prev {
        left: 40%;
    }

    .header-carousel .owl-next {
        right: 40%;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white);
}


/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/bg-about-img.png) top left no-repeat;
    background-size: contain;
}


/*** Project ***/
.project-item img {
    transition: .5s;
}

.project-item:hover img {
    transform: scale(1.2);
}

.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
    font-family: var(--font-body);
}

.service-item.bg-primary:hover {
    background: var(--bs-light) !important;
}

.service-item.bg-primary p {
    color: var(--bs-light);
    transition: .5s;
}

.service-item.bg-primary:hover p {
    color: var(--bs-secondary);
}

.service-item.bg-light:hover {
    background: var(--bs-primary) !important;
}

.service-item.bg-light p {
    color: var(--bs-secondary);
    transition: .5s;
}

.service-item.bg-light:hover p {
    color: var(--bs-light);
}


.service-item .service-img h3 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 12px 7px 0;
    /* CHANGED: serif headings in service items */
    font-family: var(--font-heading);
}

.service-item.bg-primary .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: .5s;
}

.service-item.bg-primary:hover .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
    transition: .5s;
}

.service-item.bg-light:hover .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
}


/*** Our Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.2);
}

.team-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}

/* CHANGED: team name in overlay gets elegant serif */
.team-overlay h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.team-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: var(--bs-white);
    background: var(--bs-primary);
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    font-size: 12px;
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

/* CHANGED: testimonial quote text — Cormorant italic for a literary feel */
.testimonial-text p {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.testimonial-text h5 {
    position: relative;
    padding-left: 45px;
    /* CHANGED: author name in body font, clean */
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.testimonial-text h5::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
    position: absolute;
    height: 17px;
    bottom: 0;
    right: 0;
    left: auto;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    width: 15px;
    height: 15px;
    background: var(--bs-white);
    border: 2px solid var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-dots {
        left: 0;
        right: auto;
    }

    .testimonial-carousel .owl-dot {
        margin-right: 10px;
        margin-left: 0;
    }
}


/*** Newsletter ***/
.newsletter {
    background: url(../img/hero-bg.jpg) bottom right no-repeat;
    background-size: cover;
}

/* CHANGED: newsletter heading — Playfair serif for premium feel */
.newsletter h1,
.newsletter h2,
.newsletter h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    font-family: var(--font-body);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .5);
    font-weight: normal;
    transition: .3s;
    font-family: var(--font-body);
    font-size: 15px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-white);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

/* CHANGED: footer headings get Playfair */
.footer h4,
.footer h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
    font-family: var(--font-body);
    letter-spacing: 0.3px;
}

.footer .copyright a {
    color: rgba(255, 255, 255, .5);
}

.footer .copyright a:hover {
    color: var(--bs-white);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    font-family: var(--font-body);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}