/* =========================================
   FOOTER1 COMPONENT CSS - OPTIMIZED
   Community HubLand - Original Footer with Background Image
   ========================================= */

/* ===== ROOT VARIABLES ===== */
:root {
    --org: #f26d21;
    --footer-bg: #33334C;
    --footer-border: #4A4B5F;
    --text-light: #A7AA9D;
    --h3-font-size: clamp(0.93rem, 1.2vw, 1.375rem);
    --font-catamaran: "Catamaran", sans-serif;
    --font-dm-sans: "DM Sans", sans-serif;
}

/* ===== GLOBAL RESETS & OVERRIDES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-dm-sans);
    color: #333;
    line-height: 1.6;
}

/* Override Bootstrap container max-width to prevent jumping */
@media (min-width: 768px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
}

/* ===== FOOTER MAIN ===== */
footer {
    padding: 230px 0 70px;
    background: url(images/footrer-bg.png) top center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

/* Blue background layer to fill white space at bottom */
footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(41rem, 25vw, 8rem);
    background: var(--footer-bg);
    z-index: -2;
    pointer-events: none;
}

/* Reduce blue layer height on larger screens */
@media screen and (min-width: 1000px) {
    footer::after {
        height: clamp(35rem, 22vw, 8rem);
    }
}

/* ===== FOOTER CONTENT ===== */
.footer_con {
    margin-top: clamp(1rem, 1.5vw, 1.5rem);
    display: flex;
    justify-content: space-between;
    gap: clamp(0.8rem, 1.2vw, 1.2rem);
    position: relative;
    z-index: 2;
}

/* ===== NEWSLETTER SUBSCRIPTION ===== */
.foot_subs {
    text-align: left;
}

.foot_subs img {
    width: clamp(10rem, 15vw, 14rem);
    margin-bottom: clamp(0.25rem, 0.5vw, 0.5rem);
}

.new_letter h4 {
    font-family: var(--font-catamaran);
    font-size: clamp(1rem, 1.2vw, 1.1875rem);
    font-weight: 500;
    margin-bottom: clamp(0.2rem, 0.3vw, 0.3125rem);
}

.new_letter p {
    font-family: var(--font-catamaran);
    font-size: clamp(0.75rem, 0.9vw, 0.875rem);
    font-weight: 300;
    margin-bottom: 0;
}

.foot_subs_form {
    display: flex;
    width: clamp(20rem, 25vw, 25rem);
    border-radius: clamp(0.2rem, 0.3vw, 0.3125rem);
    overflow: hidden;
}

.foot_subs_form input {
    height: clamp(2.8rem, 4vw, 2.2rem);
    background: #464666;
    border: none;
    font-family: var(--font-catamaran);
    color: var(--text-light);
    padding: 0 clamp(0.7rem, 1vw, 0.9375rem);
    font-size: clamp(0.75rem, 1vw, 0.875rem);
}

.foot_subs_form input::placeholder {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    color: var(--text-light);
    font-weight: 400;
}

.foot_subs_form button {
    background: var(--org);
    color: #fff;
    font-family: var(--font-catamaran);
    border: none;
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    height: clamp(2.8rem, 4vw, 2.2rem);
    padding: 0 clamp(0.7rem, 1vw, 0.875rem);
    cursor: pointer;
    transition: background 0.3s ease;
}

.foot_subs_form button:hover {
    background: #d95420;
}

/* ===== FOOTER ABOUT SECTION ===== */
.footer_about {
    flex: 0 0 39%;
    width: clamp(35%, 39vw, 39%);
    max-width: 39%;
}

.footer_about h3 {
    color: #fff;
    font-family: var(--font-catamaran);
    font-weight: 500;
    font-size: clamp(1rem, 1.2vw, 1.1875rem);
    margin-bottom: 0;
}

.foot_blg {
    display: flex;
    align-items: center;
    margin-top: clamp(0.8rem, 3.2vw, 1.2rem);
}

.foot_blg_img {
    flex: 0 0 26%;
    border-right: clamp(0.1rem, 0.15vw, 0.15rem) solid var(--footer-border);
}

.foot_blg_img img {
    width: 5rem;
    height: 5rem;
    max-width: none;
    max-height: none;
}

.foot_blg_con {
    flex: 0 0 74%;
    padding-left: clamp(0.8rem, 1.2vw, 1.2rem);
}

/* High specificity for h4 and p to override Bootstrap */
footer .footer_about .foot_blg .foot_blg_con h4 {
    font-family: var(--font-catamaran);
    font-size: clamp(0.85rem, 1.1vw, 1.2rem);
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.4rem;
}

footer .footer_about .foot_blg .foot_blg_con p {
    font-family: var(--font-catamaran);
    font-size: clamp(0.7rem, 0.9vw, 0.9rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ===== FOOTER LIST SECTION ===== */
.footer_list {
    flex: 1 1 30%;
    width: clamp(25%, 30vw, 30%);
    max-width: 30%;
    min-width: 25%;
    padding-left: 3rem;
}

.footer_list h3 {
    color: #fff;
    font-family: var(--font-catamaran);
    font-weight: 500;
    font-size: var(--h3-font-size);
    margin-bottom: 0;
}

.footer_list ul {
    padding: 0;
    margin-top: clamp(0.8rem, 1.2vw, 1.2rem);
}

.footer_list li {
    list-style: none;
    display: inline-block;
    width: clamp(34%, 49vw, 49%);
    margin-bottom: clamp(0.4rem, 0.6vw, 0.6rem);
}

.footer_list li a {
    text-decoration: none;
    color: #fff;
    font-family: var(--font-catamaran);
    font-weight: 400;
    font-size: clamp(0.8rem, 1vw, 1rem);
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
}

.footer_list li a:hover {
    padding-left: 5px;
    color: var(--org);
}

/* ===== FOOTER INFO SECTION ===== */
.footer_info {
    flex: 0 0 12%;
    width: clamp(15%, 12vw, 15%);
    max-width: 15%;
    min-width: 15%;
}

.footer_info h3 {
    color: #fff;
    font-family: var(--font-catamaran);
    font-weight: 500;
    font-size: var(--h3-font-size);
    margin-bottom: 0;
}

.footer_info ul {
    padding: 0;
    margin-top: clamp(0.8rem, 1.2vw, 1.2rem);
}

.footer_info li {
    list-style: none;
    display: block;
    margin-bottom: clamp(0.4rem, 0.6vw, 0.6rem);
}

.footer_info li a {
    text-decoration: none;
    color: #fff;
    font-family: var(--font-catamaran);
    font-weight: 400;
    font-size: clamp(0.8rem, 1vw, 1rem);
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
}

.footer_info li a:hover {
    padding-left: 5px;
    color: var(--org);
}

/* ===== COPYRIGHT SECTION ===== */
.copy_write {
    background: var(--footer-bg);
    padding: clamp(1rem, 1.5vw, 1.25rem) 0;
}

.copy_write ul {
    padding-bottom: clamp(1.2rem, 1.8vw, 1.5625rem);
    text-align: center;
    border-bottom: clamp(0.1rem, 0.15vw, 0.125rem) solid var(--footer-border);
    margin-bottom: 0;
}

.copy_write ul li {
    display: inline-block;
    list-style: none;
    padding: 0 clamp(1rem, 1.8vw, 1.4375rem);
    border-right: clamp(0.1rem, 0.15vw, 0.125rem) solid var(--footer-border);
}

.copy_write ul li:last-child {
    border: none;
}

.copy_write ul li a {
    text-decoration: none;
    color: #fff;
    font-family: var(--font-catamaran);
    font-weight: 300;
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.copy_write ul li a:hover {
    color: var(--org);
}

.copy_write p {
    margin: clamp(1.2rem, 1.8vw, 1.5625rem) 0 0;
    text-align: center;
    color: #fff;
    font-family: var(--font-catamaran);
    font-weight: 300;
    font-size: clamp(0.75rem, 1vw, 0.875rem);
}

.copy_write p a {
    color: #fff;
    font-family: var(--font-catamaran);
    font-weight: 300;
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    letter-spacing: 0.5px;
    text-decoration: none;
    margin-left: clamp(0.7rem, 1.2vw, 0.9375rem);
    transition: color 0.3s ease;
}

.copy_write p a:hover {
    color: var(--org);
}

/* ===== RESPONSIVE STYLES ===== */

/* Desktop Large (1200px+) */
@media screen and (min-width: 1200px) {
    footer {
        padding-top: 350px;
        background-size: cover;
        background-position: top center;
    }
    
    .footer_bottom_row {
        display: contents;
    }
    
    .footer_list {
        flex: 1 1 27%;
        width: clamp(22%, 27vw, 27%);
        max-width: 27%;
        padding-left: 3rem;
        margin-top: 0;
        display: block;
    }
    
    .footer_info {
        flex: 0 0 10%;
        width: clamp(12%, 10vw, 10%);
        max-width: 10%;
        min-width: 12%;
        display: block;
    }
}

/* Prevent footer_list from shifting left at 991px+ */
@media screen and (min-width: 991px) {
    .footer_list {
        margin-left: 0;
        margin-right: 0;
        flex: 1 1 28%;
        width: clamp(22%, 28vw, 28%);
        max-width: 28%;
        padding-left: 3rem;
    }
    
    .footer_info {
        margin-left: 0;
        margin-right: 0;
        flex: 0 0 11%;
        width: clamp(12%, 11vw, 11%);
        max-width: 11%;
        min-width: 12%;
    }
}

/* Tablet (768px to 1199px) */
@media screen and (max-width: 1199px) and (min-width: 768px) {
    footer {
        padding-top: 200px;
        background-size: 100% auto;
        background-position: top right;
    }
    
    .footer_bottom_row {
        display: contents;
    }
    
    .footer_con {
        flex-wrap: wrap;
    }
    
    .footer_about {
        flex: 0 0 48%;
    }
    
    .footer_list {
        flex: 0 0 0;
        padding-left: 3rem;
        margin-top: 0;
        display: block;
    }
    
    .footer_list li a {
        white-space: nowrap;
    }
    
    .footer_info {
        flex: 0 0 23%;
        display: block;
    }
    
    .footer_info:last-child {
        flex: 0 0 23%;
    }
}

/* Mobile (767px and below) */
@media screen and (max-width: 767px) {
    footer {
        background: var(--footer-bg);
        padding: 50px 0 20px;
    }
    
    .footer_con {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    
    .footer_about {
        margin-bottom: 20px;
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
    
    .footer_bottom_row {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 3px;
        align-items: flex-start;
        justify-content: space-between;
    }
    
    .footer_list {
        margin-top: 0;
        flex: 1;
        width: 42%;
        min-width: 42%;
        max-width: 42%;
        padding-left: 0;
        display: block;
    }
    
    .footer_list ul {
        display: grid;
        grid-template-columns: 1.5fr 1.2fr;
        gap: 3px;
        width: 100%;
    }
    
    .footer_list ul li a {
        display: block;
        white-space: nowrap;
        font-size: clamp(0.7rem, 2vw, 0.8rem);
    }
    
    .footer_list h3 {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }
    
    .footer_info {
        flex: 1;
        width: clamp(10%, 15%, 20%);
        min-width: 10%;
        max-width: 20%;
        display: block;
    }
    
    .footer_info h3 {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }
    
    .footer_info ul li a {
        font-size: clamp(0.7rem, 2vw, 0.8rem);
    }
    
    .footer_info:last-child {
        padding-left: 10px;
    }
    
    .foot_blg_con h4 {
        font-size: clamp(0.9rem, 1.2vw, 1.25rem);
    }
    
    .foot_blg_con p {
        font-size: clamp(0.75rem, 1vw, 0.95rem);
    }
    
    .foot_blg {
        margin-bottom: 30px;
    }
    
    .foot_blg:last-child {
        margin-bottom: 0;
    }
    
    .footer_info_row {
        display: contents;
    }
}

/* Hide footer_info_row wrapper on larger screens */
@media screen and (min-width: 768px) {
    .footer_info_row {
        display: contents;
    }
}

/* Extra small screens (423px and below) */
@media screen and (max-width: 423px) {
    .footer_info:first-child {
        min-width: 18%;
        width: 18%;
    }
    
    .footer_info:first-child h3 {
        white-space: nowrap;
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
    
    .footer_info:first-child ul li a {
        white-space: nowrap;
        font-size: clamp(0.65rem, 1.8vw, 0.8rem);
    }
    
    .footer_info:last-child {
        padding-left: 1.25rem;
    }
    
    .foot_blg {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        width: 100%;
        flex: 1;
    }
    
    .foot_blg_img {
        flex: 0 0 auto;
        width: auto;
    }
    
    .foot_blg_img img {
        width: 4rem;
        height: 4rem;
    }
    
    .foot_blg_con {
        flex: 1;
        width: auto;
    }
    
    .foot_subs_form {
        width: 100%;
        margin-top: 15px;
    }
    
    .foot_subs_form input {
        height: 40px;
        width: 100%;
    }
    
    .foot_subs_form button {
        height: 40px;
    }
    
    #pageFooter {
        margin-top: 50px;
    }
    
    .copy_write ul {
        padding-left: 0;
    }
    
    .copy_write ul li {
        padding: 0 10px;
    }
    
    
    .foot_blg_img {
        border-right: 3px solid var(--footer-border);
        padding-right: 15px;
        margin-bottom: 15px;
    }
    
    .foot_blg_con {
        padding-left: 0;
    }
}

/* Mobile Small (480px and below) */
@media screen and (max-width: 480px) {
    .footer_list li {
        width: 100%;
    }
    
    .copy_write ul li {
        display: block;
        border-right: none;
        border-bottom: 1px solid var(--footer-border);
        padding: 10px 0;
    }
    
    .copy_write ul li:last-child {
        border-bottom: none;
    }
    
    .copy_write ul {
        padding-bottom: 15px;
    }
}

/* Extra small screens (390px and below) */
@media screen and (max-width: 390px) {
    .footer_bottom_row {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer_list {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .footer_info_row {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 10px;
    }
    
    .footer_info {
        width: 50%;
        min-width: 50%;
        max-width: 50%;
    }
    
    .footer_list h3,
    .footer_info h3 {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
}