/* DCI Website Master CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Bahnschrift', 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
}

/* Global Scrollbar Styles */
/* Main page scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #EA6020;
    border-radius: 6px;
    border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background: #F49B6A;
}

::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #EA6020 #1a1a1a;
}

/* Top Buffer Bar */
.top-buffer-bar {
    height: 7.2vh;
    background: #1a1a1a;
    width: 100%;
}

.buffer-content {
    display: flex;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 0;
}

.buffer-segment {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.site-title {
    background: linear-gradient(to right, #F49B6A, #EA6020);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 36px;
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
    overflow: visible;
}

.dci-logo-recolor {
    height: 80%;
    width: auto;
    opacity: 0.6;
    --dci-logo-primary: #666666;  /* Gray for main elements */
    --dci-logo-bg: #444444;       /* Dark gray for background circle */
    transition: opacity 0.3s ease;
    cursor: pointer;
    display: block;
    margin: auto;
}

.dci-logo-recolor:hover {
    --dci-logo-primary: #ffffff;  /* White for main elements */
    --dci-logo-bg: #EA6020;       /* Orange for background circle */
    opacity: 1;
}

/* Top Navigation Bar */
.top-nav-bar {
    height: 7.2vh;
    background: #333333;
    border-bottom: 1px solid #444444;
    width: 100%;
}

.nav-content {
    display: flex;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 0;
}

.nav-segment {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-segment-1,
.nav-segment-2,
.nav-segment-3,
.nav-segment-4,
.nav-segment-5,
.nav-segment-6,
.nav-segment-7 {
    border-right: 1px solid #555555;
}

.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.nav-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #F49B6A, #EA6020);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease-out;
}

.nav-button:hover {
    color: #EA6020;
}

.nav-button:hover::after {
    transform: scaleX(1);
}

.nav-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.home-button {
    background: transparent;
    position: relative;
}

.home-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #F49B6A, #EA6020);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease-out;
    z-index: 1;
}

.home-button:hover::before {
    transform: scaleX(1);
}

.home-button:hover {
    color: inherit;
}

.home-logo {
    height: 12.24vh;
    width: auto;
    border-radius: 50%;
    position: relative;
    z-index: 10;
}

/* Top Bar */
.top-bar {
    background-color: #333333;
    border-bottom: 1px solid #444444;
    padding: 8px 0;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.top-links {
    display: flex;
    gap: 20px;
}

.top-links a {
    color: #EA6020;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-links a:hover {
    text-decoration: underline;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-container {
    position: relative;
}

.search-container input {
    padding: 6px 35px 6px 12px;
    border: 1px solid #444444;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
    background: #2a2a2a;
    color: #ffffff;
}

.search-container i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #cccccc;
}

.language-select {
    padding: 6px 12px;
    border: 1px solid #444444;
    border-radius: 4px;
    font-size: 14px;
    background: #2a2a2a;
    color: #ffffff;
}

/* Main Header */
.main-header {
    background: #2a2a2a;
    border-bottom: 1px solid #444444;
    padding: 15px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dci-logo {
    width: 60px;
    height: 60px;
    background: #EA6020;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.dci-title {
    font-size: 24px;
    color: #EA6020;
    font-weight: bold;
    line-height: 1;
}

.tagline {
    font-size: 12px;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #EA6020;
}

.header-logos {
    display: flex;
    gap: 15px;
    align-items: center;
}

.partner-logo {
    height: 40px;
    opacity: 0.7;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 660px;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 20px 50px 20px;
}

.hero-cards {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
}

.hero-card {
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    flex: 1;
    max-width: 300px;
    transition: transform 0.3s ease;
    border: 2px solid #EA6020;
}

.hero-card:hover {
    transform: translateY(-5px);
}

.hero-card.featured {
    background: #EA6020;
    color: white;
    transform: scale(1.05);
    border: 2px solid #EA6020;
}

.hero-card.featured:hover {
    transform: scale(1.08) translateY(-5px);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #ffffff;
}

.hero-card.featured h3 {
    color: white;
}

.see-more {
    color: #EA6020;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.hero-card.featured .see-more {
    color: white;
}

.see-more:hover {
    gap: 10px;
}

/* Recent Updates Bar */
.recent-updates-bar {
    background: #333333;
    border-bottom: 1px solid #444444;
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin-top: 0;
    width: 63.84%; /* 8.52/13.33 = 63.84% */
    margin-left: auto;
    margin-right: auto;
    border-radius: 0;
    height: 7.2vh; /* doubled from 3.6vh */
    position: relative;
}

.recent-updates-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0.25%; /* .04/8.52 * 63.84% ≈ 0.25% of page width */
    height: 100%;
    background: linear-gradient(to bottom, #F49B6A, #EA6020);
    border-radius: 0;
}

.updates-content {
    display: flex;
    align-items: stretch;
    max-width: 1200px;
    width: 100%;
    height: 100%;
    margin-left: 0.4%; /* offset for the accent bar */
}

.update-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    padding: 0 20px;
}

.update-info i {
    color: #EA6020;
    font-size: 18px;
}

.update-text {
    font-size: 16px;
    color: #ffffff;
}

.view-all-btn {
    background: #EA6020;
    color: white;
    border: none;
    border-radius: 0;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
    height: 100%;
    padding: 0 25px;
    min-width: 150px;
}

.view-all-btn:hover {
    background: #e55a2b;
}

.updates-nav {
    display: flex;
    height: 100%;
}

.nav-arrow {
    background: transparent;
    border: 1px solid #555555;
    border-radius: 0;
    cursor: pointer;
    color: #cccccc;
    transition: all 0.3s ease;
    height: 100%;
    width: 7.2vh; /* Making it a perfect square based on doubled height */
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: none;
}

.nav-arrow:first-child {
    border-left: 1px solid #555555;
}

.nav-arrow:hover {
    background: #444444;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-card.featured {
        transform: none;
    }
    
    .updates-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
}
