/* Base Styles */
:root {
  --primary-color: #165DFF;
  --secondary-color: #FF7D00;
  --dark-color: #1E293B;
  --light-color: #F8FAFC;
  --gray-color: #64748B;
  --font-family: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #fff;
}

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

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto 60px;
}

.bg-light {
  background-color: var(--light-color);
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #0047CC;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.rounded-image {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header & Navigation */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://picsum.photos/seed/cfahero/1600/800') center/cover no-repeat;
  height: 500px;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--gray-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: #0047CC;
}

/* CFA Introduction Section */
.cfa-intro-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.cfa-card {
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.cfa-card:hover {
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Pass Rates Section */
.pass-rates-chart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.chart-container {
  position: relative;
  height: 300px;
}

.pass-rates-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rate-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rate-item h4 {
  font-size: 1.2rem;
  font-weight: 500;
}

.progress-bar {
  height: 30px;
  background-color: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 5px;
  transition: width 1s ease;
}

.rate-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.note {
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--gray-color);
  text-align: center;
}

/* Experience Section */
.experience-tabs {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tab-navigation {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.tab-btn {
  padding: 12px 30px;
  background-color: #e2e8f0;
  color: var(--dark-color);
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
}

.tab-btn.active {
  background-color: var(--primary-color);
  color: #fff;
}

.tab-content {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.experience-image img {
  width: 100%;
  height: auto;
}

.experience-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.experience-date {
  font-size: 1rem;
  color: var(--gray-color);
  margin-bottom: 20px;
  display: block;
}

.experience-text p {
  margin-bottom: 20px;
  color: var(--gray-color);
}

.experience-text ul {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--gray-color);
}

.experience-text ul li {
  margin-bottom: 10px;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #0047CC;
}

.read-more i {
  margin-left: 5px;
}

/* Recent Posts Section */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.post-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.post-content {
  padding: 25px;
}

.post-category {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.post-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.post-excerpt {
  color: var(--gray-color);
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--gray-color);
}

.post-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.post-link:hover {
  color: #0047CC;
}

.view-all {
  text-align: center;
  margin-top: 60px;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form .form-group {
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 10px;
}

.contact-form .form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: center;
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}

.info-text h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.newsletter {
  margin-top: 50px;
  padding: 30px;
  background-color: var(--light-color);
  border-radius: 10px;
}

.newsletter h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.newsletter p {
  color: var(--gray-color);
  margin-bottom: 20px;
}

.newsletter form {
  display: flex;
  gap: 10px;
}

.newsletter input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 1rem;
}

.newsletter input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo .logo {
  color: #fff;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-logo p {
  color: #94a3b8;
}

.footer-nav h4,
.footer-categories h4,
.footer-social h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-nav ul,
.footer-categories ul {
  list-style: none;
}

.footer-nav ul li,
.footer-categories ul li {
  margin-bottom: 10px;
}

.footer-nav ul li a,
.footer-categories ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover,
.footer-categories ul li a:hover {
  color: #fff;
}

.footer-social .social-links {
  margin-top: 0;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .about-content,
  .experience-item,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .cfa-intro-content,
  .pass-rates-chart,
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .posts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-list {
    flex-direction: column;
    padding: 20px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cfa-intro-content,
  .pass-rates-chart,
  .posts-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .tab-navigation {
    flex-wrap: wrap;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
}    