/* Custom CSS for Jyoti Sadan English Boarding School */

/* Root Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #0c28a9 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --blue-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --light-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Navigation */
.glass-nav {
    background: linear-gradient(135deg, #7c2087 0%, #2f3ba1 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: linear-gradient(135deg, #7c2087 0%, #2f3ba1 100%);
    backdrop-filter: blur(20px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--blue-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.slide-1 {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("{% static 'images/slide1.jpeg' %}");
}

.slide-2 {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("{% static 'images/slide2.jpeg' %}");
}

.slide-3 {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("{% static 'images/slide3.jpg' %}");
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons .btn {
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-gradient {
    background: var(--blue-gradient);
    border: none;
    color: white;
    box-shadow: var(--shadow);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-dark);
    color: white;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    border: 2px solid white;
    background: transparent;
}

.carousel-indicators .active {
    background: white;
}

/* About Section */
.about-image {
    position: relative;
}

.floating-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 120px;
}

.floating-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.floating-card h6 {
    font-weight: 700;
    margin-bottom: 5px;
}

.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.feature-item i {
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Statistics Section */
.stats-section {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("{% static 'images/slide1.jpeg' %}");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* Principal's Message */
.message-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
}

.principal-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow);
}

.quote-icon {
    font-size: 3rem;
    color: #e9ecef;
    margin-bottom: 20px;
}

.principal-signature {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    margin-top: 30px;
}

/* Teachers Section */
.teacher-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.teacher-image {
    position: relative;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.1);
}

.social-links {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.teacher-card:hover .social-links {
    opacity: 1;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--text-dark);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-5px);
}

.teacher-info {
    padding: 25px;
    text-align: center;
}

.teacher-info h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.teacher-subject {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 5px;
}

.teacher-qualification {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery-filter {
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e9ecef;
    padding: 10px 25px;
    margin: 0 10px 10px 0;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-content {
    transform: translateY(0);
}

.gallery-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: white;
    color: var(--text-dark);
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.gallery-link:hover {
    background: var(--blue-gradient);
    color: white;
    transform: scale(1.1);
}

/* Contact Section */
.contact-section {
    background: var(--dark-gradient);
    color: white;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.contact-info {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--blue-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
}

.contact-details h6 {
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-dark);
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Footer */
.footer-gradient {
    background: linear-gradient(135deg, #7c2087 0%, #2f3ba1 100%);
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--blue-gradient);
    color: white;
    transform: translateY(-5px);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .btn {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

/* Parallax Effects */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .message-card {
        padding: 30px 20px;
    }

    .principal-image img {
        width: 150px;
        height: 150px;
    }

    .floating-card {
        position: static;
        margin-top: 20px;
    }

    .parallax-section {
        background-attachment: scroll;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }

    .contact-form-card {
        padding: 25px 20px;
    }

    .filter-btn {
        margin: 0 5px 10px 0;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Custom Utilities */
.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-secondary {
    background: var(--secondary-gradient);
}

.bg-gradient-blue {
    background: var(--blue-gradient);
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow);
}

.shadow-custom-dark {
    box-shadow: var(--shadow-dark);
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Focus States */
.btn:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Overlays */
.overlay-gradient {
    position: relative;
}

.overlay-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.8;
    z-index: 1;
}

.overlay-gradient > * {
    position: relative;
    z-index: 2;
}


/* -----------------Contact CSS Start-------------------------*/
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}
.contact-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}
.contact-card:hover {
    transform: translateY(-10px);
}
.map-container {
    width: 100%;
    height: 400px;
    margin-top: 30px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}
.map-container:hover {
    transform: scale(1.05);
}
.icon {
    color: #ff7b00;
    margin-right: 10px;
    font-size: 1.2rem;
}
.btn-warning {
    background-color: #ff7b00;
    border: none;
    transition: background-color 0.3s ease-in-out, transform 0.2s;
}
.btn-warning:hover {
    background-color: #ff9c3f;
    transform: translateY(-2px);
}

textarea.form-control {
    min-height: 174px !important; /* Force a minimum height */
     /* Allow dynamic resizing */
    resize: vertical; /* Enable user resizing vertically */
    font-size: 14px;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: none !important;
    border: 1px solid #ced4da;
    transition: box-shadow 0.3s ease;
  }

  .form-control{
    height: 52px;
    background-color: #fff;
    font-size: 14px;
    border-radius: 2px;
    box-shadow: none !important;
    border: 1px solid;
    transition: box-shadow 0.3s ease;
  }

/*--------Contact CSS End-------*/
/*-------Career CSS--------*/

.career-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}
.vacancy-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out;
}
.career-card:hover {
    transform: scale(1.05); /* Slightly enlarge the card */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Add a more pronounced shadow */
}

.vacancy-card:hover {
    transform: scale(1.03); /* Slightly enlarge the card */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Add a more pronounced shadow */
}

.btn-warning {
    background-color: #ff7b00 ;
    border: none;
}

.tab-pane {
    text-align: left !important;
    color: #170303 !important;
}

.tab-pane ul li {
    list-style: none !important;
    color: #170303 !important;
}