/* ========= Base Styles ========= */
:root {
  --primary-color: #0056b3;
  --secondary-color: #00416a;
  --accent-color: #4caf50;
  --text-color: #333;
  --text-light: #666;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --bg-gray: #f1f5f9;
  --border-color: #e1e1e1;
  --border-radius: 6px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

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

section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ========= Buttons ========= */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.btn-link span {
  margin-left: 5px;
  transition: var(--transition);
}

.btn-link:hover span {
  transform: translateX(5px);
}

/* ========= Header ========= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.logo img {
  height: 50px;
}

nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  font-weight: 500;
  color: var(--text-color);
}

nav a.active,
nav a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background-color: var(--text-color);
  margin: 3px 0;
  border-radius: 3px;
  transition: var(--transition);
}

/* ========= Hero Section ========= */
.hero {
  background-color: var(--bg-gray);
  padding: 100px 0;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.2;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

/* ========= Beginner Guide Section ========= */
.beginner-guide {
  background-color: var(--bg-light);
}

.beginner-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.card-icon {
  background-color: rgba(0, 86, 179, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 30px;
  height: 30px;
  color: var(--primary-color);
}

.card h3 {
  font-family: var(--font-heading);
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.cta-box {
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
}

.cta-box h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.cta-box p {
  margin-bottom: 25px;
}

.cta-box .btn-primary {
  background-color: white;
  color: var(--primary-color);
}

.cta-box .btn-primary:hover {
  background-color: var(--bg-light);
}

/* ========= Blog Section ========= */
.blog {
  background-color: var(--bg-white);
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 25px;
}

.blog-content .category {
  display: inline-block;
  padding: 5px 10px;
  background-color: rgba(0, 86, 179, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.blog-content h3 {
  margin-bottom: 15px;
  font-family: var(--font-heading);
}

.blog-content h3 a {
  color: var(--secondary-color);
  transition: var(--transition);
}

.blog-content h3 a:hover {
  color: var(--primary-color);
}

.blog-content p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.blog-meta .date {
  color: var(--text-light);
}

.read-more {
  font-weight: 500;
}

/* ========= Newsletter Section ========= */
.newsletter {
  background-color: var(--secondary-color);
  color: white;
  padding: 80px 0;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 15px;
}

.newsletter-content p {
  margin-bottom: 30px;
}

.newsletter-form {
  margin-top: 30px;
}

.form-group {
  display: flex;
  margin-bottom: 15px;
}

.form-group input {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 16px;
}

.form-group button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  border: none;
}

.form-check {
  display: flex;
  align-items: flex-start;
  text-align: left;
  font-size: 0.9rem;
}

.form-check input {
  margin-right: 10px;
  margin-top: 5px;
}

/* ========= Footer ========= */
footer {
  background-color: #1a1a1a;
  color: white;
  padding: 70px 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 50px;
}

.footer-column p {
  margin-bottom: 15px;
  color: #bbb;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-column h3 {
  font-family: var(--font-heading);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

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

.footer-column ul li a {
  color: #bbb;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-column address p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer-column address svg {
  margin-right: 10px;
  margin-top: 5px;
}

.footer-column address a {
  color: #bbb;
}

.footer-column address a:hover {
  color: white;
}

.reg-number {
  font-size: 0.9rem;
  color: #777 !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

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

.footer-links a {
  color: #bbb;
  font-size: 0.9rem;
}

.copyright {
  color: #777;
  font-size: 0.9rem;
}

/* ========= Cookie Consent ========= */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--bg-white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: none;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-cookie-accept,
.btn-cookie-settings,
.btn-cookie-decline {
  padding: 10px 15px;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-cookie-accept {
  background-color: var(--primary-color);
  color: white;
}

.btn-cookie-accept:hover {
  background-color: var(--secondary-color);
}

.btn-cookie-settings {
  background-color: var(--bg-light);
  color: var(--text-color);
}

.btn-cookie-decline {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.cookie-content a {
  font-size: 0.9rem;
}

/* ========= Contact Page ========= */
.contact-section {
  background-color: var(--bg-light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.contact-info p {
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  min-width: 40px;
  height: 40px;
  background-color: rgba(0, 86, 179, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.contact-icon svg {
  color: var(--primary-color);
}

.contact-text h4 {
  font-family: var(--font-heading);
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.contact-form {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form h3 {
  font-family: var(--font-heading);
  margin-bottom: 25px;
  color: var(--secondary-color);
}

.form-group-stacked {
  margin-bottom: 20px;
}

.form-group-stacked label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group-stacked input,
.form-group-stacked textarea,
.form-group-stacked select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-group-stacked input:focus,
.form-group-stacked textarea:focus,
.form-group-stacked select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-group-stacked textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  text-align: right;
}

/* ========= About Page ========= */
.about-hero {
  background-color: var(--bg-gray);
  padding: 100px 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 50px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--text-light);
}

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

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.team-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-details {
  padding: 20px;
  text-align: center;
}

.team-details h3 {
  font-family: var(--font-heading);
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.team-details p.position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: rgba(0, 86, 179, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
  transition: var(--transition);
}

.team-social a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ========= Blog Post Page ========= */
.post-header {
  background-color: var(--bg-gray);
  padding: 100px 0 50px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.post-category {
  background-color: rgba(0, 86, 179, 0.1);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.post-date {
  display: flex;
  align-items: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.post-date svg {
  margin-right: 5px;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  max-width: 800px;
}

.post-featured-img {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: 30px;
}

.post-featured-img img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.post-content {
  max-width: 800px;
  margin: 50px auto;
}

.post-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin: 40px 0 20px;
}

.post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin: 30px 0 15px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.post-content ul li,
.post-content ol li {
  margin-bottom: 10px;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.share-label {
  font-weight: 500;
}

.share-links {
  display: flex;
  gap: 10px;
}

.share-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 86, 179, 0.1);
  border-radius: 50%;
  color: var(--text-color);
  transition: var(--transition);
}

.share-links a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ========= Modal ========= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 30px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(-50px);
  transition: all 0.3s;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.modal-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(76, 175, 80, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-icon svg {
  color: var(--accent-color);
  width: 40px;
  height: 40px;
}

/* ========= Responsive Styles ========= */
@media screen and (max-width: 991px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  
  nav.active {
    transform: translateY(0);
  }
  
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .blog-posts {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .copyright {
    text-align: center;
  }
  
  .cta-box {
    padding: 30px 20px;
  }
  
  .post-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 576px) {
  .form-group {
    flex-direction: column;
  }
  
  .form-group input {
    border-radius: var(--border-radius);
    margin-bottom: 10px;
  }
  
  .form-group button {
    border-radius: var(--border-radius);
    width: 100%;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-content {
    text-align: center;
  }
}
