:root {
    --primary-color: #6a11cb; /* Deep Purple */
    --secondary-color: #2575fc; /* Bright Blue */
    --accent-color: #fcb045; /* Warm Orange/Yellow */
    --text-color: #333;
    --bg-color: #f8f8f8;
    --gradient: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    --gradient-light: linear-gradient(45deg, #a770ef, #cf8bf3, #fbc2eb); /* Softer gradient */
    --card-bg: #fff;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

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

header {
    background: var(--gradient);
    color: #fff;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--card-shadow);
}

.navbar {
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust logo size */
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.section {
    padding: 80px 0;
    text-align: center;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #fbf8ff;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-light);
    color: #fff;
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 80vh;
    position: relative;
    overflow: hidden; /* Hide potential overflow from hero image */
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

/* About Section */
.about-section {
    background-color: #fff;
}

.about-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.about-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Raffles Section */
.raffle-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.raffle-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.raffle-card img {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Cover the area without distorting */
}

.raffle-card h3 {
    font-size: 1.4em;
    margin: 20px 20px 10px 20px;
    color: var(--primary-color);
}

.raffle-card p {
    margin: 0 20px 10px 20px;
    font-size: 1em;
    color: var(--text-color);
}

.raffle-card button {
    display: block; /* Make button full width of card padding */
    width: calc(100% - 40px); /* Full width minus padding */
    margin: 10px 20px 20px 20px;
    text-align: center;
}

/* Prizes Section */
.prize-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.prize-gallery img {
    width: 100%;
    height: 200px; /* Fixed height */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.prize-gallery img:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact-icons {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.contact-icon {
    font-size: 2em;
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    text-align: left;
}

.contact-form-container h3 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fffefe;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.contact-form-container button {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    display: none; /* Hidden by default */
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.form-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Plans Section */
.plans-section {
    background: var(--gradient-light); /* Use a softer gradient background */
    color: var(--text-color); /* Default text color */
    padding: 80px 0;
}

.plans-section h2 {
    color: #fff; /* White color for title on gradient background */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.plans-section .section-subtitle {
    font-size: 1.1em;
    margin-top: -20px;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
}

.plan-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Flexible grid */
    gap: 30px;
    align-items: stretch; /* Ensure cards have the same height */
}

.plan-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space out content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.plan-card .plan-header {
    margin-bottom: 20px;
}

.plan-card .plan-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--primary-color); /* Default icon color */
}

.plan-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-color); /* Default title color */
}

/* Specific plan colors */
.plan-card.basic .plan-icon,
.plan-card.basic h3 {
    color: #4CAF50; /* Green for Basic */
}

.plan-card.intermediate .plan-icon,
.plan-card.intermediate h3 {
    color: #FFC107; /* Amber for Intermediate */
}

.plan-card.advanced .plan-icon,
.plan-card.advanced h3 {
    color: #F44336; /* Red for Advanced */
}

.plan-card .plan-price {
    margin-bottom: 30px;
}

.plan-card .plan-price .price {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--secondary-color); /* Default price color */
}

.plan-card .plan-price .duration {
    font-size: 1.2em;
    color: #666;
    margin-left: 5px;
}

/* Specific plan price colors */
.plan-card.basic .plan-price .price {
    color: #4CAF50; /* Green for Basic */
}
.plan-card.intermediate .plan-price .price {
    color: #FFC107; /* Amber for Intermediate */
}
.plan-card.advanced .plan-price .price {
    color: #F44336; /* Red for Advanced */
}

.plan-card .plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1; /* Allow feature list to grow and push button down */
}

.plan-card .plan-features li {
    margin-bottom: 12px;
    font-size: 1em;
    color: #555;
    display: flex;
    align-items: center;
}

.plan-card .plan-features li i {
    margin-right: 10px;
    color: #4CAF50; /* Green for check icons */
}

.plan-card .plan-features li.unavailable {
    color: #999; /* Gray out unavailable features */
    text-decoration: line-through; /* Add line-through */
}
.plan-card .plan-features li.unavailable i {
    color: #F44336; /* Red for cross icons */
}

.plan-card .btn.tertiary-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    text-decoration: none; /* Ensure it looks like a button, even if it's an anchor */
    color: #fff; /* White text */
    background-color: var(--primary-color); /* Default button color */
}

.plan-card.basic .btn.tertiary-btn {
    background-color: #4CAF50; /* Green button for Basic */
}
.plan-card.intermediate .btn.tertiary-btn {
    background-color: #FFC107; /* Amber button for Intermediate */
}
.plan-card.advanced .btn.tertiary-btn {
    background-color: #F44336; /* Red button for Advanced */
}

.plan-card .btn.tertiary-btn:hover {
    opacity: 0.9;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    flex-shrink: 0; /* Prevent footer from shrinking */
}