/* General Styling */
:root {
    --primary-color: #ff7a59;
    --dark-blue: #002d62;
    --light-gray: #f5f8fa;
    --text-color: #33475b;
    --border-radius: 5px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
    
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    
}

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
  
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--dark-blue);
}

.logo i {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.header-actions .btn-login {
    text-decoration: none;
    color: var(--text-color);
    margin-right: 15px;
}

.header-actions .btn-signup {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.header-actions .btn-signup:hover {
    background-color: #e06041;
}

/* Hero Section */
.hero {
    background-color: var(--light-gray);
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 3em;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #e06041;
}

/* Courses Section */
.courses {
    padding: 60px 0;
    text-align: center;
}

.courses h2 {
    font-size: 2.5em;
    color: var(--dark-blue);
    margin-bottom: 40px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.course-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-container i {
    font-size: 1.8em;
}

.course-card h3 {
    margin-bottom: 10px;
    color: var(--dark-blue);
}

/* Footer */
footer {
    background: var(--dark-blue);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}


/* General Styling */
:root {
    --primary-color: #ff7a59;
    --dark-blue: #002d62;
    --light-gray: #f5f8fa;
    --text-color: #33475b;
    --border-radius: 5px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--dark-blue);
}

.logo i {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.header-actions .btn-login {
    text-decoration: none;
    color: var(--text-color);
    margin-right: 15px;
}

.header-actions .btn-signup {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.header-actions .btn-signup:hover {
    background-color: #e06041;
}

/* Catalog Page Section */
.courses-section {
    padding: 60px 0;
}

.courses-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--dark-blue);
    margin-bottom: 40px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden; /* Keeps the image corners rounded */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.course-card img {
    width: 100%;
    height: auto;
    display: block;
}

.course-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Makes the card content take up available space */
}

.course-card-content h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: var(--dark-blue);
}

.course-card-content p {
    flex-grow: 1; /* Pushes the link to the bottom */
    margin-bottom: 15px;
}

.course-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.course-link:hover {
    color: #e06041;
}


/* Footer */
footer {
    background: var(--dark-blue);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}




/* ------------------------- */
/* Resources Page Styling    */
/* ------------------------- */

.resources-section {
    padding: 60px 0;
    background-color: #fff;
}

.resources-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--dark-blue);
    margin-bottom: 40px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.resource-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.resource-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
}

.resource-icon i {
    font-size: 1.8em;
    color: var(--primary-color);
}

.resource-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--dark-blue);
    font-size: 1.3em;
}

.resource-content p {
    margin: 0 0 15px 0;
}

.resource-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: #e06041;
}


