/* Annapurna Group of Institutions - Custom Styles */

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --golden: #fbbf24;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --dark-gray: #374151;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Automatic Slider Section */
.slider-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.slider-section .carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slider-section .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    bottom: 50px;
}

.slider-section .carousel-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-section .carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-section .carousel-indicators {
    bottom: 20px;
}

.slider-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

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

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
    background: #000;
}

.hero-carousel .carousel-item {
    height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: all 0.6s ease-in-out;
    filter: brightness(1.1) contrast(1.05);
    background-attachment: fixed;
}

/* Removed dark overlay for maximum image visibility */
.hero-carousel .carousel-item::before {
    display: none;
}

/* Enhanced carousel controls visibility */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.hero-carousel .carousel-control-prev {
    left: 20px;
}

.hero-carousel .carousel-control-next {
    right: 20px;
}

.hero-carousel .carousel-indicators {
    bottom: 20px;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.7);
    border: 2px solid rgba(255,255,255,0.9);
}

.hero-carousel .carousel-indicators button.active {
    background-color: var(--golden);
    border-color: var(--golden);
}

.hero-carousel .carousel-caption {
    z-index: 2;
    bottom: 50%;
    transform: translateY(50%);
}

.hero-carousel h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-carousel p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Section Styles */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--golden), #f59e0b);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Card Styles */
.custom-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

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

.custom-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.custom-card .card-body {
    padding: 1.5rem;
}

.custom-card .card-title {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Course Cards */
.course-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-card .card-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border: none;
    padding: 1.5rem;
    text-align: center;
}

.course-card .card-header h5 {
    font-weight: 600;
    margin: 0;
}

.course-card .card-body {
    padding: 1.5rem;
}

/* Faculty Cards */
.faculty-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    padding: 2rem 1.5rem;
    border: none;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.faculty-card img,
.faculty-image {
    width: 250px !important;
    height: 250px !important;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    border: 4px solid var(--golden);
    display: block;
    background: var(--light-gray);
}

.faculty-card h5 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faculty-card .designation {
    color: var(--golden);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Testimonial Styles */
.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    border: none;
    height: 100%;
}

.testimonial-card .quote-icon {
    font-size: 3rem;
    color: var(--golden);
    margin-bottom: 1rem;
}

.testimonial-card .testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.testimonial-card .student-info {
    border-top: 2px solid var(--light-gray);
    padding-top: 1rem;
}

.testimonial-card .student-name {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.testimonial-card .student-course {
    color: var(--golden);
    font-size: 0.9rem;
}

/* News Ticker */
.news-ticker {
    background: var(--light-gray);
    padding: 15px 0;
    border-top: 3px solid var(--golden);
    border-bottom: 3px solid var(--golden);
}

.news-ticker .ticker-content {
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
}

@keyframes scroll-left {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Recruiter Logos */
.recruiter-logo {
    height: 80px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    padding: 10px;
}

.recruiter-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.8), rgba(59, 130, 246, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

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

/* Video Section */
.video-section {
    background: var(--light-gray);
}

.video-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Statistics Counter */
.stats-counter {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.stats-counter .stat-item {
    margin-bottom: 2rem;
}

.stats-counter .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--golden);
    display: block;
}

.stats-counter .stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-carousel h1 {
        font-size: 2.5rem;
    }
    
    .hero-carousel p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .stats-counter .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-carousel h1 {
        font-size: 2rem;
    }
    
    .hero-carousel p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .custom-card,
    .course-card,
    .faculty-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
