/* 
 * EventsAndJobs - Master Stylesheet
 * Professional design for AdSense compliance
 * Version 2.0 - Enhanced for better user experience
 */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    color: #2c3e50;
    line-height: 1.7;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,133.3C672,117,768,107,864,122.7C960,139,1056,181,1152,181.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-section h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 35px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.hero-cta {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    background: #f8f9fa;
}

/* === FEATURE SECTIONS === */
.features-section {
    background: #fff;
    padding: 70px 30px;
    margin: 50px 0;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    padding: 40px 25px;
    text-align: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    background: #fff;
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 25px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 18px;
    color: #2c3e50;
    font-weight: 700;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.8;
    font-size: 15px;
}

/* === CONTENT SECTIONS === */
.content-section {
    background: #fff;
    padding: 50px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.content-section h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.content-section h3 {
    font-size: 24px;
    color: #495057;
    margin: 30px 0 15px;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 15px;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    line-height: 1.7;
}

.content-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

/* === NAVBAR === */
.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #e9ecef;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-brand {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* === BREADCRUMB === */
.breadcrumb-container {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #3498db;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
}

/* === MAIN CONTAINER === */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: transparent;
}

/* === PAGE HEADER === */
.page-header {
    background: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.page-header h1 {
    font-size: 38px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
}

.page-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.page-header .subtitle {
    color: #6c757d;
    font-size: 18px;
    line-height: 1.6;
}

/* === EVENT CARD (DETAILED STYLE LIKE IMAGE) === */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    display: flex;
    gap: 20px;
    padding: 20px;
}

.event-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.event-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 18px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 8px;
    line-height: 1.4;
}

.event-title:hover {
    text-decoration: underline;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.event-meta .separator {
    color: #999;
}

.event-description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === LETTER NAVIGATION === */
.letter-navigation {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.letter-navigation h5 {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.letter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.letter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.letter-btn:hover {
    background: #f5f5f5;
    border-color: #3498db;
    color: #3498db;
}

.letter-btn.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* === CITY GRID === */
.city-grid {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.city-grid h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.city-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.city-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.city-item:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.city-name {
    font-size: 16px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 5px;
}

.city-name:hover {
    text-decoration: underline;
}

.city-location {
    color: #666;
    font-size: 14px;
}

/* === COUNTRY GRID === */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.country-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.country-card:hover {
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.country-flag {
    font-size: 48px;
    margin-bottom: 10px;
}

.country-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.country-desc {
    font-size: 13px;
    color: #999;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-back {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-back:hover {
    background: #e9ecef;
}

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* === ALERTS === */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

/* === NO RESULTS === */
.no-results {
    background: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-results h3 {
    color: #666;
    margin-bottom: 10px;
}

.no-results p {
    color: #999;
}

/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px 30px;
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #fff;
}

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

.footer-section a {
    color: #bdc3c7;
    font-size: 15px;
    line-height: 2.2;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding: 25px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
    font-size: 15px;
}

/* === STATS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin: 50px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.stat-label {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .main-container {
        padding: 20px 15px;
    }
    
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-section h1 {
        font-size: 36px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .features-section {
        padding: 40px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .event-image {
        width: 100%;
        height: 180px;
    }
    
    .letter-buttons {
        justify-content: center;
    }
    
    .city-list {
        grid-template-columns: 1fr;
    }
    
    .country-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .content-section {
        padding: 30px 20px;
    }
}

/* === LOADING === */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* === SEARCH RESULTS SECTION === */
.search-results-section {
    padding: 60px 20px;
    min-height: 500px;
}

.search-results-section .container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Google CSE Styling */
.gcse-searchresults-only {
    margin-top: 20px;
}

/* Custom CSE Overrides */
.gsc-control-cse {
    padding: 0 !important;
    border: none !important;
}

.gsc-result {
    border-color: #e0e0e0 !important;
    padding: 20px !important;
}

.gsc-thumbnail-inside,
.gsc-url-top {
    padding-left: 0 !important;
}

.gs-title {
    color: #667eea !important;
    font-weight: 600 !important;
}

.gs-title:hover {
    color: #764ba2 !important;
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-muted { color: #999; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.p-20 { padding: 20px; }
