:root {
    --hc-red: #00CED1;
    --hc-red-dark: #00B8D4;
    --hc-gray-bg: #f9f9f9;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--hc-gray-bg);
    line-height: 1.6;
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--hc-red);
    display: flex;
    /* keep valid for parent flex container interaction if needed, though img is inline-block by default */
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    /* Ensure logo doesn't distort */
    margin-right: 5px;
    /* Add some spacing if needed */
}



.logo .divider {
    margin: 0 10px;
    color: #ccc;
    font-weight: 300;
}

/* Network Team Styling */
.network-highlight {
    color: var(--hc-red);
    font-weight: 700;
}

.team-highlight,
.logo .team-highlight {
    color: #333 !important;
    /* Adding !important temporarily to debug if it's a specificity issue, or just stronger selector */
    /* Dark/Black like 'CREDIT' */
    font-weight: 700;
}

.team-text-wrapper {
    /* Optional: Ensure font size matches logo text if needed, or keep inherited */
    font-size: 24px;
    /* Matching .logo font-size */
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-slogan {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    font-style: italic;
}

/* Previously team-text was thin and grey. Removing old if unused or keeping minimal */
.logo .team-text {
    /* DEPRECATED: see .team-text-wrapper above */
    font-weight: 300;
    color: #555;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 30px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--hc-red);
}

/* Language Switch Toggle */
.lang-switch-toggle {
    margin-left: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--hc-red);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--hc-red);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #00CED1 0%, #20E5E8 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    border-bottom-left-radius: 80px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--white);
    color: var(--hc-red);
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Info Bar */
.info-bar {
    background-color: var(--white);
    padding: 30px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.info-bar .container {
    display: flex;
    justify-content: space-around;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    font-size: 32px;
    color: var(--hc-red);
}

.info-item .text {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 1.1rem;
    color: #333;
}

.info-item span {
    font-size: 0.9rem;
    color: #777;
}

/* Sections */
.section {
    padding: 40px 0 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--hc-red);
    border-radius: 2px;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-top-color: var(--hc-red);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 60px;
    /* Align buttons */
}

.card-link {
    text-decoration: none;
    color: var(--hc-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.card-link:hover {
    gap: 12px;
}

/* Footer */
.footer {
    background-color: var(--hc-red);
    color: var(--white);
    padding: 40px 0;
    margin-top: auto;
    border-top-left-radius: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .nav {
        margin-top: 15px;
    }

    .nav-link {
        margin: 0 10px;
    }

    .info-bar .container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
    /* Match nav height */
    margin-left: 30px;
    /* Aligns with other nav items */
}

/* Reset margin for link inside dropdown wrapper */
.dropdown .nav-link {
    margin-left: 0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    border-radius: var(--radius);
    top: 100%;
    /* Position below header */
    left: 0;
    padding: 10px 0;
    margin-top: 15px;
    /* Offset from header height if needed, or adjust top */
}

/* Add a pseudo-element to bridge the gap between nav item and dropdown */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-menu .dropdown-item {
    color: var(--text-color);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.2s;
    font-weight: 500;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--hc-red);
    padding-left: 25px;
    /* Slide effect */
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Ensure the parent link in dropdown also gets highlight on hover */
.dropdown:hover .nav-link {
    color: var(--hc-red);
}

/* Blinking Icon Animation */
@keyframes blink {
    0% {
        opacity: 1;
        color: var(--hc-red);
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        color: var(--hc-red);
    }
}

.blink-icon {
    animation: blink 1s infinite;
    color: var(--hc-red);
    margin-right: 5px;
}