/* Logo Styling */
.school-logo {
    max-height: 50px;
}

/* Background for Body */
.body-bg {
    background: url("../images/background.jpg") no-repeat center center fixed;
    background-size: cover;
}

/* Carousel Styling */
#testimonialCarousel {
    background: url("../images/customers.jpg") no-repeat center center scroll;
    background-size: cover;
    border-radius: 10px;
}

/* Navbar Toggle Button */
.navbar-toggler {
    background-color: transparent;
    color: antiquewhite;
    border-color: black;
}

/* Center Content */
.inner {
    position: relative;
    margin: 0 auto;
    text-align: center;
}

/* Link Styling */
a {
    color: #ffffff;
    text-decoration: none;
}

/* Top Section Background */
#top {
    background-color: darkslategrey;
}

/* Padding for Body to Prevent Navbar Overlap */
body {
    padding-top: 116px;
    overflow-x: hidden;

}

/* Contact Hero Section */
.contact-hero {
    background-color: #f8f9fa;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Card Styling for Contact Page */
.contact-info .card {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(30px);
    border: none;
    border-radius: 1rem;
    min-height: 450px;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    padding-bottom: 70px;
}

.contact-info .card.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info .card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    padding: 2rem;
    position: relative;
}

.contact-info .btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 0;
    padding: 10px 20px;
}

/* Smooth animation */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Small screen adjustments */
@media (max-width: 991.98px) {
    .contact-hero {
        height: auto;
        top: 0;
    }
}

/* Contact Section Container */
.contact-section {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Contact Image Styling */
.contact-image {
    background: url("../images/contact-bg.jpg") no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 50vh; /* Default for mobile */
}

/* Contact Form Wrapper Styling */
.contact-form-wrapper {
    background: linear-gradient(90deg, rgba(152, 75, 156, 1) 0%, rgba(64, 143, 97, 1) 61%, rgba(74, 136, 143, 1) 100%);
    border-radius: 0;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: none;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Form field styles */
.contact-form .form-label {
    font-weight: 600;
    color: #333;
}

.contact-form .form-control {
    border-radius: 0.5rem;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease-in-out;
}

.contact-form .form-control:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.contact-form button.btn {
    background-color: #007BFF;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out;
}

/* ========== Responsive & Height Fixes ========== */

/* Side-by-side layout with equal height on large screens */
@media (min-width: 992px) {
    .contact-section .row {
        display: flex;
        height: 100vh;
    }

    .contact-section .col-12,
    .contact-section .col-lg-6 {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .contact-image,
    .contact-form-wrapper {
        height: 100%;
    }

    .contact-form-wrapper {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Stacked layout on smaller screens */
@media (max-width: 991.98px) {
    .contact-image {
        height: 50vh;
    }

    .contact-form-wrapper {
        height: auto;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* ----------------------------- */
/* DESKTOP HOVER INTERACTIONS   */
/* ----------------------------- */
@media (hover: hover) and (pointer: fine) {
    .contact-info .card:hover {
        background-color: #fcba03;
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .social-icon-link:hover .social-icon {
        transform: scale(1.2);
        filter: invert(1);
    }

    .contact-form button.btn:hover {
        background-color: #0056b3;
    }
}

/* ----------------------------- */
/* MOBILE & TABLET TOUCH EFFECT */
/* ----------------------------- */
@media (hover: none) and (pointer: coarse) {
    .contact-info .card:hover {
        transform: none;
        background-color: rgba(0, 0, 0, 0.6);
        box-shadow: none;
    }

    .contact-info .card:active,
    .btn:active,
    .social-icon-link:active .social-icon {
        transform: scale(0.97);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .social-icon-link:hover .social-icon {
        transform: none;
        filter: none;
    }

    .contact-form button.btn:hover {
        background-color: #007BFF;
    }
}

.chatbot-section {
    height: 100vh;
    background-color: white;
}

.telegram-icon {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.telegram-link:hover .telegram-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}

@media (hover: none) and (pointer: coarse) {
    .telegram-link:active .telegram-icon {
        transform: scale(0.95);
        filter: brightness(0.9);
    }
}

body {
    background: linear-gradient(to right, #e0eafc, #cfdef3);
    font-family: 'Segoe UI', sans-serif;
}
  
  .card {
    background-color: #fff;
    transition: transform 0.3s ease-in-out;
}
  
  .card:hover {
    transform: translateY(-5px);
}

.tab-pane .position-relative {
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-color: transparent;
}
  
  /* Hover scale and background effect */
  .tab-pane .position-relative:hover {
    transform: scale(1.02);
    background-color: #fcba03;
}
  
  /* Image dims on hover */
  .tab-pane .position-relative img {
    transition: opacity 0.3s ease;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
  
  .tab-pane .position-relative:hover img {
    opacity: 0.25; /* allows orange background to show through */
}
  
  /* Overlay stays centered */
  .custom-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 10;
    transition: transform 0.3s ease;
    padding: 1rem;
    width: 80%;
}
  
  .tab-pane .position-relative:hover .custom-caption {
    transform: translate(-50%, -50%) scale(1.05);
}
  
  
  