/* Base Styles */
:root {
    --primary-color: #0055a2;
    --secondary-color: #ff8c00;
    --light-primary: #e6f0fa;
    --dark-primary: #003d73;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --white: #ffffff;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.underline {
    height: 4px;
    width: 60px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--light-gray);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.primary-btn:hover {
    background-color: var(--dark-primary);
    color: var(--white);
}

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

.secondary-btn:hover {
    background-color: #e67e00;
    color: var(--white);
}

.outline-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Navbar Styles */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    left: 15px;
}

.logo-img {
    width: 60px; /* Reduced size */
    height: auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 15px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 5px;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover:after, .nav-menu a.active:after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */

.hero {
    position: relative;
    color: var(--white);
    text-align: center;
    padding: 120px 0;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slideshow-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 85, 162, 0.8); /* Blue overlay for better text readability */
    z-index: 1;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-slide.active {
    opacity: 1;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--white);
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* Add this to your responsive section if needed */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}
.hero {
    background: linear-gradient(rgba(0, 84, 162, 0.138), rgba(0, 84, 162, 0.173)), url('/api/placeholder/1920/1080') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 120px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: justify; /* Added this line */
}

.about-image {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    bottom: 50px;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
}

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

.program-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.program-card p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.program-link {
    color: var(--secondary-color);
    font-weight: 600;
}

.program-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.program-link:hover i {
    transform: translateX(5px);
}

/* Stats Section */
.stats {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: flex; /* Change from grid to flexbox */
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    gap: 20px; /* Add spacing between items */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.stat-item {
    text-align: center; /* Center text inside each stat item */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    padding: 20px;
    width: 150px; /* Set a fixed width for consistency */
    height: 150px; /* Set a fixed height for consistency */
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Events Preview Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px;
    text-align: center;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    font-weight: 500;
}

.event-details {
    padding: 20px;
    flex: 1;
}

.event-details h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.event-meta {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.event-meta i {
    margin-right: 5px;
}

.event-description {
    margin: 10px 0;
}

.events-link {
    text-align: center;
    margin-top: 40px;
}

/* Faculty Preview Section */
.faculty-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.faculty-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    width: 260px;
}

#chandra {
    position: relative;
    left: 270px;
}

#athira {
    position: relative;
    left: 50px;
}

.faculty-card:hover {
    transform: translateY(-5px);
}

.faculty-image {
    overflow: hidden;
    height: 200px;
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.faculty-card h3 {
    margin: 15px 0 5px;
    padding: 0 15px;
}

.faculty-card p {
    color: var(--dark-gray);
    padding: 0 15px 15px;
}

.faculty-link {
    text-align: center;
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/api/placeholder/1920/1080') no-repeat center center/cover;
    text-align: center;
    color: var(--white);
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Styles */
.footer {
    background-color: #222;
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    margin-bottom: 15px;
    width: 80px;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Footer Styles */
.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer ul {
    list-style: none;
    padding: 0;
}

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

.footer ul li a {
    color: var(--medium-gray);
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-social .social-icons a {
    color: var(--medium-gray);
    font-size: 1.2rem;
    margin-right: 15px;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    background-color: #111;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
}

/* Event Filter Section */
.event-filter {
    background-color: var(--light-gray);
    padding: 40px 0;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input {
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    width: 250px;
}

.search-box button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: var(--dark-primary);
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Calendar Section */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.month-navigation button {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.month-navigation button:hover {
    color: var(--dark-primary);
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
}

.calendar div {
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    background-color: var(--white);
    transition: var(--transition);
}

.calendar div:hover {
    background-color: var(--light-primary);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

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

/* Faculty Section Enhancements */
.faculty-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.faculty-header {
    text-align: center;
    margin-bottom: 40px;
}

.faculty-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.faculty-header p {
    font-size: 1.2rem;
    color: var(--dark-gray);
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.faculty-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.faculty-card:hover {
    transform: translateY(-5px);
}

.faculty-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-color);
}

.faculty-card h3 {
    margin: 15px 0 5px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faculty-card p {
    color: var(--dark-gray);
    font-size: 1rem;
    padding: 0 15px 15px;
}

.faculty-card .social-icons {
    margin-top: 10px;
}

.faculty-card .social-icons a {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 10px;
    transition: var(--transition);
}

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

/* Course Section */
.course-section {
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

.course-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.course-section .brief-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.course-section h3 {
    font-size: 20px;
    font-weight: 500;
    color: #444;
    margin-top: 20px;
    margin-bottom: 10px;
}

.course-section ul {
    list-style-type: disc;
    margin-left: 20px;
    color: #555;
    font-size: 16px;
}

.course-section ul li {
    margin-bottom: 8px;
}

.course-section p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

.course-section .message-from-hod {
    margin-top: 30px;
    padding: 15px;
    background-color: #e9f5ff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.course-section .message-from-hod p {
    font-style: italic;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-section {
        padding: 15px;
    }

    .course-section h2 {
        font-size: 24px;
    }

    .course-section h3 {
        font-size: 18px;
    }

    .course-section p, .course-section ul li {
        font-size: 14px;
    }
}

/* New Sections */
.about, .programmes, .join-us {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
    margin: 20px 0;
}

.about h2, .programmes h2, .join-us h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.about p, .programmes ul, .join-us p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.programmes ul {
    list-style: none;
    padding: 0;
}

.programmes ul li {
    margin: 10px 0;
}

.join-us .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
}

.join-us .btn:hover {
    background-color: #0056b3;
}