/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

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

/* Navigation */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a296b;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0a296b;
}

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

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #0a296b;
  margin: 3px 0;
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: #0a296b;
  color: white;
}

.btn-primary:hover {
  background-color: #1e3a8a;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #ffc800;
  color: #292929;
}

.btn-secondary:hover {
  background-color: #f59e0b;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #0a296b;
  border: 2px solid #0a296b;
}

.btn-outline:hover {
  background: #0a296b;
  color: white;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-white:hover {
  background: white;
  color: #0a296b;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0a296b 0%, #1e3a8a 100%);
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-stats {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #ffc800;
  color: #0a296b;
  padding: 1rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  font-size: 2rem;
}

.stat-number {
  font-size: 1.2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
}

/* Trusted By Section */
.trusted-by {
  padding: 3rem 0;
  background: #f8fafc;
  text-align: center;
}

.trusted-by h2 {
  color: #64748b;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.partners img {
  height: 60px;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.partners img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  background: rgba(30, 64, 175, 0.1);
  color: #0a296b;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.section-header p {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* Loan Calculator */
.loan-calculator {
  padding: 5rem 0;
  background: white;
}

.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.calculator-results {
  background: linear-gradient(135deg, #0a296b 0%, #1e3a8a 100%);
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calculator-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.calculator-results h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.result-item {
  margin-bottom: 1rem;
}

.result-label {
  display: block;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 2rem;
  font-weight: 700;
}

.calculator-inputs {
  padding: 2rem;
}

.calculator-inputs h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #374151;
}

.slider-container {
  position: relative;
  margin-bottom: 0.5rem;
}

.slider-container input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0a296b;
  cursor: pointer;
}

.slider-container input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0a296b;
  cursor: pointer;
  border: none;
}

.slider-value {
  text-align: center;
  margin-top: 0.5rem;
}

.slider-value span {
  font-weight: 700;
  color: #0a296b;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #64748b;
}

/* Slider styles */
.slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0a296b;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0a296b;
  cursor: pointer;
  border: none;
}

.section-wave {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.section-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
}

/* Services Section */
.services {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-icon.blue {
  background: rgba(59, 130, 246, 0.1);
}
.service-icon.green {
  background: rgba(34, 197, 94, 0.1);
}
.service-icon.purple {
  background: rgba(168, 85, 247, 0.1);
}
.service-icon.orange {
  background: rgba(249, 115, 22, 0.1);
}
.service-icon.red {
  background: rgba(239, 68, 68, 0.1);
}
.service-icon.indigo {
  background: rgba(99, 102, 241, 0.1);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.service-card p {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-link {
  color: #0a296b;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.service-link:hover {
  color: #1e3a8a;
}

.section-cta {
  text-align: center;
}

/* Stats Section */
.stats {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0a296b 0%, #1e3a8a 100%);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-item .stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 50%;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  opacity: 0.8;
  font-size: 1.1rem;
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 0;
  background: white;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.process-step {
  text-align: center;
  position: relative;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: #0a296b;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.step-icon {
  font-size: 3rem;
  margin: 2rem 0 1rem;
}

.process-step h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.process-step p {
  color: #64748b;
  line-height: 1.6;
}

/* Loan Types Tabs */
.loan-types {
  padding: 5rem 0;
}

.tabs-container {
  max-width: 1000px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  background: #f1f5f9;
  border-radius: 50px;
  padding: 8px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: #0a296b;
  color: white;
}

.tabs-content {
  position: relative;
}

.tab-panel {
  display: none;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

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

.tab-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.tab-text {
  padding: 3rem;
}

.tab-text h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.tab-text p {
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  padding: 0.5rem 0;
  color: #374151;
}

.tab-image {
  position: relative;
  padding: 2rem;
}

.tab-image img {
  width: 100%;
  border-radius: 15px;
}

.rate-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: #ffc800;
  color: #0a296b;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background: white;
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto 2rem;
  position: relative;
  min-height: 300px;
}

.testimonial {
  display: none;
  background: #f8fafc;
  padding: 3rem;
  border-radius: 20px;
  position: relative;
}

.testimonial.active {
  display: block;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: #0a296b;
  opacity: 0.3;
}

.testimonial-rating {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  font-weight: 700;
  color: #1e293b;
}

.testimonial-author p {
  color: #64748b;
  margin: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #0a296b;
  width: 30px;
  border-radius: 6px;
}

/* Why Choose Us */
.why-choose-us {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: #0a296b;
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: #64748b;
  transition: all 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: #64748b;
  line-height: 1.6;
}

/* Blog Preview */
.blog-preview {
  padding: 5rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #0a296b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-content {
  padding: 2rem;
}

.blog-date {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
  line-height: 1.4;
}

.blog-content p {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.blog-link {
  color: #0a296b;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-link:hover {
  color: #1e3a8a;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0a296b 0%, #1e3a8a 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Newsletter */
.newsletter {
  padding: 3rem 0;
  background: white;
  text-align: center;
}

.newsletter-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.newsletter-content p {
  color: #64748b;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
  border-color: #0a296b;
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffc800;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p {
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffc800;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
}

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

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .calculator-container {
    grid-template-columns: 1fr;
  }

  .tab-content-grid {
    grid-template-columns: 1fr;
  }

  .tab-image {
    order: -1;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
    max-width: 300px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .services-grid,
  .features-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tabs-nav {
    flex-direction: column;
    border-radius: 15px;
  }

  .tab-btn {
    border-radius: 10px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
button:focus {
  outline: 2px solid #0a296b;
  outline-offset: 2px;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive design */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .md\:grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .lg\:grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .lg\:grid-cols-4 {
    grid-template-columns: 1fr;
  }
}
