/* Global Styles */
:root {
    --primary-color: #1A237E;
    --secondary-color: #FF6B00;
    --light-bg: #F5F5F5;
    --dark-bg: #121212;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
    --animation-duration: 0.6s;
    --animation-timing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* For smooth scrolling with fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

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

.section-title {
    position: relative;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-title span {
    color: var(--secondary-color);
}

.section-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-primary:hover, 
.btn-primary:focus {
    background-color: #e55f00;
    border-color: #e55f00;
}

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

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

.btn-apply {
    background-color: var(--secondary-color);
    color: white;
}

.btn-apply:hover {
    background-color: #e55f00;
    color: white;
}

.min-vh-60 {
    min-height: 60vh;
}

.btn-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--primary-color);
}

/* Navbar Styles */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: white;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white;
}

/* Hero Section */
.hero-section {
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 6rem 0;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 35, 126, 0.9), rgba(26, 35, 126, 0.7));
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Program Cards */
.program-card {
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.program-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(255, 107, 0, 0.05), transparent);
    bottom: 0;
    left: 0;
    transition: height 0.5s ease;
    z-index: -1;
}

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

.program-card:hover::before {
    height: 100%;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.card-icon i {
    background-color: rgba(255, 107, 0, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse 3s infinite;
}

/* Notice Board */
.notice-board {
    margin-top: 1.5rem;
}

.notice-item {
    display: flex;
    margin-bottom: 1.5rem;
    background-color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.notice-date {
    min-width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.notice-date .day {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.notice-date .month {
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.notice-content h5 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.notice-content p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

/* Feature Box */
.feature-box {
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.4s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-box:hover::after {
    width: 100%;
}

.feature-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
}

.feature-box h5 {
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.feature-box:hover h5 {
    color: var(--primary-color);
}

.feature-box p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.footer h5 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

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

.contact-info li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: baseline;
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.bottom-footer {
    background-color: rgba(0, 0, 0, 0.2);
}

/* About Page Styles */
.page-header {
    background-color: var(--primary-color);
    padding: 5rem 0 3rem;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,117.3C672,107,768,117,864,138.7C960,160,1056,192,1152,202.7C1248,213,1344,203,1392,197.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: #e9ecef;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content::after {
    background-color: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(26, 35, 126, 0.3);
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -30px;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -30px;
}

.timeline-year {
    font-weight: 700;
    color: var(--primary-color);
}

/* Principal Message */
.principal-message {
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.principal-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.principal-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.principal-designation {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Course Tab Styles */
.course-tabs .nav-link {
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    border: 1px solid #dee2e6;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
}

.course-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.course-content {
    margin-top: 2rem;
}

.course-header {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.course-detail-card {
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.course-detail-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.course-detail-card h5 i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* Admission Process Styles */
.step-card {
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.step-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.step-card h4 {
    margin-bottom: 1rem;
}

/* Fee Structure Table */
.fee-table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.fee-table thead {
    background-color: var(--primary-color);
    color: white;
}

.fee-table thead th {
    font-weight: 600;
}

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

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
}

.contact-map {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Photo Gallery */
.gallery-item {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.gallery-item img {
    transition: transform 0.8s ease;
    width: 100%;
    vertical-align: middle;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 35, 126, 0.9), rgba(26, 35, 126, 0.6));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
    padding: 1rem;
}

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

.gallery-info {
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.6s var(--animation-timing);
    opacity: 0;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-info h5 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 991.98px) {
    .timeline::before {
        left: 31px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px);
        float: right;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -30px;
    }

    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 0.5rem;
    }

    .navbar-nav .nav-item:last-child {
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 4rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .page-header {
        padding: 3rem 0 2rem;
    }

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