/* Associations Page Styles */

.associations-hero {
    margin: 50px 0;
    padding: 30px 0;
    text-align: center;
}

.associations-hero h1 {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3rem;
    color: #000000;
    margin-bottom: 2rem;
}

.associations-hero p {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    color: #444;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.country-dropdown {
    background-color: rgba(203, 124, 87, 0.12);
    border: 2px solid #CB7C57;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.dropdown-header {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.dropdown-header:hover {
    background-color: rgba(203, 124, 87, 0.2);
}

.dropdown-title {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    color: #CB7C57;
    margin: 0;
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid #CB7C57;
    border-bottom: 2px solid #CB7C57;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.dropdown-arrow.open {
    transform: rotate(-135deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background-color: #fff;
}

.dropdown-content.open {
    max-height: 1000px;
}

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

.association-card {
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* Sri Lanka Cards */
#sri-lanka .association-card {
    background: linear-gradient(135deg, rgba(163, 177, 138, 0.2), rgba(167, 183, 83, 0.15));
    border: 2px solid var(--btn-radius-two);
}

#sri-lanka .card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--btn-radius-two), var(--btn-radius-one));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#sri-lanka .view-details-btn {
    background: linear-gradient(135deg, var(--btn-radius-two), var(--btn-radius-one));
}

#sri-lanka .view-details-btn:hover {
    background: linear-gradient(135deg, var(--btn-radius-one), var(--green-color));
}

/* Seychelles Cards */
#seychelles .association-card {
    background: linear-gradient(135deg, rgba(203, 124, 87, 0.15), rgba(241, 125, 90, 0.1));
    border: 2px solid var(--primary-color);
}

#seychelles .card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--feature-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#seychelles .view-details-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--feature-color));
}

#seychelles .view-details-btn:hover {
    background: linear-gradient(135deg, var(--feature-color), var(--red-color));
}

.card-icon i {
    font-size: 30px;
    color: white;
}

.card-title {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 10px;
}

.card-description {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.view-details-btn {
    background-color: #CB7C57;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-family: 'Minion Pro', serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

.view-details-btn:hover {
    background-color: #b56e4c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(203, 124, 87, 0.3);
    color: white;
    text-decoration: none;
}

/* Search Styles */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-input {
    border-radius: 25px 0 0 25px;
    border: 2px solid var(--primary-color);
    padding: 12px 20px;
    font-size: 1rem;
    width: 100%;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(203, 124, 87, 0.25);
}

.btn-search {
    background: linear-gradient(135deg, var(--primary-color), var(--feature-color));
    border: 2px solid var(--primary-color);
    border-radius: 0 25px 25px 0;
    color: white;
    padding: 12px 25px;
    font-weight: 600;
    white-space: nowrap;
}

.btn-search:hover {
    background: linear-gradient(135deg, var(--feature-color), var(--red-color));
    border-color: var(--feature-color);
    color: white;
}

/* Database Association Cards (Category Results) */
.associations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.associations-grid .association-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.associations-grid .association-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.placeholder-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--feature-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-location {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-signup {
    background: linear-gradient(135deg, var(--primary-color), var(--feature-color));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-signup:hover {
    background: linear-gradient(135deg, var(--feature-color), var(--red-color));
    color: white;
    transform: translateY(-2px);
}

.btn-details {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-details:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Search Results */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.search-results-grid .association-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-results-grid .association-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

/* Quiz CTA Section */
.quiz-cta-section {
    margin: 3rem 0;
}

.quiz-cta-container {
    background: rgba(163, 177, 138, 0.3);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
}

.quiz-cta-content {
    flex: 1;
    text-align: left;
}

.quiz-cta-content h2 {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.8rem;
    color: var(--black-color);
    margin-bottom: 0.5rem;
}

.quiz-cta-content p {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0;
}

.quiz-cta-button {
    flex-shrink: 0;
    margin-left: 2rem;
}

.quiz-cta-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--feature-color));
    color: white;
    border: none;
    border-radius: 30px;
    padding: 1rem 2rem;
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(203, 124, 87, 0.3);
}

.quiz-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(203, 124, 87, 0.4);
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .dropdown-header {
        padding: 15px 20px;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .associations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .search-container {
        padding: 0 1rem;
        width: 100%;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-input {
        border-radius: 25px 25px 0 0;
        padding: 15px 20px;
        font-size: 16px;
        margin-bottom: 0;
        min-height: 50px;
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
    }
    
    .btn-search {
        border-radius: 0 0 25px 25px;
        width: 100%;
        padding: 15px 25px;
        border-top: none;
    }
    
    .input-group {
        flex-direction: column;
        width: 100%;
        display: flex;
    }
    
    .quiz-cta-container {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .quiz-cta-content h2 {
        font-size: 1.5rem;
    }
    
    .quiz-cta-button {
        margin-left: 0;
        margin-top: 1rem;
    }
}