/* RESET & GLOBAL — NO BORDER-RADIUS, SHARP EDGES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.45;
    scroll-behavior: smooth;
}

/* NO ROUNDED CORNERS ANYWHERE */
img,
button,
input,
textarea,
.card,
.hero,
.container,
.navbar,
.nav-links a,
.btn,
.teacher-card,
.course-card,
.footer-main,
footer,
.contact-grid,
.news-card,
.register-card,
.modal-content {
    border-radius: 0 !important;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ========== NAVBAR (SHARP) ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.25s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(2px);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #000;
    text-decoration: none;
}

.navbar:not(.scrolled) .logo {
    color: white;
}

.navbar.scrolled .logo {
    color: #0a0a0a;
}

/* DESKTOP NAV LINKS */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: #fff;
    transition: 0.2s;
    letter-spacing: -0.2px;
    display: inline-block;
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-links li a {
    color: #111;
}

.nav-links li a:hover {
    opacity: 0.7;
}

.nav-links li a i {
    font-size: 0.7rem;
    margin-left: 0.2rem;
}

/* DROPDOWN (desktop) */
.dropdown-menu {
    position: absolute;
    top: 40px;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 100;
    border: 1px solid #eaeaea;
    list-style: none;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    color: #111 !important;
    padding: 0.75rem 1rem;
    display: block;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}

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

.dropdown-menu li a:hover {
    background: #f5f5f5;
}

/* Desktop right actions */
.desktop-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.member-icon {
    font-size: 1.3rem;
    cursor: pointer;
    background: transparent;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    color: white;
}

.navbar.scrolled .member-icon {
    color: #111;
}

.member-icon:hover {
    background: rgba(0, 0, 0, 0.05);
}

.member-link-text {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: #fff;
    transition: 0.2s;
    letter-spacing: -0.2px;
    cursor: pointer;
}

.navbar.scrolled .member-link-text {
    color: #111;
}

.member-link-text:hover {
    opacity: 0.7;
}

/* Ensure visited state doesn't turn purple and remove underline */
.desktop-actions #memberLink,
.desktop-actions .member-link-text,
.mobile-actions #mobileMemberLink {
    text-decoration: none !important;
}

.desktop-actions .member-link-text:link,
.desktop-actions .member-link-text:visited {
    color: #fff;
    text-decoration: none !important;
}

.navbar.scrolled .desktop-actions .member-link-text:link,
.navbar.scrolled .desktop-actions .member-link-text:visited {
    color: #111;
    text-decoration: none !important;
}

/* Mobile member link color consistency */
.mobile-actions #mobileMemberLink:link,
.mobile-actions #mobileMemberLink:visited {
    color: #111;
}
.lang-switch {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    color: white;
    letter-spacing: 0.5px;
}

.navbar.scrolled .lang-switch {
    border-color: #aaa;
    color: #111;
}

.lang-switch:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* HAMBURGER MENU (mobile only) */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
}

.navbar.scrolled .hamburger {
    color: #111;
}

/* Mobile nav overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.mobile-nav a {
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    color: #111;
    display: block;
    padding: 0.5rem 0;
}

.mobile-dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 0.5rem 0;
}

.mobile-submenu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.mobile-submenu.show {
    display: block;
}

.mobile-submenu a {
    font-size: 1rem;
    padding: 0.4rem 0;
    color: #333;
}

.close-mobile {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.mobile-actions .mobile-lang-switch {
    background: transparent;
    border: 1px solid #ccc;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.mobile-actions .mobile-member-icon {
    font-size: 1.3rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== HERO SECTIONS ========== */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(95deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.4) 100%), url('/public/index/images/banner.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-content h1 {
    font-size: 3.4rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-bottom: 2rem;
}

.hero-about,
.hero-contact,
.hero-register,
.hero-detail,
.hero-news {
    height: 40vh;
    min-height: 280px;
    width: 100%;
    background: linear-gradient(95deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%), url('/public/index/images/banner.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-instructors {
    height: 65vh;
    min-height: 480px;
    width: 100%;
    background: linear-gradient(95deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%), url('/public/index/images/banner.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary {
    background: #000;
    color: white;
    border: none;
    padding: 0.9rem 2.2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
    text-decoration: none;
    border: 1px solid #000;
}

.btn-primary:hover {
    background: #222;
}

/* ========== SECTIONS ========== */
section {
    padding: 3rem 2rem;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-sub {
    text-align: center;
    color: #555;
    max-width: 680px;
    margin: 0 auto 3rem auto;
}

/* ========== COURSE CARDS ========== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.course-card {
    background: #fff;
    border: 1px solid #eaeaea;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

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

.course-info {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.7rem;
    color: #777;
    font-weight: 500;
    text-transform: uppercase;
}

.course-meta span i {
    margin-right: 4px;
}

.course-info p {
    color: #5a5a5a;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.8rem;
}

.enroll-link {
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    color: #000;
    letter-spacing: -0.2px;
    cursor: pointer;
}

.enroll-link:hover {
    text-decoration: underline;
}

/* Category tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.cat-btn {
    background: #fff;
    border: 1px solid #ccc;
    padding: 0.5rem 1.6rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    color: #111;
}

.cat-btn.active,
.cat-btn:hover {
    background: #111;
    color: white;
    border-color: #111;
}

/* ========== TEACHER CARDS ========== */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.teacher-card {
    background: #fff;
    border: 1px solid #eaeaea;
    transition: 0.2s;
    padding: 1.8rem 1.5rem;
    text-align: center;
}

.teacher-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.teacher-avatar {
    width: 130px;
    height: 130px;
    object-fit: cover;
    margin: 0 auto 1.2rem;
    display: block;
}

.teacher-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.teacher-title {
    color: #2a5298;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.teacher-bio {
    font-size: 0.85rem;
    color: #5a5a5a;
    line-height: 1.5;
}

/* ========== NEWS CARDS ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #fff;
    border: 1px solid #eaeaea;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.news-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.news-info p {
    color: #5a5a5a;
    font-size: 0.85rem;
    line-height: 1.4;
}

.read-more {
    margin-top: auto;
    padding-top: 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    color: #000;
}

/* ========== ABOUT PAGE ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: #2c2c2c;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.about-img img {
    width: 100%;
    display: block;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.mission-card,
.vision-card {
    background: #f8f8f8;
    border: 1px solid #eaeaea;
    padding: 2rem;
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    background: #f8f8f8;
    border: 1px solid #eaeaea;
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #555;
}

/* ========== CONTACT PAGE ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info,
.contact-form {
    background: #f8f8f8;
    border: 1px solid #eaeaea;
    padding: 2rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-detail p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: #2c2c2c;
}

.info-detail i {
    width: 28px;
    font-size: 1.2rem;
    color: #000;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: #000;
    font-size: 1.4rem;
    transition: 0.2s;
}

.social-links a:hover {
    opacity: 0.6;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    background: white;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #000;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
}

.submit-btn:hover {
    background: #222;
}

.map-wrapper {
    margin-top: 2rem;
    border: 1px solid #eaeaea;
}

.map-placeholder {
    width: 100%;
    height: 350px;
    background: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 0.9rem;
}

.map-placeholder i {
    font-size: 2rem;
    margin-right: 0.5rem;
}

/* ========== LOGIN/REGISTER PAGE ========== */
.register-section {
    padding: 4rem 2rem;
}

.register-card {
    background: #f8f8f8;
    border: 1px solid #eaeaea;
    padding: 2.5rem;
    max-width: 550px;
    margin: 0 auto;
}

.verify-row {
    display: flex;
    gap: 1rem;
}

.verify-row input {
    flex: 1;
}

.verify-row button {
    background: #000;
    color: white;
    border: none;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.verify-row button:hover {
    background: #222;
}

.verify-row button:disabled {
    background: #999;
    cursor: not-allowed;
}

.register-btn {
    background: #000;
    color: white;
    border: none;
    padding: 1rem;
    width: 100%;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.register-btn:hover {
    background: #222;
}

/* ========== DETAIL PAGE ========== */
.detail-section {
    padding: 4rem 2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.detail-main h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.detail-main h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem 0;
}

.detail-main p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.course-cover-img {
    width: 100%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 1px solid #eaeaea;
}

.syllabus-list {
    list-style: none;
    margin: 1rem 0;
}

.syllabus-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.syllabus-item-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.video-icon {
    color: #000;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s;
}

.video-icon:hover {
    opacity: 0.7;
}

.sidebar-card {
    background: #f8f8f8;
    border: 1px solid #eaeaea;
    padding: 1.8rem;
    margin-bottom: 2rem;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e2e2e2;
}

.btn-enroll {
    background: #000;
    color: white;
    border: none;
    padding: 1rem;
    width: 100%;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-enroll:hover {
    background: #222;
}

.instructor-card {
    background: #f8f8f8;
    border: 1px solid #eaeaea;
    padding: 1.5rem;
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.instructor-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background-color: #000;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.modal-content iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* ========== FOOTER ========== */
.footer-main {
    background-color: #0a0a0a;
    color: #e0e0e0;
    padding: 3rem 2rem 1.5rem;
    border-top: none;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

.footer-contact h4,
.footer-nav h4,
.footer-subscribe h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: -0.2px;
    color: white;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
    color: #ccc;
}

.contact-details i {
    width: 24px;
    font-size: 1rem;
}

.social-icons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #ccc;
    font-size: 1.2rem;
    transition: 0.2s;
}

.social-icons a:hover {
    color: white;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-nav li a {
    text-decoration: none;
    color: #ccc;
    font-size: 0.85rem;
    transition: 0.2s;
}

.footer-nav li a:hover {
    color: white;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.subscribe-form input {
    padding: 0.75rem;
    background: #1e1e1e;
    border: 1px solid #333;
    color: white;
    font-family: inherit;
    font-size: 0.85rem;
}

.subscribe-form button {
    background: white;
    color: #0a0a0a;
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.85rem;
}

.subscribe-form button:hover {
    background: #e0e0e0;
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.75rem;
    color: #888;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-right {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-details p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-nav ul {
        align-items: center;
    }

    .instructor-card {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        width: 95%;
    }

    .modal-content iframe {
        height: 250px;
    }
}

html {
    scroll-padding-top: 80px;
}
