
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
}
.main-nav {
  width: 100%;
  background: #34495e;
  padding: 1rem 0;
  border-radius: 0; /* Remove rounded corners for full width */
}

.nav-list {
  display: flex;
  justify-content: center; /* Center items horizontally */
  list-style: none;
  width: 100%;
  max-width: 1200px; /* Maximum content width */
  margin: 0 auto; /* Center the nav */
  padding: 0 1rem; /* Add some side padding */
}

.nav-list li {
  margin: 0 0.5rem; /* Reduced side margin */
}

.nav-list li a {
  color: white;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  padding: 0.8rem 1.2rem; /* Slightly reduced padding */
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
}
 
.nav-list li a.active {
  background: #1abc9c;
  color: white;
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70vh;
}

.container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.container h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    background: #1abc9c;
    color: white;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #16a085;
}

/* Course Page Specific Styles */
.course-category {
    margin-bottom: 2.5rem;
}

.course-category h2 {
    color: #2c3e50;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1abc9c;
    margin-bottom: 1.5rem;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.course-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.course-item:hover {
    transform: translateY(-5px);
}

.course-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Resources Page Specific Styles */
.resource-category {
    margin-bottom: 2.5rem;
}

.resource-category h2 {
    color: #2c3e50;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1abc9c;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.resource-list {
    list-style: none;
}

.resource-list li {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: white;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.resource-list li:hover {
    background: #f0f0f0;
}

.resource-list a {
    color: #2980b9;
    text-decoration: none;
    display: block;
}

.resource-list a:hover {
    text-decoration: underline;
}

/* Feedback Form Styles */
.feedback-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feedback-form h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* About Page Styles */
.about-section {
    margin-bottom: 2.5rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1abc9c;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.team-member {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #7f8c8d;
    font-style: italic;
}

/* Footer Styles */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.3rem 0;
    }
    
    .course-list, .team-members {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 1rem;
    }
    
    .container, .about-section, .feedback-form {
        padding: 1.5rem;
    }
}

/* Logo Styles */
.logo-container {
    display: flex;
    justify-content: flex-start;
    padding: 10px 20px;
}

.logo {
    height: 125px;
    width: 100px; 
    max-width: 150px; 
    transition: transform 0.3s ease;
    padding-right: 10px;
}

.logo:hover {
    transform: scale(1.05); 
}

header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

header h1 {
    margin-top: 10px;
    order: 2; 
}

nav {
    order: 3; 
    width: 100%;
}

/* Animation Styles */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}