:root {
    --primary-color: #3E5E8D;
    --secondary-color: #2A3F5F;
    --accent-color: #4CAF50;
    --light-color: #EFF4F9;
    --dark-color: #111827;
    --text-color: #333;
    --border-radius: 10px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Login Screen */
#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-container {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    width: 400px;
    max-width: 90%;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 2rem;
}

.navbar-brand img {
    height: 50px;
}

/* Hero Section */
#hero {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #f8f9fa;
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0% 100%);
}

/* Section Styling */
section {
    padding: 4rem 0;
    position: relative;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Cards */
.card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    overflow: hidden;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Team */
.team-member {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.team-member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.team-member:hover .team-member-info {
    transform: translateY(0);
}

/* Counters */
.counter-box {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    margin-bottom: 1rem;
}

.counter-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.counter-label {
    font-size: 1rem;
    color: var(--text-color);
}

/* PDF Viewer */
.pdf-container {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    position: relative;
}

.pdf-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    display: flex;
    justify-content: center;
}

.canvas-container {
    width: 100%;
    height: 100%;
    overflow: auto;
}

canvas {
    width: 100%;
    height: auto;
}

/* Video Gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.video-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Modal */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .pdf-container {
        height: 400px;
    }
}

/* Navigation Pills */
.nav-pills .nav-link {
    color: var(--text-color);
    border-radius: var(--border-radius);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

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

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.scroll-top.visible {
    opacity: 1;
}

.logo-small {
    width: 100px;
    /* Adjust as needed */
    height: auto;
    max-height: 50px;
    /* Ensures logos stay uniform */
    object-fit: contain;
    /* Maintains aspect ratio */
}