/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: #333;
    background: linear-gradient(135deg, #e0f2f7 0%, #b3e5fc 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 25px 0;
}

/* Header Styles */
header {
    background: linear-gradient(to right, #007bff, #0056b3);
    color: #fff;
    padding: 15px 0;
    min-height: 70px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

header li {
    padding: 0 18px;
}

header nav a:hover {
    color: #a7d9f7;
    border-bottom: 2px solid #a7d9f7;
}

/* Main Content Styles */
main {
    padding: 30px 0;
}

section {
    background: #ffffff;
    margin-bottom: 30px;
    padding: 40px 0;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

section h2, section h3 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

section p {
    text-align: justify;
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.8;
    color: #555;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 56, 113, 0.7)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 120px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#hero h2 {
    color: #fff;
    font-size: 3.8em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

#hero p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f8ff;
}

.btn {
    display: inline-block;
    color: #fff;
    background: #007bff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

/* Highlight Grid */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.highlight-item {
    background: #fdfdfd;
    padding: 25px;
    border-left: 6px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.highlight-item h4 {
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

/* Services, Courses, Contact */
.service-list, .course-list, .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item, .course-card, .contact-item, .app-card {
    background: #fdfdfd;
    padding: 25px;
    border: 1px solid #e0f2f7;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover, .course-card:hover, .contact-item:hover, .app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.app-card img {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.app-card img:hover {
    transform: scale(1.05);
}

.btn-app {
    display: inline-block;
    margin-top: 15px;
    background: #28a745;
    color: #fff;
    padding: 10px 22px;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

.btn-app:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(40, 167, 69, 0.4);
}

/* Contact Form */
.simple-form {
    background: #fdfdfd;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    transition: box-shadow 0.3s ease;
}

.simple-form:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cceeff;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: linear-gradient(to right, #0056b3, #003366);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: left;
    margin-bottom: 25px;
}

.footer-section {
    flex: 1;
    min-width: 280px;
    margin: 15px;
    padding: 15px;
}

.footer-section h3 {
    color: #87ceeb;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p, .footer-section ul {
    color: #cceeff;
    font-size: 0.95em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cceeff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #004080;
    padding-top: 20px;
    font-size: 0.85em;
    color: #a7d9f7;
}

/* Responsive Fixes - Mobile UX */
@media (max-width: 768px) {
    header {
        position: relative; /* Remove sticky */
    }

    header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header nav {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        background-color: #0056b3;
        width: 100%;
        padding: 10px 0;
        position: relative;
        z-index: auto;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
    }

    header nav li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    header nav a {
        font-size: 1.1em;
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
        margin-bottom: 30px;
    }

    section, .app-card, .simple-form {
        box-shadow: none;
        margin-bottom: 20px;
    }

    #hero {
        padding: 80px 0;
        min-height: 300px;
    }

    #hero h2 {
        font-size: 2.5em;
    }

    #hero p {
        font-size: 1.1em;
    }

    .btn, .btn-app {
        width: 90%;
        max-width: 300px;
        text-align: center;
        font-size: 1em;
        padding: 10px 20px;
    }

    .app-card img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 1.8em;
    }

    section {
        padding: 25px 0;
    }

    section h2, section h3 {
        font-size: 1.6em;
        line-height: 1.4;
        margin: 15px 0;
    }

    section p {
        font-size: 1em;
        line-height: 1.7;
    }

    .highlight-grid, .service-list, .course-list, .contact-grid {
        grid-template-columns: 1fr;
    }

    .app-card img {
        max-width: 100%;
    }
}
