/* =========================================================
   LEARN WITH ALTHAF
   MINIMAL HOME PAGE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111111;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.header-inner {
    width: 90%;
    max-width: 1200px;
    height: 78px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-name {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #111111;
    text-decoration: none;
}

.site-name-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-name-main {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    color: #111111;
    white-space: nowrap;
}

.site-name-tagline {
    margin-top: 5px;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 3.8px;
    line-height: 1;
    color: #777777;
    white-space: nowrap;
}

.site-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* =========================================================
   HEADER BRAND + TAGLINE
========================================================= */

.site-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 0px;
    transform: translateY(1px);
}

.site-title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
    color: #111111;
}

.site-tagline {
    margin-top: 4px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.8px;
    line-height: 1;
    color: #888888;
}

/* Mobile Header */
@media (max-width: 700px) {

    .site-brand {
        margin-left: 11px;
    }

    .site-title {
        font-size: 17px;
        letter-spacing: 1.5px;
    }

    .site-tagline {
        margin-top: 3px;
        font-size: 7px;
        letter-spacing: 1.2px;
    }

}

/* =========================================================
   MENU BUTTON
========================================================= */

.menu-button {
    width: 30px;
    height: 22px;

    border: none;
    background: transparent;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    cursor: pointer;

    padding: 0;
}

.menu-button span {
    display: block;

    width: 100%;
    height: 1.5px;

    background: #111111;

    transition: all 0.25s ease;
}

/* =========================================================
   MENU
========================================================= */

.mobile-menu {
    position: absolute;
    top: 78px;
    right: 5%;

    width: 260px;

    display: none;

    background: #ffffff;

    border: 1px solid #e5e5e5;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);

    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 17px 20px;

    color: #111111;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    border-bottom: 1px solid #eeeeee;

    transition: background 0.2s ease;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a::after {
    content: "→";

    color: #999999;

    opacity: 0;

    transform: translateX(-5px);

    transition: 0.2s ease;
}

.mobile-menu a:hover {
    background: #f8f8f8;
}

.mobile-menu a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
   HOME PAGE & BUTTONS
========================================================= */

.home-page {
    width: 90%;
    max-width: 900px;

    margin: 0 auto;

    padding: 85px 0 100px;
}

.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-button {
    position: relative;

    min-height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px 60px;

    background: #ffffff;

    border: 1px solid #dedede;
    border-radius: 4px;

    color: #111111;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;

    transition: all 0.25s ease;
}

.home-button:hover {
    background: #f8f8f8;
    border-color: #111111;

    transform: translateY(-2px);

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.home-button .arrow {
    position: absolute;

    right: 22px;

    font-size: 18px;
    font-weight: 400;

    color: #777777;

    opacity: 0;

    transform: translateX(-6px);

    transition: all 0.25s ease;
}

.home-button:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #111111;
    color: #ffffff;

    padding: 35px 5%;
}

.footer-inner {
    width: 90%;
    max-width: 1200px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.footer-inner p {
    font-size: 12px;
    color: #999999;
}

.footer-inner p:first-child {
    color: #ffffff;

    font-weight: 700;
    letter-spacing: 1px;
}

/* =========================================================
   ALTHAF TIMETABLE
========================================================= */

#althaf-timetable {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
}

#althaf-timetable *,
#althaf-timetable *::before,
#althaf-timetable *::after {
    box-sizing: border-box;
}


/* =========================================================
   TITLE
========================================================= */

.tt-title {
    text-align: center;
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 30px;
}


/* =========================================================
   LOADING
========================================================= */

.tt-loading {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #777;
}


/* =========================================================
   PROGRAM
========================================================= */

.tt-year {
    background: #050505;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.10);
}

.tt-year-header {
    color: #fff;
    padding: 21px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    cursor: pointer;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.tt-year-arrow {
    width: 34px;
    height: 34px;
    min-width: 34px;

    border-radius: 50%;

    background: #292929;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    color: #fff;
}

.tt-year-content {
    display: none;

    background: #f7f7f7;

    padding: 14px;
}

.tt-year.open .tt-year-content {
    display: block;
}


/* =========================================================
   CLASS CARD
========================================================= */

.tt-class {
    background: #fff;

    border-radius: 15px;

    margin-bottom: 12px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.tt-class:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CLASS HEADER
========================================================= */

.tt-class-header {
    padding: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    cursor: pointer;
}

.tt-location-name {
    font-size: 16px;
    font-weight: 700;

    line-height: 1.3;

    flex: 1;
}

.tt-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* =========================================================
   ARROW
========================================================= */

.tt-class-arrow {
    width: 32px;
    height: 32px;
    min-width: 32px;

    border-radius: 50%;

    background: #f0f0f0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
    color: #111;

    transition: all 0.2s ease;
}

.tt-class.open .tt-class-arrow {
    background: #111;
    color: #fff;
}


/* =========================================================
   CLASS CONTENT
========================================================= */

.tt-class-content {
    display: none;

    padding: 0 18px 18px;
}

.tt-class.open .tt-class-content {
    display: block;
}


/* =========================================================
   BUTTON ROW
========================================================= */

.tt-action-row {
    border-top: 1px solid #eeeeee;

    padding: 14px 0;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}


/* =========================================================
   LOCATION / LMS BUTTON
========================================================= */

.tt-location-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: #050505;

    color: #fff !important;

    text-decoration: none !important;

    padding: 9px 13px;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;

    transition: all 0.2s ease;
}

.tt-location-btn:hover {
    background: #333;

    color: #fff !important;

    transform: translateY(-1px);
}


/* =========================================================
   DETAILS
========================================================= */

.tt-detail {
    border-top: 1px solid #eeeeee;

    padding: 17px 0;
}

.tt-detail-label {
    display: block;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    color: #777;

    margin-bottom: 8px;
}

.tt-detail-value {
    font-size: 15px;
    font-weight: 700;

    line-height: 1.55;

    color: #111;

    text-align: left;
}


/* =========================================================
   FEES
========================================================= */

.tt-fees {
    border-top: 1px solid #eeeeee;

    padding: 16px 0;
}

.tt-fees-label {
    display: block;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    color: #777;

    margin-bottom: 8px;
}

.tt-fees-list {
    display: flex;

    flex-direction: column;

    gap: 4px;

    width: 100%;
}

.tt-fee-line {
    display: block;

    width: 100%;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.35;

    color: #111;

    text-align: left;

    margin: 0;
    padding: 0;

    white-space: normal;
}


/* =========================================================
   ADMISSION
========================================================= */

.tt-admission {
    border-top: 1px solid #eeeeee;

    padding: 17px 0;
}

.tt-admission-label {
    display: block;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    color: #777;

    margin-bottom: 7px;
}

.tt-admission-value {
    font-size: 15px;
    font-weight: 700;

    color: #111;
}


/* =========================================================
   CURRENT UNIT
========================================================= */

.tt-current-unit {
    border-top: 1px solid #eeeeee;

    padding: 17px 0;
}

.tt-current-unit-label {
    display: block;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    color: #777;

    margin-bottom: 7px;
}

.tt-current-unit-value {
    font-size: 15px;
    font-weight: 700;

    line-height: 1.45;

    color: #111;
}


/* =========================================================
   COURSE PROGRESS
========================================================= */

.tt-progress {
    border-top: 1px solid #eeeeee;

    padding: 17px 0 0;
}

.tt-progress-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 10px;
}

.tt-progress-label {
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;

    color: #777;
}

.tt-progress-value {
    font-size: 14px;
    font-weight: 700;

    color: #111;
}

.tt-progress-track {
    width: 100%;

    height: 8px;

    background: #e7e7e7;

    border-radius: 20px;

    overflow: hidden;
}

.tt-progress-fill {
    height: 100%;

    width: 0%;

    background: #111;

    border-radius: 20px;

    transition: width 0.6s ease;
}


/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 600px) {

    .header-inner {
        width: 90%;
        height: 68px;
    }

    .site-name {
        font-size: 15px;
    }

    .menu-button {
        width: 27px;
        height: 22px;
    }

    .home-page {
        width: 90%;
        padding: 55px 0 70px;
    }

    .home-buttons {
        gap: 14px;
    }

    .home-button {
        min-height: 65px;

        padding: 16px 45px;

        font-size: 15px;
    }

    .home-button .arrow {
        right: 18px;
        font-size: 17px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    #althaf-timetable {
        padding: 0 12px;
    }

    .tt-title {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .tt-year-header {
        padding: 16px 18px;
        font-size: 17px;
    }

    .tt-year-content {
        padding: 10px;
    }

    .tt-class-header {
        padding: 16px 14px;
    }

    .tt-location-name {
        font-size: 15px;
    }

    .tt-class-content {
        padding: 0 14px 15px;
    }

    .tt-detail-value,
    .tt-admission-value,
    .tt-current-unit-value {
        font-size: 14px;
    }

    .tt-fees {
        padding: 14px 0;
    }

    .tt-fees-label {
        font-size: 12px;
        margin-bottom: 7px;
    }

    .tt-fees-list {
        gap: 3px;
    }

    .tt-fee-line {
        font-size: 13px;
        line-height: 1.35;
        width: 100%;
    }

    .tt-location-btn {
        padding: 8px 10px;
        font-size: 10px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .tt-header-right {
        gap: 5px;
    }

    .tt-year-header {
        padding: 14px 16px;
    }

    .tt-class-arrow {
        width: 29px;
        height: 29px;
        min-width: 29px;
    }

    .tt-location-btn {
        padding: 7px 8px;
        font-size: 9px;
    }

    .tt-fee-line {
        font-size: 12.5px;
    }
}