

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.7;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Hero Section */
.history-hero {
    background-image: url("YC LOGO.jpg"); /* Replace with a compelling background image */
    background-size: cover;
   
    background-size: contain;
    height: 90vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 0;

    font-weight: 300;
}

/* Introduction Section */
.introduction {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.introduction h2 {
    font-family: 'Lora', serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.introduction p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;

    color: #555;
}
.intro-image {
    max-width: 70%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 20px;
}


/* Timeline Section */
.timeline-section {
    padding: 50px 0 80px;
    background-color: #f0f4f8; /* Light grayish blue */
}

.timeline-section h2 {
    font-family: 'Lora', serif;
    text-align: center;

    font-size: 2.8rem;
    margin-bottom: 60px;
    color: #2c3e50; /* Dark Blue */
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* The actual timeline line */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #007bff; /* Primary color for timeline */
    top: 0;
    bottom: 0;
    left: 50%;

    margin-left: -3px; /* (width of line / 2) */
    border-radius: 3px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

/* Icon on the timeline */
.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px; /* (width of icon / 2) */
    background-color: #fff;
    border: 4px solid #007bff;
    top: 30px;

    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #007bff;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px; /* Space for icon */
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px; /* Space for icon */
}

.timeline-item:nth-child(even) .timeline-icon {

    left: -25px; /* (width of icon / 2) */
}

.timeline-content {
    padding: 25px;
    background-color: #fff;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.timeline-content::before { /* Arrow pointer */
    content: " ";
    height: 0;
    position: absolute;
    top: 38px;
    width: 0;
    z-index: 1;
    border: medium solid white;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -15px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent white;
}
.timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent white transparent transparent;
}


.timeline-date {
    display: block;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 8px;

    font-size: 0.9rem;
}

.timeline-content h3 {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.timeline-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.timeline-image {
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow content box */

    height: auto;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid #eee;
}


/* Journey Continues Section */
.journey-continues {
    padding: 60px 0;
    background-color: #2c3e50; /* Dark Blue */
    color: #fff;
    text-align: center;
}

.journey-continues h2 {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}


.journey-continues p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
}

.cta-buttons-history {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons-history .cta-button {
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;

    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
.cta-buttons-history .cta-button.secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    box-shadow: none;
}

.cta-buttons-history .cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
.cta-buttons-history .cta-button.secondary:hover {
    background-color: #fff;

    color: #2c3e50;
}


/* Footer */
footer {
    background-color: #1d2834; /* Darker footer */
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}
footer p {
    margin: 5px 0;
}
footer a {
    color: #00aaff;
    text-decoration: none;
}
footer a:hover {

    text-decoration: underline;
}


/* Responsive Adjustments for Timeline */
@media screen and (max-width: 900px) {
    .timeline::after {
        left: 31px; /* Adjust to align with icons */
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px; /* Space for icon on the left */
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0; /* Stack them all on one side */
        padding-left: 80px;
    }

    .timeline-icon {
        left: 10px; /* Position icon to the far left */
        right: auto;
    }
    .timeline-item:nth-child(even) .timeline-icon {
        left: 10px;
    }

    .timeline-content::before { /* Adjust arrow for stacked layout */
        left: -15px;
        right: auto;
        border-width: 10px 15px 10px 0;
        border-color: transparent white 

transparent transparent;
    }
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -15px; /* Consistent arrow position */
        right: auto;
        border-width: 10px 15px 10px 0;
        border-color: transparent white transparent transparent;
    }
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;

    }
    .introduction h2, .timeline-section h2, .journey-continues h2 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 480px) {
     .hero-content h1 {
        font-size: 2.2rem;
    }
    .timeline-item {
        padding-left: 70px;
        padding-right: 15px;
    }
    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        left: 5px;
    }

     .timeline::after {
        left: 25px; /* Adjust to align with smaller icons */
    }
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    .timeline-content p {
        font-size: 0.9rem;
    }
}
