:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4facfe;
    --warning-color: #43e97b;
    --danger-color: #fa709a;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
}

* {
    font-family: 'Kanit', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Navigation Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 0 0.2rem;
}

.navbar-nav .nav-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: transparent;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.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 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero.btn-primary {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    color: var(--primary-color);
    border: none;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-hero.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4);
}

.btn-hero.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-hero.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: white;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* Lottery Results Section */
.lottery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.lottery-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.lottery-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.lottery-number {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* News Section */
.news-section {
    padding: 100px 0;
    background: white;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.news-card .card-body {
    padding: 1.5rem;
}

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.news-title {
    font-weight: 600;
    margin: 0.5rem 0 1rem;
    color: var(--dark-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn-hero {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        margin: 0.3rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .feature-card {
        margin-bottom: 2rem;
    }
}

.text-navy {
    color: #001f3f !important;
}

.text-gold {
    color: #ffdf00 !important;
}

.text-darkpink {
    color: #ff1493 !important;
}

/* Enhanced Pagination Styles */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pagination .page-link:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.page-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: inline-block;
    margin-top: 0.5rem;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        margin: 0 1px;
    }
}

.lottery-results-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.results-header {
    color: white;
    margin-bottom: 3rem;
}

.results-title {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.results-date {
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.prize-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.prize-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.first-prize {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
}

.special-prize {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
}

.secondary-prize {
    background: linear-gradient(135deg, #4ECDC4, #44CFCB);
    color: white;
}

.additional-prize {
    background: linear-gradient(135deg, #A8E6CF, #7FCDCD);
    color: #333;
}

.prize-header h3,
.prize-header h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.prize-amount {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

.prize-number {
    font-size: 4rem;
    font-weight: 800;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3rem;
}

.prize-number.small {
    font-size: 3rem;
}

.prize-number.medium {
    font-size: 3.5rem;
}

.prize-number.tiny {
    font-size: 1.5rem;
    margin: 0.5rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    min-width: 120px;
}

.prize-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* gap: 1rem; */
}

.prize-numbers.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
}

.prize-structure .card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.prize-structure .card-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.prize-info h6 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.prize-info ul li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.results-actions {
    margin-top: 3rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .results-title {
        font-size: 2.2rem;
    }

    .results-date {
        font-size: 1.1rem;
        padding: 0.6rem 1.5rem;
    }

    .prize-number {
        font-size: 2.5rem;
    }

    .prize-number.small {
        font-size: 2rem;
    }

    .prize-number.medium {
        font-size: 2.2rem;
    }

    .prize-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .footer,
    .results-actions {
        display: none !important;
    }

    .lottery-results-section {
        background: white !important;
        color: black !important;
        padding: 20px 0 !important;
    }

    .prize-card {
        background: white !important;
        color: black !important;
        border: 2px solid #333 !important;
        box-shadow: none !important;
        margin-bottom: 20px !important;
    }

    .results-header {
        color: black !important;
    }
}