/* Import CSS variables */
@import 'variables.css';

/* ================ GLOBAL STYLES ================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Makes sizing elements easier */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6; /* Better readability for text */
}

/* Container for controlling width and centering content */
.container {
    width: 100%;
    max-width: 1200px; /* Maximum width of content */
    margin: 0 auto; /* Centers content horizontally */
    padding: 0 20px; /* Padding on smaller screens */
}

/* ================ HEADER STYLES ================ */
header {
    background-color: var(--light-bg);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow effect */
}

/* Navigation bar layout */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo styling */
.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo a, .logo a:visited, .logo a:hover {
    text-decoration: none;
}

/* Navigation menu layout */
.nav-links {
    display: flex;
    list-style: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s; /* Smooth hover effect */
}

.nav-links a:hover {
    color: var(--primary-color); /* Change color on hover */
}

/* ================ HERO SECTION STYLES ================ */
.hero {
    background: var(--secondary-color); /* Solid purple background */
    color: var(--light-color);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--light-color);
}

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

/* Button styling - used in hero and CTA sections */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s; /* Smooth hover effect */
}

.btn:hover {
    background-color: #009a45; /* Slightly darker green on hover */
}

/* ================ ABOUT SECTION STYLES ================ */
.about {
    padding: 80px 0;
    background-color: var(--light-bg);
    position: relative;
}

/* Creates decorative gradient bar at top of section */
.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Section title styling - used in multiple sections */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* Layout for text and image in about section */
.about-content {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on mobile */
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--primary-color); /* Highlighted text in brand color */
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid var(--primary-color); /* Green border for images */
}

/* ================ COURSE UNITS SECTION STYLES ================ */
.course-units {
    padding: 80px 0;
}

/* Card grid layout */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px;
}

/* Individual unit card styling */
.unit-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s; /* Animation effect */
    border-left: 4px solid var(--primary-color); /* Green accent border */
}

.unit-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Enhanced shadow on hover */
}

.unit-card h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.unit-card ul {
    margin-left: 20px;
    margin-top: 10px;
}

.unit-card li {
    margin-bottom: 8px;
}

/* ================ SERVICES SECTION STYLES ================ */
.services {
    padding: 80px 0;
    background-color: var(--light-bg);
}

/* Services grid layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px;
}

/* Individual service card styling */
.service-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary-color); /* Purple accent border */
    transition: transform 0.3s; /* Animation effect */
}

.service-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Enhanced shadow on hover */
}

.service-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ================ CALL-TO-ACTION SECTION ================ */
.cta {
    background: var(--secondary-color); /* Purple background */
    color: var(--light-color);
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

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

/* ================ FOOTER STYLES ================ */
footer {
    background-color: var(--dark-bg);
    color: var(--light-color);
    padding: 40px 0;
}

/* Footer layout */
.footer-content {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on mobile */
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s; /* Smooth hover effect */
}

.footer-column a:hover {
    color: var(--accent-color); /* Green highlight on hover */
}

/* Bottom copyright area */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1); /* Subtle divider line */
}