/********** Template CSS **********/
:root {
    --primary: #7d8182;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #042050;
}
.footer p{
    color: #fff;

}
.content p{
    text-align: justify;
}
.copyright p{
    color: #fff;
}
a{
    color: #000;
}
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.mb-4{
    margin-bottom: 3rem;
}
.mb-4{
    margin-bottom: 4rem;
}

.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.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.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 ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

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

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

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

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

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


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgb(0 0 0 / 45%);
    z-index: 1;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

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

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/banner-bg.png) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


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


/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-1.jpg) center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}


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

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--primary);
    transition: .5s;
}

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

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


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    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(--light);
    margin-right: 10px;
}

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

.copyright {
    background: #092139;
}

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

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












/* Force equal height for all cards */
.vehicle-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vehicle-img {
    width: 100%;
    /* height: 200px; fixed height for all images */
    object-fit: cover;
    /* keeps proportions without stretching */
}

.vehicle-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tt {

    font-size: 3rem;
    line-height: 1.2;
    max-width: 700px;
    margin: 0 auto;
}





















#callme {
    position: fixed;
    right: 10px;
    bottom: 33px;
    width: 70px;
    height: 70px;
    cursor: pointer;
/*    top:266px;*/
    z-index: 999999999;
}
#callme #callmeMain {
    -moz-border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    border-radius: 50% !important;
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    background-color: rgb(29, 209, 59);
    width: 70px;
    height: 70px;
    -webkit-animation: zcwmini2 1.5s 0s ease-out infinite;
    -moz-animation: zcwmini2 1.5s 0s ease-out infinite;
    animation: zcwmini2 1.5s 0s ease-out infinite;
}
#callme #callmeMain:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("../img/mini.png");
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-animation: zcwphone2 1.5s linear infinite;
    -moz-animation: zcwphone2 1.5s linear infinite;
    animation: zcwphone2 1.5s linear infinite;
}
@-webkit-keyframes zcwphone {
    0% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
    25% {-ms-transform:rotate(30deg);-webkit-transform:rotate(30deg);transform:rotate(30deg);}
    50% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
    75% {-ms-transform:rotate(-30deg);-webkit-transform:rotate(-30deg);transform:rotate(-30deg);}
    100% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
}
@-moz-keyframes zcwphone {
    0% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
    25% {-ms-transform:rotate(30deg);-webkit-transform:rotate(30deg);transform:rotate(30deg);}
    50% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
    75% {-ms-transform:rotate(-30deg);-webkit-transform:rotate(-30deg);transform:rotate(-30deg);}
    100% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
}
@keyframes zcwphone {
    0% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
    25% {-ms-transform:rotate(30deg);-webkit-transform:rotate(30deg);transform:rotate(30deg);}
    50% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
    75% {-ms-transform:rotate(-30deg);-webkit-transform:rotate(-30deg);transform:rotate(-30deg);}
    100% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
}
@-webkit-keyframes zcwphone2 {
    0% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
    25% {-ms-transform:rotate(30deg);-webkit-transform:rotate(30deg);transform:rotate(30deg);}
    50% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
    75% {-ms-transform:rotate(-30deg);-webkit-transform:rotate(-30deg);transform:rotate(-30deg);}
    100% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
}
@-moz-keyframes zcwphone2 {
    0% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
    25% {-ms-transform:rotate(30deg);-webkit-transform:rotate(30deg);transform:rotate(30deg);}
    50% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
    75% {-ms-transform:rotate(-30deg);-webkit-transform:rotate(-30deg);transform:rotate(-30deg);}
    100% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
}
@keyframes zcwphone2 {
    0% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
    25% {-ms-transform:rotate(30deg);-webkit-transform:rotate(30deg);transform:rotate(30deg);}
    50% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
    75% {-ms-transform:rotate(-30deg);-webkit-transform:rotate(-30deg);transform:rotate(-30deg);}
    100% {-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg);}
}
@-webkit-keyframes zcwmini {
    0% {box-shadow: 0 0 8px 6px rgba(207,8,8, 0), 0 0 0 0 rgba(0,0,0,0), 0 0 0 0 rgba(207,8,8, 0);}
    10% {box-shadow: 0 0 8px 6px , 0 0 12px 10px rgba(0,0,0,0), 0 0 12px 14px ;}
    100% {box-shadow: 0 0 8px 6px rgba(207,8,8, 0), 0 0 0 40px rgba(0,0,0,0), 0 0 0 40px rgba(207,8,8, 0);}
}
@-moz-keyframes zcwmini {
    0% {box-shadow: 0 0 8px 6px rgba(207,8,8, 0), 0 0 0 0 rgba(0,0,0,0), 0 0 0 0 rgba(207,8,8, 0);}
    10% {box-shadow: 0 0 8px 6px , 0 0 12px 10px rgba(0,0,0,0), 0 0 12px 14px ;}
    100% {box-shadow: 0 0 8px 6px rgba(207,8,8, 0), 0 0 0 40px rgba(0,0,0,0), 0 0 0 40px rgba(207,8,8, 0);}
}
@keyframes zcwmini {
    0% {box-shadow: 0 0 8px 6px rgba(207,8,8, 0), 0 0 0 0 rgba(0,0,0,0), 0 0 0 0 rgba(207,8,8, 0);}
    10% {box-shadow: 0 0 8px 6px , 0 0 12px 10px rgba(0,0,0,0), 0 0 12px 14px ;}
    100% {box-shadow: 0 0 8px 6px rgba(207,8,8, 0), 0 0 0 40px rgba(0,0,0,0), 0 0 0 40px rgba(207,8,8, 0);}
}
@-webkit-keyframes zcwmini2 {
    0% {box-shadow: 0 0 8px 6px rgba(207,8,8, 0), 0 0 0 0 rgba(0,0,0,0), 0 0 0 0 rgba(207,8,8, 0);}
    10% {box-shadow: 0 0 8px 6px , 0 0 12px 10px rgba(0,0,0,0), 0 0 12px 14px ;}
    100% {box-shadow: 0 0 8px 6px rgba(207,8,8, 0), 0 0 0 40px rgba(0,0,0,0), 0 0 0 40px rgba(207,8,8, 0);}
}
@-moz-keyframes zcwmini2 {
    0% {box-shadow: 0 0 8px 6px rgba(207,8,8, 0), 0 0 0 0 rgba(0,0,0,0), 0 0 0 0 rgba(207,8,8, 0);}
    10% {box-shadow: 0 0 8px 6px , 0 0 12px 10px rgba(0,0,0,0), 0 0 12px 14px ;}
    100% {box-shadow: 0 0 8px 6px rgba(207,8,8, 0), 0 0 0 40px rgba(0,0,0,0), 0 0 0 40px rgba(207,8,8, 0);}
}
@keyframes zcwmini2 {
    0% {box-shadow: 0 0 8px 6px rgba(207,8,8, 0), 0 0 0 0 rgba(0,0,0,0), 0 0 0 0 rgba(207,8,8, 0);}
    10% {box-shadow: 0 0 8px 6px , 0 0 12px 10px rgba(0,0,0,0), 0 0 12px 14px ;}
    100% {box-shadow: 0 0 8px 6px rgba(207,8,8, 0), 0 0 0 40px rgba(0,0,0,0), 0 0 0 40px rgba(207,8,8, 0);}
}


.whatsup {
    position: fixed;
    left: 20px;
    width: 50px;
    bottom: 41px;
    z-index: 99;
}










.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 5px;
    flex-shrink: 0;
}

.contact-textarea {
    height: 100px;
}

@media (max-width: 767.98px) {
    .contact-details h1 {
        font-size: 2rem;
    }

    .enquiry-form {
        padding: 2rem !important;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-details span,
    .contact-details p {
        font-size: 0.9rem;
    }
}








.courses-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.courses-item:hover {
    transform: scale(1.03);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}











/* ==== R K ELECTRONICS Services (namespaced) ==== */
.rk-services .rk-subtitle { letter-spacing: .12em; }
.rk-services .rk-title { font-weight: 700; }
.rk-services .rk-lede { font-size: 1.05rem; }

.rk-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.rk-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }

.rk-card-media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.rk-card-media .rk-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .35s ease; }
.rk-card:hover .rk-img { transform: scale(1.07); }

.rk-icon-wrap {
  position: absolute; left: 16px; top: 16px;
  background: rgba(13,110,253,.95); /* Bootstrap primary */
  color: #fff; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(13,110,253,.35);
}

.rk-card-body { padding: 18px 18px 8px; }
.rk-card-title { margin: 0 0 6px; font-weight: 700; }
.rk-card-text { color: #6c757d; margin: 0; min-height: 54px; }

.rk-card-cta { display: flex; gap: 10px; padding: 12px 18px 18px; }
.rk-btn { border-radius: 12px; padding: .55rem 1rem; }

.rk-strip {
  background: linear-gradient(90deg, rgba(13,110,253,.08), rgba(13,110,253,.02));
  border: 1px dashed rgba(13,110,253,.35);
  color: #0b3c8c;
  padding: 14px 16px; border-radius: 14px; text-align: center;
  font-weight: 600;
}











/* ===== R K ELECTRONICS – Gallery (namespaced) ===== */
.rk-gallery .rk-g-subtitle { letter-spacing: .12em; }
.rk-gallery .rk-g-title { font-weight: 700; }
.rk-gallery .rk-g-lede { font-size: 1.05rem; }

/* Cardless image tile with fixed aspect on grid, any image size fits */
.rk-g-item { display: block; text-decoration: none; }
.rk-g-media {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
  /* gives a consistent tile height while accepting any image size */
  aspect-ratio: 4 / 3;   /* change to 1/1 for square tiles if you prefer */
}
.rk-g-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(1.02);
  transition: transform .35s ease;
}
.rk-g-media:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.rk-g-media:hover img { transform: scale(1.08); }

/* Hover overlay */
.rk-g-hover {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(closest-side, rgba(0,0,0,.25), rgba(0,0,0,.45));
  opacity: 0; transition: opacity .25s ease;
  color: #fff; font-size: 1.35rem;
}
.rk-g-media:hover .rk-g-hover { opacity: 1; }

/* Lightbox */
.rk-lightbox {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  z-index: 1055; /* above Bootstrap navbar & such */
}
.rk-lightbox.is-open { display: flex; }
.rk-lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.rk-lightbox-inner {
  position: relative; z-index: 1; max-width: 92vw; max-height: 92vh;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
}
.rk-lightbox-img {
  display: block; max-width: 100%; max-height: 92vh; height: auto; width: auto;
  background: #000; /* helps with transparent PNGs */
}
.rk-lightbox-close {
  position: absolute; top: 10px; right: 10px;
  width: 42px; height: 42px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.6); color: #fff;
  font-size: 26px; line-height: 42px; text-align: center; cursor: pointer;
  transition: background .2s ease; z-index: 2;
}
.rk-lightbox-close:hover { background: rgba(0,0,0,.8); }

/* Optional: tighter gutters on xs */
@media (max-width: 575.98px) {
  .rk-gallery .row.g-4 { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
}














/* ===== R K ELECTRONICS – Video (namespaced) ===== */
.rk-video .rk-v-subtitle { letter-spacing: .12em; }
.rk-video .rk-v-title { font-weight: 700; }
.rk-video .rk-v-lede { font-size: 1.05rem; }

.rk-v-item { display: block; text-decoration: none; color: inherit; }
.rk-v-media {
  position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.rk-v-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .35s ease; }
.rk-v-item:hover .rk-v-media { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.rk-v-item:hover .rk-v-media img { transform: scale(1.07); }

.rk-v-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(closest-side, rgba(0,0,0,.25), rgba(0,0,0,.45));
  color: #fff; font-size: 1.6rem; opacity: 0; transition: opacity .25s ease;
}
.rk-v-item:hover .rk-v-play { opacity: 1; }

.rk-v-caption { font-weight: 600; margin-top: .6rem; color: #212529; }

/* Lightbox (reusing gallery pattern) */
.rk-lightbox { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1055; }
.rk-lightbox.is-open { display: flex; }
.rk-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.rk-lightbox-inner { position: relative; z-index: 1; max-width: 92vw; max-height: 92vh; width: 100%; }
.rk-lightbox-content {
  position: relative; width: 100%; padding-top: 56.25%; /* 16:9 */
  background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 48px rgba(0,0,0,.35);
}
.rk-lightbox-content iframe,
.rk-lightbox-content video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000;
}
.rk-lightbox-close {
  position: absolute; top: -18px; right: -18px; width: 42px; height: 42px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.75); color: #fff; font-size: 26px; line-height: 42px; cursor: pointer; z-index: 2;
}
.rk-lightbox-close:hover { background: rgba(0,0,0,.9); }
