:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d; /* A subtle grey for secondary elements */
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --white-color: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7; /* Slightly increased line height for readability */
    color: var(--dark-color);
    background-color: var(--light-bg);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--white-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    margin-left: 25px; /* Increased margin */
    color: rgba(255, 255, 255, 0.9) !important; /* Brighter color for better contrast */
    transition: color 0.3s ease, transform 0.3s ease; /* Added transform for subtle animation */
}

.navbar-nav .nav-link:hover {
    color: var(--white-color) !important;
    transform: translateY(-3px); /* Lift effect on hover */
}

/* Tab Navigation Styles */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1rem;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    color: #495057 !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: transparent;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    color: #212529 !important;
    background-color: #f8f9fa;
    transform: none; /* Override navbar transform */
}

.nav-tabs .nav-link.active {
    color: #212529 !important;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom: 2px solid #007bff;
    font-weight: 600;
}

.nav-tabs .nav-link .badge {
    font-size: 0.75rem;
    margin-left: 0.5rem;
    color: #ffffff !important;
}

/* Slider CSS */
.slider-container {
    position: relative;
    width: 100%;
    height: 60vh; /* Adjust height as needed */
    overflow: hidden;
    margin-top: 55px;
}

.slider-images .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-images .slide.active {
    opacity: 1;
}

.slider-images img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the slide area */
    display: block;
}

@media (max-width: 768px) {
    .slider-images img {
        object-fit: contain; /* Show full image on mobile */
    }

    .slide-caption {
        display: none;
    }
}

.slide-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--white-color);
    padding: 18px 35px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 400;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 3.5em; /* Increased size */
    z-index: 10;
    transition: color 0.3s ease, transform 0.3s ease;
    opacity: 0; /* Hidden by default */
}

.slider-container:hover .slider-nav-btn {
    opacity: 1; /* Show on hover */
}

.slider-nav-btn:hover {
    color: var(--white-color);
    transform: translateY(-50%) scale(1.2);
}

.slider-nav-btn.prev {
    left: 25px;
}

.slider-nav-btn.next {
    right: 25px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/1.jpg') no-repeat center center; /* Darker overlay */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    padding: 50px 0; /* More padding for a grander look */
    color: var(--white-color);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Subtle gradient overlay */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4.2rem; /* Even larger, more impactful heading */
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6); /* Stronger text shadow */
    animation: fadeInDown 1s ease-out; /* Animation for heading */
}

.hero-section p.lead {
    font-size: 1.6rem; /* Larger lead text */
    font-weight: 300;
    max-width: 900px;
    margin: 0 auto 50px auto;
    animation: fadeInUp 1s ease-out 0.3s; /* Animation for lead text */
}

.hero-section .btn {
    border-radius: 50px;
    padding: 15px 35px; /* Larger button */
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.4s ease;
    animation: zoomIn 1s ease-out 0.6s; /* Animation for button */
}

.hero-section .btn-light {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--white-color);
}

.hero-section .btn-light:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.section-title {
    font-size: 3.2rem; /* Even larger section titles */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 70px; /* More space below title */
    position: relative;
    display: inline-block;
    text-transform: uppercase; /* Uppercase for corporate feel */
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -20px; /* Adjusted position */
    transform: translateX(-50%);
    width: 120px; /* Wider underline */
    height: 6px; /* Thicker underline */
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Feature Box Section */
.feature-box {
    background-color: var(--white-color);
    border-radius: 12px; /* More rounded corners */
    padding: 45px; /* More padding */
    margin-bottom: 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Stronger shadow */
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #eee; /* Subtle border */
}

.feature-box:hover {
    transform: translateY(-15px); /* More pronounced lift */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

.feature-box i {
    font-size: 4.5rem; /* Even larger icons */
    color: var(--primary-color);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.feature-box:hover i {
    transform: scale(1.1); /* Icon pop effect */
}

.feature-box h3 {
    font-size: 2.2rem; /* Larger feature titles */
    color: var(--dark-color);
    margin-bottom: 18px;
    font-weight: 700;
}

.feature-box p {
    color: var(--secondary-color); /* Use secondary color for text */
    font-size: 1.15rem; /* Slightly larger text */
}

/* About Us Section */
#about {
    background-color: var(--light-bg);
}

#about p.lead {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--dark-color);
}

#about p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Contact Us Section */
#contact {
    background-color: var(--white-color);
}

#contact .form-label {
    font-weight: 600;
    color: var(--dark-color);
}

#contact .form-control {
    border-radius: 8px; /* More rounded */
    border: 1px solid #ddd;
    padding: 12px 18px; /* More padding */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

#contact .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    padding: 15px 40px; /* Larger button */
    font-size: 1.2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

#contact .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-3px); /* Lift effect on hover */
}

#contact .mt-4 p {
    font-size: 1.15rem;
    color: var(--secondary-color);
}

#contact .mt-4 i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.3rem;
}

/* Footer Section */
footer {
    background-color: var(--dark-color) !important; /* Darker footer */
    padding: 60px 0; /* More padding */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.social-icons a {
    color: var(--white-color);
    font-size: 2rem; /* Even larger social icons */
    margin: 0 15px; /* More spacing */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-5px); /* Lift effect on hover */
}

footer p {
    font-size: 1.05rem;
    color: #bbb;
    margin-top: 25px;
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }

    .hero-section p.lead {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .feature-box {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
        text-align: center;
    }

    .slider-container {
        height: 40vh;
    }

    .slide-caption {
        font-size: 1.2rem;
        padding: 10px 20px;
        bottom: 20px;
    }

    .slider-nav-btn {
        font-size: 2.5em;
        padding: 5px;
    }

    .slider-nav-btn.prev {
        left: 10px;
    }

    .slider-nav-btn.next {
        right: 10px;
    }

    .hero-section {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p.lead {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    .feature-box {
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: 30vh;
    }

    .slide-caption {
        display: none; /* Hide caption on very small screens */
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p.lead {
        font-size: 1rem;
    }

    .hero-section .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .feature-box h3 {
        font-size: 1.8rem;
    }

    .feature-box p {
        font-size: 1rem;
    }

    footer {
        padding: 40px 0;
    }

    .social-icons a {
        font-size: 1.5rem;
        margin: 0 10px;
    }
}

/* FullCalendar override */
.fc-scroller {
    right: auto !important;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1055;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.image-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.image-modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.image-modal-content, .image-modal-caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .image-modal-content {
        width: 100%;
    }
}

#media-gallery .media-item img {
    cursor: pointer;
}

@media (max-width: 768px) {
    .login-container .col-md-5,
    .register-container .col-md-5 {
        width: 100% !important;
    }

    .card-body {
        padding: 2rem !important;
    }
}

/* Login and Register Page Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: linear-gradient(to top, #09203f 0%, #537895 100%);
    background-size: cover;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* Lighter overlay */
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-card .form-label {
    font-weight: 600;
}

.auth-card .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
}

.auth-card .form-text {
    text-align: center;
}

.home-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.home-button .btn {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--dark-color);
    border: 1px solid var(--dark-color);
    font-weight: 600;
}

.home-button .btn:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* Superadmin Responsive Styles */
.superadmin-body #sidebar-wrapper {
    transition: margin 0.25s ease-out;
}

.superadmin-body #page-content-wrapper {
    min-width: 100vw;
}

.superadmin-body #wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    .superadmin-body #sidebar-wrapper {
        margin-left: 0;
    }

    .superadmin-body #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    .superadmin-body #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
}

/* Dark Mode Tab Styles */
[data-theme="dark"] .nav-tabs {
    border-bottom-color: #495057;
}

[data-theme="dark"] .nav-tabs .nav-link {
    color: #f8f9fa !important;
    background-color: transparent;
}

[data-theme="dark"] .nav-tabs .nav-link:hover {
    border-color: #495057 #495057 #6c757d;
    color: #ffffff !important;
    background-color: #343a40;
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    color: #ffffff !important;
    background-color: #212529;
    border-color: #495057 #495057 #212529;
    border-bottom-color: #007bff;
}

[data-theme="dark"] .nav-tabs .nav-link .badge {
    background-color: #6c757d;
    color: #f8f9fa;
}
