/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header và Navigation - Chung cho tất cả trang */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

/* Navigation Logo với Image */
.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 0.75rem;
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* Logo Image - 1.5cm x 1.5cm */
.logo-image {
    height: 57px;
    width: 57px;
    max-width: 57px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    background: transparent;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(231, 76, 60, 0.3));
}

/* Logo Text */
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-logo:hover .logo-text {
    color: #c0392b;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #e74c3c;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
main {
    margin-top: 85px;
    min-height: calc(100vh - 85px);
}

/* Common Components */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.btn-primary:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.btn-secondary {
    background: transparent;
    color: #e74c3c;
    border-color: #e74c3c;
}

.btn-secondary:hover {
    background: #e74c3c;
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer - Chung cho tất cả trang */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 0.75rem;
}

.footer-logo:hover {
    color: #c0392b;
    transform: scale(1.02);
}

.footer-logo-image {
    height: 50px;
    width: 50px;
    max-width: 50px;
    object-fit: contain;
    filter: brightness(1.2);
    transition: all 0.3s ease;
    background: transparent;
}

.footer-logo:hover .footer-logo-image {
    transform: scale(1.05);
    filter: brightness(1.4) drop-shadow(0 2px 8px rgba(231, 76, 60, 0.5));
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #e74c3c;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #e74c3c;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        height: 75px;
        padding: 0 1rem;
    }
    
    .logo-image {
        height: 50px;
        width: 50px;
        max-width: 50px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    main {
        margin-top: 75px;
        min-height: calc(100vh - 75px);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 75px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo-image {
        height: 45px;
        width: 45px;
        max-width: 45px;
    }
    
    .footer-logo {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 65px;
    }
    
    .logo-image {
        height: 42px;
        width: 42px;
        max-width: 42px;
    }
    
    .logo-text {
        font-size: 1.2rem;
        display: none; /* Ẩn text trên mobile nhỏ */
    }
    
    main {
        margin-top: 65px;
        min-height: calc(100vh - 65px);
    }

    .nav-menu {
        top: 65px;
    }
    
    .footer-logo-image {
        height: 38px;
        width: 38px;
        max-width: 38px;
    }
    
    .footer-logo {
        font-size: 1.4rem;
    }
}

/* Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
}
