/* ===== FONT IMPORTS ===== */
@font-face {
    font-family: 'Phosphate';
    src: url(../../final/resources/fonts/phosphate_pro_solid_fixed.otf) format('opentype');
}
  
@font-face {
    font-family: 'Phosphate Inline';
    src: url(../../final/resources/fonts/phosphate_pro_inline_fixed.otf) format('opentype');
}

/* ===== ROOT VARIABLES ===== */
:root {
    /* Color Variables */
    --clr-yellow: #FDC010;
    --clr-red:    #E42D26;
    --clr-cyan:   #2FBEC2;

    /* Brightness and Contrast Modifiers */
    --bright: brightness(115%);
    --dark: brightness(85%);
    --extra-dark: brightness(60%);
    --high-contrast: contrast(150%);

    /* Font Families */
    --font-display: 'Phosphate', sans-serif;
    --font-inline: 'Phosphate Inline', sans-serif;
    --font-body: Arial, sans-serif;
    --font-alt: Verdana, sans-serif;
    --font-serif: 'Bookman Old Style', serif;
}

/* ===== TEXT COLORS ===== */
.txt_yellow { color: var(--clr-yellow); }
.txt_red    { color: var(--clr-red); }
.txt_cyan   { color: var(--clr-cyan); }

/* ===== TEXT ON COLORED BACKGROUNDS ===== */
.txt_o_yellow { color: black;  background-color: var(--clr-yellow); }
.txt_o_red    { color: white;  background-color: var(--clr-red); }
.txt_o_cyan   { color: black;  background-color: var(--clr-cyan); }

/* ===== BACKGROUND COLORS ===== */
.bg_yellow { background-color: var(--clr-yellow); }
.bg_red    { background-color: var(--clr-red); }
.bg_cyan   { background-color: var(--clr-cyan); }

/* ===== LIGHT / DARK MODIFIERS ===== */
.bg_l_yellow { background-color: var(--clr-yellow); filter: var(--bright); }
.bg_l_red    { background-color: var(--clr-red);    filter: var(--bright); }
.bg_l_cyan   { background-color: var(--clr-cyan);   filter: var(--bright); }
.bg_d_yellow { background-color: var(--clr-yellow); filter: var(--dark); }
.bg_d_red    { background-color: var(--clr-red);    filter: var(--dark); }
.bg_d_cyan   { background-color: var(--clr-cyan);   filter: var(--dark); }

/* ===== HIGH CONTRAST MODIFIERS ===== */
.bg_x_yellow { background-color: var(--clr-yellow); filter: var(--high-contrast); }
.bg_x_red    { background-color: var(--clr-red);    filter: var(--high-contrast); }
.bg_x_cyan   { background-color: var(--clr-cyan);   filter: var(--high-contrast); }

/* ===== FONT STYLES ===== */
.font_display  { font-family: var(--font-display); }
.font_inline   { font-family: var(--font-inline); }
.font_body     { font-family: var(--font-body); }
.font_alt      { font-family: var(--font-alt); }
.font_serif    { font-family: var(--font-serif); }

/* ===== UNIVERSAL BUTTON STYLING ===== */
/* Sets the button border radius and allows for child positioning */
.universal_button {
    border-radius: 0.4em;
    position: relative;
}

/* Sets the hover effect for the button */
.universal_button a:hover {
    transform: translateY(-3px);
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    transition: ease 0.5s;
    background-color: #C22620;
}

/* Sets the link styling for the button */
.universal_button a {
    text-decoration: none;
    font-weight: bold;
    border-radius: 0.4em;
    text-align: center;
    z-index: 2;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== LOGO STYLING ===== */
.logo {
    max-height: 15vh;
    margin-left: 30px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Content logo for specific pages */
#content_logo {
    max-width: 300px;
    text-align: center;
    padding-top: 30px;
    display: none; /* Hide on small screens by default */
}

/* ===== NAVBAR STYLING ===== */
/* Sets navbar item sizing and spacing */
.nav_list {
    list-style: none;
    padding: 0;
    font-size: 1.5em;
}

/* Adds border-radius to navbar items */
.nav_list li {
    border-radius: 0.5em;
}

/* Adds hover effect to the navbar items */
.nav_list li:hover {
    filter: var(--dark);
}

/* Adds a shadow to the navbar */
.navbar {
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

/* Navbar toggler */
.navbar_toggle_icon {
    display: inline-block;
    cursor: pointer;
}

/* Three lines for the hamburger icon */
.menu_bar1, .menu_bar2, .menu_bar3 {
    width: 35px;
    height: 5px;
    margin: 6px 0;
    transition: 0.4s;
}

/* Translates the lines to form an X when clicked */
.menu_toggler .menu_bar1 {
    transform: translate(0, 11px) rotate(-45deg);
}

/* Hides the middle line to form an X */
.menu_toggler .menu_bar2 {
    opacity: 0;
}

/* Translates the lines to form an X when clicked */
.menu_toggler .menu_bar3 {
    transform: translate(0, -11px) rotate(45deg);
}

/* Removes the border from the toggler button */
.navbar-toggler {
    border: none !important;
}

/* Removes the focus outline from the toggler button */
.navbar-toggler:focus, 
.navbar-toggler:active, 
.navbar-toggler:focus-visible {
    box-shadow: none;
}
    
/* ===== FOOTER STYLING ===== */
/* Footer container styling */
.footer {
    padding: 40px 0 20px;
    background-color: #222;
    color: #fff;
    position: relative;
}

/* Red top border for the footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--clr-red);
}

/* Footer section headings */
.footer h5 {
    margin-bottom: 20px;
    color: var(--clr-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

/* Cyan underline for footer headings */
.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--clr-cyan);
}

/* Footer links styling */
.footer a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: #fff;
}

/* Hover effect for footer links */
.footer a:hover {
    color: var(--clr-cyan);
}

/* Footer navigation container */
.footer .footer-nav {
    display: flex;
    flex-wrap: wrap;
}

/* Footer navigation links */
.footer .footer-nav a {
    flex: 0 0 100%;
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

/* Adds a decorative arrow before each footer link */
.footer .footer-nav a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--clr-cyan);
}

/* Contact information icons */
.footer .contact-info i {
    color: var(--clr-cyan);
    width: 20px;
    margin-right: 8px;
    text-align: center;
}

/* Committee member container */
.footer .committee-member {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Removes the border for the last committee member */
.footer .committee-member:last-child {
    border-bottom: none;
}

/* Role styling for committee members */
.footer .committee-member .role {
    color: var(--clr-cyan);
    font-weight: bold;
    margin-bottom: 0;
}

/* Name styling for committee members */
.footer .committee-member .name {
    margin-bottom: 0;
}

/* Email styling for committee members */
.footer .committee-member .email {
    font-size: 0.9em;
}

/* Social media icons container */
.footer .social-icons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* Individual social media icons */
.footer .social-icons a {
    display: inline-flex; /* Aligns items horizontally */
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Hover effect for social media icons */
.footer .social-icons a:hover {
    transform: translateY(-3px);
}

/* Footer bottom section */
.footer .footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9em;
}

/* ===== SECTION TAG HIGHLIGHTING ===== */
@keyframes flash-highlight {
    0% {
        background-color: #ffff99;
        box-shadow: 0 0 10px #ffcc00;
    }
    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

#portal_button:target {
    animation: flash-highlight 3s ease-out forwards;
}

/* ===== INDEX PAGE STYLING ===== */
/* Hero Section */
#index_hero {
    background-image: url(../../final/resources/images_optimised/mens_korero.jpg);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    position: relative;
}

/* Adds overlay to hero image */
#index_hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Hero image caption */
#index_hero_caption {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    color: #fff;
    z-index: 2;
    font-size: 3em;
    width: 85%;
    transform: translate(-50%, -50%);
}

/* About Section */
#index_section_1_content {
    border-bottom: 5px solid var(--clr-red);
}

/* Portal Section */
#index_portal_image_section {
    background-image: url(../../final/resources/images_optimised/mens_race_group.jpg);
    min-height: 35vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    position: relative;
}

/* Adds overlay to portal image */
#index_portal_image_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Portal image caption */
#index_portal_image_section_caption {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    color: #fff;
    z-index: 2;
    font-size: 3em;
    width: 85%;
    transform: translate(-50%, -50%);
}

/* Portal List */
#index_portal ul {
    list-style-type: none;
    padding-left: 20px;
}

/* Adds a checkmark before each list item */
#index_portal ul li::before {
    content: '\2713';
    font-weight: 900;
    font-size: 20px;
    color: var(--clr-red);
}

/* Sets the list item spacing and font weight */
#index_portal ul li {
    position: relative;
    padding: 8px 12px;
    margin: 8px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3rem;
    border-left: 4px solid var(--clr-red);
    break-inside: avoid;
}

/* Sets list heading font weight and spacing */
#index_portal h5 {
    font-weight: 600; 
    margin-bottom: 15px !important;
}

/* Sets the list item spacing and distrubtes evenly */
#portal_list {
    max-width: 1200px;
    justify-content: space-evenly;
}

/* ===== FEES PAGE STYLING ===== */
/* Container for the hero image section */
#fees_hero_image_section {
    overflow: hidden;
    position: relative;
}

/* Styling for the hero image */
#fees_hero_image {
    filter: var(--extra-dark);
}

/* Caption styling for the hero image section */
#fees_hero_image_section h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    color: #fff;
    z-index: 2;
    font-size: 3em;
    width: 85%;
    transform: translate(-50%, -50%);
}

/* Paragraph styling for the portal button section */
#portal_button p {
    max-width: 600px;
    margin: 1rem auto;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Icon styling within the fee table */
.fee-table i {
    font-size: 1.1rem;
}

/* Styling for images in the fees gallery */
.fees_gallery_image {
    height: 200px !important;
    object-fit: cover;
}

/* ===== MEMBERSHIP PAGE STYLING ===== */
/* Container for the hero image section */
#membership_hero_image_section {
    overflow: hidden;
    position: relative;
}

/* Styling for the hero image */
#membership_hero_image {
    filter: var(--extra-dark);
}

/* Caption styling for the hero image section */
#membership_hero_image_section h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    color: #fff;
    z-index: 2;
    font-size: 3em;
    width: 85%;
    transform: translate(-50%, -50%);
}

/* ===== ABOUT US PAGE STYLING ===== */
/* Hero Section */
#about_hero_image_section {
    overflow: hidden;
    position: relative;
}

/* Adds overlay to hero image */
#about_hero_image {
    filter: var(--extra-dark);
}

/* Hero image caption */
#about_hero_image_section h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    color: #fff;
    z-index: 2;
    font-size: 3em;
    width: 85%;
    transform: translate(-50%, -50%);
}

/* ===== HEALTH AND SAFETY PAGE STYLING ===== */
/* List Styling */
#list_personal_health ul {
    list-style-type: none;
    padding-left: 1.5rem;
    list-style-type: disc;
    margin-bottom: 0;
}
  
/*Health and Safety list styling */
#list_personal_health ul li {
    position: relative;
    padding: 8px 12px;
    margin: 8px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 80%;
    border-left: 4px solid var(--clr-red);
    break-inside: avoid;
    width: 100vw;
}

/*Styling for the first Health and Safety List */
#list_personal_health li {
    margin-bottom: 0.75rem;
    margin-left: 20px;
}

/*Check marks for the Health and Safety list */
#list_personal_health ul li::before {
    content: "✓";
    color: var(--clr-red);
    font-size: 20px;
    margin-right: 10px;
}
  
/*Padding on the left for the Health and Safety List */
#list_personal_health {
    padding-left: 60px;
}

/*Positioning for the drill list */
#list_drill ul {
    list-style-type: none;
    padding-left: 1.5rem;
    list-style-type: disc;
    margin-bottom: 0;
}
  
/*Styling for the drill list */
#list_drill ul li {
    position: relative;
    padding: 8px 12px;
    margin: 8px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 80%;
    border-left: 4px solid var(--clr-red);
    break-inside: avoid;
    width: 100vw;
}
  
/*Further margins for thbe drill list */
#list_drill li {
    margin-bottom: 0.75rem;
    margin-left: 20px;
}
  
/*Check list for the drill list */
#list_drill ul li::before {
    content: "✓";
    color: var(--clr-red);
    font-size: 20px;
    margin-right: 10px;
}
  
/*Padding for the Drill list */
#list_drill {
    padding-left: 60px;
}


/* Header styling */
header {
    margin-bottom: 0;
    padding-bottom: 0;
}
  
/* Hero image section */
#health_and_safety_hero_image_section {
    overflow: hidden;
    position: relative;
    margin-top: 0;
    padding-top: 0;
}
  
/*Filter for the Hero Image */
#health_and_safety_hero_image_section img {
    filter: var(--extra-dark);
}
  
/*Styling for the Health and Safety H2  hero image */
#health_and_safety_hero_image_section h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    color: #fff;
    z-index: 2;
    font-size: 3em;
    width: 85%;
    transform: translate(-50%, -50%);
    filter: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
  
/* Content Sections */
#health_and_safety_content {
    text-align: center;
}
  
/*Text align the center of the drill content */
#capsize_drill_content {
    text-align: center;
}
  
/*Sets the paragraph wdith for the page */
.paragraph_content_width {
    max-width: 800px;
    text-align: center;
    line-height: 1.6;
    align-content: center;
}
  
/*Positioning and padding for the header of the drill content */
#header_content_drill {
    position: relative;
    padding-top: 100px;
}
  
/*Divider line for the content drill header*/
#header_content_drill::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--clr-red);
}

/*Positioning and padding for the clothing header */
#header_content_clothing {
    position: relative;
    padding-top: 100px;
}
  
/*Red divider line for the header clothing */
#header_content_clothing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--clr-red);
}

/*Top margin for clothing */
#recommended_clothing {
    margin-top: 150px;
}


/* Image containers with padding and margins */
#img_container {
    margin-top: 100px;
    margin-left: -20px;
    padding-left: 0;
    padding-right: 30px;
}

#img_container2 {
    margin-left: -20px;
    padding-left: 0;
    padding-right: 30px;
}
  

/* ===== CONTACT US PAGE STYLING ===== */
/* Form Styling */
.form-label {
    margin-left: 13px;
}

/*Margins for the contact us form */
#contact_us_form {
    margin-top: 50px;
}

/*Margins for the contact us H3 */
#contact_us_form h3 {
    margin-bottom: 100px;
}


/* Contact Us Popup */
.contact_popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 30px;
    background-color: var(--clr-red);
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 1050;
    transition: background-color 0.3s ease;
}

/* Adds hover to contact popup button */
.contact_popup:hover {
    background-color: var(--clr-yellow);
    color: black;
    cursor: pointer;
    transition: background-color 0.3s ease;
    transition: color 0.3s ease;
}

/* Fix for scrollbar disappearing when modal is open */
body {
    padding-right: 0 !important;
    overflow-y: scroll !important;
}

/* Prevents content shift when modal opens */
.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* Sets spaciong for contact popup */
.popup_name {
    margin-left: 8px;
}

.popup_email a {
    margin-left: 8px;
}

/* Adds hover effect to the send message button */
.popup_button:hover {
    background-color: var(--clr-yellow);
    color: black;
    cursor: pointer;
    transition: background-color 0.3s ease;
    transition: color 0.3s ease;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Small devices (phones, less than 576px) */
@media (max-width: 576px) {
    .mb-5:last-of-type {
        margin-bottom: 1rem !important;
    }
    
    .alert {
        margin-top: 0.5rem;
    }
}

/* Mobile and small tablets */
@media (max-width: 718px) {
    .logo {
        max-height: 80px;
        margin-left: 0;
    }
}

/* Small to medium devices */
@media (min-width: 576px) {
    .footer .footer-nav a {
        flex: 0 0 50%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    #index_hero_caption {
        font-size: 4em;
        width: 75%;
    }
}

/* Medium to large devices */
@media (min-width: 771px) and (max-width: 991px) {
    #content_logo {
        display: block;
        text-align: center;
        margin: 0 auto;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Sets homepage portal section image to be at least 40vh */
    #index_portal_image_section {
        min-height: 40vh;
    }
    
    #content_logo {
        display: block;
        text-align: left;
        margin-left: 60px;
    }
    
    #health_and_safety_hero_image_section img {
        max-height: 600px;
        object-fit: cover;
    }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    #index_section_1_content {
        border-right: 5px solid var(--clr-red);
        border-bottom: 0;
        font-size: 1.1em;
    }
    
    /* Increase font size on larger screens */
    #index_portal {
        font-size: 1.1em;
    }
    
    /* Sets homepage list to 2 columns on larger screens */
    #index_portal ul {
        column-count: 2;
        column-gap: 5rem;
    }
    /* Adjusts list spacing on larger screens */
    #index_portal ul li:first-child {
        margin-top: 0;
    }
}
