/* Import modern Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    color: #2c5aa0;
    font-size: 1.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: #2c5aa0;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    list-style: none;
    padding: 1rem 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    position: relative;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #2c5aa0;
}

/* Account Menu Styles */
.account-dropdown {
    right: 0;
    left: auto;
    min-width: 280px;
    padding: 0.5rem 0;
}

.account-info {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2c5aa0, #3490dc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #2c5aa0;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.user-email {
    font-size: 0.8rem;
    color: #6b7280;
    font-family: 'Open Sans', sans-serif;
}

.menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
    padding: 0 !important;
}

.account-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.2s;
    color: #333;
    text-decoration: none;
}

.account-dropdown a:hover {
    background: #f8f9fa;
    color: #2c5aa0;
}

.menu-icon {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.logout-link {
    color: #dc2626 !important;
    font-weight: 600;
}

.logout-link:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

/* Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-arrow {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.dropdown-submenu:hover .submenu-arrow {
    transform: rotate(90deg);
}

.dropdown-submenu-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 1002;
    margin-left: 5px;
}

.dropdown-submenu:hover .dropdown-submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu-menu li {
    padding: 0;
}

.dropdown-submenu-menu a {
    display: block;
    padding: 0.4rem 1rem;
    color: #333;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.dropdown-submenu-menu a:hover {
    background: #f8f9fa;
    color: #2c5aa0;
}

/* Hero Stats Section */
.hero-stats {
    background: linear-gradient(rgba(44, 90, 160, 0.75), rgba(44, 90, 160, 0.75)),
    url('../images_content/ultrahang.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
    min-height: 500px;
}

.hero-overlay {
    opacity: 0%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.8), rgba(52, 144, 220, 0.7));
}

.hero-title {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.15);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    color: #f0f8ff;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Main Content */
.main-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 3rem;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tile {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.2);
    border-color: #2c5aa0;
}

.tile-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tile h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.tile p {
    color: #666;
    line-height: 1.5;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

/* Content Detail Section */
.content-detail {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
}

.detail-main-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 4rem;
    position: relative;
}

.detail-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #2c5aa0, #3490dc);
    border-radius: 2px;
}

.detail-item {
    max-width: 900px;
    margin: 0 auto 4rem;
    background: rgba(255, 255, 255, 0.79);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.1);
    border-left: 5px solid #2c5aa0;
    opacity: 1;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.detail-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.detail-item:nth-child(even) {
    border-left-color: #3490dc;
    transform: translateX(-30px);
}

.detail-item:nth-child(even).animate {
    transform: translateX(0);
}

.detail-title {
    font-size: 1.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.detail-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #2c5aa0;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.3);
}

.detail-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    text-align: justify;
    padding-left: 2rem;
}

/* Additional Sections */
.additional-sections {
    padding: 80px 0;
    background: #f8f9fa;
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.additional-item {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.additional-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.additional-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.additional-title {
    font-size: 1.6rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 2rem;
}

.additional-content {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.additional-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.additional-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.additional-content li {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin: 0;
    color: #555;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    text-align: center;
    color: #e2e8f0;
}

/* Animations */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    animation: countUp 0.6s ease-out;
}

/* Active state for tiles */
.tile.active {
    border-color: #2c5aa0 !important;
    background: linear-gradient(135deg, #f8f9ff, #ffffff) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.3) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .detail-main-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .tile h3 {
        font-size: 1.2rem;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .additional-title {
        font-size: 1.4rem;
    }
}