:root {
    --primary-color: #2c3e50;
    /* Dark Slate Blue - Professional & Calm */
    --secondary-color: #e74c3c;
    /* Muted Red - Accent */
    --accent-color: #3498db;
    /* Calm Blue */
    --text-dark: #2c3e50;
    /* Dark Gray for text */
    --text-light: #7f8c8d;
    /* Medium Gray */
    --bg-light: #f8f9fa;
    /* Very Light Gray Background */
    --bg-white: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Very subtle shadow */
    --card-hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
}

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

body {
    line-height: 1.7;
    color: var(--text-dark);
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-light);
}

/* Header Styles */
.header {
    background-color: #FCFAD3;
    color: var(--text-dark);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: none;
}

.college-logo {
    background-image: url(./assets/logoNew.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 200px;
    height: 150px;
    margin: 0 20px 0 0;
}

.name {
    text-align: center;
}

.name-english {
    font-size: 1.4rem;
    font-weight: bold;
}

.assamese-name {
    font-size: 1.6rem;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Clean, subtle gradient */
    color: var(--text-dark);
    padding: 10rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
    /* Remove dark overlay */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: var(--text-light);
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1rem;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

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

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

.card-header {
    background: white !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.card-header h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Gallery Styles */
.gallery-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.gallery-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0.5rem 2rem 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    position: relative;
}

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

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

@media (min-width: 768px) {
    .gallery-item {
        width: 400px;
        height: 260px;
    }
}

/* Notice Board Styles */
.notice-section {
    padding: 4rem 0 6rem;
    background-color: var(--bg-light);
}

.notice-board-container {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.notice-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 3px solid transparent;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background-color: #fcfcfc;
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}

.notice-item a {
    text-decoration: none;
}

.notice-item a h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.notice-item a:hover h6 {
    color: var(--accent-color);
}

.date-badge {
    background: transparent;
    color: var(--text-light);
    padding: 0;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .college-logo {
        margin: 0 15px 10px 0;
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Active Link Style */
.navbar-nav .nav-item .nav-link.active {
    color: var(--secondary-color) !important;
    border-bottom: 2px solid var(--secondary-color);
}

/* About Page Styles */
.list-group-item i {
    margin-right: 10px;
    color: var(--secondary-color);
}

/* Admissions Page Styles */
.step-list {
    list-style-type: none;
    padding-left: 0;
}

.step-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.step-list .step-number {
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-list .step-content h6 {
    color: var(--primary-color);
}

.step-list .step-content p {
    color: var(--text-light);
}

/* Contact Page Styles */
.contact-list {
    list-style-type: none;
    padding-left: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-list i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 0.8rem;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Facilities Page Styles */
.facility-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.facility-img-wrapper {
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    /* Placeholder color */
}

.facility-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    /* Override img-fluid */
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.facility-content {
    padding: 1.5rem;
}

.facility-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.facility-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.infrastructure-table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.infrastructure-table tbody tr {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease;
}

.infrastructure-table tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.infrastructure-table td {
    padding: 1rem 1.5rem;
    border: none;
    vertical-align: middle;
}

.infrastructure-table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-weight: 500;
    color: var(--primary-color);
    width: 60%;
}

.infrastructure-table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-yes {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.status-no {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

.status-badge i {
    margin-right: 6px;
}

/* Faculty Page Styles */
.faculty-card img {
    width: 150px;
    height: 180px;
    object-fit: cover;
    margin-top: 1.5rem;
    border: 3px solid var(--bg-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px !important;
    /* Override Bootstrap rounded-circle */
}