/********** Template CSS **********/
/* ISCH Working brand palette: navy #002366, primary #0c4293, silver #b8c4ce */
:root {
    --primary: #0c4293;
    --primary-rgb: 12, 66, 147;
    --secondary: #586b80;
    --secondary-rgb: 88, 107, 128;
    --light: #eef2f7;
    --dark: #061a33;
    --navy-deep: #002366;
    --navy-deep-rgb: 0, 35, 102;
    --silver: #b8c4ce;
    /* Bootstrap 5 (loaded before; overrides template defaults) */
    --bs-primary: #0c4293;
    --bs-primary-rgb: 12, 66, 147;
    --bs-secondary: #586b80;
    --bs-secondary-rgb: 88, 107, 128;
    --bs-light: #eef2f7;
    --bs-dark: #061a33;
    --bs-dark-rgb: 6, 26, 51;
}


/*** Brand logo (navbar + footer) ***/
.navbar-brand .navbar-logo-light,
.navbar-brand .navbar-logo-dark {
    max-height: 52px;
    width: auto;
    transition: max-height 0.35s ease, opacity 0.2s ease;
}

/* Masaüstü: şeffaf bantta beyaz logo, yapışık beyaz barda renkli logo */
@media (min-width: 992px) {
    .navbar-dark.sticky-top .navbar-logo-light {
        display: none;
    }

    .navbar-dark:not(.sticky-top) .navbar-logo-dark {
        display: none;
    }
}

/* Küçük/B tablet: bar her zaman açık renkte → yalnızca renkli logo (beyaz logo kaybolmasın) */
@media (max-width: 991.98px) {
    .navbar-dark .navbar-logo-light {
        display: none !important;
    }

    .navbar-dark .navbar-logo-dark {
        display: block !important;
        max-height: 44px;
        width: auto;
    }

    .navbar.navbar-dark {
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .navbar-dark .navbar-brand {
        padding-top: 0.2rem !important;
        padding-bottom: 0.2rem !important;
        margin-right: 0.5rem;
        max-width: calc(100% - 3.5rem);
    }

    .navbar-dark .navbar-toggler {
        padding: 0.25rem 0.45rem;
        font-size: 1rem;
    }
}

.footer-brand-logo {
    max-height: 64px;
    width: auto;
}

.about-aside-photo {
    min-height: 280px;
}

@media (min-width: 992px) {
    .about-intro-row .about-aside-photo {
        min-height: 100%;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand .navbar-logo-dark {
        max-height: 38px !important;
    }
}

@media (min-width: 992px) {
    .sticky-top.navbar-dark .navbar-brand .navbar-logo-light,
    .sticky-top.navbar-dark .navbar-brand .navbar-logo-dark {
        max-height: 46px;
    }
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#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;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


.footer-contact-link:hover {
    color: var(--primary) !important;
}

/*** Topbar ***/
.topbar-link {
    transition: opacity 0.2s ease;
}

.topbar-link:hover {
    color: #fff !important;
    text-decoration: underline !important;
    opacity: 0.9;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

/* Yapışık beyaz bar / mobil açık menü: aktif + hover okunaklı birincil renk */
.sticky-top.navbar-dark .navbar-nav .nav-link:hover,
.sticky-top.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active {
        color: var(--primary);
    }
}

/* Masaüstü, hero üzerinde (şeffaf bar): beyaz metin — aktif sayfa koyu mavi olmasın */
@media (min-width: 992px) {
    .navbar-dark:not(.sticky-top) .navbar-nav .nav-link:hover,
    .navbar-dark:not(.sticky-top) .navbar-nav .nav-link.active {
        color: #FFFFFF;
    }

    .navbar-dark:not(.sticky-top) .navbar-nav .nav-link.active {
        font-weight: 700;
    }

    .navbar-dark:not(.sticky-top) .navbar-nav .nav-link.show {
        color: #FFFFFF;
    }
}

.navbar-dark .navbar-brand {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand {
        color: var(--primary);
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand {
        color: var(--primary);
    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--navy-deep-rgb), .72);
    z-index: 1;
}

/* Ana sayfa hero: başlıklar ~%30 küçük; butonlar metin 1rem + iç boşluk %30 büyük */
#header-carousel .carousel-caption h5 {
    font-size: calc(1.25rem * 0.7);
    line-height: 1.35;
}

#header-carousel .carousel-caption h4.display-4 {
    font-size: calc((1.475rem + 2.7vw) * 0.7);
    line-height: 1.25;
}

#header-carousel .carousel-caption .btn {
    font-size: 1rem;
    padding-top: calc(0.375rem * 1.3);
    padding-bottom: calc(0.375rem * 1.3);
    padding-left: calc(0.75rem * 1.3);
    padding-right: calc(0.75rem * 1.3);
}

@media (min-width: 768px) {
    #header-carousel .carousel-caption .btn {
        padding-top: calc(1rem * 1.3);
        padding-bottom: calc(1rem * 1.3);
        padding-left: calc(3rem * 1.3);
        padding-right: calc(3rem * 1.3);
    }
}

@media (max-width: 576px) {
    #header-carousel .carousel-caption h5 {
        font-size: calc(14px * 0.7);
        font-weight: 500 !important;
    }

    #header-carousel .carousel-caption h4.display-4 {
        font-size: calc(26px * 0.7);
        font-weight: 600 !important;
        line-height: 1.3;
    }
}

/* Alt sayfa hero: mobilde 90px alt boşluk yerine sıkı aralık */
.page-banner-hero {
    margin-bottom: 1rem;
}

@media (min-width: 576px) {
    .page-banner-hero {
        margin-bottom: 1.75rem;
    }
}

@media (min-width: 992px) {
    .page-banner-hero {
        margin-bottom: 5rem;
    }
}

@media (max-width: 575.98px) {
    .page-banner-title {
        font-size: clamp(1.35rem, 6vw, 2rem);
        line-height: 1.25;
    }
}

.page-banner-bc {
    font-size: 0.875rem;
    font-weight: 500;
}

.page-banner-bc-dot {
    font-size: 0.35rem;
    vertical-align: middle;
}

@media (min-width: 768px) {
    .page-banner-bc {
        font-size: 1.25rem;
    }
}

/* Anasayfa: carousel ile istatistikler arası — hafif sıkılaştırma */
@media (max-width: 991.98px) {
    .facts-home {
        margin-top: -0.25rem;
    }
}

/* Anasayfa istatistikler: mobilde tek satır, kompakt */
.facts-stat-inner--tall {
    min-height: 0;
}

@media (min-width: 992px) {
    .facts-stat-inner--tall {
        min-height: 150px;
    }
}

.facts-stat-icon-wrap {
    width: 2rem;
    height: 2rem;
}

.facts-stat-icon {
    font-size: 0.75rem;
}

@media (min-width: 576px) {
    .facts-stat-icon-wrap {
        width: 2.35rem;
        height: 2.35rem;
    }

    .facts-stat-icon {
        font-size: 0.85rem;
    }
}

@media (min-width: 992px) {
    .facts-stat-icon-wrap {
        width: 60px;
        height: 60px;
    }

    .facts-stat-icon {
        font-size: 1rem;
    }
}

.facts-stat-label {
    font-size: 0.58rem;
    line-height: 1.15;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

@media (min-width: 400px) {
    .facts-stat-label {
        font-size: 0.62rem;
    }
}

@media (min-width: 576px) {
    .facts-stat-label {
        font-size: 0.7rem;
        text-transform: none;
        letter-spacing: normal;
    }
}

@media (min-width: 992px) {
    .facts-stat-label {
        font-size: 1rem;
        font-weight: 500;
    }
}

.facts-stat-num {
    font-size: 0.95rem;
    line-height: 1.1;
}

@media (min-width: 576px) {
    .facts-stat-num {
        font-size: 1.15rem;
    }
}

@media (min-width: 992px) {
    .facts-stat-num {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

/* Ortalanmış başlıklarda çubuk, başlık metninin genişliğiyle hizalansın */
.section-title.text-center {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.section-title.text-center::before {
    left: 0;
    margin-left: 0;
}

.section-title.section-title-sm::before {
    width: 100%;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% { left: 0; }
    50% { left: calc(100% - 6px); }
    100% { left: 0; }
}

@keyframes section-title-run {
    0% { left: 0; }
    50% { left: calc(100% - 6px); }
    100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 0; margin-left: 0; }
    50% { left: calc(100% - 6px); margin-left: 0; }
    100% { left: 0; margin-left: 0; }
}

@keyframes section-title-run-center {
    0% { left: 0; margin-left: 0; }
    50% { left: calc(100% - 6px); margin-left: 0; }
    100% { left: 0; margin-left: 0; }
}

@-webkit-keyframes section-title-run-sm {
    0% { left: 0; }
    50% { left: calc(100% - 4px); }
    100% { left: 0; }
}

@keyframes section-title-run-sm {
    0% { left: 0; }
    50% { left: calc(100% - 4px); }
    100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

/*** Service page — apply panel (BS 5.0–safe tint) ***/
.service-apply-panel {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.22);
}

/*** Service page — process chain ***/
.service-step-chain {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-step-chain > li {
    position: relative;
    padding-left: 4.25rem;
    padding-bottom: 2.75rem;
}

.service-step-chain > li:last-child {
    padding-bottom: 0;
}

.service-step-chain > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.21rem;
    top: 3.15rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(var(--bs-primary-rgb), 0.55),
        rgba(var(--bs-primary-rgb), 0.12)
    );
}

.service-step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 0 0 4px #fff;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

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

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


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

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(var(--navy-deep-rgb), .72);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

#searchModal .search-modal-backdrop {
    background: rgba(var(--navy-deep-rgb), 0.72) !important;
}

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

.bg-header {
    background: linear-gradient(rgba(var(--navy-deep-rgb), .75), rgba(var(--navy-deep-rgb), .75)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

/*** Pricing plans ***/
.pricing-plan-popular {
    box-shadow: 0 0.75rem 2rem rgba(var(--primary-rgb), 0.18) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

@media (min-width: 992px) {
    .pricing-plan-popular {
        margin-top: -0.35rem;
        margin-bottom: -0.35rem;
    }
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}
