/* ============================================
   SHREE JAIN RAJASTHANI VIDYA PRACHARAK MANDAL
   Professional Education Website
   ============================================ */

/* Variables */
:root {
    --primary-dark: #1a3a52;
    --primary-blue: #2c5aa0;
    --accent-gold: #d4af37;
    --light-grey: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ====== GLOBAL STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-gold);
    text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ====== NAVBAR ====== */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    box-shadow: var(--shadow-medium);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.8rem;
}

.nav-link {
    color: var(--white) !important;
    margin: 0 0.5rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown-menu {
    background: var(--primary-dark);
    border: none;
}

.dropdown-item {
    color: var(--white);
    transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* ====== HERO SECTION ====== */
.hero {
    min-height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.362),rgba(0, 0, 0, 0.751)), url("/assets/images/schoolbldg2.jpg") no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="%23ffffff" opacity="0.1"/></svg>') repeat-x;
    background-position: 0 bottom;
    opacity: 0.1;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% { background-position: 0 bottom; }
    100% { background-position: 1000px bottom; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btn {
    display: inline-block;
    margin: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-primary,
.btn-outline-light {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    border: 2px solid var(--accent-gold);
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-outline-light {
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* ====== SECTIONS ====== */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Light and Dark Sections */
.section-light {
    background: var(--white);
}

.section-dark {
    background: var(--light-grey);
}

.section-accent {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
}

.section-accent h2,
.section-accent h3 {
    color: var(--white);
}

/* ====== CARDS ====== */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-gold);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.card-footer-link {
    color: var(--primary-blue);
    font-weight: 600;
    transition: var(--transition);
}

.card-footer-link:hover {
    color: var(--accent-gold);
    margin-right: 5px;
}

/* Institution Cards */
.institution-card {
    border-left: 4px solid var(--accent-gold);
}

.institution-card .card-img-top {
    font-size: 2.5rem;
}

/* ====== HIGHLIGHTS ====== */
.highlight {
    text-align: center;
    padding: 2rem;
}

.highlight-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.highlight-text {
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ====== FEATURES ====== */
.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
    background: var(--white);
}

.feature:hover {
    background: var(--light-grey);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
}

.feature-title {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ====== TIMELINE ====== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--accent-gold);
}

.timeline-item {
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border: 4px solid var(--white);
    border-radius: 50%;
    top: 10px;
    box-shadow: var(--shadow-medium);
}

.timeline-content {
    background: var(--light-grey);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.timeline-year {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Mobile Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 10px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-right: 0;
        padding-left: calc(50px + 2rem);
        text-align: left;
    }

    .timeline-dot {
        left: 10px;
    }
}

/* ====== TESTIMONIALS ====== */
.testimonial {
    background: var(--light-grey);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-gold);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-dark);
}

.testimonial-role {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-quote {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

/* ====== FORMS ====== */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.form-label {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ====== GALLERY ====== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 2rem;
    color: var(--accent-gold);
}

/* ====== FACULTY CARD ====== */
.faculty-card {
    text-align: center;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.faculty-avatar {
    width: 150px;
    height: 150px;
    margin: 1.5rem auto 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.faculty-name {
    color: var(--primary-dark);
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.faculty-qualification {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.faculty-bio {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0 1rem 1rem;
}

/* ====== FOOTER ====== */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-section h5 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-contact {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--accent-gold);
    margin-top: 0.25rem;
    min-width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* ====== PAGE HEADER ====== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    margin-top: 60px;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* ====== UTILITY CLASSES ====== */
.text-accent {
    color: var(--accent-gold);
}

.text-primary {
    color: var(--primary-blue);
}

.bg-accent {
    background: var(--accent-gold);
}

.badge-accent {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.badge-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 2rem 0;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.bounce {
    animation: bounce 1s ease-in-out infinite;
}

/* ====== SCROLL ANIMATIONS ====== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .highlight {
        padding: 1.5rem;
    }

    .highlight-number {
        font-size: 2.5rem;
    }

    .card-img-top {
        height: 200px;
    }

    .feature-icon {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .section {
        padding: 1.5rem 0;
    }

    .btn-primary,
    .btn-outline-light {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .highlight-number {
        font-size: 2rem;
    }

    .card-img-top {
        height: 150px;
    }

    .feature-icon {
        font-size: 1.75rem;
    }
}

/* ====== ACCESSIBILITY ====== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}
