/* 
* Sai Chalam Academy - Main Stylesheet
* Version: 1.0
* Author: Custom Development
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
    /* Main Colors - Based on the logo */
    --primary-color: #a30000; /* Deep Red from the logo */
    --primary-dark: #800000;
    --primary-light: #cc0000;
    --secondary-color: #c9a96a; /* Gold from the logo */
    --secondary-dark: #a88c59;
    --secondary-light: #e3c28c;
    --dark-color: #191919;
    --light-color: #f5f5f5;
    --gray-color: #6c757d;
    --white-color: #ffffff;
    
    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Accounts for fixed header */
}

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    line-height: 1.7;
    background-color: var(--white-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

p {
    margin-bottom: 20px;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-gold {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-gold {
    background-color: var(--secondary-color) !important;
}

.btn {
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 30px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-gold {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-gold:hover, .btn-gold:focus, .btn-gold:active {
    background-color: var(--secondary-dark) !important;
    border-color: var(--secondary-dark) !important;
    color: var(--dark-color) !important;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white-color) !important;
}

.btn-outline-gold {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-gold:hover, .btn-outline-gold:focus, .btn-outline-gold:active {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--dark-color) !important;
}

/* Section Styling */
section {
    position: relative;
    overflow: hidden;
}

.section-padding {
    padding: 100px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 36px;
    font-weight: 700;
}

.title-line {
    height: 3px;
    width: 70px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
    display: block;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

#preloader .spinner-border {
    width: 50px;
    height: 50px;
    border-width: 4px;
    color: var(--secondary-color);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
    height: 80px;
    transition: var(--transition);
    z-index: 997;
    background-color:rgb(136, 8, 8)
}

#header.header-scrolled {
    box-shadow: 0 0 20px rgb(136, 7, 7);
}

.navbar {
    padding: 0;
    height: 80px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.logo-container {
    height: 70px;
    display: flex;
    align-items: center;
}

.logo {
    max-height: 165px;
    max-width: 230px;
    transition: var(--transition);
    filter: drop-shadow(0 0 2px rgb(136, 7, 7));
    /* transform: scale(1.10); */

}

.logo:hover {
    transform: scale(1.20);
}

.navbar-toggler {
    border: none;
    padding: 0;
    font-size: 24px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgb(255, 255, 255);
    padding: 28px 15px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: rgb(184, 172, 64);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(255, 255, 255, 0.826), rgba(255, 255, 255, 0.95)), url('https://source.unsplash.com/random/1920x1080/?education,classroom') center center/cover no-repeat;
    position: relative;
    padding: 120px 0;
    color: var(--dark-color);
}

#hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

#hero h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    color: rgba(31, 31, 31, 0.8);
}

.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-logo {
    max-width: 350px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    animation: float 6s ease-in-out infinite;
    transition: var(--transition);
}

.hero-logo:hover {
    transform: scale(1.05) translateY(-10px);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-img {
    margin-bottom: 30px;
}

.about-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--secondary-color);
    z-index: -1;
}

.about-img-content {
    position: relative;
    background-color: var(--white-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-stats .stat-item {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.about-stats .row > div:last-child .stat-item {
    border-right: none;
}

.about-stats .row:last-child > div .stat-item {
    border-bottom: none;
}

.about-content h3 {
    margin-bottom: 20px;
    font-size: 30px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(163, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# Programs Section
--------------------------------------------------------------*/
.program-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.program-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.program-card h4 {
    font-size: 22px;
    margin-bottom: 15px;
}

.program-features {
    padding-left: 0;
    list-style: none;
    margin-top: 20px;
    margin-bottom: 25px;
}

.program-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.program-features li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
}

/*--------------------------------------------------------------
# Why Choose Us Section
--------------------------------------------------------------*/
.why-us-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.why-us-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.why-us-accordion .accordion-button {
    font-weight: 600;
    font-family: var(--heading-font);
    padding: 20px;
    background-color: var(--white-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.why-us-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--white-color);
}

.why-us-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.1);
}

.why-us-accordion .accordion-button::after {
    background-size: 16px;
}

.why-us-accordion .accordion-body {
    padding: 20px;
    background-color: var(--white-color);
}

.stat-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.counter {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.testimonial-highlight {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-quote i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/*--------------------------------------------------------------
# Faculty Section
--------------------------------------------------------------*/
.faculty-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.faculty-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.faculty-placeholder {
    font-size: 80px;
    color: #dddddd;
}

.faculty-info {
    border-top: 3px solid var(--primary-color);
}

.faculty-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.designation {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
}

.experience, .qualification {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.social-icons a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    background-color: rgba(247, 245, 245, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 5px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonial-carousel .owl-stage-outer {
    padding: 30px 0;
}

.testimonial-item {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.rating i {
    color: var(--secondary-color);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gray-color);
    background-color: #f0f0f0;
}

.author-info h5 {
    font-size: 18px;
    margin-bottom: 0;
}

.author-info p {
    color: var(--gray-color);
    font-size: 14px;
}

/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    height: 250px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #cccccc;
}

.gallery-placeholder {
    opacity: 0.6;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(40, 40, 40, 0.8);
    color: var(--white-color);
    padding: 15px;
    font-weight: 500;
    text-align: center;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-info {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(163, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-form-wrapper {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-control, .form-select {
    padding: 12px 15px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    background-color: #f8f8f8;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    background-color: var(--white-color);
}

.form-label {
    margin-bottom: 8px;
    font-weight: 500;
}

/*--------------------------------------------------------------
# Map Section
--------------------------------------------------------------*/
.map-container {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.map-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*--------------------------------------------------------------
# CTA Section
--------------------------------------------------------------*/
.cta-section {
    background: linear-gradient(rgb(254, 254, 254), rgb(255, 255, 255)), url('https://source.unsplash.com/random/1920x1080/?education,students') center center/cover no-repeat;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
    background-color: rgb(136, 7, 7);
    color: rgb(255, 255, 255);
    font-size: 14px;
}

#footer h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

#footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 50px;
    background-color: var(--white-color);
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-links ul li {
    padding-bottom: 10px;
}

.footer-links ul li a {
    color: rgb(255, 255, 255);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    background-color: rgb(136, 7, 7);
    font-size: 13px;

}

.footer-bottom a {
    color: rgb(255, 255, 255);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: var(--white-color);
}

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 1199.98px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 28px 10px;
        font-size: 13px;
    }
    
    #hero h1 {
        font-size: 42px;
    }
    
    #hero h2 {
        font-size: 22px;
    }
}

@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 80px;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .section-padding-sm {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    #header {
        background-color: rgb(136, 7, 7);
        
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 12px 15px;
    }
    
    .navbar-collapse {
        background-color: var(--dark-color);
        padding: 20px;
        border-radius: 0 0 10px 10px;
    }
    
    #hero h1 {
        font-size: 36px;
    }
    
    #hero h2 {
        font-size: 20px;
    }

}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .section-padding-sm {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    #hero {
        height: auto;
        min-height: 500px;
        padding: 100px 0 70px;
    }
    
    #hero h1 {
        font-size: 32px;
    }
    
    #hero h2 {
        font-size: 18px;
    }
    
    .hero-logo {
        max-width: 240px;
        margin-top: 40px;
    }
    #header {
        background-color: rgb(136, 7, 7);
        
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-padding-sm {
        padding: 30px 0;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    #hero h1 {
        font-size: 28px;
    }
    
    #hero h2 {
        font-size: 16px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    #header {
        background-color: rgb(136, 7, 7);
        
    }
}
