/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #2c3e50;
}

a {
    text-decoration: none;
    color: #3498db;
    transition: color 0.3s;
}

a:hover {
    color: #2980b9;
}

/* Header Styles */
header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #3498db;
}

.logo h1 {
    font-size: 2.2rem;
    color: #2c3e50;
}

.tagline {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 300;
}

/* Button Styles */
.btn-check, .btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-check {
    background-color: #3498db;
    color: white;
    min-width: 140px;
}

.btn-check:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

/* Form Styles */
.input-group {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin: 25px 0 15px;
}

.input-group i {
    padding: 0 20px;
    display: flex;
    align-items: center;
    color: #7f8c8d;
    background-color: #f8f9fa;
    font-size: 1.2rem;
}

.input-group input {
    flex: 1;
    padding: 18px 15px;
    border: none;
    font-size: 1rem;
    outline: none;
    background-color: white;
}

.form-note {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 30px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 50px;
    text-align: center;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.hero p {
    font-size: 1.1rem;
    color: #5a6c7d;
    max-width: 700px;
    margin: 0 auto 20px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.2rem;
    color: #3498db;
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.95rem;
    color: #7f8c8d;
}

/* Section Styles */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

/* Education Section */
.education {
    margin-bottom: 60px;
}

.education-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.text-content h3 {
    font-size: 1.3rem;
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-content h3 i {
    color: #3498db;
}

.text-content ul, .text-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.text-content li {
    margin-bottom: 10px;
    color: #5a6c7d;
}

.video-content h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-content h3 i {
    color: #e74c3c;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-note {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Features Section */
.features {
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature p {
    color: #5a6c7d;
    font-size: 0.95rem;
}

/* Result Page Styles */
.back-link {
    margin-bottom: 30px;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-weight: 500;
}

.back-link a:hover {
    color: #3498db;
}

.result-section {
    margin-bottom: 60px;
}

.url-display {
    margin-bottom: 30px;
}

.url-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 10px;
    word-break: break-all;
}

.url-box i {
    color: #3498db;
    font-size: 1.2rem;
}

.result-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

.result-header h3 {
    margin: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #7f8c8d; /* Default gray */
}

.status-text {
    font-weight: 500;
    font-size: 1.1rem;
}

.result-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 30px;
    gap: 30px;
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.result-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label {
    font-weight: 500;
    color: #5a6c7d;
}

.detail-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Status Colors */
.status-safe .status-dot {
    background-color: #2ecc71;
}

.status-safe .status-text {
    color: #2ecc71;
}

.status-safe .result-icon {
    color: #2ecc71;
}

.status-warning .status-dot {
    background-color: #f39c12;
}

.status-warning .status-text {
    color: #f39c12;
}

.status-warning .result-icon {
    color: #f39c12;
}

.status-danger .status-dot {
    background-color: #e74c3c;
}

.status-danger .status-text {
    color: #e74c3c;
}

.status-danger .result-icon {
    color: #e74c3c;
}

.status-error .status-dot {
    background-color: #95a5a6;
}

.status-error .status-text {
    color: #95a5a6;
}

.status-error .result-icon {
    color: #95a5a6;
}

/* Status Explanation */
.status-explanation {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-dot-small {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.status-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.status-item.status-safe .status-dot-small {
    background-color: #2ecc71;
}

.status-item.status-warning .status-dot-small {
    background-color: #f39c12;
}

.status-item.status-danger .status-dot-small {
    background-color: #e74c3c;
}

.status-item.status-safe .status-info strong {
    color: #2ecc71;
}

.status-item.status-warning .status-info strong {
    color: #f39c12;
}

.status-item.status-danger .status-info strong {
    color: #e74c3c;
}

/* Tips Section */
.tips-section {
    margin-bottom: 40px;
}

.tips-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-section h3 i {
    color: #f1c40f;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.tip {
    padding: 25px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tip i {
    font-size: 1.8rem;
    color: #3498db;
    margin-bottom: 15px;
}

.tip h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tip p {
    color: #5a6c7d;
    font-size: 0.95rem;
}

/* Actions */
.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #eaeaea;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.85rem;
    margin-top: 10px;
    font-style: italic;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .education-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .result-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 20px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group i {
        padding: 15px;
        justify-content: center;
    }
    
    .btn-check {
        width: 100%;
        padding: 15px;
    }
    
    .actions {
        flex-direction: column;
    }
}