/* =========================================
   BASE & VARIABLES
========================================= */
:root {
    --primary-blue: #1c65a6;
    --secondary-blue: #2389d7;
    --accent-green: #4db848;
    --accent-green2: #8BC441;
    --dark-bg: #0b3356;
    --light-blue-bg: #eaf4fb;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-gray-medium: #676767;
    --event-past-bg: #f6f6f6;
    --text-gray: #666;
    --event-light-blue: #e8f4fd;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
}

p:has(+ p),
h3:has(+ h3),
h3:has(+ p),
p:has(+ h3) {
    margin-bottom: 1em;
}

p:has(+ h2) {
    margin-bottom: 2em;
}

ol,
ul {
    padding-left: 40px;
    padding-top: 20px;
}

ol>li,
ul>li {
    padding-bottom: 1rem;
}

hr.grouping {
    border: 4px solid var(--accent-green);
}

.form-divider {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 30px 0;
}

.separator {
    border-right: 1px solid #eeeeee;
}

fieldset {
    border: 1px solid var(--primary-blue);
    border-radius: 10px;
    padding: 20px;
}

fieldset legend {
    padding: 0 10px;
    color: var(--primary-blue);
    font-weight: bold;
    margin-left: 20px;
}

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

.section {
    padding: 40px 0;
}

.section+.section {
    padding-top: 0px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left !important;
}

.text-light {
    color: var(--text-light);
}

.align-center {
    align-items: center;
}

.not-mobile {
    display: block;
}

.py-40 {
    padding: 40px 0 !important;
}

.pb-40 {
    padding-bottom: 40px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.m-0 {
    margin: 0px !important;
}

.p-0 {
    padding: 0px !important;
}

.bg-light-blue {
    background-color: var(--light-blue-bg);
}

.bg-dark-blue {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: normal;
}

.subsection-title {
    text-align: center;
    color: var(--primary-blue);
    font-size: 1.6rem;
    margin: 20px 0;
}

/* Blog Post */
.post {
    margin: 0 0 59px;
}

.post .video-holder {
    margin: 0 18px 0 0;
    height: 100%;
    width: 58%;
}

.post .text-wrap {}

.post .meta-list {
    line-height: 14px;
    text-transform: uppercase;
    overflow: hidden;
    margin: 0 0 11px;
    padding: 0;
}

.post .meta-list li {
    float: left;
    margin-left: 10px;
    margin-bottom: 5px;
    list-style-type: none;
}

.post .meta-list li:first-child {
    margin-left: 0;
}

.post .text-wrap .user,
.post .text-wrap .share {
    margin-right: 7px;
    display: inline-block;
    vertical-align: top;
}

.post .text-wrap .user:before,
.post .text-wrap .share:before {
    content: "";
    background: url(/images/user.png) no-repeat;
    display: block;
    width: 13px;
    height: 14px;
}

.post .text-wrap .share:before {
    background: url(/images/share.png);
    width: 20px;
}

/* =========================================
   BUTTONS & BADGES
========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-green);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #3ca037;
}

.btn-secondary {
    background-color: var(--text-light);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.btn-outline-blue {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline-blue:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-full {
    width: 100%;
    text-align: center;
}

a.btn-full {
    display: block;
    text-decoration: none;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.badge-default {
    background-color: #f0f0f0;
    color: #555;
}

.badge-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.badge-secondary {
    background-color: #6c757d;
    color: var(--text-light);
}

.badge-success {
    background-color: var(--accent-green);
    color: var(--text-light);
}

.badge-info {
    background-color: #17a2b8;
    color: var(--text-light);
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-error {
    background-color: #dc3545;
    color: var(--text-light);
}

/* =========================================
   ALERTS
========================================= */
.alert {
    position: relative;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert a {
    font-weight: bold;
    color: inherit;
    text-decoration: underline;
}

.alert-primary {
    color: var(--primary-blue);
    background-color: var(--light-blue-bg);
    border-color: #b9daf3;
}

.alert-secondary {
    color: #383d41;
    background-color: #e2e3e5;
    border-color: #d6d8db;
}

.alert-success {
    color: #276323;
    background-color: #eef8ee;
    border-color: #c6e6c4;
}

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

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

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

/* =========================================
   HEADER & NAVIGATION
========================================= */
.sticky-header {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.top-header {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.header-container,
.top-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    height: 40px;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    height: 31px;
}

.header-actions a {
    color: var(--text-light);
}

.product-action {
    line-height: 1;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent-green);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.expandable-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.expandable-search-input {
    width: 0;
    opacity: 0;
    padding: 0;
    border: none;
    background: white;
    color: var(--text-light);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
    outline: none;
    border-radius: 6px;
}

.expandable-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.expandable-search-form.is-active .expandable-search-input {
    width: 160px;
    opacity: 1;
    padding: 5px 10px;
    margin-right: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-dark);
}

.expandable-search-form.is-active .expandable-search-input:focus {
    border-bottom-color: var(--text-light);
}

.expandable-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
}

/* Hidden on desktop */

/* Main Nav */
.main-nav {
    padding: 15px 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0px;
}

.main-nav>ul>li {
    position: relative;
    padding: 20px 0;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-blue);
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Dropdown */
.main-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border-top: 3px solid var(--primary-blue);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
}

.main-nav .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .dropdown li {
    padding: 0;
}

.main-nav .dropdown a {
    display: block;
    padding: 10px 20px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

.main-nav .dropdown a:hover {
    background-color: var(--light-blue-bg);
    color: var(--primary-blue);
}

/* =========================================
   HERO SECTIONS
========================================= */
.hero {
    position: relative;
    padding: 120px 0;
    color: var(--text-light);
    height: 500px;
    display: flex;
    align-items: center;
}

.hero .container {
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 51, 86, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Consolidated Hero Backgrounds */
.hero[class*="-hero"],
.hero.hero404,
.hero.simple-header,
.cta-blurb {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hero.home-hero {
    background-image: url(/images/certified-divorce-financial-analyst-cdfa.jpg);
}

.hero.overview-hero {
    background-image: url(/images/overview.jpg);
    background-position: top center;
}

.hero.pricing-hero {
    background-image: url(/images/pricing_tier.jpg);
}

.hero.enroll-hero {
    background-image: url(/images/enrollment.jpg);
}

.hero.faqs-hero {
    background-image: url(/images/faqs.jpg);
}

.hero.courses-hero {
    background-image: url(/images/courses.jpg);
}

.hero.resource-hero {
    background-image: url(/images/resource-publications.jpg);
    background-position: center bottom;
}

.hero.about-hero {
    background-image: url(/images/about_us.jpg);
}

.hero.team-hero {
    background-image: url(/images/our_team.jpg);
}

.hero.board-hero {
    background-image: url(/images/board.jpg);
}

.hero.ambassardors-hero {
    background-image: url(/images/ambassardors.jpg);
}

.hero.policies-hero {
    background-image: url(/images/policies_and_standards.jpg);
}

.hero.sponsors-hero {
    background-image: url(/images/sponsors.jpg);
}

.hero.events-hero {
    background-image: url(/images/cdfa_events_conferences.jpg);
}

.hero.contact-hero {
    background-image: url(/images/contact-idfa.jpg);
}

.hero.partner-hero {
    background-image: url(/images/CDFA-sponsor-bg.jpg);
}

.hero.parent-hero {
    background-image: url(/images/certitrek-hero.jpg);
}

.hero.podcast-hero {
    background-image: url(/images/podcast.jpg);
}

.hero.hero404 {
    background-image: url(/images/404.jpg);
}

.hero.simple-header {
    padding: 20px 0;
    height: 150px;
    background-image: url(/images/default-bg.jpg);
}

.hero.simple-header h1 {
    margin-bottom: 0px;
}

.cta-blurb {
    height: 300px;
    display: flex;
    justify-content: center;
    background-image: url(/images/get-ready-enroll.jpg);
    background-position: bottom center;
    background-color: black;
    color: white;
    position: relative;
}

.cta-blurb::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    background-color: rgba(7, 55, 99, 0.7);
    width: 100%;
    height: 100%;
    display: block;
}

.cta-blurb .container {
    width: 100%;
}

/* =========================================
   FORMS & INPUTS
========================================= */
.form-group {
    margin-bottom: 20px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.input-inline-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control,
.ce-search-module input[type="text"],
.ce-search-module input[type="date"],
.ce-search-module select {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control::placeholder,
.ce-search-module input[type="text"]::placeholder {
    color: #999;
}

.form-control:focus,
.ce-search-module input[type="text"]:focus,
.ce-search-module select:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(28, 101, 166, 0.1);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #f4f5f6;
    opacity: 1;
    cursor: not-allowed;
}

select.form-control,
.ce-search-module select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.checkbox-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.checkbox-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

/* CE Search Form Module */
.ce-search-module {
    background-color: #f4f5f6;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    font-family: var(--font-family);
}

.ce-search-module h2 {
    color: #0d385f;
    font-size: 1.8rem;
    margin: 0 0 25px 0;
}

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

.ce-search-module label {
    display: block;
    color: #222;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1rem;
}

.ce-search-module input[type="text"],
.ce-search-module input[type="date"],
.ce-search-module select {
    border-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ce-search-module .date-inputs {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.ce-search-module .date-field {
    display: flex;
    align-items: center;
    width: 48%;
}

.ce-search-module .date-field span {
    color: #666;
    margin-right: 10px;
    font-size: 0.95rem;
}

.ce-search-module .btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* Split Login */
.login-split {
    display: flex;
    min-height: calc(100vh - 130px);
    background-color: #ffffff;
}

.login-image-side {
    flex: 1;
    background-color: var(--light-blue-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 450px;
}

.login-form-wrapper h1 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin: 0 0 10px 0;
}

.login-form-wrapper p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

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

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

.login-form-group input[type="text"],
.login-form-group input[type="email"],
.login-form-group input[type="password"] {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.login-form-group input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(28, 101, 166, 0.1);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.login-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #555;
}

.login-options .forgot-password {
    font-weight: 500;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
    color: #555;
}

.login-footer a {
    font-weight: 600;
}

/* =========================================
   LAYOUTS & GRIDS
========================================= */
.grid-auto {
    display: grid;
    grid-auto-columns: 150px;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(5, auto);
    place-items: center;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 38% repeat(2, 1fr) 30%;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.sidebar-widget {
    background-color: var(--light-blue-bg);
    padding: 30px;
    border-radius: 8px;
}

.sidebar-widget h3 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.grid-profile {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin: 40px 0;
}

.grid-row,
.grid-row-left {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
}

.grid-row:nth-child(even) {
    grid-template-columns: 1fr auto;
}

.grid-row:nth-child(even)>div:first-child {
    order: 2;
}

.grid-row:nth-child(even)>div:last-child {
    order: 1;
}

.flex-half {
    display: flex;
    align-content: stretch;
    align-items: stretch;
    justify-content: start;
    flex-wrap: nowrap;
    height: 100%;
}

.flex-half div {
    height: 100%;
    flex-basis: 50%;
    flex-grow: 1;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flex-half div a {
    flex-grow: 0;
    margin-top: 10px;
    width: fit-content;
}

/* =========================================
   COMPONENTS (Cards, Accordions, Tables)
========================================= */

/* Consolidated Cards */
.member-card,
.package-card,
.cdfa-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card {
    border: 1px solid var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.package-card {
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.cdfa-card {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.member-card:hover,
.package-card:hover,
.cdfa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-img-placeholder,
.card-img-circle,
.team-profile {
    position: relative;
    background-size: cover;
    flex-shrink: 0;
}

.card-img-placeholder img,
.card-img-circle img,
.team-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-img-placeholder {
    height: 200px;
    width: 100%;
}

.member-card .card-img-placeholder {
    height: 46px;
}

.card-img-circle {
    width: auto;
    height: 100px;
}

.team-profile {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 8px solid var(--primary-blue);
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-meta .badge {
    background-color: #f0f0f0;
    color: #555;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.card-meta .badge.special {
    background-color: var(--accent-green);
    color: white;
}

.card-meta .price {
    color: var(--secondary-blue);
    font-weight: bold;
    font-size: 1.1rem;
}

.card-title {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1;
}

.icon-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.icon-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--secondary-blue);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Team specifics */
.team-name {
    margin: 0px;
}

p.team-position {
    font-style: italic;
    font-size: 1.1rem;
    color: #676767;
}

/* Ambassadors */
.ambassadors-section {
    padding: 60px 0;
}

.ambassador-cards-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.ambassador-card {
    display: flex;
    align-items: center;
    background-color: #E6F8FB;
    padding: 20px;
    border-radius: 8px;
    width: 450px;
    flex-shrink: 0;
}

.ambassador-card .card-content {
    margin-left: 0px;
    display: flex;
    flex-direction: column;
}

.ambassador-name {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 3px 0;
}

.ambassador-title {
    color: var(--text-gray-medium);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0px;
}

/* CDFA Cards */
.cdfa-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.cdfa-card-header {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.cdfa-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.cdfa-card-company {
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
}

.cdfa-card-body {
    flex-grow: 1;
    font-size: 0.95rem;
}

.cdfa-card-body p {
    margin-bottom: 15px;
    color: #444;
}

.cdfa-distance-badge {
    background-color: var(--light-blue-bg);
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

/* Event Cards */
.events-section {
    padding: 60px 0 80px 0;
}

.events-main-title {
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 40px;
}

.events-subtitle {
    color: var(--primary-blue);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: left;
    margin: 60px 0 30px 0;
}

.events-button-wrapper {
    margin-top: 50px;
}

a.event-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

a.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.event-card {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.event-details,
.event-card.past {
    padding: 25px;
}

.event-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.event-date,
.event-location,
.event-format {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 0px;
}

.event-date {
    margin-bottom: 15px;
}

.icon-accent-pin {
    color: var(--accent-green);
    margin-right: 8px;
    vertical-align: middle;
}

.upcoming-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.upcoming-events-grid .event-card:only-child {
    grid-column: 1 / -1;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.event-card.upcoming {
    display: flex;
    align-items: center;
    background-color: var(--event-light-blue);
}

.event-card.upcoming .event-title {
    color: var(--primary-blue);
}

.date-badge {
    background-color: var(--accent-green);
    color: var(--text-light);
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    margin-left: 20px;
}

.date-badge .month {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.date-badge .day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.past-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.event-card.past {
    background-color: var(--event-past-bg);
}

.event-card.past .event-title {
    color: var(--text-dark);
}

/* Sponsor Flip Cards */
.sponsor-cards .card {
    background-color: var(--text-light);
    border-radius: 20px;
    box-shadow: 0px 0px 10px 5px rgba(209, 209, 209, 0.25);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
}

.sponsor-cards .card .card-header img {
    max-width: 300px;
}

.sponsor-cards .card .card-header {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.sponsor-cards .card.flip-card {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    perspective: 1000px;
    height: 400px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: var(--text-light);
    border-radius: 20px;
    box-shadow: 0px 0px 10px 5px rgba(209, 209, 209, 0.25);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.flip-card-front {
    justify-content: center;
    align-items: center;
}

.flip-card-back {
    transform: rotateY(180deg);
    justify-content: flex-start;
    overflow-y: auto;
}

.flip-card-back::-webkit-scrollbar {
    width: 6px;
}

.flip-card-back::-webkit-scrollbar-thumb {
    background-color: var(--primary-blue);
    border-radius: 10px;
}

/* Filter Menus */
.packages-section {
    padding-top: 60px;
    padding-bottom: 80px;
}

.filter-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-bottom: 2px solid #ccc;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 10px 15px 10px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.filter-btn:disabled,
.filter-btn:hover:disabled {
    color: #666;
    cursor: text;
}

.filter-btn:hover {
    color: var(--primary-blue);
}

.filter-btn.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
}

/* Search Tabs */
.search-tabs-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #eaeaea;
}

.search-tabs-nav {
    display: flex;
    border-bottom: 2px solid #eaeaea;
    margin-bottom: 25px;
    gap: 20px;
}

.search-tab-btn {
    background: none;
    border: none;
    padding: 10px 15px 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
    border-bottom: 3px solid transparent;
    font-family: var(--font-family);
}

.search-tab-btn:hover {
    color: var(--primary-blue);
}

.search-tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--accent-green);
}

.search-tab-content {
    display: none;
}

.search-tab-content.active {
    display: block;
    animation: fadeInTab 0.4s ease;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-disclaimer {
    font-size: 0.85rem;
    color: #666;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-top: 25px;
    line-height: 1.5;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    font-weight: 500;
}

/* Accordions */
.faq-section {
    background-color: #ffffff;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.accordion-header {
    width: 100%;
    text-align: left;
    background-color: #ffffff;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 20px 25px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #fcfcfc;
}

.accordion-header .accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #f4f7f9;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.accordion-header .accordion-icon::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--accent-green);
    border-bottom: 2px solid var(--accent-green);
    transform: rotate(-45deg);
    transition: all 0.3s ease;
    margin-right: 3px;
}

.accordion-header.active .accordion-icon {
    background-color: var(--accent-green);
}

.accordion-header.active .accordion-icon::after {
    border-color: #ffffff;
    transform: rotate(45deg);
    margin-right: 0;
    margin-top: -3px;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #ffffff;
}

.accordion-inner {
    padding: 0 25px 25px 25px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.accordion-inner p,
.accordion-inner ul,
.accordion-inner ol {
    margin: 0 0 15px 0;
}

.accordion-inner ul,
.accordion-inner ol {
    padding-left: 20px;
}

.accordion-inner li {
    margin-bottom: 5px;
}

.accordion-inner p:last-child,
.accordion-inner ul:last-child,
.accordion-inner ol:last-child {
    margin-bottom: 0;
}

/* Tables */
.table-bordered {
    border-collapse: collapse;
}

.table-bordered tr td {
    border-bottom: 1px solid #eeeeee;
}

.table-responsive {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: var(--primary-blue);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-comparison {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.95rem;
}

.table-comparison th,
.table-comparison td {
    padding: 15px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.table-comparison th {
    font-weight: normal;
    color: var(--text-dark);
    padding: 25px 15px;
    background-color: transparent;
}

.table-comparison .feature-col {
    text-align: left;
    font-weight: 500;
    color: #444;
    padding-left: 25px;
}

.table-comparison tbody tr:nth-child(even) {
    background-color: #f6f6f6;
}

.highlight-col {
    background-color: rgba(77, 184, 72, 0.15);
}

th.highlight-col {
    background-color: rgba(77, 184, 72, 0.3);
    border-radius: 8px 8px 0 0;
}

.table-comparison td.highlight-col,
.table-comparison th.highlight-col {
    background-color: rgba(77, 184, 72, 0.15) !important;
    position: relative;
    z-index: 1;
}

.table-comparison th.highlight-col {
    border-radius: 12px 12px 0 0;
}

table.article-results td {
    padding-bottom: 20px;
}

/* Video Modals & Cards */
.video-card {
    cursor: pointer;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(11, 51, 86, 0.75);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.play-btn-overlay::after {
    content: '';
    display: block;
    box-sizing: border-box;
    position: relative;
    left: 3px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #ffffff;
}

.video-card:hover .play-btn-overlay {
    background-color: var(--accent-green);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-lightbox-overlay.is-active {
    display: flex;
    opacity: 1;
}

.video-lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 35px;
    cursor: pointer;
    line-height: 1;
}

.video-lightbox-close:hover {
    color: var(--accent-green);
}

.video-responsive-wrapper {
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Custom Icons */
.icon-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    font-size: 14px;
    font-weight: bold;
}

.icon-check::after {
    content: '\2714';
}

.icon-cross {
    font-size: 16px;
    color: #555;
}

.icon-cross::after {
    content: '\2716';
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.site-footer h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--accent-green2);
}

.site-footer ul {
    list-style: none;
}

.site-footer ul li {
    margin-bottom: 10px;
}

.site-footer ul a {
    color: #ccc;
    transition: color 0.3s;
}

.site-footer ul a:hover {
    color: var(--text-light);
}

.footer-menu {
    margin: 0px;
    padding: 0px;
}

.footer-menu li {
    padding-bottom: 0px !important;
}

.footer-menu li a {
    margin-bottom: 0px;
}

.footer-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
}

.footer-bottom {
    text-align: center;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

.footer-disclaimer {
    font-size: 0.8rem;
    font-style: italic;
    color: #aaa;
}

.footer-justify {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
    min-width: 400px;
}

.product-search .product-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.product-search .product-item img {
    max-height: 200px;
}

/* =========================================
   MODERN SLIDER
========================================= */
.modern-slider-wrapper {
    display: grid;
    width: 100%;
    position: relative;
    background-color: var(--dark-bg);
}

.modern-slide {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.modern-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.modern-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-nav {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background-color: var(--accent-green);
    border-color: #ffffff;
    transform: scale(1.1);
}

/* =========================================
   MEDIA QUERIES (Organized by Breakpoint)
========================================= */

@media (max-width: 992px) {
    .sidebar-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .upcoming-events-grid {
        grid-template-columns: 1fr;
    }

    .past-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ambassador-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .login-split {
        flex-direction: column;
    }

    .login-image-side {
        flex: none;
        min-height: 250px;
    }

    .login-form-side {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {

    /* General Grid & Footer Adjustments */
    .grid-4,
    .grid-2,
    .footer-grid,
    .form-row-2,
    .grid-row,
    .grid-row:nth-child(even),
    .past-events-grid {
        grid-template-columns: 1fr;
    }

    .grid-4,
    .grid-2,
    .footer-grid {
        gap: 30px;
    }

    .site-footer,
    .team-name.text-left,
    .grid-row,
    .grid-row:nth-child(even) {
        text-align: center;
    }

    .footer-col .footer-logo,
    .team-profile {
        margin: 0 auto 15px auto;
        display: block;
    }

    .team-profile {
        margin: 0 auto;
    }

    .footer-justify {
        min-width: 0;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* Header */
    .top-header-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 10px;
    }

    .top-header-container>div:first-child,
    .header-actions span,
    .not-mobile {
        display: none;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 15px;
        font-size: 0.9rem;
        width: 100%;
    }

    .header-container {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    /* Hamburger & Mobile Nav */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1005;
    }

    .mobile-menu-toggle .bar {
        width: 25px;
        height: 3px;
        background-color: var(--primary-blue);
        transition: all 0.3s ease;
        border-radius: 3px;
    }

    .mobile-menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 0;
        margin: 0;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        z-index: 1000;
    }

    .main-nav.active {
        display: block !important;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: left;
        gap: 0;
        margin: 0;
        padding: 0px;
    }

    .main-nav>ul>li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav>ul>li>a {
        display: flex;
        justify-content: space-between;
        padding: 15px 20px;
    }

    .main-nav .dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: #f8fbfd;
        padding: 0;
    }

    .main-nav .has-dropdown.active .dropdown {
        display: flex;
    }

    .main-nav .dropdown a {
        padding: 12px 20px 12px 40px;
        font-size: 0.95rem;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Grids & Halves */
    .flex-half {
        display: block;
        position: relative;
        background-position: right center;
        background-size: cover;
    }

    .flex-half div {
        height: 100%;
        flex-basis: 100%;
        flex-grow: 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px;
    }

    .grid-row:nth-child(even)>div:first-child {
        order: 1;
    }

    .grid-row:nth-child(even)>div:last-child {
        order: 2;
    }

    /* Slider */
    .slider-nav {
        bottom: 10px;
        gap: 8px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    /* Events */
    .events-main-title {
        font-size: 1.8rem;
    }

    .events-subtitle {
        font-size: 1.4rem;
        margin-top: 40px;
    }

    .date-badge {
        width: 90px;
        height: 90px;
    }

    .date-badge .day {
        font-size: 2.1rem;
    }

    /* CE Search Module */
    .ce-search-module {
        padding: 20px;
    }

    .ce-search-module .date-inputs {
        flex-direction: column;
        gap: 15px;
    }

    .ce-search-module .date-field {
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    .ambassador-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .card-img-circle {
        margin-bottom: 20px;
    }

    .card-content {
        margin-left: 0;
    }
}