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

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

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

ul {
    list-style: none;
}

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

/* Header */
header {
    position: sticky;
    top: -46px; /* Offset for top-bar height to hide it on scroll */
    z-index: 1000;
}

.top-bar {
    background-color: #397de8;
    color: white;
    font-size: 13px;
    padding: 6px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.divider {
    opacity: 0.6;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.lang-selector img {
    height: 14px;
}

.lang-selector i {
    font-size: 10px;
}

.search-icon {
    font-size: 16px;
}

/* Main Navigation */
.main-nav {
    background-color: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Individual sticky removed to favor header-level sticky */
}

.main-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 38px;
}

.nav-links {
    display: flex;
    gap: 20px;
    font-size: 14px;
    font-weight: 700;
}

.nav-links a {
    color: #222;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links i {
    font-size: 10px;
    color: #397de8;
}

.nav-links a.active, .nav-links a:hover {
    color: #397de8;
}

/* User Area Styles */
.user-area {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    margin-left: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 500;
}

.user-info i {
    color: #397de8;
}

.btn-logout {
    color: #ef4444;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

.btn-logout:hover {
    opacity: 0.8;
}

.btn-login-link {
    background-color: #397de8;
    color: white !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-login-link:hover {
    background-color: #1f64c4;
}

/* Mega Menu */
.has-mega-menu {
    /* Set to static so absolute children relate to main-nav-inner */
    /* By default list items are static, so it's fine. We ensure it here. */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 30px 20px;
    display: flex;
    justify-content: flex-start;
    padding-left: 250px; /* Align columns with other nav elements somewhat, or just space between */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border-top: 1px solid #eee;
    gap: 40px;
}
/* No, wait, if we use space-between we don't need padding-left. Let's make it simpler: */

.mega-menu {
    position: absolute;
    top: calc(100% + 15px); /* push down below header padding */
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    border-radius: 0 0 12px 12px;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.mega-menu-col {
    flex: 1;
    padding: 0 15px;
}

.mega-menu-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.mega-menu-col h3.mt-4 {
    margin-top: 35px;
}

.mega-menu-col ul li {
    margin-bottom: 12px;
}

.mega-menu-col ul li a {
    font-size: 14px;
    color: #555;
    font-weight: 400;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
    white-space: nowrap;
}

.mega-menu-col ul li a:hover {
    color: #397de8;
    transform: translateX(3px);
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(31, 100, 196, 0.85), rgba(31, 100, 196, 0.45)), url('https://cmcu.edu.vn/wp-content/uploads/2024/04/de-thi-tot-nghiep-thpt-3.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
    color: white;
    overflow: hidden;
    text-align: center;
}

/* Custom overlay or secondary effects can be added here if needed */

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center; /* Centering since the side image is gone */
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 55px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #ffda44; /* Yellow color from the design */
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 35px;
    font-weight: 300;
}

.btn-register-now {
    display: inline-block;
    background-color: white;
    color: #397de8;
    padding: 14px 35px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background-color 0.2s;
}

.btn-register-now:hover {
    transform: translateY(-2px);
    background-color: #fcebeb;
}



/* Info Section */
.info-section {
    padding: 60px 0;
    background-color: white;
}

.info-inner {
    display: flex;
    gap: 50px;
    align-items: flex-start; /* Required for sticky children */
}

.info-left {
    flex: 6.5;
}

.info-left h2 {
    margin-bottom: 20px;
}

.info-left h2 a {
    color: #397de8;
    text-decoration: underline;
    font-size: 28px;
    font-weight: 700;
}

.info-left p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #222;
    line-height: 1.6;
}

.info-left ul {
    padding-left: 20px;
}

.info-left ul li {
    list-style-type: disc;
    margin-bottom: 10px;
    color: #222;
    font-size: 17px;
    line-height: 1.6;
}

.info-right {
    flex: 3.5;
    position: sticky;
    top: 90px;
    z-index: 100;
}

/* Sidebar Redesign (info-right) */
.sidebar-video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #000;
    margin-bottom: 25px;
}

.sidebar-video-card img {
    width: 100%;
    display: block;
    opacity: 0.85;
    transition: transform 0.3s, opacity 0.3s;
}

.sidebar-video-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.play-button-circle {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f64c4;
    font-size: 24px;
    padding-left: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background 0.3s;
}

.sidebar-video-card:hover .play-button-circle {
    transform: scale(1.1);
    background: #fff;
    color: #397de8;
}

.sidebar-info-block {
    margin-bottom: 30px;
}

.sidebar-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.sidebar-info-icon {
    font-size: 24px;
    color: #cbd5e1; /* Light gray for the icon lines */
    min-width: 30px;
}

.sidebar-info-text {
    font-size: 18px;
    color: #1e293b;
    line-height: 1.4;
    font-weight: 500;
}

.sidebar-info-text strong {
    font-weight: 700;
}

.sidebar-cta-btn {
    display: block;
    width: 100%;
    background-color: #5b92d6; /* Matching the blue in the image */
    color: white;
    text-align: center;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(91, 146, 214, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.sidebar-cta-btn:hover {
    background-color: #1f64c4;
    transform: translateY(-2px);
    color: white;
}

/* Floating Elements */
.float-btn-left {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: #6ed1d1;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(110, 209, 209, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}

.float-btn-left:hover {
    transform: translateY(-2px);
}

.float-btn-left a {
    color: white;
}

.float-btn-right {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #6ed1d1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(110, 209, 209, 0.4);
    z-index: 100;
    transition: transform 0.2s;
}

.float-btn-right:hover {
    transform: translateY(-2px);
}

.chat-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
}

/* Responsive */
@media (max-width: 992px) {
    .info-inner {
        flex-direction: column;
    }
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        padding-bottom: 40px;
    }
    .nav-links {
        display: none; /* Hide on mobile for now */
    }
}

/* Admissions Content Styles */
.info-left h3 {
    color: #1f64c4;
    font-size: 24px;
    margin: 35px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-left h3 i {
    font-size: 18px;
    color: #397de8;
}

.info-left h4 {
    color: #333;
    font-size: 20px;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.info-block {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.admission-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.admission-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.admission-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    padding: 12px 15px;
    border-bottom: 2px solid #e2e8f0;
}

.admission-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.admission-table tr:last-child td {
    border-bottom: none;
}

.admission-table tr:hover td {
    background-color: #fcfdfe;
}

.step-list {
    counter-reset: step;
    padding: 0;
    list-style: none;
}

.step-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
}

.step-item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: #397de8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(57, 125, 232, 0.3);
}

.step-item span {
    display: block;
    font-weight: 700;
    color: #1f64c4;
    margin-bottom: 5px;
    font-size: 16px;
}

.step-item p {
    margin: 0;
    font-size: 15px;
    color: #555;
}

.method-card {
    border-left: 4px solid #397de8;
    background: #f8fafc;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

.method-card strong {
    color: #1f64c4;
    display: block;
    margin-bottom: 5px;
}

.highlight-text {
    color: #e11d48;
    font-weight: 600;
}

.fee-note {
    font-size: 13px;
    font-style: italic;
    color: #64748b;
    margin-top: 10px;
}

/* Accordion Styles */
.admission-accordion {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s ease;
}

.accordion-header {
    width: 100%;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    transition: all 0.3s ease;
    gap: 15px;
}

.accordion-item.active .accordion-header {
    background: #aed6f1; /* Light blue from image */
    color: #0f172a;
    font-weight: 600;
}

.accordion-header i {
    font-size: 14px;
    color: #397de8;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
    color: #0f172a;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    background: #fff;
}

.accordion-item.active .accordion-content {
    max-height: 1000px; /* Large enough to fit content */
    padding: 0 25px 25px 25px;
}

.accordion-content-inner {
    padding-top: 15px;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Footer Styles */
.pre-footer {
    background: #f8f9fa;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.pre-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pre-footer-btn .btn-main {
    background: #5b92d6;
    color: white;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-block;
    font-size: 16px;
    transition: background 0.3s;
}

.pre-footer-btn .btn-main:hover {
    background: #1f64c4;
}

.pre-footer-info {
    display: flex;
    gap: 60px;
}

.info-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #222;
}

.info-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.pre-footer-social h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 20px;
    font-size: 22px;
    color: #397de8;
}

.social-icons a:hover {
    color: #1f64c4;
}

.main-footer {
    background: #1a1a1a url('../images/footer_bg.png') top center no-repeat;
    background-size: cover;
    color: white;
    padding: 80px 0 40px;
    position: relative;
}

.footer-logo img {
    height: 55px;
    margin-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
}

.footer-col h4 {
    font-size: 14px;
    color: #397de8;
    margin: 20px 0 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: #bbb;
    margin-bottom: 8px;
}

.footer-col strong {
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
    font-size: 15px;
    color: #bbb;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.footer-col ul li::before {
    content: '•';
    color: #397de8;
    font-size: 18px;
}

.footer-col ul li a {
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #397de8;
}

.footer-maps {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.map-item {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
    border: 1px solid #333;
    background: #222;
}

.map-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.map-item:hover img {
    opacity: 1;
}

.map-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    color: #1e293b;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.map-btn i {
    color: #397de8;
}

@media (max-width: 992px) {
    .pre-footer-inner {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .pre-footer-info {
        flex-direction: column;
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-maps {
        flex-direction: column;
    }
}

/* Specialized Hero Section - Slanted Layout */
.hero-section.hero-slanted {
    background-color: #98bff5;
    background-image: 
        linear-gradient(rgba(30, 98, 193, 0.85), rgba(30, 98, 193, 0.95)),
        url('https://www.transparenttextures.com/patterns/graphy.png'); /* Pattern for grid effect */
    background-size: cover, auto;
    padding: 0;
    text-align: left;
    min-height: 300px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #f9ecc5;
}

.hero-slanted .hero-inner {
    display: flex;
    width: 100%;
    align-items: stretch;
    justify-content: space-between;
    padding: 0;
    max-width: 100%;
}

.hero-slanted .hero-content {
    flex: 1;
    padding: 40px 20px 40px max(20px, calc((100% - 1200px) / 2 + 20px));
    max-width: 700px;
    margin: 0;
    z-index: 5;
}

.hero-slanted .hero-content h1 {
    font-size: 44px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffde7b; /* Yellow from image */
    text-transform: none;
    font-weight: 600;
    text-align: left;
}

.hero-slanted .hero-content h1 span {
    color: #fff;
    display: block;
}

.hero-slanted .hero-content p {
    font-size: 19px;
    margin-bottom: 25px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
}

.hero-slanted .btn-register-now {
    background-color: #fff;
    color: #1e62c1;
    padding: 16px 45px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    margin: 0;
}

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

.hero-slanted .hero-visual {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-width: 45%;
    display: block;
}

.hero-slanted .slant-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('https://cmcu.edu.vn/wp-content/uploads/2024/04/Banner-TS-2024-Trường-Đại-học-CMC.jpg');
    background-size: cover;
    background-position: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 2;
    border-left: 4px solid rgba(255,255,255,0.2);
}

.hero-slanted .tech-globe {
    position: absolute;
    right: 35%;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    background-image: url('https://cmcu.edu.vn/wp-content/themes/cmc-uni/assets/images/bg-tech.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-slanted .hero-inner {
        flex-direction: column;
    }
    .hero-slanted .hero-content {
        padding: 60px 40px;
        text-align: center;
        max-width: 100%;
    }
    .hero-slanted .hero-content h1, 
    .hero-slanted .hero-content p {
        text-align: center;
    }
    .hero-slanted .hero-visual {
        height: 350px;
        min-width: 100%;
    }
    .hero-slanted .slant-container {
        clip-path: none;
    }
}

/* Featured Callout Block */
.featured-callout {
    border-left: 4px solid #397de8;
    padding: 10px 0 10px 20px;
    margin: 30px 0;
    font-size: 18.5px;
    background-color: transparent;
    color: #444;
}

.featured-callout a {
    color: #397de8;
    font-weight: 700;
    text-decoration: none;
}

.featured-callout a:hover {
    text-decoration: underline;
}

.highlight-title {
    color: #397de8;
    font-weight: 700;
    font-size: 24px;
    margin: 40px 0 20px 0;
}
