/* ================================
   ROOT VARIABLES
================================ */
:root {
    --primary: #1a237e;
    --secondary: #ff6f00;
    --accent: #00c853;
    --light: #f5f5f5;
    --dark: #212121;
    --gray: #757575;
    --card-bg: #ffffff;
    --header-bg: rgba(26, 35, 126, 0.95);
    --footer-bg: #0d1536;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #283593 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

h2 {
    display: block;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

/* ================================
   GLOBAL
================================ */
body {
    font-family: "Segoe UI", sans-serif;
    background-color: var(--light);
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================================
   HEADER
================================ */
header {
    position: sticky;
    top: 0;
    z-index: 1050;
    /* higher than carousel */
}

.navbar {
    background: #1a237ef2;
    padding: 15px 0;
}

.navbar .nav-link,
.navbar-brand {
    color: var(--light) !important;
}

.navbar .nav-link:hover {
    color: #ffeaa7 !important;
}

#menu li {
    list-style: none;
    margin-left: 20px;
}

#menu a {
    color: #fff;
    font-weight: 500;
}

.nav-cta {
    background: var(--accent);
    padding: 8px 16px;
    border-radius: 30px;
    color: #fff !important;
}


.btn-primary,
.nav-cta {
    background: var(--secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: #fff !important;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 77, 109, 0.3);
}

/* Hover */
.btn-primary:hover,
.nav-cta:hover {
    background: #ff9100;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 111, 0, 0.3);
}

/* Active */
.btn-primary:active {
    transform: scale(0.96);
}

/* Focus (accessibility) */
.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.4);
}

/* ================================
   STATUS BAR
================================ */
.status-bar {
    background: var(--primary-dark);
    padding: 10px;
}

.btn-check-status {
    color: #fff;
    font-weight: 600;
}

/* ================================
   CAROUSEL
================================ */
.carousel-inner img {
    border-radius: var(--radius);
    max-height: 450px;
    object-fit: cover;
}

/* ================================
   LOTTERY CARDS
================================ */
.lottery-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.lottery-card {
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(157, 125, 255, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(157, 125, 255, 0.2);
}

.lottery-card .card-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
}

.lottery-card .card-body {
    padding: 20px;
}

.winner-info {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.view-btn {
    display: inline-block;
    margin-top: 15px;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
}

/* ================================
   WELCOME SECTION
================================ */
.welcome-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/bg.jpg);
    max-width: 1200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 50px 30px;
    position: relative;
    margin: auto;
}

.welcome-card {
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    margin-right: 20px;
    flex: 1 1 0%;
    padding: 30px;
    border-left: 4px solid var(--secondary);
    background: rgba(26, 35, 126, 0.8);
    border-radius: 0px 10px 10px 0px;
    color: #fff;
}

.read-more-btn {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    background: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-image: initial;
}

/* ================================
   PERSONNEL
================================ */
.personnel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.person-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    height: 100%;
    /* IMPORTANT */
    display: flex;
    /* IMPORTANT */
    flex-direction: column;
    /* IMPORTANT */
    align-items: center;
    /* Center horizontally */
    justify-content: flex-start;
    /* Keep content top-aligned */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


.person-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--primary);
}

.person-card h5 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.img-placeholder {
    border-radius: var(--radius);
    margin-bottom: 10px;
}

/* ================================
   FEATURES
================================ */
.purple-feature-section {
    background: var(--primary);
    color: white;
    padding: 60px 5%;
    margin: 60px 0;
}


.feature-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

/* ================================
   FOOTER
================================ */
.dark-footer {
    background: var(--primary-dark);
    color: #ddd;
}

.footer-heading {
    color: #fff;
}

.footer-link {
    color: #bbb;
    display: block;
    margin-bottom: 8px;
}

.footer-link:hover {
    color: var(--secondary);
}

.social-icon {
    color: #fff;
    margin-right: 12px;
    font-size: 18px;
}

.floating-chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.section-title {
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
}

.section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 50px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-title h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.page-title p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

.contact-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.form-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-info {
    background: var(--gradient);
    color: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.info-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.info-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.contact-details {
    list-style: none;
    margin-bottom: 30px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-details i {
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
    color: var(--secondary);
}

.contact-details div {
    flex: 1;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

.map-container {
    margin-top: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.faq-section {
    margin-top: 60px;
}

.faq-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
}

.faq-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: var(--gray);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .page-title h1 {
        font-size: 2.3rem;
    }

    .contact-form,
    .contact-info {
        padding: 25px;
    }

    .form-title,
    .info-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .page-title h1 {
        font-size: 2rem;
    }

    .contact-form,
    .contact-info,
    .faq-container {
        padding: 20px;
    }
}

.terms-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

@media (max-width: 768px) {
    .terms-header {
        padding: 30px 20px;
    }

    .terms-header h1 {
        font-size: 2.3rem;
    }

    .terms-content {
        padding: 30px 20px;
    }

    .contact-details {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .terms-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .terms-list {
        margin-left: 10px;
    }

    .terms-list li {
        padding-left: 25px;
    }
}

.terms-header {
    background: var(--gradient);
    color: white;
    text-align: center;
}

/* Define the gradient color scheme */
.header-bar {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

/* Style for the main section background */
.terms-conditions-section {
    background-color: #f7f7f9;
    /* Light grey background */
    min-height: 100vh;
    /* Ensure it covers the full height */
}

/* Card styling to match the flat, white look */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}


/* General paragraph and list styling for light grey text */
.text-content {
    color: #5a6270 !important;
    /* Slightly darker than muted for readability */
    line-height: 1.6;
}

/* List item custom styling (using checkmark icons) */
.list-with-icons li {
    margin-bottom: 0.75rem;
}

/* Style the 'IMPORTANT' note block */
.important-note {
    background-color: #f0e6ff;
    /* Very light purple background */
    border-left: 5px solid #800080;
    /* Purple left border */
    padding: 1rem;
    margin-top: 1.5rem;
    color: #4b0082;
    font-size: 0.9rem;
}

.payment-content {
    grid-template-columns: 1fr;
}

.bank-details {
    margin-top: 30px;
}

.bank-info {
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.info-label {
    font-weight: 500;
    color: var(--gray);
}

.info-value {
    font-weight: 600;
    color: var(--primary);
    text-align: right;
}

a.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
}

.custom-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 500px;
    min-height: 200px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin: auto;
}

/* Full height slides */
.custom-slider .carousel-inner,
.custom-slider .carousel-item {
    height: 100%;
}

/* Image fitting */
.custom-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Caption styling */
.custom-slider .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    border-radius: 10px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .custom-slider {
        height: 25vh;
    }

    .carousel-caption {
        font-size: 14px;
    }
}

.winner-prize {
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.weekly-section {
    background: linear-gradient(45deg, rgba(0, 251, 228, 0.22) 0%, rgba(188, 189, 191, 0.32) 100%);
    padding: 50px 20px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.gallery-section {
    background: linear-gradient(135deg, #1f4037, #2c5364);
    border-radius: 24px;
}

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

.media-player audio {
    border-radius: 30px;
    background: #fff;
    padding: 8px;
}

.gallery-section img {
    object-fit: cover;
}

.how-to-play {
    background: #ffffff;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: #ff7a00;
    border-radius: 2px;
}

.play-card {
    background: #fff;
    padding: 40px 25px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.play-card .icon {
    color: #1f2a8a;
}

.play-card h5 {
    margin-bottom: 10px;
}

.play-card p {
    font-size: 15px;
}

.step-number {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 70px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.04);
    z-index: 0;
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 2rem;
    }
}

.check-status-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffb16c;
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    min-width: 220px;
}

.check-status-btn i {
    font-size: 18px;
}

/* Mobile & Tablet */
@media (max-width: 991px) {
    .person-card {
        width: 100%;
        /* remove fixed width */
        padding: 18px 12px;
    }

    .person-card img {
        width: 90px;
        height: 90px;
        margin-bottom: 12px;
    }

    .person-card h5 {
        font-size: 0.95rem;
    }

    .welcome-section {
        padding: 40px 20px;
        border-radius: 18px;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .person-card {
        padding: 15px 10px;
        border-radius: 14px;
    }

    .person-card img {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }

    .person-card h5 {
        font-size: 0.9rem;
    }

    .welcome-section {
        padding: 25px 15px;
        /* reduced padding */
        border-radius: 16px;
    }
}

footer {
    background: var(--footer-bg);
    color: white;
    padding: 60px 5% 30px;
    margin-top: 60px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-heading {
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

.offcanvas {
    background: var(--primary);
}

.offcanvas-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .offcanvas {
        background: var(--primary);
    }
}

.offcanvas a {
    color: #fff;
}

.offcanvas a:hover {
    color: #ffd700;
}

.modal-header {
    background: var(--gradient);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 15px;
}

.contact-support {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: var(--gradient);
    color: white;
    border-radius: var(--radius);
}

.support-info {
    flex-direction: column;
    gap: 15px;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-item i {
    font-size: 1.2rem;
    color: var(--secondary);
}

.lottery-card .card-header h3 {
    font-size: 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-title h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    color: #1a237e;
}

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

h3.fw-bold.mb-3 {
    color: #1a237e;
}