/* Global Styles */
:root {
  --primary-color: #2b4eff;
  --secondary-color: #fdc93b;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --text-color: #333;
  --text-light: #6c757d;
  --white: #fff;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
}

.blue {
  background-color: var(--primary-color);
  color: var(--white);
}

.blue:hover {
  background-color: #1a3bcc;
  transform: translateY(-3px);
}

.black {
  background-color: var(--dark-color);
  color: var(--white);
}

.black:hover {
  background-color: #0f0f1f;
  transform: translateY(-3px);
}

.yellow {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

.yellow:hover {
  background-color: #f5b920;
  transform: translateY(-3px);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--dark-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

nav.scrolled {
  padding: 15px 5%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

nav img {
  height: 40px;
  width: auto;
}

.navigation ul {
  display: flex;
}

.navigation ul li {
  margin: 0 10px;
}

.navigation ul li a {
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 5px;
  transition: var(--transition);
}

.navigation ul li a:hover {
  color: var(--primary-color);
}

.navigation ul li a.active {
  background-color: var(--primary-color);
  color: var(--white);
}

#menu-btn, #menu-close {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero Section */
#home {
  padding: 180px 5% 100px;
  background: 
              url('photo/g(10).jpeg') no-repeat center center/cover;
  color: var(--white);
  text-align: center;
}

#home h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: white;
}

#home p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.home-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Features Section */
#features {
  padding: 100px 5%;
  background-color: var(--light-color);
}

.fea-base {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.fea-box {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.fea-box:hover {
  transform: translateY(-10px);
}

.fea-box i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.fea-box h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Courses Section */
#course {
  padding: 100px 5%;
}

.course-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.courses {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.courses:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.courses img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.details {
  padding: 20px;
}

.details span {
  font-size: 0.9rem;
  color: var(--text-light);
}

.details h6 {
  font-size: 1.2rem;
  margin: 10px 0;
  color: var(--dark-color);
}

.star {
  color: gold;
  margin: 10px 0;
}

.star span {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-left: 10px;
}

.cost {
  padding: 10px 20px;
  background-color: rgba(43, 78, 255, 0.1);
  color: var(--primary-color);
  font-weight: 600;
  text-align: right;
}

/* Registration Section */
#registration {
  padding: 80px 5%;
  background: linear-gradient(135deg, rgba(67, 72, 99, 0.9), rgba(84, 89, 116, 0.7)), 
              url('image/r.webp') ;
  color: var(--white);
  margin: 50px 0;
}

.reminder {
  text-align: center;
  margin-bottom: 40px;
}

.reminder p {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.reminder h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

.time {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.date {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 15px 25px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.date br {
  display: none;
}

.form {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  max-width: 500px;
  margin: 0 auto;
}

.form h3 {
  color: var(--dark-color);
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.form input {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form button {
  width: 100%;
}

.form-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  display: none;
}

/* Experts Section */
#experts {
  padding: 100px 5%;
  background-color: var(--light-color);
}

.expert-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.expert-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.expert-card:hover {
  transform: translateY(-10px);
}

.expert-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.expert-info {
  padding: 20px;
}

.expert-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.expert-info p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--dark-color);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 80px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  transition: var(--transition);
  color: #b3b3b3;
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.subscribe-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 20px;
  color: #b3b3b3;
}

.pro-links .social-links a {
  background-color: rgba(255, 255, 255, 0.1);
}

.pro-links .social-links a:hover {
  background-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .navigation {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1001;
    padding: 80px 30px;
  }

  .navigation.active {
    right: 0;
  }

  #menu-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--dark-color);
  }

  .navigation ul {
    flex-direction: column;
  }

  .navigation ul li {
    margin: 15px 0;
  }

  #menu-btn {
    display: block;
  }

  #home h2 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  #home {
    padding: 150px 5% 80px;
  }

  #home h2 {
    font-size: 2rem;
  }

  .home-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 250px;
    margin-bottom: 15px;
  }

  .date {
    padding: 10px 15px;
    font-size: 1.2rem;
  }

  .date br {
    display: block;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  nav {
    padding: 15px 5%;
  }

  #home h2 {
    font-size: 1.8rem;
  }

  #home p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fea-box, .courses, .expert-card {
  animation: fadeIn 0.5s ease forwards;
}

/* Delay animations for grid items */
.fea-box:nth-child(1) { animation-delay: 0.1s; }
.fea-box:nth-child(2) { animation-delay: 0.2s; }
.fea-box:nth-child(3) { animation-delay: 0.3s; }

.courses:nth-child(1) { animation-delay: 0.1s; }
.courses:nth-child(2) { animation-delay: 0.2s; }
.courses:nth-child(3) { animation-delay: 0.3s; }
.courses:nth-child(4) { animation-delay: 0.4s; }
.courses:nth-child(5) { animation-delay: 0.5s; }
.courses:nth-child(6) { animation-delay: 0.6s; }

.expert-card:nth-child(1) { animation-delay: 0.1s; }
.expert-card:nth-child(2) { animation-delay: 0.2s; }
.expert-card:nth-child(3) { animation-delay: 0.3s; }
.expert-card:nth-child(4) { animation-delay: 0.4s; }


 .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-in-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/*----blog page-----*/

#blog-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('image/lib.jpeg');
  background-size: cover;
  background-position: center;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
}

#blog-header .blog-header-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

#blog-header .blog-header-content p {
  font-size: 1.2rem;
}

#blog-container {
  display: flex;
  justify-content: space-between;
  padding: 20px 5%;
}

#blog-container .blogs {
  width: 68%;
}

#blog-container .blog-sidebar {
  width: 28%;
}

/* Featured Post */
.featured-post {
  display: flex;
  margin-bottom: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.featured-post .post-img {
  width: 45%;
}

.featured-post .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post .post-content {
  width: 55%;
  padding: 30px;
  background: #fff;
}

.featured-post .post-content .category {
  display: inline-block;
  padding: 5px 15px;
  background: #1eb2a6;
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 15px;
}

.featured-post .post-content h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.featured-post .post-content .excerpt {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.featured-post .post-content .post-meta {
  display: flex;
  margin-bottom: 20px;
  color: #777;
}

.featured-post .post-content .post-meta span {
  margin-right: 20px;
  font-size: 0.9rem;
}

.featured-post .post-content .read-more {
  color: #1eb2a6;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.featured-post .post-content .read-more i {
  margin-left: 5px;
  transition: 0.3s;
}

.featured-post .post-content .read-more:hover i {
  transform: translateX(5px);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.blog-grid .post {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.blog-grid .post .post-img {
  height: 200px;
  overflow: hidden;
}

.blog-grid .post .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.blog-grid .post:hover .post-img img {
  transform: scale(1.1);
}

.blog-grid .post .post-content {
  padding: 20px;
}

.blog-grid .post .post-content .category {
  display: inline-block;
  padding: 3px 10px;
  background: #1eb2a6;
  color: #fff;
  border-radius: 20px;
  font-size: 0.7rem;
  margin-bottom: 10px;
}

.blog-grid .post .post-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-grid .post .post-content .excerpt {
  color: #555;
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-grid .post .post-content .post-meta {
  display: flex;
  margin-bottom: 15px;
  color: #777;
  font-size: 0.8rem;
}

.blog-grid .post .post-content .post-meta span {
  margin-right: 15px;
}

.blog-grid .post .post-content .read-more {
  color: #1eb2a6;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
}

.blog-grid .post .post-content .read-more i {
  margin-left: 5px;
  transition: 0.3s;
}

.blog-grid .post .post-content .read-more:hover i {
  transform: translateX(5px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.pagination a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: #fff;
  color: #1eb2a6;
  margin: 0 5px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.pagination a.active, 
.pagination a:hover {
  background: #1eb2a6;
  color: #fff;
}

/* Sidebar */
.sidebar-widget {
  background: #fff;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.sidebar-widget h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* Search Box */
.search-box {
  display: flex;
}

.search-box input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 30px 0 0 30px;
  outline: none;
}

.search-box button {
  padding: 10px 15px;
  background: #1eb2a6;
  color: #fff;
  border: none;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
}

/* Categories */
.categories li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.categories li:last-child {
  border-bottom: none;
}

.categories li a {
  display: flex;
  justify-content: space-between;
  color: #333;
}

.categories li a:hover {
  color: #1eb2a6;
}

.categories li a span {
  color: #777;
}

/* Popular Posts */
.popular-post {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.popular-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-post img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 15px;
}

.popular-post .post-info h4 {
  font-size: 0.9rem;
  margin-bottom: 5px;
  line-height: 1.4;
}

.popular-post .post-info h4 a {
  color: #333;
}

.popular-post .post-info h4 a:hover {
  color: #1eb2a6;
}

.popular-post .post-info span {
  font-size: 0.8rem;
  color: #777;
}

 

.tags a {
  display: inline-block;
  padding: 5px 15px;
  background: #f5f5f5;
  color: #333;
  border-radius: 20px;
  font-size: 0.8rem;
}

.tags a:hover {
  background: #1eb2a6;
  color: #fff;
}

/* Blog CTA */
#blog-cta {
  background: #1eb2a6;
  padding: 60px 0;
  text-align: center;
  color: #fff;
  margin-top: 50px;
}

#blog-cta h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

#blog-cta p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

#blog-cta .yellow {
  background: #fdc93b;
  color: #333;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s;
}

#blog-cta .yellow:hover {
  background: #fff;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
  #blog-container {
    flex-direction: column;
  }
  
  #blog-container .blogs,
  #blog-container .blog-sidebar {
    width: 100%;
  }
  
  .featured-post {
    flex-direction: column;
  }
  
  .featured-post .post-img,
  .featured-post .post-content {
    width: 100%;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #blog-header {
    height: 40vh;
  }
  
  #blog-header .blog-header-content h1 {
    font-size: 2.2rem;
  }
}
 
/*----- contact------*/

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #f59e0b;
  --secondary-dark: #d97706;
  --dark-color: #1e293b;
  --darker-color: #0f172a;
  --light-color: #f8fafc;
  --lighter-color: #ffffff;
  --success-color: #10b981;
  --error-color: #ef4444;
  --text-color: #334155;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --container-width: 1200px;
  --nav-height: 80px;
  --nav-height-scrolled: 70px;
}


*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--lighter-color);
  overflow-x: hidden;
}

/* ============== TYPOGRAPHY ============== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

 h1 p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ============== UTILITY CLASSES ============== */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 5rem 0;
}

.light-bg {
  background-color: var(--light-color);
}

.text-center { text-align: center; }
.text-white { color: white; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background-color: var(--dark-color);
  color: white;
}

.btn-dark:hover {
  background-color: var(--darker-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.yellow {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

.yellow:hover {
  background-color: var(--secondary-dark);
}

.blue {
  background-color: var(--primary-color);
  color: white;
}

.blue:hover {
  background-color: var(--primary-dark);
}

/* ============== NAVIGATION ============== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: var(--lighter-color);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

nav.scrolled {
  padding: 1rem 5%;
  box-shadow: var(--shadow-md);
}

nav img {
  height: 40px;
  width: auto;
}

#menu-btn, #menu-close {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--dark-color);
}

.navigation ul {
  display: flex;
  gap: 1.5rem;
}

.navigation ul li a {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.navigation ul li a:hover {
  color: var(--primary-color);
}

.navigation ul li a.active {
  background-color: var(--primary-color);
  color: white;
}

/* ============== HERO SECTION ============== */
#contact-home {
  padding: calc(var(--nav-height) + 3rem) 0 5rem;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80') 
              no-repeat center center/cover;
  color: white;
  text-align: center;
  position: relative;
}

.contact-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white; /* Ensures h1 is white */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Optional: adds slight shadow for better readability */
}

.contact-hero-content .subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  color: white; /* Ensures paragraph is white */
}

/* ============== CONTACT CONTENT ============== */
#contact-container {
  padding-top: 3rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.contact-form {
  background-color: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.contact-form h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.error-message {
  display: block;
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  min-height: 1.2rem;
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
  display: none;
}

.form-message.success {
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--success-color);
  display: block;
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--error-color);
  display: block;
}

/* Contact Information */
.contact-info {
  background-color: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.contact-info h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.info-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.info-item p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.info-item a {
  color: var(--primary-color);
}

.info-item a:hover {
  text-decoration: underline;
}

.social-links {
  margin-top: 3rem;
}

.social-links h3 {
  margin-bottom: 1rem;
  text-align: center;
}

.social-links div {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-color);
  color: var(--dark-color);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Map Section */
.contact-map {
  margin-top: 3rem;
}

.contact-map h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============== FAQ SECTION ============== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background-color: white;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.faq-question i {
  transition: var(--transition);
  color: var(--primary-color);
}

.faq-question.active {
  background-color: var(--primary-color);
  color: white;
}

.faq-question.active i {
  transform: rotate(180deg);
  color: white;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
  border-left: 3px solid transparent;
}

.faq-answer p {
  padding: 1.5rem 0;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-answer ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.faq-answer li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.faq-answer li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.faq-answer.active {
  max-height: 1000px;
  border-left-color: var(--primary-color);
}

.faq-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.faq-cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.faq-cta a {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-cta a:hover {
  text-decoration: underline;
}

.faq-cta a i {
  transition: var(--transition);
}

.faq-cta a:hover i {
  transform: translateX(3px);
}

/* ============== FOOTER ============== */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: var(--text-lighter);
  transition: var(--transition);
}

.footer-link:hover {
  color: white;
  padding-left: 5px;
}

.subscribe-form {
  margin-top: 1.5rem;
}

.subscribe-form input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 1.5rem;
  color: var(--text-lighter);
}

.pro-links .social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.pro-links .social-links a {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.pro-links .social-links a:hover {
  background-color: var(--primary-color);
}

/* ============== RESPONSIVE DESIGN ============== */
@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 5rem 2rem;
    transition: var(--transition);
    z-index: 999;
  }
  
  .navigation.active {
    right: 0;
  }
  
  .navigation ul {
    flex-direction: column;
  }
  
  #menu-btn, #menu-close {
    display: block;
    z-index: 1001;
  }
  
  #menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }
  
  .contact-hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .contact-hero-content h1 {
    font-size: 2.25rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 2rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .faq-question {
    padding: 1.25rem;
    font-size: 1rem;
  }
  
  .faq-answer p {
    padding: 1.25rem 0;
  }
  
  .faq-cta {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .contact-hero-content h1 {
    font-size: 2rem;
  }
  
  .contact-hero-content .subtitle {
    font-size: 1.1rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .info-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ============== ACCESSIBILITY ============== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/*-----quiz------*/
 
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #f39c12;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --text-color: #333;
  --text-light: #7f8c8d;
  --white: #fff;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  padding-top: 80px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--dark-color);
}

img {
  width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-align: center;
}

.btn:hover {
  background-color: var(--dark-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn.yellow {
  background-color: var(--accent-color);
}

.btn.yellow:hover {
  background-color: #e67e22;
}

.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
}

.light-bg {
  background-color: var(--white);
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav img {
  height: 50px;
  width: auto;
}

#menu-btn, #menu-close {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--dark-color);
}

.navigation ul {
  display: flex;
}

.navigation ul li {
  margin-left: 30px;
}

.navigation ul li a {
  color: var(--dark-color);
  font-weight: 600;
  position: relative;
}

.navigation ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.navigation ul li a:hover::after {
  width: 100%;
}

/* Blog Hero Section */
#blog-home {
  background-image: url('image/c1.jpeg');
  color: var(--white);
  padding: 180px 5% 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
 
.blog-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: white;
}

.blog-hero-content .subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Blog Container */
#blog-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.blogs {
  flex: 0 0 65%;
}

.blog-sidebar {
  flex: 0 0 30%;
}

/* Featured Post */
.featured-post {
  display: flex;
  margin-bottom: 50px;
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-post .post-img {
  flex: 0 0 45%;
  position: relative;
}

.featured-post .post-img img {
  height: 100%;
  object-fit: cover;
}

.post-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.featured-post .post-content {
  flex: 0 0 55%;
  padding: 30px;
}

.featured-post .post-meta {
  display: flex;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.featured-post .post-meta span {
  margin-right: 20px;
}

.featured-post .post-meta i {
  margin-right: 5px;
}

.featured-post h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.featured-post .excerpt {
  margin-bottom: 25px;
  font-size: 1rem;
  line-height: 1.7;
}

.featured-post .read-more {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.featured-post .read-more i {
  margin-left: 8px;
  font-size: 0.8rem;
  transition: var(--transition);
}

.featured-post .read-more:hover i {
  transform: translateX(5px);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.blog-post {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-post .post-img {
  height: 200px;
}

.blog-post .post-img img {
  height: 100%;
  object-fit: cover;
}

.blog-post .post-content {
  padding: 20px;
}

.blog-post .post-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.blog-post .post-meta i {
  margin-right: 5px;
}

.blog-post h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.blog-post .excerpt {
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-post .read-more {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
}

.blog-post .read-more i {
  margin-left: 5px;
  font-size: 0.7rem;
  transition: var(--transition);
}

.blog-post .read-more:hover i {
  transform: translateX(3px);
}

/* Sidebar */
.sidebar-widget {
  background-color: var(--white);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 10px;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.search-form {
  display: flex;
}

.search-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 0.9rem;
}

.search-form button {
  padding: 0 15px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: var(--transition);
}

.search-form button:hover {
  background-color: var(--dark-color);
}

.category-list li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.category-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  color: var(--text-color);
  font-size: 0.95rem;
  transition: var(--transition);
}

.category-list a:hover {
  color: var(--primary-color);
}

.category-list span {
  background-color: var(--light-color);
  color: var(--text-light);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.popular-post {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.popular-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-post img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.popular-post .post-info h4 {
  font-size: 0.95rem;
  margin-bottom: 5px;
  line-height: 1.4;
}

.popular-post .post-info h4 a {
  color: var(--text-color);
}

.popular-post .post-info h4 a:hover {
  color: var(--primary-color);
}

.popular-post .post-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Quiz Widget */
#quiz-widget {
  background-color: var(--light-color);
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 8px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.quiz-question {
  margin-bottom: 30px;
}

.quiz-question h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: var(--dark-color);
  line-height: 1.5;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.quiz-option {
  padding: 15px 20px;
  background-color: var(--light-color);
  border: none;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  color: var(--text-color);
  position: relative;
}

.quiz-option:hover {
  background-color: #e0e0e0;
}

.quiz-option.selected {
  background-color: var(--primary-color);
  color: var(--white);
}

.quiz-option.correct {
  background-color: var(--secondary-color);
  color: var(--white);
}

.quiz-option.incorrect {
  background-color: #e74c3c;
  color: var(--white);
}

.quiz-feedback {
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  display: none;
}

.quiz-feedback.show {
  display: block;
}

.quiz-feedback p {
  margin-bottom: 10px;
}

.quiz-feedback .correct-answer {
  font-weight: 600;
  color: var(--secondary-color);
}

#next-question {
  display: block;
  margin: 20px auto 0;
  padding: 12px 30px;
}

/* Quiz Progress */
.quiz-progress {
  width: 100%;
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  width: 0%;
  transition: width 0.3s ease;
}

.quiz-counter {
  text-align: right;
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

#quiz-results {
  text-align: center;
  padding: 30px;
}

#quiz-results h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

#quiz-results .score {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

#quiz-results .feedback {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

#restart-quiz {
  background-color: var(--accent-color);
}

/* Newsletter Section */
#newsletter {
  background: linear-gradient(135deg, var(--dark-color), #34495e);
  color: var(--white);
  text-align: center;
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-container h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.newsletter-container p {
  margin-bottom: 30px;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 15px 25px;
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 60px 5% 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-col p {
  margin-bottom: 20px;
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--light-color);
  opacity: 0.8;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(5px);
  color: var(--primary-color);
}

.social-links {
  display: flex;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .featured-post {
    flex-direction: column;
  }
  
  .featured-post .post-img,
  .featured-post .post-content {
    flex: 1;
  }
  
  .featured-post .post-img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  #blog-container {
    flex-direction: column;
  }
  
  .blogs,
  .blog-sidebar {
    flex: 1;
  }
  
  .blog-sidebar {
    margin-top: 50px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #menu-btn {
    display: block;
  }
  
  .navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1001;
    padding: 80px 30px;
  }
  
  .navigation.active {
    right: 0;
  }
  
  #menu-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
  }
  
  .navigation ul {
    flex-direction: column;
  }
  
  .navigation ul li {
    margin: 15px 0;
  }
  
  .blog-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    border-radius: 4px;
  }
  
  .newsletter-form button {
    margin-top: 10px;
  }
  
  .quiz-container {
    padding: 20px;
  }
  
  .quiz-question h3 {
    font-size: 1.2rem;
  }
}