/* 
Business Academy - Main Stylesheet
Version: 1.0
Author: Your Name
*/

/* ==================
   Table of Contents:
   1. Global Styles
   2. Typography
   3. Components
   4. Header & Navigation
   5. Hero Section
   6. Features Section
   7. About Section
   8. Info Section
   9. Courses Section
   10. Map Section
   11. Footer Section
   12. Utilities
   13. Media Queries
==================== */

/* ===============
   1. Global Styles
================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===============
   2. Typography
================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #0066cc;
}

/* ===============
   3. Components
================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background-color: #0055aa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-light {
    background-color: #e0e0e0;
    color: #333;
}

.btn-light:hover {
    background-color: #d0d0d0;
    color: #333;
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* Form Elements */
input, textarea, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

/* ===============
   4. Header & Navigation
================= */
header {
    background-color: #333;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: #0066cc;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #222;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin-bottom: 30px;
}

.mobile-nav-links a {
    color: white;
    font-size: 24px;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: #0066cc;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-menu:hover {
    color: #0066cc;
}

/* ===============
   5. Hero Section
================= */
.hero {
    min-height: 500px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/hero.png');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===============
   6. Features Section
================= */
.features {
    padding: 80px 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0066cc;
}

.feature-card p {
    margin-bottom: 25px;
    color: #666;
}

/* ===============
   7. About Section
================= */
.about {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.about-content {
    text-align: center;
    margin-bottom: 50px;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0066cc;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.about-card {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0066cc;
}

.about-card p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.7;
}

/* ===============
   8. Info Section
================= */
.info-section {
    padding: 80px 0;
    background-color: #222;
    color: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.info-card {
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
}

.info-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0066cc;
}

.info-card p {
    margin-bottom: 25px;
    color: #ccc;
}

/* ===============
   9. Courses Section
================= */
.courses {
    padding: 80px 0;
    background-color: white;
}

.courses-content {
    text-align: center;
    margin-bottom: 50px;
}

.courses h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.courses h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0066cc;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.course-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.course-content {
    padding: 25px;
}

.course-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0066cc;
}

.course-card p {
    margin-bottom: 20px;
    color: #666;
}

/* Courses Vertical Layout */
.course-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.course-item img {
    width: 250px;
    height: auto;
    margin-right: 20px;
    border-radius: 8px;
}

.course-text {
    flex: 1;
}

/* Responsive adjustments for course items */
@media (max-width: 768px) {
    .course-item {
        flex-direction: column;
        text-align: center;
    }
    .course-item img {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
    }
}

/* ===============
   10. Map Section
================= */
.map-section {
    padding: 80px 0;
    background-color: #f4f4f4;
}

.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* ===============
   11. Footer Section
================= */
/* Horizontal Footer Links */
.footer-links-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links-horizontal a {
    color: ##00008B
    position: relative;
}

.footer-links-horizontal a:not(:last-child):after {
    content: '•';
    position: absolute;
    right: -10px;
    color: ##00008B;
}

.footer-links-horizontal a:hover {
    color: white;
}

/* Make the newsletter form look better */
.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.newsletter-form .btn {
    border-radius: 0 4px 4px 0;
}

/* ===============
   12. Utilities
================= */

/* ===============
   13. Media Queries
================= */
/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .footer-links-horizontal {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links-horizontal a:not(:last-child):after {
        content: '';
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-form .btn {
        border-radius: 4px;
    }
}
