/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4 {
    color: #990000;
}

.section {
    margin-bottom: 40px;
}

.section a {
    color: #990000;
    text-decoration: none;
}

.section a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 10px;
    text-align: left;
}

ul, ol {
    padding-left: 20px;
}

/* Header Styling */
header {
    background-color: #990000;
    color: white;
    padding: 20px 0; /* Reduced padding */
    text-align: center;
}

header img {
    height: 100px; /* Reduced image height */
    display: block;
    margin: 0 auto 10px auto; /* Reduced bottom margin */
}

/* Navigation Styling */
nav {
    background-color: #cc0000;
    overflow: hidden;
    text-align: center;
    margin-top: 10px; /* Reduced top margin */
}

nav a {
    display: inline-block;
    color: white;
    padding: 10px 15px; /* Reduced padding */
    text-decoration: none;
}

nav a:hover {
    background-color: #ddd;
    color: #990000;
}

/* Timeline Section Styling */
#timeline {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

#timeline h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: #333;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* The vertical timeline line */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #2196F3;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

/* Timeline Items */
.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    cursor: pointer;
    transition: transform 0.3s;
}

.timeline-item:hover {
    transform: scale(1.05);
}

/* Alternate the side of the timeline items */
.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

/* Timeline Icons */
.timeline-icon {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: #2196F3;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -10px;
}

/* Timeline Content */
.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s, max-height 0.3s;
    max-height: 0;
    overflow: hidden;
}

.timeline-item:hover .timeline-content {
    opacity: 1;
    max-height: 500px; /* Adjust as needed */
}

/* Responsive Design for Timeline */
@media screen and (max-width: 768px) {
    .timeline-container::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 25px;
    }

    .timeline-item .timeline-icon {
        left: 15px;
    }

    .timeline-item .timeline-content {
        margin: 0;
    }
}

/* Footer Styling */
footer {
    background-color: #990000;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Embedded PDFs Styling */
.pdf-embed {
    margin-bottom: 40px;
}

.pdf-embed h4 {
    color: #333;
}

.pdf-embed embed {
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Videos Section Styling */
#videos {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.video-item {
    flex: 1 1 calc(50% - 20px);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    transition: transform 0.3s;
}

.video-item:hover {
    transform: scale(1.02);
}

.video-item img {
    width: 100%;
    height: auto;
    display: block;
}

.video-info {
    padding: 10px;
}

.video-info h4 {
    margin: 10px 0;
    color: #333;
}

.video-info p {
    font-size: 0.9em;
    color: #555;
}

/* Responsive Design for Videos */
@media screen and (max-width: 768px) {
    .video-item {
        flex: 1 1 100%;
    }
}
