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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

/* Why Join DET Section */
.why-join-section {
    padding: 4rem 0;
}

.why-join-section .container { 
    max-width: none; 
} 

.tiles-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(375px, 1fr));
  justify-content: center;
  justify-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-description {
    font-size: 1.125rem;
    color: #666;
    max-width: 32rem;
    margin: 0 auto;
    font-family: 'Lora', serif;
}

/* Tiles Grid */
.tiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
}

@media (min-width: 768px) {
    .tiles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tile {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    height: 100%;
    min-width: 375px; 
    width: 100%;
}

.tile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
}

.tile-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tile-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tile-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: #f5f5f5;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.tile:hover .tile-icon {
    background: rgba(59, 130, 246, 0.1);
}

.emoji {
    font-size: 1.25rem;
}

.tile-info {
    flex: 1;
}

.tile-title {
    font-weight: 800;
    font-size: 1.125rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.tile-description {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    font-family: 'Lora', serif;
}

.tile-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary {
    background-color: #16a34a;
    color: white;
}

.btn-primary:hover:not(.disabled) {
    background-color: #15803d;
    color: #e5e7eb;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #16a34a;
    color: white;
}

.external-icon {
    width: 12px;
    height: 12px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.testimonials-section .container {
  max-width: none;       
  width: 100%;
  padding-left: 0; 
  padding-right: 0;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.control-btn {
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 0.375rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.control-btn:hover {
    background-color: #f5f5f5;
    border-color: #d1d5db;
}

.page-indicator {
    margin: 0 1rem;
    font-size: 0.875rem;
    color: #666;
}

/* Testimonials Grid */
/* .testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 400px;
} */

.testimonials-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(375px, 1fr));
  justify-content: center;
  justify-items: center;
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
    height: 100%;
    min-width: 375px; 
    width: 100%;
}

.testimonial-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    color: #666;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
    min-width: 0;
}

.testimonial-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.testimonial-details {
    flex: 1;
    min-width: 0;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-title,
.testimonial-company {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.linkedin-link {
    flex-shrink: 0;
    color: #3b82f6;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.linkedin-link:hover {
    color: #2563eb;
    background-color: #f5f5f5;
}

.testimonial-text {
    flex: 1;
    font-family: 'Lora', serif;
    font-size: 0.875rem;
    color: #1a1a1a;
    line-height: 1.6;
    font-style: italic;
}

/* Page Dots */
.page-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.page-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: #e5e5e5;
}

.page-dot.active {
    background-color: #3b82f6;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .why-join-section,
    .testimonials-section {
        padding: 2rem 0;
    }
    
    .tile {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    .testimonial-avatar {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }
}
