/* General Styles & Reset */
:root {
    --primary-red: #CD0000; /* Simbu Red */
    --primary-black: #000000;
    --primary-gold: #FFD700; /* Gold */
    --secondary-brown: #8B4513;
    --secondary-cream: #F5F5DC;
    --secondary-grey: #808080;
    --text-color-dark: #333;
    --text-color-light: #f4f4f4;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: #f8f8f8;
}

main {
    margin-top: var(--header-height); /* Ensure content starts below fixed header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.light-bg {
    background-color: var(--secondary-cream);
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    color: var(--primary-black);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(1.8em, 4vw, 2.5em); /* Responsive font size */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-black);
}

.button {
    display: inline-block;
    background-color: var(--primary-red);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

.button:hover {
    background-color: var(--primary-black);
    transform: translateY(-2px);
    color: #fff;
}

/* Header */
#main-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

#main-header.sticky {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.header-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 70px;
}

.simbu-flag img {
    height: 65px;
    width: auto;
    border-radius: 1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.UPNG-logo img {
    height: 65px;
    width: auto;
    border-radius: 1px;
    box-shadow: none; /* Removed box-shadow */
}

#main-nav ul {
    list-style: none;
    display: flex;
}

#main-nav ul li {
    margin-left: 20px;
}

#main-nav ul li a {
    color: var(--primary-black);
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    padding-bottom: 5px;
}

#main-nav ul li a:hover,
#main-nav ul li a.active {
    color: var(--primary-red);
}

#main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

#main-nav ul li a:hover::after,
#main-nav ul li a.active::after {
    width: 100%;
}

.register-button {
    margin-left: 20px;
    background-color: var(--primary-red);
    color: #fff;
    padding: 10px 20px;
    border: 2px solid var(--primary-gold);
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-button:hover {
    background-color: var(--primary-black);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.register-button a {
    color: #fff;
    text-decoration: none;
    padding: 0;
    display: contents;
}

.register-button a:hover {
    color: #fff;
}

.menu-box {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--primary-black);
    transition: transform 0.3s ease;
}

/* Registration Hero Section */
#registration-hero {
    position: relative;
    height: 50vh; /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-black) 100%);
    color: #fff;
    text-align: center;
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.hero-overlay {
    position: relative;
    z-index: 10;
    background-color: transparent;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    max-width: 900px;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInSlideUp 1s forwards 0.5s;
}

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-overlay h1 {
    font-size: clamp(2.5em, 5vw, 4em);
    margin-bottom: 15px;
    color: var(--primary-gold);
    line-height: 1.2;
}

.hero-overlay p {
    font-size: clamp(1.1em, 2vw, 1.5em);
    margin-bottom: 0;
}

/* Membership Benefits Section */
#membership-benefits-section {
    background-color: var(--secondary-cream); /* Light background for contrast */
}

.benefits-list {
    list-style: none; /* Remove default bullet points */
    max-width: 800px; /* Constrain width for readability */
    margin: 0 auto; /* Center the list */
    padding: 0; /* Remove default padding */
}

.benefits-list li {
    background-color: #fff; /* White background for each item */
    padding: 15px 20px; /* Padding inside each list item */
    margin-bottom: 15px; /* Space between list items */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.05em;
    line-height: 1.6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefits-list li:last-child {
    margin-bottom: 0; /* No margin after the last item */
}

.benefits-list li:hover {
    transform: translateY(-3px); /* Slight lift on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefits-list li i {
    color: var(--primary-red);
    font-size: 1.5em;
    flex-shrink: 0; /* Prevent icon from shrinking */
    margin-top: 3px; /* Align icon better with text */
}

.benefits-list li strong {
    color: var(--primary-black);
}

/* Register Action Section */
#register-action-section {
    text-align: center;
}

.registration-button-container {
    background-color: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.registration-button-container h3 {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--primary-red);
    margin-bottom: 20px;
}

.registration-button-container p {
    font-size: 1.1em;
    color: var(--text-color-dark);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.register-here-button {
    padding: 15px 35px;
    font-size: 1.2em;
    border: 2px solid var(--primary-gold); /* Add a gold border */
}

.register-here-button i {
    margin-right: 10px;
}

/* Footer */
footer {
    background-color: var(--primary-black);
    color: var(--text-color-light);
    padding: 40px 0;
    text-align: center;
    font-size: 0.85em;
    border-top: 5px solid var(--primary-red);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    text-align: left;
}

.footer-links,
.footer-socials,
.footer-contact,
.footer-copyright {
    flex: 1;
    min-width: 200px;
    padding: 0 10px;
}

.footer-links h3,
.footer-socials h3,
.footer-contact h3,
.footer-copyright p:first-child {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 1.1em;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding-bottom: 5px;
}

.footer-links h3::after,
.footer-socials h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-color-light);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

.footer-socials a {
    color: var(--text-color-light);
    font-size: 1.6em;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    color: var(--primary-gold);
    transform: translateY(-3px);
}

.footer-contact p {
    margin-bottom: 10px;
    color: var(--text-color-light);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-red);
}

.footer-copyright {
    text-align: center;
    flex-basis: 100%;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer-copyright p {
    display: block; /* Ensure paragraphs break onto new lines */
    color: var(--text-color-light);
    margin-bottom: 5px;
}

.footer-copyright p:last-child {
    margin-bottom: 0; /* No bottom margin for the last paragraph */
}

.footer-copyright .developer-credit a {
    color: var(--primary-gold);
    font-weight: bold;
    white-space: nowrap; /* Prevent developer credit link from wrapping */
}

.footer-copyright .developer-credit a:hover {
    color: var(--primary-red);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    #main-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease-in-out;
    }

    #main-nav.active {
        max-height: 300px;
        border-top: 1px solid var(--primary-red);
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    #main-nav ul li {
        margin: 10px 0;
    }

    #main-nav ul li a {
        font-size: 1.1em;
        padding: 10px 20px;
        display: block;
        width: 100%;
        text-align: center;
    }

    .register-button {
        display: none;
    }

    .menu-box {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .header-content {
        padding: 0 15px;
    }

    .header-branding {
        flex-grow: 1;
        justify-content: flex-start;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links,
    .footer-socials,
    .footer-contact,
    .footer-copyright {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }

    .footer-socials a {
        margin: 0 10px;
    }

    .footer-links h3::after,
    .footer-socials h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Registration Hero section adjustments for tablets */
    #registration-hero {
        height: 45vh;
        padding-top: 0; /* Remove redundant padding */
    }
    .hero-overlay h1 {
        font-size: 2.5em;
    }
    .hero-overlay p {
        font-size: 1.2em;
    }

    /* Benefits list on tablets - already handled by non-grid/flex design */
    .benefits-list {
        max-width: 600px;
    }

    .registration-button-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2em;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Registration Hero section adjustments for mobile phones */
    #registration-hero {
        height: 35vh;
        padding-top: 0; /* Remove redundant padding */
    }
    .hero-overlay {
        padding: 20px;
    }
    .hero-overlay h1 {
        font-size: 2em;
        margin-bottom: 5px;
    }
    .hero-overlay p {
        font-size: 1em;
    }

    .header-branding {
        gap: 8px;
    }
    .logo img {
        height: 50px;
    }
    .simbu-flag img, .UPNG-logo img {
        height: 45px;
    }

    .benefits-list li {
        padding: 15px;
        font-size: 1em;
    }

    .registration-button-container {
        padding: 20px;
    }
    .registration-button-container h3 {
        font-size: 1.5em;
    }
    .registration-button-container p {
        font-size: 1em;
    }
    .register-here-button {
        padding: 12px 25px;
        font-size: 1em;
    }
}

/* Print Styles */
@media print {
    header, footer, .register-button, .menu-box {
        display: none !important;
    }
    body {
        background-color: #fff;
        color: #000;
        font-size: 12pt;
    }
    .container {
        max-width: none;
        padding: 0;
    }
    .section-padding {
        padding: 20px 0;
    }
    #registration-hero {
        background: none;
        color: #000;
        height: auto;
        padding-top: 0;
    }
    .hero-overlay {
        padding: 0;
        animation: none;
        opacity: 1;
        transform: none;
    }
    .benefits-list li, .registration-button-container {
        box-shadow: none;
        border: 1px solid #eee;
        page-break-inside: avoid;
        animation: none;
        opacity: 1;
        transform: none;
    }
    h1, h2, h3, h4 {
        color: #000;
    }
    h2::after {
        background-color: #000;
    }
}

.terms-conditions-button {
    background-color: var(--secondary-grey); /* A neutral color */
    color: #fff;
    border: 2px solid var(--secondary-grey);
    margin-top: 15px; /* Add some space above it */
}

.terms-conditions-button:hover {
    background-color: var(--text-color-dark);
    border-color: var(--text-color-dark);
}

/* Adjust button container for spacing if needed on smaller screens */
@media (max-width: 768px) {
    .registration-button-container .button {
        display: block; /* Make buttons stack on small screens */
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 15px; /* Space between stacked buttons */
    }
}