/* FAQ Hero Section */
.faq-hero {
    height: 60vh;
    background-image: url('Images/Nuwaraeliya\ 7.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.faq-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.faq-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.faq-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* FAQ Main Content */
.faq-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Search Bar */
.search-container {
    margin-bottom: 40px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 15px 20px;
    border:1px solid #ddd;;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s;
    padding-right: 50px;
}

.search-container input:focus {
    outline: none;
    border-color: var(--secondary-orange);
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.2);
}

.search-container button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary-teal);
    color: white;
    border: none;
    border-radius: 0%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-container button:hover {
    background: var(--secondary-orange);
}


/* ===== FAQ Categories - Full Solution ===== */
:root {
  --primary-teal: #1a6b84;;
  --secondary-orange:#e67e22;
}

/* Container */
.faq-categories-container {
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* Mobile First (all buttons visible) */
.faq-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.category-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  text-align: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}



.category-btn.active {
   background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}


.category-btn:hover:not(.active) {
    background: #f1f1f1;
}





/* Tablet (768px+) - Horizontal layout */
@media (min-width: 768px) {
  .faq-categories {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  
  .category-btn {
    width: auto;
    padding: 10px 20px;
    border-radius: 50px;
  }
}

/* Desktop (1024px+) - More spacing */
@media (min-width: 1024px) {
  .faq-categories {
    gap: 15px;
  }
}













/* FAQ Articles */
.faq-articles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.faq-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.faq-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-header {
    padding: 20px;
    background: var(--primary-teal);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.article-header i {
    transition: transform 0.3s;
}

.article-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.article-content-inner {
    padding: 20px 0;
}

.faq-article.active .article-content {
    max-height: 1000px;
    padding: 0 20px 20px;
}

.faq-article.active .article-header i {
    transform: rotate(180deg);
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ul, .article-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content th, .article-content td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.article-content th {
    background-color: var(--light-gray);
}

.article-content tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
}

.no-results i {
    font-size: 3rem;
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.no-results h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .faq-hero {
        height: 50vh;
        margin-top: 70px;
    }
    
    .faq-hero h1 {
        font-size: 2rem;
    }
    
    .faq-hero p {
        font-size: 1rem;
    }
}