/********** Template CSS — Elegant & Premium (Navy + Orange) **********/
/* Same class names as original — drop-in replacement, no HTML edits needed. */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Poppins:wght@300;400;500;600;700&family=Barlow:wght@400;500;600;700&display=swap");

:root {
    --primary: #ef551f;
    --primary-dark: #c9420f;
    --primary-light: #ff7a4a;
    --secondary: #F5F3EC;
    --light: #FFFFFF;
    --dark: #0B1224;
    --dark-2: #060A14;
    --navy-mid: #16203D;
    --gray-text: #8792A8;

    --radius-sm: 6px;
    --radius-md: 16px;
    --radius-lg: 26px;
    --shadow-sm: 0 6px 18px rgba(6, 10, 20, 0.10);
    --shadow-md: 0 16px 40px rgba(6, 10, 20, 0.18);
    --shadow-lg: 0 28px 60px rgba(6, 10, 20, 0.28);
    --shadow-gold: 0 10px 30px rgba(239,85,31, 0.35);
    --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-text);
    background-color: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--primary); color: #fff; }
img { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    letter-spacing: -0.2px;
}

h1, h2, .font-weight-bold { font-weight: 700 !important; }
h3, h4, .font-weight-semi-bold { font-weight: 600 !important; }
h5, h6, .font-weight-medium { font-weight: 500 !important; }

.pt-6 { padding-top: 100px; }
.pb-6 { padding-bottom: 100px; }
.py-6 { padding-top: 100px; padding-bottom: 100px; }

h6.text-primary, h5.text-primary, .font-weight-medium.text-primary {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px !important;
}

.btn {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: var(--radius-sm);
    padding: 14px 32px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }

.btn-primary {
    color: var(--dark);
    background: linear-gradient(135deg, var(--primary-light), var(--primary) 55%, var(--primary-dark));
    border: none;
    font-weight: 700;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.btn-square { width: 36px; height: 36px; }
.btn-sm-square { width: 28px; height: 28px; }
.btn-lg-square { width: 46px; height: 46px; }

.btn-square, .btn-sm-square, .btn-lg-square {
    padding-left: 0; padding-right: 0; text-align: center; border-radius: 50%;
}

.back-to-top {
    position: fixed; display: none; right: 45px; bottom: 45px; z-index: 99;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)) !important;
    color: var(--dark) !important;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
}
.back-to-top:hover { transform: translateY(-6px) rotate(360deg); }

.top-shape::before {
    position: absolute; content: ""; width: 35px; height: 100%;
    top: 0; left: -17px;
    background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
    transform: skew(40deg);
}

.navbar-light {
    background-color: var(--dark) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-link {
    color: var(--secondary);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Barlow', sans-serif;
    padding: 35px 16px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    outline: none;
    position: relative;
    transition: var(--transition);
}

.navbar-light .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.sticky-top.navbar-light .navbar-nav .nav-link { padding: 20px 16px; }

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active { color: var(--primary-light); }

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after { transform: scaleX(1); }

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link { padding: 10px 0; }
    .navbar-light .navbar-nav .nav-link::after { display: none; }
}

.carousel-caption {
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(6,10,20,0.90) 0%, rgba(11,18,36,0.65) 55%, rgba(11,18,36,0.30) 100%);
    z-index: 1;
    display: flex; flex-direction: column; justify-content: center;
}

.carousel-caption h5 {
    color: var(--primary-light) !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Barlow', sans-serif;
}

.carousel-caption h1 {
    font-family: 'Playfair Display', serif;
    text-shadow: 0 4px 18px rgba(0,0,0,0.4);
}

@media (max-width: 576px) {
    .carousel-caption h5 { font-size: 14px; font-weight: 500 !important; }
    .carousel-caption h1 { font-size: 30px; font-weight: 600 !important; }
}

.carousel-control-prev, .carousel-control-next { width: 10%; transition: var(--transition); }
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1; }

.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 3rem; height: 3rem;
    background-color: rgba(239,85,31, 0.25);
    border: 1px solid rgba(255,122,74, 0.5);
    border-radius: 50%;
    padding: 8px;
    backdrop-filter: blur(4px);
}

.service-item {
    position: relative; overflow: hidden; height: 350px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--secondary);
    border: 1px solid rgba(239,85,31,0.25);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    background: var(--light);
}

.service-item::after {
    position: absolute; content: ""; width: 100%; height: 50px; bottom: -50px; left: 0;
    background: var(--light);
    border-radius: 100% 100% 0 0;
    box-shadow: 0px -10px 5px #F0EAD6;
    transition: .5s;
}

.service-item:hover::after { bottom: -25px; }
.service-item p { transition: .3s; }
.service-item:hover p { margin-bottom: 25px !important; }

/* Icon circle — was rendering as a plain blank white blob; give it a solid
   navy fill with a gold ring so it reads as a proper icon badge. */
.service-item img,
.service-item .rounded-circle,
.service-item svg {
    background: linear-gradient(135deg, var(--dark), var(--navy-mid)) !important;
    border: 3px solid var(--primary) !important;
    border-radius: 50% !important;
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

/* Fix: description text was still inheriting the old salmon/red brand color
   (via Bootstrap's .text-primary utility) instead of a neutral, readable tone.
   Hardened with maximum specificity + explicit at every breakpoint, so it
   can never lose to a Bootstrap utility class on any screen size. */
html body .service-item p,
html body .service-item p.text-primary,
html body .service-item .text-primary {
    color: var(--gray-text) !important;
}

@media (max-width: 1400px) {
    html body .service-item p,
    html body .service-item p.text-primary,
    html body .service-item .text-primary {
        color: var(--gray-text) !important;
    }
}

.team-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-item:hover { box-shadow: var(--shadow-lg); }

.team-item img { transform: scale(1.15); margin-left: -30px; transition: .5s; filter: grayscale(15%); }
.team-item:hover img { margin-left: 0; transform: scale(1.05); filter: grayscale(0%); }

/* Made always-visible (instead of hidden off-canvas, hover-only reveal) so
   the name/title never disappears or ends up invisible on any screen size. */
.team-item .team-text {
    left: 0 !important;
    transition: .5s;
    background: linear-gradient(135deg, var(--dark), var(--navy-mid)) !important;
    border-left: 3px solid var(--primary);
}

.team-item .team-text h5,
.team-item .team-text * { color: var(--secondary) !important; }

.team-item .team-text::after {
    position: absolute; content: ""; width: 0; height: 0; top: 50%; right: -60px; margin-top: -30px;
    border: 30px solid;
    border-color: transparent transparent transparent var(--navy-mid);
}

.testimonial-carousel .owl-nav { margin-top: 30px; display: flex; justify-content: start; }

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative; margin: 0 5px; width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    color: var(--dark);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    font-size: 22px;
    border-radius: 45px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
    color: var(--primary-light);
    transform: translateY(-4px);
}

.testimonial-carousel .owl-item img {
    width: 90px; height: 90px; border-radius: 50%;
    border: 3px solid var(--primary);
    padding: 2px;
    object-fit: cover;
}

.blog-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(239,85,31,0.12);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.blog-item img { transition: .6s; }
.blog-item:hover img { transform: scale(1.1); }

.edufocusiconheader { display: flex; align-items: center; }
.eduficon { width: 320px; height: 100px; margin-right: 10px; transition: var(--transition); }

.ul { list-style-type: none; }
.no-bullets, .no-bullets li { list-style-type: none; }

.slider, .slider2 {
    display: flex; justify-content: center; align-items: center;
    height: 100%; width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF, var(--secondary));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(239,85,31,0.2);
}

.slider-items, .slider2-items { display: flex; justify-content: center; align-items: center; gap: 20px; }
.slider-items { animation: scrolling 20s linear infinite; }
.slider2-items { animation: scrolling2 20s linear infinite; }

.slider, .slider2 {
    display: flex; justify-content: center; align-items: center;
    height: 100%; width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF, var(--secondary));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(239,85,31,0.2);
}
.slider-items img:hover, .slider2-items img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

@keyframes scrolling { 0% { transform: translateX(80%); } 100% { transform: translateX(-20%); } }
@keyframes scrolling2 { 0% { transform: translateX(-80%); } 100% { transform: translateX(20%); } }

@media screen and (min-width: 1000px) and (max-width: 1275px) {
    .hover-div { font-size: 0.8rem; }
    .text-white { font-size: 1.4rem !important; }
}

/* =====================================================================
   FOOTER / NEWSLETTER — specificity-hardened so it ALWAYS wins over
   Bootstrap's !important utility classes, regardless of file load order.
   "body" prefix bumps our specificity above a plain ".bg-primary" rule.
   ===================================================================== */

/* "Stay Update" newsletter bar — now WHITE background, as requested */
body .bg-primary {
    background: var(--light) !important;
}

body .bg-primary h1, body .bg-primary h2, body .bg-primary h3,
body .bg-primary h4, body .bg-primary h5, body .bg-primary h6 {
    color: var(--dark) !important;
}

body .bg-primary p, body .bg-primary span, body .bg-primary label {
    color: var(--gray-text) !important;
}

body .bg-primary ::placeholder {
    color: #9AA5B8 !important;
}

body .bg-primary .form-control {
    background: var(--secondary) !important;
    border: 1px solid #E2E2E2 !important;
    border-radius: var(--radius-sm);
    color: var(--dark) !important;
}

body .bg-primary .btn {
    background: linear-gradient(135deg, var(--primary-light), var(--primary) 60%, var(--primary-dark)) !important;
    color: var(--dark) !important;
    border: none;
    font-weight: 700;
}

body .bg-primary .btn:hover {
    background: var(--primary-dark) !important;
    color: #fff !important;
}

body .bg-primary .btn-square,
body .bg-primary .btn-sm-square,
body .bg-primary .btn-lg-square {
    background: var(--primary) !important;
    color: var(--dark) !important;
}

/* Quick Links / Popular Links / Get In Touch / Follow Us block — stays navy */
body footer,
body .bg-dark {
    background: linear-gradient(160deg, var(--dark) 0%, var(--navy-mid) 55%, var(--dark-2) 100%) !important;
}

body footer h1, body footer h2, body footer h3, body footer h4, body footer h5, body footer h6,
body .bg-dark h1, body .bg-dark h2, body .bg-dark h3, body .bg-dark h4, body .bg-dark h5, body .bg-dark h6 {
    color: var(--primary-light) !important;
    font-family: 'Playfair Display', serif;
}

body footer p, body footer span, body footer label,
body .bg-dark p, body .bg-dark span, body .bg-dark label {
    color: rgba(245, 243, 236, 0.75) !important;
}

body footer a, body .bg-dark a {
    color: var(--secondary) !important;
    transition: var(--transition);
}

body footer a:hover, body .bg-dark a:hover {
    color: var(--primary-light) !important;
    padding-left: 5px;
}

body footer .btn-square, body footer .btn-sm-square, body footer .btn-lg-square,
body .bg-dark .btn-square, body .bg-dark .btn-sm-square, body .bg-dark .btn-lg-square {
    background: var(--primary) !important;
    color: var(--dark) !important;
}

body footer .btn-square:hover, body footer .btn-sm-square:hover, body footer .btn-lg-square:hover,
body .bg-dark .btn-square:hover, body .bg-dark .btn-sm-square:hover, body .bg-dark .btn-lg-square:hover {
    background: var(--primary-light) !important;
    transform: translateY(-3px);
}

/* ---------- "Welcome To EDUFOCUS" About section ---------- */
/* Left column (Welcome text) — warm ivory instead of flat Bootstrap gray-blue */
body .bg-secondary {
    background: var(--secondary) !important;
}

/* Right column (Educational Consultancy / Counseling / GED list) — navy for contrast */
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) {
   background: #0a2351 !important;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

/* Subtle radial gold glow for depth — premium, not flashy */
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2)::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(239,85,31,0.16) 0%, rgba(239,85,31,0) 70%);
    pointer-events: none;
}

body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2)::after {
    content: "";
    position: absolute;
    bottom: -140px; left: -100px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(255,122,74,0.10) 0%, rgba(255,122,74,0) 70%);
    pointer-events: none;
}

/* Kill any nested wrapper's own white/light background so the navy from the
   column above shows through everywhere, not just at the outer edges */
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) div,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) section,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) article {
    background: transparent !important;
    background-color: transparent !important;
}

/* Each icon+heading+text block */
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) > div > div,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) .d-flex {
    position: relative;
    padding-bottom: 34px;
    margin-bottom: 34px;
    border-bottom: 1px solid rgba(255,122,74, 0.15);
    transition: var(--transition);
}

body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) > div > div:last-child,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) .d-flex:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) > div > div:hover {
    transform: translateX(8px);
}

body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) h1,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) h2,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) h3,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) h4,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) h5,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) h6 {
    color: var(--primary-light) !important;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 10px;
}

/* Small gold underline beneath each heading */
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) h1::after,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) h2::after,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) h3::after,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) h4::after,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) h5::after,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) h6::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 36px; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) p {
    color: rgba(245, 243, 236, 0.85) !important;
    line-height: 1.8;
}

/* Icon badges — circular, larger, subtle glow ring instead of a flat square */
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) .btn-square,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) .btn-sm-square,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) .btn-lg-square,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) i {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)) !important;
    color: var(--dark) !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
    box-shadow: 0 0 0 5px rgba(239,85,31, 0.12), var(--shadow-sm);
    transition: var(--transition);
}

body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) > div > div:hover .btn-square,
body .bg-secondary .row.g-0 > .col-lg-6:nth-child(2) > div > div:hover i {
    box-shadow: 0 0 0 7px rgba(239,85,31, 0.2), var(--shadow-md);
}

/* Left column — refine typography rhythm to match the new premium right side */
body .bg-secondary .row.g-0 > .col-lg-6:first-child h1,
body .bg-secondary .row.g-0 > .col-lg-6:first-child h2 {
    line-height: 1.15;
    margin-bottom: 24px;
}

body .bg-secondary .row.g-0 > .col-lg-6:first-child p {
    line-height: 1.85;
}

/* ---------- General Bootstrap utility overrides ---------- */
.text-primary { color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.btn-outline-primary { color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-outline-primary:hover { background: var(--primary) !important; color: var(--dark) !important; }

/* ---------- Navbar ---------- */
body .navbar,
body .navbar.navbar-light,
body .navbar.sticky-top,
body nav.navbar {
    background-color: var(--dark) !important;
}

body .navbar .navbar-brand,
body .navbar-light .navbar-toggler {
    color: var(--secondary) !important;
    border-color: rgba(255,122,74, 0.4);
}
/* Left column (Welcome heading + paragraph) text color -> black */
body .bg-secondary .row.g-0 > .col-lg-6:first-child .text-primary {
    color: #000000 !important;
}

/* Left column paragraph (h4) text color -> black */
body .bg-secondary .row.g-0 > .col-lg-6:first-child h4.text-primary {
    color: #000000 !important;
}
.nav-bar,
.nav-bar .container-fluid,
.nav-bar .container,
.navbar,
.navbar-collapse,
.navbar-nav {
  background-color: #0a2351 !important;
}
.nav-bar,
.nav-bar .container-fluid,
.nav-bar .container,
.navbar,
.navbar-collapse,
.navbar-nav {
  background-color: #0a2351 !important;
}