/* ===================================
   Draw List Lotto - Main Stylesheet
   Official Licensed Charity Raffle
   =================================== */

/* ========== CSS Variables ========== */
:root {
    --primary-color: #1a3a63;
    --secondary-color: #f5f5f5;
    --accent-color: #d8a928;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --border-radius: 10px;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    
    /* Fonts */
    --font-primary: 'Lora', serif;
    --font-secondary: 'Poppins', sans-serif;
}

/* ========== Global Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(180deg, #1a3a63 0%, #2c5282 15%, #f5f5f5 35%, #ffffff 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Age Restriction Banner ========== */
.age-banner {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid var(--primary-color);
}

.age-banner-text {
    margin: 0;
}

.age-banner-link {
    color: var(--primary-color);
    text-decoration: underline;
    margin-left: 10px;
    font-weight: 600;
}

.age-banner-link:hover {
    opacity: 0.8;
}

/* ========== Header ========== */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.site-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.site-tagline {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    font-style: italic;
}

/* Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
    position: fixed;
    top: 20px;
    right: 20px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ========== Hero Section ========== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5282 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: var(--shadow);
}

.hero-title {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-cta {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 20px;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.hero-subtext {
    font-size: 14px;
    font-style: italic;
    opacity: 0.9;
    margin-top: 15px;
}

/* ========== Content Sections ========== */
.content-section {
    background-color: var(--white);
    padding: 50px 0;
    margin-bottom: 40px;
}

.section-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 36px;
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.section-content p {
    margin-bottom: 20px;
}

.section-content ul,
.section-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.section-content li {
    margin-bottom: 12px;
}

/* ========== License Info Box ========== */
.license-info-box {
    background-color: var(--secondary-color);
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    margin: 40px 0;
    border-radius: var(--border-radius);
}

.license-badge {
    text-align: center;
    margin-bottom: 25px;
}

.license-badge-img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.license-info-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.license-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.license-item {
    display: flex;
    flex-direction: column;
}

.license-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 5px;
}

.license-value {
    font-size: 16px;
    color: var(--text-dark);
}

/* ========== CTA Banner ========== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color), #2a4a73);
    color: #fff;
    padding: 40px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 50px 0;
}

.cta-banner h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #fff;
}

.cta-banner p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #fff;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background-color: #f0c040;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #b88910;
    gap: 12px;
}

.card-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(3px);
}

/* ========== Cards / Grid ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5282 100%);
    border-radius: 50%;
    font-size: 32px;
    color: var(--white);
}

.card-icon-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--primary-color);
}

.card-icon-silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    color: var(--primary-color);
}

.card-icon-bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    color: var(--white);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
}

/* ========== Alert Boxes ========== */
.alert {
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 25px 0;
    border-left: 5px solid;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    word-break: break-word;
}

.alert > * {
    flex: 1 1 auto;
    min-width: 0;
}

.alert i {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    flex-basis: auto;
}

.alert-info {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #0d47a1;
}

.alert-info i {
    color: #2196f3;
}

.alert-warning {
    background-color: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.alert-warning i {
    color: #ff9800;
}

.alert-success {
    background-color: #e8f5e9;
    border-color: #4caf50;
    color: #1b5e20;
}

.alert-success i {
    color: #4caf50;
}

/* ========== Footer ========== */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

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

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 120px;
    height: auto;
}

.footer-about {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section h3 {
    color: var(--accent-color);
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.license-info p {
    margin-bottom: 8px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--white);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.age-restriction-footer {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(216, 169, 40, 0.2);
    border-radius: var(--border-radius);
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.copyright {
    margin-bottom: 15px;
}

.disclaimer-text {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.disclaimer-text a:hover {
    opacity: 0.8;
}

/* ========== Cookie Consent Banner ========== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

.cookie-consent.show {
    display: block;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
}

.cookie-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-accept {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.cookie-accept:hover {
    opacity: 0.9;
}

.cookie-decline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ========== Utility Classes ========== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.p-4 { padding: 40px; }

.strong {
    font-weight: 600;
}

.italic {
    font-style: italic;
}

/* ========== Content Images ========== */
.impact-image-wrapper,
.draw-ceremony-image-wrapper,
.winner-celebration-wrapper,
.responsible-gaming-image-wrapper,
.helpline-support-wrapper,
.privacy-security-wrapper,
.legal-documents-wrapper {
    width: 100%;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.impact-image,
.draw-ceremony-image,
.winner-celebration-image,
.responsible-gaming-image,
.helpline-support-image,
.privacy-security-image,
.legal-documents-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.impact-image,
.draw-ceremony-image {
    max-height: 400px;
}

/* FAQ Accordion Styles */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--text-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--heading-font);
    background-color: #f8f9fa;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question i:first-child {
    color: var(--accent-color);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.faq-question span {
    flex: 1;
}

.faq-arrow {
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #fafbfc;
}

.faq-answer p,
.faq-answer ul {
    padding: 0 25px 20px 65px;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.7;
}

.faq-answer ul {
    padding-left: 85px;
    padding-top: 10px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: #b88910;
    text-decoration: underline;
}

.faq-item.active .faq-question {
    background-color: #f8f9fa;
}

/* CTA Banner */
.cta-banner {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, var(--primary-color), #2a4a73);
    border-radius: 12px;
    color: #fff;
}

.cta-banner h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #f0c040;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(216, 169, 40, 0.4);
}

.winner-celebration-image {
    max-height: 450px;
}

.responsible-gaming-image,
.helpline-support-image {
    max-height: 350px;
}

.privacy-security-image,
.legal-documents-image {
    max-height: 300px;
}

/* About Page Styles */
.about-intro {
    text-align: center;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto 40px;
}

.about-hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 30px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), #b88910);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 30px;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: 0 0 0 4px var(--secondary-color);
}

.timeline-content h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-year {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: #f8f9fa;;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.value-card h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* Operation Flow */
.operation-flow {
    max-width: 900px;
    margin: 40px auto;
}

.operation-step {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--heading-font);
}

.step-content h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* Impact Stats */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-number {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Commitment Box */
.commitment-box {
    background: linear-gradient(135deg, var(--primary-color), #2a4a73);
    color: #fff;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
}

.commitment-box h2 {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.commitment-box > p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.commitment-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.commitment-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.commitment-list i {
    color: var(--accent-color);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    text-align: center;
    margin-top: -15px;
    margin-bottom: 30px;
    opacity: 0.8;
}
