/* Global Styles */
:root {
    --primary-color: #2ba0e8;
    --secondary-color: #004da0;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --border-color: #ddd;
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

.nav ul {
    display: flex;
    gap: 20px;
}

.nav a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
}

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

/* Hero / Stats Section */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2;
    transform: translateY(-50%);
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.6);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.stat-item .number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-item .label {
    font-size: 16px;
    opacity: 0.9;
}

/* Floating Bar */
.floating-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background: var(--white);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 4px 0 0 4px;
}

.float-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    position: relative;
    font-size: 24px;
    color: var(--primary-color);
    transition: background 0.3s, color 0.3s;
}

.float-item:last-child {
    border-bottom: none;
}

.float-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

.float-content {
    position: absolute;
    right: 50px;
    top: 0;
    background: var(--white);
    padding: 10px 15px;
    box-shadow: -5px 5px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    display: none;
    color: var(--text-color);
    font-size: 14px;
    border-radius: 4px 0 0 4px;
}

.float-item:hover .float-content {
    display: block;
}

/* Sections General */
.section {
    padding: 60px 0;
}

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

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title span {
    display: block;
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-top: 5px;
    letter-spacing: 2px;
}

/* About & Products */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background-color: var(--secondary-color);
}

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

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--primary-color);
}

.product-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    height: 40px; /* Limit height for uniformity */
    overflow: hidden;
}

.btn-sm {
    display: inline-block;
    padding: 6px 15px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

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

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

/* Management Icons */
.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

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

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.news-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.news-date {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    min-width: 80px;
    height: fit-content;
}

.news-date .day {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.news-date .month {
    display: block;
    font-size: 12px;
}

.news-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content h3:hover {
    color: var(--primary-color);
    cursor: pointer;
}

.news-content p {
    font-size: 13px;
    color: #666;
}

/* Cases Grid Update */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.case-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    padding: 0; /* Reset padding */
    text-align: left; /* Reset text align */
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.case-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.case-text {
    padding: 15px;
}

.case-text h4 {
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 16px;
}

.case-text p {
    font-size: 13px;
    color: #888;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Footer */
.footer {
    background-color: #222;
    color: #aaa;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

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

    .nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .floating-bar {
        display: none;
    }
}
