/* ==========================================================================
   BASE STYLES
   ========================================================================== */

body {
    font-family: 'Funnel Display Light', serif;
    background-color: #F5F6F2;
}

@font-face {
    font-family: 'Funnel Display Light';
    src: local('Funnel Display Light'), url('/Mods/YouRef/Front/Ui/Font/FunnelDisplay-VariableFont_wght.ttf') format('truetype');
    font-display: swap;
}

main, footer {
    padding-left: 0;
}

p {
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.6;
}

.even-section p {
    color: #F5F6F2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #000080;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-left: 0;
    word-break: break-word
}

.odd-section h2 {
    color: #000080;
}

.even-section h2 {
    color: #F5F6F2;
}

.btn {
    background-color: transparent;
    border-radius: 8px;
    text-transform: none;
    transition: all 0.3s ease;
    box-shadow: none;
}

.btn.blue-btn {
    color: #F5F6F2;
    border: 2px solid #F5F6F2;
}

.btn.blue-btn:hover {
    background-color: #F5F6F2;
    border: 2px solid #F5F6F2;
    color: #4267f6;
}

.btn.white-btn, .btn.search-filter {
    color: #4267f6;
    border: 2px solid #4267f6;
}

.btn.white-btn:hover, .btn.white-btn:focus, .btn.search-filter:hover, .btn.search-filter:focus {
    background-color: #4267f6;
    border: 2px solid #4267f6;
    color: #F5F6F2;
}

.sidenav {
    background-color: #F5F6F2;
}

.sidenav li a {
    color: #000080;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidenav li > a.btn.white-btn {
    background-color: #F5F6F2;
    color: #4267f6;
    border: 2px solid #4267f6;
    border-radius: 8px;
    text-transform: none;
    transition: all 0.3s ease;
    box-shadow: none;
    padding: 0;
    max-width: 80%;
}

.sidenav li > a.btn.white-btn:hover {
    background-color: #4267f6;
    color: white;
    border: 2px solid white;
}

.odd-section {
    background-color: #F5F6F2;
    padding: 80px 0;
    color: #000080;
}

.even-section {
    background-color: #4267F6;
    padding: 80px 0;
    color: #000080;
}

.card {
    border-radius: 8px;
}

/* ==========================================================================
   HEADER & NAVIGATION STYLES
   ========================================================================== */

nav {
    background-color: #F5F6F2;
    box-shadow: none;
    padding: 0 20%;
    height: 70px;
    line-height: 70px;
}

nav ul {
    background-color: #F5F6F2;
}

nav .nav-wrapper {
    margin-left: 0;
}

.navbar-fixed {
    height: 70px;
}

nav .brand-logo {
    max-width: 60%;
    height: 50px;
    margin-top: 9px;
    margin-left: 0;
    padding-left: 0 !important;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 120px;
}

nav ul a {
    color: #000080;
    font-weight: 500;
    text-transform: none;
    font-size: 1rem;
    padding: 0 15px;
}

nav ul a:hover {
    color: #F5F6F2 !important;
    background-color: #3D59FF !important;
}

nav .sidenav-trigger {
    float: right;
}

/* Mobile Menu Button */
.sidenav-trigger {
    color: #000080;
}

@media only screen and (max-width: 993px) {
    nav .brand-logo {
        left: 5%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

.container {
    width: 100%;
    max-width: 100%;
}

.youref-section-content {
    padding: 0 20%;
    width: 100%;
}

.equal-height {
    display: flex;
}

.row.equal-height > .col.equal-height {
    display: flex;
    flex-direction: column;
}

.youref-section-content > .row > .col {
    padding: 0 !important;
}

.sidenav-close:hover {
    background-color: #e0e0e0;
    color: #0DF8C8;
    transform: rotate(90deg);
}

/* ==========================================================================
   HERO SECTION STYLES
   ========================================================================== */
.hero-section {
    max-height: 600px;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
}

.hero-title {
    margin: 0 0 30px 0;
}

/* Diagonal Split Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.sports-image {
    width: 50%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    float: right;
}

.teal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0DF8C8;
}

.sports-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-text {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    max-width: 61%;
}

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

@media only screen and (min-width: 1500px) {
    nav {
        padding: 0 20%;
    }

    .youref-section-content {
        padding: 0 20%;
    }

    .teal-background {
        clip-path: polygon(0 0, 75% 0, 55% 100%, 0 100%);
    }

    .sports-background {
        clip-path: polygon(74% 0, 100% 0, 100% 100%, 55% 100%);
    }
}

@media only screen and (min-width: 900px) and (max-width: 1499px) {
    nav {
        padding: 0 10%;
    }

    .youref-section-content {
        padding: 0 10%;
    }

    .teal-background {
        clip-path: polygon(0 0, 75% 0, 55% 100%, 0 100%);
    }

    .sports-background {
        clip-path: polygon(74% 0, 100% 0, 100% 100%, 55% 100%);
    }
}

@media only screen and (max-width: 900px) {
    nav {
        padding: 0 5%;
    }

    .youref-section-content {
        padding: 0 5%;
    }

    .hero-text {
        max-width: 100%;
    }

    .teal-background {
        clip-path: none;
    }

    .sports-background {
        display: none;
        clip-path: none;
    }
}

/* ==========================================================================
   CONTENT SECTIONS STYLES
   ========================================================================== */

.news-header {
    margin-bottom: 50px;
}

.social-icons img {
    width: 40px;
    height: 40px;
}

/* Social Highlights Section */
.social-section {
    background-color: #f5f5f5;
    padding: 80px 0;
    margin: 20px 0;
}

.logo-variation {
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5%;
    max-height: 350px;
    height: 100%;
}

.logo-variation img {
    max-height: 300px;
    max-width: 100%;
}

.section-logo-image {
    margin: 3rem;
}

.logo-image-mono {
    background-color: #001c77;
}

.logo-image-word {
    background-color: #0DF8C8;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.footer {
    background-color: #000080;
    padding: 50px 0 0 0;
    color: #F5F6F2;
    margin: 20px 0 0 0;
}

.footer-column {
    margin-bottom: 30px;
}

.eu-logo-container {
    margin-bottom: 15px;
}

.eu-logo-image {
    width: 80%;
    height: auto;
    object-fit: contain;
}

.eu-text {
    color: #F5F6F2;
    font-size: 1rem;
    margin: 0;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5%;
    margin-bottom: 20px;
}

.social-icons-wrapped {
    flex-wrap: wrap;

}

.social-icon {
    background-color: #F5F6F2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2px;
}

.social-icon img {
    width: 40px;
    height: 40px;
}

.partners-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-links-title {
    display: block;
    color: #F5F6F2;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-item {
    margin-bottom: 8px;
}

.footer-links a {
    color: #F5F6F2;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0DF8C8;
}

.sub-footer {
    display: flex;
    justify-content: center;
}

.copyright {
    color: #F5F6F2;
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   PAGE-SPECIFIC STYLES
   ========================================================================== */

/* About Page Styles */
.breadcrumb-section {
    background-color: #4267F6;
    padding: 60px 0 40px 0;
    color: #F5F6F2;
}

.breadcrumb-text {
    font-size: 0.9rem;
    color: #F5F6F2;
}

.breadcrumb-text a {
    color: #F5F6F2;
    text-decoration: underline;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0 0 0;
    color: #0DF8C8;
    line-height: 1.1;
}

.content-section {
    background-color: #F5F6F2;
    padding: 60px 0 80px 0;
    min-height: calc(100vh - 200px);
}

/* ==========================================================================
   BLOG ARTICLE CARD STYLES
   ========================================================================== */

.blog-article {
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    overflow: hidden !important;
    position: relative !important;
}

.blog-article-cover {
    width: 100%;
}

.blog-article:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18) !important;
    border-color: #0DF8C8 !important;
}

.blog-article .card-image {
    height: 220px !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 16px 16px 0 0 !important;
}

.blog-article .card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.blog-article:hover .card-image img {
    transform: scale(1.05) !important;
}

.blog-article .card-content {
    padding: 24px !important;
    min-height: 195px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
}

.blog-article .card-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.4 !important;
    margin: 0 0 16px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.blog-article .card-tags {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.4em;
}

.blog-article .text-emphasis-style-2 {
    font-size: 0.9rem !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    margin: 0 !important;
    border-radius: 12px !important;
    align-self: flex-end !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.footer-social-section {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   PAGINATION STYLES
   ========================================================================== */

.dataset-pagination-footer {
    margin-top: 50px !important;
    text-align: center !important;
}

.dataset-pagination-footer table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.dataset-pagination-footer-cell {
    padding: 20px !important;
    background: transparent !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

span.left {
    display: none !important;
}

.data-table-page-select-arrow {
    display: none !important;
}

.right {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: center !important;
}

.data-table-page-select {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    color: #4267f6 !important;
    background: #F5F6F2 !important;
    border: 2px solid #4267f6 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.home-partners-logo {
    width: 7rem;
    height: 4rem;
    object-fit: contain;
    padding: 0.5rem;

}


.data-table-page-select:hover {
    background: #4267f6 !important;
    color: #F5F6F2 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.data-table-page-select.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: #f8f9fa !important;
    border-color: #e0e0e0 !important;
    color: #999 !important;
}

.data-table-page-select.disabled:hover {
    transform: none !important;
    background: #f8f9fa !important;
    color: #999 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.data-table-page-select.btn.main-color-bg {
    background: #4267f6 !important;
    color: #F5F6F2 !important;
    border-color: #4267f6 !important;
}

.data-table-page-select.btn.main-color-bg:hover {
    background: #4267f6 !important;
    color: #F5F6F2 !important;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.card-padding {
    padding: 8px !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.row {
    flex-wrap: wrap !important;
    margin: 0 !important;
}

.col.s12.m12.l4.xl4 {
    padding: 8px !important;
}

.clear-both {
    clear: both !important;
    width: 100% !important;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.partners-section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.partners-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 40px;
}

.partners-title {
    font-size: 3rem;
    font-weight: 700;
    color: #000080;
    margin: 0;
    flex-shrink: 0;
}

.partners-description {
    font-size: 1.1rem;
    color: #000080;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.partner-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    min-height: 200px;
    max-height: 400px;
    margin-left: 10%;
    margin-right: 10%;
}

.partner-logo-section {
    background-color: #000080;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.partner-logo {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

.partner-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.partner-info-section {
    background-color: #f5f5f5;
    padding: 40px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-info-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000080;
    margin: 0 0 8px 0;
}

.partner-info-role {
    font-size: 1rem;
    color: #000080;
    margin: 0 0 20px 0;
}

.equal-height > .row {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {

    .partners-title {
        font-size: 2.5rem;
    }

    .partners-description {
        font-size: 1rem;
    }

    .partner-logo-section {
        padding: 30px 20px;
    }

    .partner-info-section {
        padding: 30px 20px;
    }

    .partner-logo {
        width: 100px;
        height: 100px;
    }

    .logo-placeholder {
        font-size: 0.7rem;
    }
}

@media (max-width: 620px) {
    .partner-card {
        margin-right: 0;
        margin-left: 0;
    }

    .partners-social-icon {
        width: 30px;
        height: 30px;
    }

    .social-icons img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {


    .partners-section {
        padding: 40px 15px;
    }

    .partners-title {
        font-size: 2rem;
    }

    .partners-description {
        font-size: 0.95rem;
    }

    .partner-logo-section {
        padding: 25px 15px;
    }

    .partner-info-section {
        padding: 25px 15px;
    }

    .partner-info-name {
        font-size: 1.3rem;
    }

    .partner-logo {
        width: 80px;
        height: 80px;
    }

    .logo-placeholder {
        font-size: 0.6rem;
    }
}
