/* css/home.css */

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically center content */
    padding: 80px 40px; /* Increased horizontal padding for better spacing */
    margin-bottom: 60px;
    border-radius: 8px;
    background-color: #e0f2f7; /* Lighter blue/cyan background for hero */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Slightly more prominent shadow */
}

.hero-content {
    flex: 1;
    padding-right: 40px; /* Space between text and image */
    max-width: 60%; /* Ensure text content doesn't take full width */
}

.hero h1 {
    font-size: 3em;
    color: #2c3e50; /* Darker text for contrast */
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero .cta-button {
    display: inline-block;
    background-color: #3498db; /* Primary blue for CTA */
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.hero .cta-button:hover {
    background-color: #2980b9;
}

.hero-image {
    flex: 1;
    text-align: center;
    min-width: 300px; /* Ensure image section has a minimum width */
    max-width: 40%; /* Control image section width */
}

.hero-image img {
    max-width: 100%; /* Ensure image scales within its container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* More prominent shadow */
}

/* E-Learning Info Section */
.e-learning-info {
    padding: 60px 40px; /* Added horizontal padding */
    margin-bottom: 60px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.e-learning-info h2 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 40px;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
    justify-content: center; /* Center items if they don't fill space */
}

.info-text, .info-image {
    flex: 1;
    min-width: 300px;
    max-width: 48%; /* Control column width for two columns */
}

.info-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.info-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 60px 40px; /* Added horizontal padding */
    text-align: center;
    background-color: #ecf0f1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.why-choose-us h2 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 40px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.reason-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.reason-card h3 {
    color: #3498db;
    margin-bottom: 15px;
}

.reason-card p {
    color: #7f8c8d;
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero, .info-grid {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px; /* Adjusted padding for mobile */
    }
    .hero-content, .hero-image, .info-text, .info-image {
        padding-right: 0;
        margin-bottom: 30px;
        max-width: 100%; /* Full width on mobile */
        min-width: unset; /* Remove min-width constraint */
    }
    .hero-image img, .info-image img {
        width: 80%; /* Smaller images on mobile */
    }
    /* Adjustments for the header on mobile to prevent overflow */
    header .container {
        padding: 15px 20px; /* Consistent padding */
    }
    nav {
        flex-wrap: wrap; /* Allow wrapping of nav items if necessary */
        justify-content: space-between; /* Space out logo and toggle */
    }
    nav ul {
        width: 100%;
        order: 3; /* Push menu below logo and toggle */
        margin-top: 15px; /* Space from top elements */
    }
    nav ul.active {
        margin-top: 15px; /* Adjust margin if needed */
    }
    nav .logo {
        margin-right: auto; /* Push logo to the left */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2em; /* Smaller font on very small screens */
    }
    .hero p {
        font-size: 1em;
    }
    .cta-button {
        padding: 12px 25px; /* Slightly smaller button */
        font-size: 1em;
    }
    .e-learning-info h2, .why-choose-us h2 {
        font-size: 1.8em;
    }
}