/* modern.css - Custom stylesheet for KIM College Website Theme Migration */

:root {
    --primary-color: #1656a5;
    --primary-hover: #0f3d75;
    --secondary-color: #f7a81b;
    --dark-color: #1e1e1e;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --text-muted: #6c757d;
    --font-primary: 'Outfit', sans-serif;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 35px rgba(22, 86, 165, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1a202c;
}

/* Header & Utility Bar */
.top-bar {
    background-color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
}
.hover-warning:hover {
    color: var(--secondary-color) !important;
}

/* Navbar */
.logo-img {
    height: 46px;
    width: auto;
}
.header-title {
    font-size: 1.1rem;
    line-height: 1.1;
}
.header-subtitle {
    font-size: 0.72rem;
    font-weight: 500;
}
.navbar-nav .nav-link {
    color: #4a5568 !important;
    font-weight: 500;
    font-size: 0.86rem;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
    white-space: nowrap;
}
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}
.btn-contact {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem !important;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-contact:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Hero Section */
.hero-slider {
    position: relative;
    overflow: hidden;
}
.carousel-item img {
    height: 500px;
    object-fit: cover;
    filter: brightness(0.85);
}
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 600px;
    margin-bottom: 50px;
    text-align: left;
}

/* Cards & Grid sections */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}
.section-title-center {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}
.section-title-center::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Feature/Stat Cards */
.stat-card {
    background: white;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}
.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
}

/* News Cards */
.news-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}
.news-img-container {
    height: 200px;
    overflow: hidden;
}
.news-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.news-card:hover .news-img-container img {
    transform: scale(1.08);
}
.news-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}
.badge-upcoming {
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Sidebar Event List */
.sidebar-events {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 25px;
}
.event-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.event-item:hover {
    border-left-color: var(--secondary-color);
    transform: translateX(3px);
}
.event-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.event-item-title a {
    color: #2d3748;
    text-decoration: none;
}
.event-item-title a:hover {
    color: var(--primary-color);
}
.event-item-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Staff Profiles */
.staff-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
    padding: 30px 20px;
    background: #fff;
}
.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}
.staff-avatar {
    width: 100px;
    height: 100px;
    background-color: #e2e8f0;
    color: var(--primary-color);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}
.staff-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.staff-designation {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Trustees Table */
.table-modern {
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.table-modern thead {
    background-color: var(--primary-color);
    color: white;
}
.table-modern th {
    padding: 15px 20px;
    border: none;
}
.table-modern td {
    padding: 15px 20px;
    vertical-align: middle;
}

/* Contact Us */
.contact-info-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(22, 86, 165, 0.15);
}

/* Footer styling */
.footer {
    font-size: 0.9rem;
}
.footer-section-title {
    position: relative;
    padding-bottom: 10px;
}
.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}
.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.social-link:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.footer-links a {
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--secondary-color) !important;
    padding-left: 5px;
}

/* Admin Dashboard styling */
.admin-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}
.admin-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

/* Gallery & Lightbox Styles */
.gallery-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
    background: #fff;
}
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}
.gallery-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}
.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-card:hover .gallery-img-container img {
    transform: scale(1.08);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 86, 165, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/* Custom Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    user-select: none;
}
.lightbox.active {
    display: flex;
}
.lightbox-content-wrapper {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}
.lightbox-close:hover {
    color: var(--secondary-color);
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 10px 18px;
    border-radius: 50%;
    transition: var(--transition);
}
.lightbox-prev {
    left: -80px;
}
.lightbox-next {
    right: -80px;
}
.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,0.25);
    color: var(--secondary-color);
}
@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close {
        top: 10px;
        right: 20px;
    }
}
