/* Shared base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.hidden {
    display: none !important;
}

.text-underline {
    text-decoration: underline !important;
}

.main-wrapper {
    position: relative;
    overflow: hidden;
}

.main-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../Image/content-bg.png') repeat;
    filter: blur(1px);
    z-index: 0;
    pointer-events: none;
}

.main-wrapper > * {
    position: relative;
    z-index: 1;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(52, 73, 94, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-icon {
    width: 200px;
    height: 50px;
    background: url('../Image/logo.png') center center/contain no-repeat;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    height: 65px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

nav a:hover {
    color: #a29bfe;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}




.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.flag {
    width: 27px;
    height: 18px;
    background-image: url('../Image/flags/en.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    cursor: pointer;
}

.flag::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%) rotate(45deg);
    width: 4px;
    height: 4px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    background: transparent;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 170%;
    left: 0;
    background: rgba(52, 73, 94, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(162, 155, 254, 0.1);
    color: #a29bfe;
    padding-left: 25px;
}

.language-selector:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    height: 350px;
    background: url('../Image/certification.png') center/cover;
    position: relative;
    margin-top: 95px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.hero-title {
    position: relative;
    z-index: 2;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 35px;
    font-weight: 500;
    border-left: 4px solid white;
    padding-left: 20px;
    margin-top: 220px;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Inter', sans-serif;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 40px;
    line-height: 100%;
    letter-spacing: 0;
    vertical-align: middle;
}

.intro-text {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.final-text {
    font-size: 16px;
    color: #333;
    text-align: center;
    margin: 40px 0;
    font-weight: 500;
    line-height: 1.6;
}

.subsection-title {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 5px;
    color: #333;
}


/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 20px 20px 20px;
    min-height: 160px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 160px;
}

.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 30%;
}

.footer-left {
    align-items: flex-start;
}

.footer-right {
    align-items: flex-end;
}

.footer-logo {
    display: flex;
    align-items: center;
    height: 60px;
}

.footer-logo .logo-icon {
    width: 130px;
    height: 60px;
    filter: brightness(1.1);
}

.footer-copy {
    color: #94a3b8;
    font-size: 12px;
    letter-spacing: 0.6px;
}

.footer-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: underline rgba(203, 213, 224, 0.5);
    font-size: 14px;
    transition: color 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.footer-links a:hover,
.footer-links a.is-active {
    color: #a29bfe;
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    color: #94a3b8;
    display: none;
    flex-direction: column;
    gap: 6px;
    letter-spacing: 0.6px;
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.social-links a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-links a i {
    pointer-events: none;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: rgba(150, 105, 255, 0.2);
    border-color: rgba(150, 105, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
    color: #9669FF;
    box-shadow: 0 6px 20px rgba(150, 105, 255, 0.3);
}

.social-links .social-highlight {
    background: linear-gradient(135deg, rgba(150, 105, 255, 0.25), rgba(95, 0, 255, 0.3));
    border-color: rgba(150, 105, 255, 0.6);
    color: #ffffff;
}

nav.footer-links a {
    padding: 3px 0;
}

nav.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
}
    
nav.footer-links a:hover::after {
    width: 0%;
}


/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 40px;
    right: -320px;
    width: 200px;
    height: 100vh;
    background: rgba(5, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 80px 30px 30px;
    transition: right 0.3s ease-in-out;
    z-index: 999;
    overflow-y: auto;
}

/* Close button for mobile menu */
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #a29bfe;
    transform: rotate(90deg);
}

/* Mobile menu hamburger animation when active */
.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-section {
    margin-bottom: 25px;
}

.mobile-nav-title {
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav-item {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 10px;
    font-weight: 400;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-style: italic;
}

.mobile-nav-item:hover {
    color: #a29bfe;
    padding-left: 10px;
}

.mobile-nav-item.active {
    color: #a29bfe;
    border-left: 3px solid #a29bfe;
    padding-left: 15px;
}

.mobile-language-section {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 40px;
}

.mobile-language-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-flag {
    width: 20px;
    height: 14px;
    background-image: url('../Image/flags/en.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.mobile-flag::before {
    content: '';
    background: transparent;
}


/* Mobile responsive */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    .logo-icon {
        width: 130px;
        height: 40px;
    }

    .hero-section {
        height: 250px;
        margin-top: 85px;
    }
    .hero-title {
        font-size: 28px;
        margin-top: 150px;
    }
    
    .main-content {
        padding: 30px 15px;
    }

    .footer {
        padding: 15px 20px 25px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-left,
    .footer-right {
        align-items: center;
        width: 100%;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-copy {
        display: none;
    }
    
    .footer-bottom {
        display: flex;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
}