/* filepath: /c:/Users/ERANDTECH/Downloads/erandtech_tutoring/css/style.css */
/********** Template CSS **********/

:root {
    --primary: #8E080A;
    --secondary: #003C8F;
    --light: #F8F9FA;
    --dark: #1A1A2E;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --white: #FFFFFF;
    --gray: #6C757D;
    --gray-light: #E9ECEF;
}

/********** General Styles **********/
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn {
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px 30px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #8E080A;
    border-color: #8E080A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #002c6e;
    border-color: #002c6e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 60, 143, 0.3);
}

.btn-light {
    background-color: var(--light);
    color: var(--dark);
}

.btn-light:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

/********** Topbar **********/
.top-bar {
    padding: 15px 0;
    background: var(--light);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.top-bar marquee {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 500;
}

.navbar-brand h3 {
    font-size: 1.8rem;
    line-height: 1.2;
}

/********** Navbar **********/
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar.sticky-top {
    background: var(--white) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--dark);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

/********** Carousel **********/
.header-carousel {
    position: relative;
    overflow: hidden;
}

.header-carousel .owl-carousel-item {
    min-height: 600px;
    background-size: cover;
    background-position: center;
}

.header-carousel .owl-carousel-item img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.header-carousel .owl-nav button {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 50%;
    color: var(--white) !important;
    font-size: 24px !important;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.header-carousel .owl-nav button:hover {
    background: var(--primary) !important;
    transform: scale(1.1);
}

.header-carousel .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
}

.header-carousel .owl-dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/********** Service Items **********/
.service-item-top {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-item-top:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-item-top .overflow-hidden {
    height: 250px;
    overflow: hidden;
}

.service-item-top img {
    transition: transform 0.5s ease;
}

.service-item-top:hover img {
    transform: scale(1.1);
}

.service-item-top .bg-light {
    background: var(--white) !important;
    border-radius: 0 0 15px 15px;
}

/********** About Section **********/
.about-img {
    position: relative;
}

.about-img img:first-child {
    width: 100%;
    border-radius: 15px;
}

.about-img img:last-child {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    border: 10px solid var(--white);
    border-radius: 15px;
}

/********** Facts Section **********/
.fact {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%) !important;
}

.fact .fa {
    opacity: 0.9;
}

/********** Service Carousel **********/
.service-carousel .owl-nav {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    gap: 10px;
}

.service-carousel .owl-nav button {
    width: 40px;
    height: 40px;
    background: var(--primary) !important;
    color: var(--white) !important;
    border-radius: 8px;
    font-size: 20px !important;
    transition: all 0.3s ease;
}

.service-carousel .owl-nav button:hover {
    background: var(--secondary) !important;
    transform: scale(1.1);
}

.service-carousel .bg-light {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.service-carousel .bg-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/********** Team Section **********/
.team-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.team-item .position-relative {
    overflow: hidden;
}

.team-item img {
    transition: transform 0.5s ease;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-text {
    position: relative;
}

.team-text .bg-light {
    padding: 20px;
    text-align: center;
}

.team-text .bg-primary {
    padding: 10px;
    text-align: center;
}

.btn-square {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-square:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/********** Testimonials **********/
.testimonial-carousel .owl-nav {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    gap: 10px;
}

.testimonial-carousel .owl-nav button {
    width: 40px;
    height: 40px;
    background: var(--primary) !important;
    color: var(--white) !important;
    border-radius: 8px;
    font-size: 20px !important;
    transition: all 0.3s ease;
}

.testimonial-carousel .owl-nav button:hover {
    background: var(--secondary) !important;
}

.testimonial-item {
    padding: 20px;
}

.testimonial-text {
    border-radius: 15px;
    position: relative;
}

.testimonial-text::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: var(--light) transparent transparent;
}

.testimonial-item img {
    object-fit: cover;
    border: 3px solid var(--primary);
}

/********** Video Section **********/
.video {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/video-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-play {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-play:hover {
    transform: scale(1.1);
    background: var(--secondary);
}

.btn-play span {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent var(--white);
    margin-left: 5px;
}

/********** Booking Form **********/
.booking-form {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 30px;
}

.booking-form .form-control,
.booking-form .form-select {
    border-radius: 8px;
    border: 1px solid var(--gray-light);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.booking-form .form-control:focus,
.booking-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.25);
}

/********** Footer **********/
.footer {
    background: var(--dark) !important;
}

.footer .btn-link {
    color: var(--gray);
    padding: 5px 0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer .btn-link:hover {
    color: var(--primary);
    padding-left: 10px;
}

.footer .btn-social {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.footer .btn-social:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-3px);
}

.footer .copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
}

/********** Back to Top **********/
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 99;
    background: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/********** Animations **********/
.wow {
    visibility: hidden;
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes slideInDown {
    from {
        transform: translate3d(0, -100%, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translate3d(-100%, 0, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        transform: translate3d(100%, 0, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.slideInDown {
    animation-name: slideInDown;
}

.slideInLeft {
    animation-name: slideInLeft;
}

.slideInRight {
    animation-name: slideInRight;
}

.fadeInUp {
    animation-name: fadeInUp;
}

/********** Responsive Styles **********/
@media (max-width: 1200px) {
    .header-carousel .owl-carousel-item {
        min-height: 500px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .header-carousel .owl-carousel-item {
        min-height: 400px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .navbar-nav {
        padding: 20px;
        background: var(--white);
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header-carousel .owl-carousel-item {
        min-height: 350px;
    }
    
    .header-carousel .owl-carousel-item img {
        height: 350px;
    }
    
    .display-3 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .section-title h1 {
        font-size: 1.5rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .service-carousel .owl-nav,
    .testimonial-carousel .owl-nav {
        position: relative;
        top: 0;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .header-carousel .owl-carousel-item {
        min-height: 300px;
    }
    
    .header-carousel .owl-carousel-item img {
        height: 300px;
    }
    
    .display-3 {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/********** Loading Spinner **********/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/********** Utility Classes **********/
.zoom-in {
    transition: transform 0.3s ease;
}

.zoom-in:hover {
    transform: scale(1.05);
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/********** Newsletter Form **********/
.newsletter-form {
    position: relative;
    max-width: 400px;
}

.newsletter-form input {
    border-radius: 50px;
    padding: 12px 20px;
    border: none;
}

.newsletter-form button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    border-radius: 50px;
    padding: 0 20px;
    background: var(--primary);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--secondary);
}

/********** Social Icons **********/
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}