/* =========================================================================
   IBROSS - DESIGN SYSTEM & STYLES
   ========================================================================= */

:root {
    --primary-blue: #0A3C6B;
    --primary-light: #205b92;
    --secondary-green: #ebab18;
    --secondary-dark: #c89319;
    --accent-gray: #7f8c8d;
    --text-dark: #2C3E50;
    --text-muted: #596a7b;
    --bg-white: #FFFFFF;
    --bg-light: #F4F7F9;
    --bg-dark: #122131;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-pill: 50px;
    --shadow-sm: 0 4px 6px rgba(10, 60, 107, 0.05);
    --shadow-md: 0 10px 20px rgba(10, 60, 107, 0.08);
    --shadow-lg: 0 20px 40px rgba(10, 60, 107, 0.12);
    --shadow-hover: 0 15px 35px rgba(10, 60, 107, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.5s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-green);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    margin-top: -8px;
}

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

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

.mt-8 {
    margin-top: 32px;
}

.mt-12 {
    margin-top: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--border-radius-pill);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

.btn i {
    margin-left: 8px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

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

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-text {
    font-weight: 600;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
}

.btn-text i {
    margin-left: 6px;
    transition: var(--transition);
}

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

.btn-text:hover i {
    transform: translateX(4px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.header.scrolled {
    background-color: var(--bg-white);
    height: 80px;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white);
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.header.scrolled .logo {
    color: var(--primary-blue);
}

.logo i {
    font-size: 1.75rem;
    margin-right: 10px;
    color: var(--secondary-green);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
    padding: 8px 0;
}

.header.scrolled .nav-link {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-green);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--bg-white);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--bg-white);
}

.header.scrolled .btn-outline {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

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

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.header.scrolled .mobile-menu-toggle {
    color: var(--primary-blue);
}

/* Hero */
.hero {
    height: 80vh;
    min-height: 600px;
    position: relative;
    background-color: var(--primary-blue);
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 10s ease;
}

.swiper-slide-active .slide-bg {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 60, 107, 0.9) 0%, rgba(10, 60, 107, 0.4) 60%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--bg-white);
    max-width: 800px;
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: var(--border-radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 4rem;
    color: var(--bg-white);
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
}

.swiper-slide .hero-content>* {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.swiper-slide-active .hero-content .hero-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.swiper-slide-active .hero-content .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.swiper-slide-active .hero-content .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.swiper-slide-active .hero-content .btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.hero-swiper .swiper-pagination-bullet {
    background-color: var(--bg-white);
    opacity: 0.5;
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
    transition: var(--transition);
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 5px;
    background-color: var(--secondary-green);
}

.hero-nav {
    color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
}

.hero-nav:hover {
    background-color: var(--secondary-green);
}

.hero-nav::after {
    font-size: 1.2rem;
}

/* News */
.news-swiper {
    padding-bottom: 50px;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.news-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.08);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary-green);
    color: var(--bg-white);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--primary-blue);
    min-height: 2.8em;
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-swiper .swiper-pagination-bullet {
    background-color: var(--primary-blue);
    opacity: 0.2;
}

.news-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--primary-blue);
}

.mobile-only-btn {
    display: none;
}

/* Publications */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pub-card {
    display: flex;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.pub-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.pub-cover {
    width: 110px;
    flex-shrink: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    aspect-ratio: 3/4;
}

.pub-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 60, 107, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-white);
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.pub-card:hover .pub-overlay {
    opacity: 1;
}

.pub-info {
    flex-grow: 1;
}

.pub-title {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.pub-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Associates */
.associates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.associate-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 140px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.associate-card img {
    max-height: 70px;
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition);
}

.associate-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.associate-card:hover img {
    filter: grayscale(0%) opacity(1);
}

.grid-small {
    grid-template-columns: repeat(4, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.associate-card.aspirant {
    height: 100px;
    padding: 20px;
}

.associate-card.aspirant img {
    max-height: 50px;
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Highlights */
.highlight-banners {
    padding: 0;
}

.banner-split {
    display: flex;
    width: 100%;
}

.split-card {
    flex: 1;
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: var(--bg-white);
    overflow: hidden;
}

.split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 60, 107, 0.7);
    z-index: 1;
    transition: var(--transition);
}

.split-card:hover .split-overlay {
    background-color: rgba(10, 60, 107, 0.85);
}

.split-content {
    position: relative;
    z-index: 2;
    max-width: 450px;
}

.split-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--secondary-green);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.split-content h2 {
    color: var(--bg-white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.split-content p {
    font-size: 1.125rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 24px;
}

.footer-logo i {
    color: var(--secondary-green);
    margin-right: 10px;
}

.footer-desc {
    line-height: 1.8;
}

.footer-heading {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.footer-links a i {
    margin-right: 8px;
    font-size: 0.75rem;
    color: var(--secondary-green);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--bg-white);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-info i {
    color: var(--secondary-green);
    font-size: 1.25rem;
    margin-right: 16px;
    margin-top: 4px;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.7);
}

.contact-info a:hover {
    color: var(--bg-white);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-green);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
}

/* Media Queries */
@media (max-width: 1199px) {
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .associates-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .header-actions .btn-outline {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

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

    .associates-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-small {
        grid-template-columns: repeat(3, 1fr);
    }

    .banner-split {
        flex-direction: column;
    }

    .split-card {
        height: 400px;
        padding: 40px;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section-header .btn-text {
        display: none;
    }

    .mobile-only-btn {
        display: block;
    }

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

    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        transition: var(--transition);
        padding: 40px 24px;
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 24px;
    }

    .nav-link {
        color: var(--text-dark);
        font-size: 1.125rem;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 12px;
    }

    .header.scrolled .nav {
        top: 80px;
    }

    .header .btn-primary {
        display: none;
    }

    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .publications-grid {
        grid-template-columns: 1fr;
    }

    .pub-card {
        flex-direction: column;
        text-align: center;
    }

    .pub-cover {
        width: 100%;
        height: 200px;
        aspect-ratio: auto;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}