/* Mobile Viewport Fix - Prevent horizontal overflow (mobile only) */
@media (max-width: 991px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* Fix for iOS Safari */
  * {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Ensure container doesn't overflow on mobile */
  .container {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2c3e50;
  color: white;
  padding: 15px 0;
  z-index: 9999;
  display: none;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner p {
  margin: 0;
  display: inline-block;
  padding-right: 20px;
}

.cookie-banner .btn {
  margin-left: 10px;
}

/* CTA Button in Navigation */
.nav .has-cta {
  margin-left: 20px;
}

.nav .cta-button {
  background: #f5a425;
  color: white !important;
  padding: 10px 25px !important;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s;
}

.nav .cta-button:hover {
  background: #e89515;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 164, 37, 0.3);
}

/* Pricing Cards */
.pricing-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  padding: 0;
  margin-bottom: 30px;
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
  border: 3px solid #f5a425;
}

.pricing-card .card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.pricing-card.featured .card-header {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.pricing-card .card-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.pricing-card .badge {
  position: absolute;
  top: 20px;
  right: 20px;
}

.pricing-card .card-body {
  padding: 30px;
}

.pricing-card .price {
  text-align: center;
  margin: 20px 0;
}

.pricing-card .price .currency {
  font-size: 24px;
  vertical-align: top;
}

.pricing-card .price .amount {
  font-size: 48px;
  font-weight: 700;
  color: #2c3e50;
}

.pricing-card .price .period {
  font-size: 16px;
  color: #7f8c8d;
  display: block;
}

.pricing-card .savings {
  background: #27ae60;
  color: white;
  text-align: center;
  padding: 5px 15px;
  border-radius: 20px;
  display: inline-block;
  margin: 0 auto 20px;
  font-weight: 600;
}

.pricing-card .features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.pricing-card .features li {
  padding: 10px 0;
  border-bottom: 1px solid #ecf0f1;
}

.pricing-card .features li i {
  color: #27ae60;
  margin-right: 10px;
}

.pricing-card.horizontal {
  max-width: 100%;
}

.pricing-card.horizontal .card-body {
  padding: 20px;
}

/* Testimonials */
.testimonial-item {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonial-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.testimonial-item h4 {
  margin: 10px 0 5px;
  font-size: 18px;
}

.testimonial-item span {
  color: #7f8c8d;
  font-size: 14px;
}

.testimonial-item .rating {
  margin: 15px 0;
}

.testimonial-item .rating i {
  color: #f39c12;
}

/* Blog Preview */
.blog-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  margin-bottom: 30px;
}

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

.blog-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-item .blog-content {
  padding: 25px;
}

.blog-item .category {
  background: #3498db;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  display: inline-block;
  margin-bottom: 15px;
}

.blog-item h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.blog-item p {
  color: #7f8c8d;
  margin-bottom: 15px;
  line-height: 1.6;
}

.blog-item .read-more {
  color: #3498db;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.blog-item .read-more:hover {
  color: #2980b9;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons .btn {
  margin: 10px;
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 50px;
  font-weight: 600;
}

/* Footer Updates */
.footer-section {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 60px 0 30px;
}

.footer-widget h4 {
  color: white;
  margin-bottom: 20px;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
}

.footer-widget ul li {
  padding: 5px 0;
}

.footer-widget ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-widget ul li a:hover {
  color: white;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: #34495e;
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s;
}

.social-links a:hover {
  background: #f5a425;
  transform: translateY(-3px);
}

.contact-info li {
  padding: 8px 0;
  color: #bdc3c7;
}

.contact-info li i {
  margin-right: 10px;
  color: #f5a425;
}

/* Payment Methods */
.payment-methods {
  margin: 20px 0;
}

.payment-methods img {
  margin: 0 10px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.payment-methods img:hover {
  opacity: 1;
}

/* FAQ Section */
.faq-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.faq-section .card {
  border: none;
  margin-bottom: 10px;
}

.faq-section .card-header {
  background: white;
  border: 1px solid #dee2e6;
  padding: 0;
}

.faq-section .btn-link {
  color: #2c3e50;
  text-decoration: none;
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  font-weight: 600;
}

.faq-section .btn-link:hover {
  color: #f5a425;
}

.faq-section .card-body {
  background: white;
  border: 1px solid #dee2e6;
  border-top: none;
}

/* Page Heading */
.page-heading {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 100px 0 60px;
  text-align: center;
  color: white;
}

.page-heading h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-heading p {
  font-size: 18px;
  opacity: 0.9;
}

/* Responsive Updates */
@media (max-width: 768px) {
  .pricing-card .price .amount {
    font-size: 36px;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  .page-heading h1 {
    font-size: 32px;
  }

  .nav .has-cta {
    margin-left: 0;
    margin-top: 10px;
  }

  .pricing-card.horizontal .card-body .row {
    display: block;
  }

  .pricing-card.horizontal .card-body .col-md-6 {
    max-width: 100%;
    margin-bottom: 20px;
  }
}

/* Loading States */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading:after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #f3f3f3;
  border-radius: 50%;
  border-top: 2px solid #3498db;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid #f5a425;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header-area,
  .footer-section,
  .cookie-banner,
  .cta-section {
    display: none;
  }

  .pricing-card {
    page-break-inside: avoid;
  }
}
/* Previous styles remain the same, adding these new ones: */

/* About Page Styles */
.team-member {
  padding: 20px;
  margin-bottom: 30px;
  transition: transform 0.3s;
}

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

.feature-item {
  padding: 20px;
  margin-bottom: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s;
}

.feature-item:hover {
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-item h4 {
  color: #1f272b;
  margin-bottom: 10px;
  font-size: 18px;
}

.achievement-box {
  padding: 30px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 30px;
  transition: all 0.3s;
}

.achievement-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.achievement-box h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Contact Page Styles */
.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

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

.contact-form label {
  font-weight: 600;
  color: #1f272b;
  margin-bottom: 8px;
}

.contact-form .form-control {
  height: 50px;
  border-radius: 25px;
  border: 1px solid #e0e0e0;
  padding: 0 20px;
  font-size: 14px;
  transition: all 0.3s;
}

.contact-form textarea.form-control {
  height: auto;
  padding: 15px 20px;
  border-radius: 20px;
}

.contact-form .form-control:focus {
  border-color: #f5a425;
  box-shadow: 0 0 0 0.2rem rgba(245, 164, 37, 0.25);
}

.contact-info-box {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.info-item {
  margin-bottom: 30px;
  text-align: center;
}

.info-item i {
  font-size: 36px;
  color: #f5a425;
  margin-bottom: 15px;
}

.info-item h4 {
  font-size: 18px;
  color: #1f272b;
  margin-bottom: 10px;
}

.guarantee-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 30px;
  border-radius: 20px;
}

.guarantee-box h4 {
  color: #fff;
  margin-bottom: 20px;
}

.guarantee-box ul {
  list-style: none;
  padding: 0;
}

.guarantee-box ul li {
  padding: 8px 0;
}

.guarantee-box ul li i {
  color: #f5a425;
  margin-right: 10px;
}

/* WhatsApp Button Style */
.btn-success {
  background-color: #25d366;
  border-color: #25d366;
}

.btn-success:hover {
  background-color: #1ebe57;
  border-color: #1ebe57;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
  .team-member,
  .achievement-box,
  .feature-item {
    margin-bottom: 20px;
  }

  .contact-info-box {
    margin-top: 30px;
  }
}
/* Package Cards - Fixed Heights */
.package-card {
  position: relative;
  margin-bottom: 30px;
}

.package-card .thumb {
  position: relative;
}

.package-card .badge-best {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f5a425;
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  z-index: 2;
}

.package-card.featured {
  border: 2px solid #f5a425;
  border-radius: 20px;
}

.package-subtitle {
  color: #a12c2f;
  margin-bottom: 20px;
  font-size: 14px;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.package-features li {
  padding: 8px 0;
  color: #1f272b;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.package-features li:last-child {
  border-bottom: none;
}

.package-cta {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
}

.package-cta .main-button-red,
.package-cta .main-button-yellow {
  width: 100%;
  text-align: center;
}

.package-cta .main-button-red a,
.package-cta .main-button-yellow a {
  display: block;
  width: 100%;
}

/* Ensure all course cards have same height */
.our-courses .item .down-content {
  min-height: 200px;
  position: relative;
}

.our-courses .item .down-content .info {
  position: relative;
}

.our-courses .item .down-content p {
  margin-bottom: 15px;
}

/* Contact Form Improvements */
#contact select.form-control {
  height: 40px;
  border-radius: 20px;
  background-color: #f7f7f7;
  border: none;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 500;
  color: #7a7a7a;
  margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .package-card .down-content {
    min-height: auto !important;
    padding-bottom: 80px;
  }

  .package-cta {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 20px;
  }
}

/* Footer link color fix */
.footer a {
  color: #f5a425;
}

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

/* Improve button spacing in banner */
.main-banner .caption .main-button-red,
.main-banner .caption .main-button-yellow {
  margin-top: 10px;
}

@media (max-width: 767px) {
  .main-banner .caption .main-button-red,
  .main-banner .caption .main-button-yellow {
    display: block !important;
    margin: 10px 0;
  }
}

/* Ensure hero headline is readable over video */
.video-overlay .caption h1,
.video-overlay .caption h1 em {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  font-weight: 800;
}
.video-overlay .caption h6 {
  color: #f5f7ff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Standardize course cards (Choose Your Turkish Course Level) */
.our-courses .item {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}
.our-courses .item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.our-courses .item .down-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.our-courses .item .down-content .info {
  margin-top: auto;
}
/* Compact View link to avoid wrapping */
.view-link {
  white-space: nowrap;
}
/* Banner text color fix - add to custom-additions.css */
.main-banner .caption h1,
.main-banner .caption h2 {
  color: #fff !important;
}

.main-banner .caption h1 em,
.main-banner .caption h2 em {
  font-style: normal;
  color: #f5a425;
  font-weight: 900;
}

/* Course cards uniform height fix */
.our-courses .item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.our-courses .item img {
  height: 200px;
  object-fit: cover;
}

.our-courses .item .down-content {
  min-height: 260px !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.our-courses .item .down-content h4 {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
}

.our-courses .item .down-content .info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.our-courses .item .down-content .info p {
  flex-grow: 1;
  padding: 15px;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.our-courses .item .down-content .info .row {
  margin-top: auto;
}

/* View Details button - make it an arrow button */
.our-courses .item .down-content .info .col-4 {
  text-align: right;
}

.our-courses .item .down-content .info .col-4 a {
  background: #a12c2f;
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s;
}

.our-courses .item .down-content .info .col-4 a:after {
  content: "→";
  font-family: Arial, sans-serif;
}

.our-courses .item .down-content .info .col-4 a:hover {
  background: #f5a425;
  transform: translateX(5px);
}

/* Hide the text, show only arrow */
.our-courses .item .down-content .info .col-4 a {
  font-size: 0;
}

.our-courses .item .down-content .info .col-4 a:after {
  font-size: 18px;
}
/* Banner text line-height fix */
.main-banner .caption h2 {
  line-height: 1.3 !important;
}

@media screen and (max-width: 767px) {
  .main-banner .caption h2 {
    line-height: 1.2 !important;
  }
}
/* Meeting items uniform height */
.meeting-item .down-content {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.meeting-item .down-content h4 {
  min-height: 50px;
  display: flex;
  align-items: center;
}

.meeting-item .down-content p {
  flex-grow: 1;
  margin-left: 0 !important;
}
/* Banner heading spacing fix */
.main-banner .caption h1 {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  line-height: 1.3 !important;
}

.main-banner .caption h6 {
  margin-bottom: 0px !important;
}

.main-banner .caption p {
  margin-top: 0px !important;
}

@media screen and (max-width: 767px) {
  .main-banner .caption h1 {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
  }
}
/* Owl Course Items Uniform Height */
.our-courses .owl-carousel .item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.our-courses .owl-carousel .item img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.our-courses .owl-carousel .item .down-content {
  min-height: 280px !important;
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: #fff;
}

.our-courses .owl-carousel .item .down-content h4 {
  min-height: 70px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 15px !important;
  margin: 0;
  line-height: 1.3;
}

.our-courses .owl-carousel .item .down-content .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 25px 25px 25px !important;
}

.our-courses .owl-carousel .item .down-content .info p {
  flex: 1;
  margin-bottom: 15px;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.our-courses .owl-carousel .item .down-content .info .row {
  margin-top: auto;
  align-items: center;
}

/* Owl carousel height fix */
.owl-carousel .owl-stage-outer {
  display: flex;
}

.owl-carousel .owl-stage {
  display: flex;
}

.owl-carousel .owl-item {
  height: auto;
  display: flex;
}
/* Package Cards Uniform Height */
.package-card .down-content {
  min-height: 420px !important;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 80px !important;
}

.package-card .package-features {
  flex-grow: 1;
  margin-bottom: 20px;
}

.package-card .package-cta {
  position: absolute;
  bottom: 20px;
  left: 30px;
  right: 30px;
}

/* Price styling with strikethrough */
.package-card .price {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.package-card .price .original-price {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.package-card .price .current-price {
  font-size: 16px;
  color: #1f272b;
  font-weight: 600;
  background-color: rgba(250, 250, 250, 0.9);
  padding: 7px 12px;
  border-radius: 10px;
}

.package-card .badge-free {
  position: absolute;
  top: 60px;
  right: 20px;
  background: #27ae60;
  color: #fff;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
}
/* Accordion expanded state - override height:0 from main CSS */
.accordion.expanded .accordion-body {
  height: auto !important;
  display: block !important;
}

.accordion .accordion-body .content {
  padding: 0 20px 20px 20px;
}

.accordion .accordion-body .content p {
  margin: 0;
  line-height: 1.6;
  color: #666;
}

/* Accordion head color when expanded */
.accordion.expanded .accordion-head {
  color: #f5a425;
}

/* Mobile menu - prevent flash on desktop */
.mobile-menu-drawer,
.mobile-backdrop {
  display: none !important;
  visibility: hidden;
}

@media (max-width: 767px) {
  .mobile-menu-drawer {
    display: block !important;
    visibility: visible;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(30, 30, 30, 0.98);
    z-index: 1001;
    transition: right 0.4s ease;
  }
  
  .mobile-menu-drawer.open {
    right: 0;
  }
  
  .mobile-backdrop {
    display: none !important;
  }
  
  .mobile-backdrop.open {
    display: block !important;
    visibility: visible;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
  }
}

/* Inner pages header spacing on mobile */
@media (max-width: 767px) {
  section.heading-page {
    padding-top: 160px !important;
    margin-top: 0 !important;
  }
  
  /* Hide sub-header on mobile */
  .sub-header {
    display: none !important;
  }
}
