/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Critical CSS - Above the fold styles */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
    color: #ffd700;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login, .btn-register {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-login {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-login:hover {
    background: white;
    color: #1e3c72;
}

.btn-register {
    background: #ffd700;
    color: #1e3c72;
}

.btn-register:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

/* Breadcrumb Styles */
.breadcrumb {
    background: #e9ecef;
    padding: 0.5rem 0;
}

.breadcrumb-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    list-style: none;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #1e3c72;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #ffd700;
    color: #1e3c72;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e3c72;
}

.hero-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    color: white;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.hero-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.hero-placeholder p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Main Content Styles */
.main-content {
    padding: 4rem 0;
}

.brand-intro, .platform-features, .registration-process, 
.advantages-security, .faq-section, .cta-section {
    margin-bottom: 4rem;
}

.brand-intro h2, .platform-features h2, .registration-process h2,
.advantages-security h2, .faq-section h2, .cta-section h2 {
    color: #1e3c72;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.brand-intro p, .registration-process p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #555;
}

.registration-process h3 {
    color: #2a5298;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Feature cards now only contain text content */

.feature-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.advantage-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #ffd700;
}

.advantage-item h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.advantage-item p {
    color: #666;
    line-height: 1.6;
}

/* FAQ Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-item h3 {
    background: #f8f9fa;
    padding: 1.5rem;
    margin: 0;
    color: #1e3c72;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-item h3:hover {
    background: #e9ecef;
}

.faq-item p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
    border-radius: 10px;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-large, .btn-secondary-large {
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-large {
    background: #ffd700;
    color: #1e3c72;
}

.btn-primary-large:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary-large {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary-large:hover {
    background: white;
    color: #1e3c72;
}

/* Footer Styles */
.footer {
    background: #1e3c72;
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid #2a5298;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons, .cta-buttons {
        justify-content: center;
    }
    
    .features-grid, .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-intro h2, .platform-features h2, .registration-process h2,
    .advantages-security h2, .faq-section h2, .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn-primary, .btn-secondary, .btn-primary-large, .btn-secondary-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus, button:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Page-specific styles */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 3rem;
}

.page-header h1 {
    color: #1e3c72;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0;
}

/* About Us specific styles */
.about-content, .privacy-content, .terms-content, .disclaimer-content, .support-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content h2, .privacy-content h2, .terms-content h2, .disclaimer-content h2, .support-content h2 {
    color: #1e3c72;
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 0.5rem;
}

.about-content h3, .privacy-content h3, .terms-content h3, .disclaimer-content h3, .support-content h3 {
    color: #2a5298;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
}

.about-content p, .privacy-content p, .terms-content p, .disclaimer-content p, .support-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

.about-content ul, .privacy-content ul, .terms-content ul, .disclaimer-content ul, .support-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.about-content li, .privacy-content li, .terms-content li, .disclaimer-content li, .support-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Values grid for About Us */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.value-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #ffd700;
}

.value-item h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Contact methods for Support */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-method {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-method h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* FAQ categories for Support */
.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.faq-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.faq-category h3 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 0.5rem;
}

.faq-item h4 {
    color: #2a5298;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}

/* Resources grid for Support */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.resource-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-5px);
}

.resource-item h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Support tips */
.support-tips {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid #ffd700;
}

.support-tips ul {
    margin-top: 1rem;
}

.support-tips li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* 404 Error Page Styles */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-content {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* 404 page now only contains text content - no images or icons */

.error-text h1 {
    color: #1e3c72;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.error-text h2 {
    color: #2a5298;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.helpful-links {
    margin: 3rem 0;
}

.helpful-links h3 {
    color: #1e3c72;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.help-link {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.help-link:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.help-link h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.help-link p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.search-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
}

.search-section h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 1rem auto 0 auto;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: #1e3c72;
}

.search-btn {
    padding: 0.8rem 1.5rem;
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #2a5298;
}

.contact-support {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 3rem 0;
}

.contact-support h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-support p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: #1e3c72;
    text-decoration: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
        color: #fff;
    }
    
    .btn-primary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}
