/********** Template CSS **********/
:root {
    --primary: #1f3d7a;
    --secondary: #f4b400;
    --light: #f7f8ff;
    --dark: #20223c;
    --surface: #ffffff;
    --surface-soft: #edf1ff;
}
body {
    background-color: var(--light);
}
body.admin-page .navbar {
    background-color: var(--primary) !important;
}
body.admin-page .navbar .navbar-nav .nav-link.active,
body.admin-page .navbar .navbar-nav .nav-link:hover {
    color: var(--secondary) !important;
}
body.admin-page .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}
body.admin-page .btn-primary:hover,
body.admin-page .btn-primary:focus {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}
.admin-panel-card {
    background: linear-gradient(135deg, rgba(31,61,122,0.95), rgba(244,180,0,0.95));
    color: #fff;
}
.admin-panel-card .card-body {
    background: rgba(255,255,255,0.96);
}

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


/*** 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;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

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

.btn-secondary.text-white,
.btn-secondary.text-white:hover,
.btn-secondary.text-white:focus {
    color: #fff !important;
}

..dashboard-welcome-card {
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(13,110,253,0.08), rgba(13,110,253,0.02));
}

.dashboard-header-title {
    margin-bottom: 1rem;
}

.dashboard-card {
    border-radius: 1.5rem;
    min-height: 130px;
    overflow: hidden;
    position: relative;
}

.dashboard-card .card-body {
    min-height: 110px;
}

.dashboard-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #0d6efd;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.dashboard-card-icon i {
    color: inherit;
}

.dashboard-welcome-card h5 {
    font-size: 1rem;
}

.dashboard-card-blue {
    background: linear-gradient(135deg, #0d6efd, #0056d6);
    color: #fff;
}

.dashboard-card-warning {
    background: linear-gradient(135deg, #ffc107, #d39e00);
    color: #212529;
}

.dashboard-card-success {
    background: linear-gradient(135deg, #198754, #146c43);
    color: #fff;
}

.dashboard-card-teal {
    background: linear-gradient(135deg, #0dcaf0, #0aa5c0);
    color: #fff;
}

..dashboard-card-title {
    color: #ffffff;
}

.dashboard-card .text-white-50 {
    opacity: 0.8;
}

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

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--dark);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

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

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid rgba(256, 256, 256, .1)
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
#header-carousel .carousel-item {
    height: 520px;
}

#header-carousel .carousel-item img {
    height: 100%;
    object-fit: cover;
}

#header-carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  /*  background: rgba(0, 0, 0, .5); */
    z-index: 1;
}

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

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

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        height: 340px;
        min-height: 340px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

#header-carousel .carousel-indicators [data-bs-target] {
    width: 60px;
    height: 60px;
    text-indent: 0;
    margin-bottom: 15px;
    border: 2px solid #FFFFFF;
    border-radius: 60px;
    overflow: hidden;
}

#header-carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--secondary);
}

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


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 4px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}



/*** Img Border / Content Image Frames ***/
.img-border {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 5px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(31, 61, 122, 0.22), 0 10px 28px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.img-border:hover {
    box-shadow: 0 0 0 3px var(--primary, #1f3d7a), 0 14px 36px rgba(31, 61, 122, 0.2);
    transform: translateY(-2px);
}

.img-border::before {
    display: none;
}

.img-border img {
    position: relative;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    display: block;
}

/* Project & Service Image Borders */
.project-item img,
.service-item img {
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 1.5px rgba(31, 61, 122, 0.2), 0 8px 20px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.project-item:hover img,
.service-item:hover img {
    box-shadow: 0 0 0 2.5px var(--primary, #1f3d7a), 0 12px 28px rgba(31, 61, 122, 0.18);
}

/* Exclude Banners & Carousels from Borders */
.carousel img,
.carousel-inner img,
.carousel-item img,
.page-header,
.page-header img {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

@media (max-width: 991.98px) {
    .img-border {
        margin-bottom: 1.5rem;
    }
}


/*** Facts ***/
.fact-item {
    transition: .5s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border: 1px solid transparent;
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    box-shadow: none;
    border: 1px solid #DEE2E6;
}


/*** Feature ***/
.progress {
    height: 5px;
}

.progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Project ***/
.project-item a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(0, 0, 0, .5);
    border-radius: 6px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover a {
    opacity: 1;
}

.project-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.premium-form-card {
    border: 1px solid rgba(0, 156, 255, .16);
}

.form-card-header {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.92), rgba(240, 248, 255, 0.98));
    border-bottom: 1px solid rgba(0, 123, 255, 0.18);
}

.form-card-header h2 {
    color: #0d2d58;
}

.form-card-header p {
    color: #17396e;
}

.premium-form-card .form-control,
.premium-form-card .form-select,
.premium-form-card .form-floating textarea {
    min-height: 48px;
    border-radius: .85rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}

.premium-form-card .form-control[type="file"] {
    min-height: 44px;
    padding: 0.7rem 0.95rem;
    background: #f8f9fa;
}

.premium-form-card .form-control[type="file"]::-webkit-file-upload-button,
.premium-form-card .form-control[type="file"]::file-selector-button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0.85rem;
    padding: 0.45rem 1rem;
    margin-right: 0.25rem;
    cursor: pointer;
}

.premium-form-card .form-floating > label {
    padding: 0.8rem 0.95rem;
}

.premium-form-card .form-floating textarea.form-control {
    min-height: 110px;
    padding-top: 1rem;
}

.premium-form-card .form-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.premium-form-card .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 156, 255, .18);
}

.form-section-title {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
}

.online-form-sidebar .form-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.online-form-sidebar .card {
    border: 1px solid rgba(0, 0, 0, .08);
}

.online-form-sidebar .form-label {
    font-weight: 600;
}

    margin-top: 20px;
}

.project-carousel .owl-dot {
    width: 35px;
    height: 35px;
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 35px;
    transition: .5s;
}

.project-carousel .owl-dot:hover,
.project-carousel .owl-dot.active {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .team-text {
    position: relative;
    height: 65px;
    overflow: hidden;
}

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

.team-item:hover .team-title {
    top: -65px;
}

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

.team-item .team-social .btn {
    margin: 0 3px;
}

.team-item:hover .team-social {
    top: 0;
}


/*** Home Famous Persons ***/
.home-famous-persons {
    background: #F7FAFD;
}

.home-famous-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #E7ECF2;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 18px 45px rgba(9, 30, 66, .08);
    transition: .3s;
}

.home-famous-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(9, 30, 66, .12);
}

.home-famous-image {
    height: 285px;
    overflow: hidden;
    background: #EEF4FA;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.home-famous-image img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    border: 5px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(31, 61, 122, 0.22), 0 10px 28px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    display: block;
}

.home-famous-card:hover .home-famous-image img {
    box-shadow: 0 0 0 3px var(--primary, #1f3d7a), 0 14px 34px rgba(31, 61, 122, 0.22);
    transform: scale(1.02);
}

.home-famous-text {
    padding: 24px 20px 26px;
}

.home-famous-text h5 {
    min-height: 48px;
    margin-bottom: 10px;
    color: #111827;
    line-height: 1.35;
}

.home-famous-text span {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(0, 156, 255, .1);
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .home-famous-image {
        height: 320px;
    }

    .home-famous-text h5 {
        min-height: auto;
    }
}


/*** Testimonial ***/

.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

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

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}


/*** Famous Persons ***/
.famous-persons-page {
    background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFD 100%);
}

.famous-persons-page .container > .text-center p {
    color: #687380;
    font-size: 17px;
    line-height: 1.8;
}

.famous-person-list {
    display: grid;
    gap: 24px;
}

.famous-person-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 24px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #E7ECF2;
    border-radius: 8px;
    background: #FFFFFF;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(9, 30, 66, .08);
    transition: .3s;
}

.famous-person-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(9, 30, 66, .12);
}

.famous-person-photo {
    width: 150px;
    height: 180px;
    overflow: hidden;
    border: 5px solid #ffffff;
    border-radius: 12px;
    background: #EEF4FA;
    box-shadow: 0 0 0 2px rgba(31, 61, 122, 0.22), 0 10px 28px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.famous-person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
}

.famous-person-card:hover .famous-person-photo {
    box-shadow: 0 0 0 3px var(--primary, #1f3d7a), 0 14px 34px rgba(31, 61, 122, 0.22);
    transform: translateY(-2px);
}

.famous-person-content {
    min-width: 0;
}

.famous-person-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #E7ECF2;
}

.famous-person-dates {
    display: inline-block;
    order: 2;
    margin-bottom: 0;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(0, 156, 255, .1);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.famous-person-heading h2 {
    flex: 1 1 420px;
    margin: 0;
    color: #111827;
    font-size: 25px;
    line-height: 1.25;
}

.famous-person-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.famous-person-details div {
    padding: 12px 14px;
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    background: #F8FAFC;
}

.famous-person-details span {
    display: block;
    margin-bottom: 4px;
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.famous-person-details p {
    margin: 0;
    color: #687380;
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    .famous-person-card {
        grid-template-columns: 140px 1fr;
        gap: 18px;
    }

    .famous-person-photo {
        width: 130px;
        height: 155px;
    }

    .famous-person-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .famous-person-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .famous-person-photo {
        margin: 0 auto;
    }

    .famous-person-details {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .famous-person-heading h2 {
        flex-basis: 100%;
        font-size: 23px;
    }

    .famous-person-dates {
        margin: 0 auto;
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

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

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

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer {
    overflow-x: hidden;
    width: 100%;
}
.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer .copyright a:hover {
    color: var(--primary);
}

/* Password Visibility Toggle */
.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0.375rem 0.5rem;
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    font-size: 1.1rem;
    text-decoration: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    outline: none !important;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
    color: var(--primary, #0d6efd);
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.password-input {
    padding-right: 45px !important;
}

/* Offset Bootstrap validation mark (checkmark / exclamation) so it does not overlap the eye icon */
.was-validated .password-input:valid,
.password-input.is-valid,
.was-validated .form-floating > .password-input:valid,
.form-floating > .password-input.is-valid,
.was-validated .password-input:invalid,
.password-input.is-invalid,
.was-validated .form-floating > .password-input:invalid,
.form-floating > .password-input.is-invalid {
    background-position: right 44px center !important;
    padding-right: 72px !important;
}

/* Frontend Content Justification */
body:not(.admin-page):not(.admin-login-page) p {
    text-align: justify;
    text-justify: inter-word;
}

body:not(.admin-page):not(.admin-login-page) .text-center p,
body:not(.admin-page):not(.admin-login-page) p.text-center {
    text-align: center;
}

body:not(.admin-page):not(.admin-login-page) .text-start p,
body:not(.admin-page):not(.admin-login-page) p.text-start {
    text-align: left;
}

body:not(.admin-page):not(.admin-login-page) .text-end p,
body:not(.admin-page):not(.admin-login-page) p.text-end {
    text-align: right;
}

body:not(.admin-page):not(.admin-login-page) .footer p {
    text-align: left;
}

.text-justify {
    text-align: justify !important;
    text-justify: inter-word !important;
}
