/**
 * ==========================================
 * TIMOR EDUCARE ASSOCIATION
 * SaaS Platform Public Landing Page Stylesheet
 * ==========================================
 */

:root {
    /* Tech & Corporate Palette */
    --primary-color: #1e40af; /* Deep Blue */
    --primary-dark: #1e3a8a;  /* Darker Blue for hovers */
    --accent-teal: #0d9488;   /* Teal for highlights/success */
   
    --text-main: #1e293b;     /* Slate 800 */
    --text-light: #64748b;    /* Slate 500 */
    --bg-body: #f8fafc;       /* Slate 50 */
    --bg-white: #ffffff;
    
    --border-color: #e2e8f0;  /* Slate 200 */
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    
    --container-max: 1200px;
    --section-padding: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-teal);
    border-radius: 2px;
}

section {
    padding: var(--section-padding);
}

/* --- HEADER & NAV --- */
#site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

#site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-area .site-logo {
    border-radius: 12px;
    padding: 2px;
    transition: transform 0.3s ease;
}

.logo-area:hover .site-logo {
    transform: scale(1.05);
}

.logo-area img.site-logo {
    width: 50px;
    height: 50px;
}

#main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

#main-navigation a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#main-navigation a:hover, #main-navigation a.active {
    color: var(--primary-color);
}

.btn-lapor a {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.5px;
}

.btn-lapor a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-checkbox, .hamburger {
    display: none;
}

/* --- HERO SECTION --- */
#hero {
    background: linear-gradient(rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.85)), url('../img/hero-bg.webp') no-repeat center center/cover;
    color: var(--bg-white);
    text-align: center;
    padding: 160px 20px 200px 20px; 
}

#hero h1 {
    color: var(--bg-white);
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

#hero p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 40px auto;
    color: #e2e8f0;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-actions a {
    padding: 16px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-actions a:first-child {
    background-color: var(--accent-teal);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
}

.hero-actions a:first-child:hover {
    background-color: #0f766e;
    transform: translateY(-2px);
}

.hero-actions a:last-child {
    background-color: rgba(255,255,255,0.1);
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
    backdrop-filter: blur(5px);
}

.hero-actions a:last-child:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

/* --- PLATFORM FEATURES (SERVICES) --- */
#services-highlight {
    padding-top: 0;
    position: relative;
    z-index: 10;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: -80px;
}

.service-card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card .icon { 
    font-size: 45px; 
    display: block; 
    margin-bottom: 20px; 
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* --- OUR IDENTITY SECTION --- */
#about-summary {
    background-color: var(--bg-white);
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 25px;
}

.about-text h2::after {
    left: 0;
    transform: none;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.btn-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-text:hover {
    gap: 15px;
    color: var(--primary-dark);
}

.vision-box {
    background: var(--primary-color);
    color: white;
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.vision-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.vision-box h3 {
    color: var(--accent-teal);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.vision-box p {
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* --- OUR MISSION (FOCUS PROGRAMS) --- */
#focus-programs {
    background-color: var(--bg-body);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.program-item {
    background: var(--bg-white);
    padding: 50px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}

.program-item:hover {
    transform: translateY(-12px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.program-item:hover .icon-circle {
    transform: scale(1.1);
    background: #eff6ff; /* Light blue */
}

.program-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.program-item p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- LATEST NEWS / PRESS RELEASE --- */
#latest-news {
    background-color: var(--bg-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent-teal);
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.news-title a {
    color: var(--text-main);
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 700;
}

.news-title a:hover {
    color: var(--primary-color);
}

/* --- PARTNERS SECTION --- */
#partners {
    background-color: var(--bg-body);
    padding: 80px 0;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 50px;
    align-items: center;
    justify-items: center;
}

.partner-item img {
    max-width: 160px;
    height: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* --- EXECUTIVE TEAM --- */
#executive-team {
    background-color: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-member {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
}

.team-img {
    width: 160px;
    height: 160px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    border: 4px solid var(--bg-body);
    box-shadow: var(--shadow-sm);
    background-color: #e2e8f0;
}

.team-member p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.team-member span {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- FOOTER --- */
#site-footer {
    background-color: #0f172a; /* Very Dark Slate */
    color: var(--bg-white);
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

#site-footer h3 {
    color: var(--accent-teal);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

#site-footer p, #site-footer address {
    color: #94a3b8;
    font-style: normal;
    line-height: 1.8;
}

#site-footer a {
    color: var(--bg-white);
    transition: color 0.3s ease;
}

#site-footer a:hover {
    color: var(--accent-teal);
}

.copyright {
    background-color: #020617; /* Black Slate */
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* --- SVG ---*/
.feather-icon {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .feather-icon, 
.program-item:hover .feather-icon {
    color: var(--accent-teal);
    transform: translateY(-5px) scale(1.1);
}

/* --- SPA PAGES & TABS SYSTEM --- */
.page-section {
    padding-top: 80px;
    padding-bottom: 100px;
    min-height: 60vh;
}

.page-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.tab-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.tab-link {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-link:hover {
    color: var(--primary-color);
}

.tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    animation: fadeIn 0.4s ease-in-out;
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ABOUT PAGE STYLES --- */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-content-wrapper {
    background: var(--bg-white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.about-content-wrapper h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-top: 40px;
}

.about-content-wrapper h3:first-child {
    margin-top: 0;
}

.about-content-wrapper p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-content-wrapper ul {
    margin-left: 20px;
    margin-bottom: 30px;
}

.about-content-wrapper ul li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
}

.about-content-wrapper ul li strong {
    color: var(--primary-color);
}

/* Executive Management Cards */
.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.mgmt-card {
    background: var(--bg-body);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.mgmt-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.mgmt-card h4 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.mgmt-card span {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-teal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- SINGLE POST VIEW --- */
.single-post-wrapper {
    width: 100%;
    background-color: var(--bg-white);
    padding-bottom: 80px;
}

.post-hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-top: 15px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.post-date {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-teal);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.post-body-container {
    max-width: 850px;
    margin: -60px auto 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.post-content-card {
    background: var(--bg-white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
}

.post-content img {
    border-radius: var(--radius-sm);
    margin: 40px auto;
    box-shadow: var(--shadow-sm);
    display: block;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content h2, .post-content h3 {
    margin: 40px 0 20px 0;
    color: var(--primary-color);
}

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.post-content a:hover {
    color: var(--accent-teal);
}

.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.btn-back, .btn-primary {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.btn-back:hover, .btn-primary:hover {
    transform: translateX(-5px);
    color: var(--primary-dark);
}

/* --- LOADING & ERROR STATES --- */
.loading-text, .empty-state, .error-text {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    grid-column: 1 / -1;
}

.error-text {
    color: #dc2626; /* Error Red */
}

.page-loading, .page-error {
    padding: 150px 20px;
    text-align: center;
    min-height: 60vh;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    #site-header .container {
        height: 80px;
        position: relative;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--primary-color);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    #main-navigation {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 999;
    }

    #main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    #main-navigation ul li {
        width: 100%;
        text-align: center;
    }

    #main-navigation ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .menu-checkbox:checked ~ #main-navigation {
        display: block;
    }

    .menu-checkbox:checked ~ .header-actions .hamburger span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    .menu-checkbox:checked ~ .header-actions .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-checkbox:checked ~ .header-actions .hamburger span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .btn-lapor a {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    #hero h1 { font-size: 2.8rem; }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #hero {
        padding: 120px 20px 150px 20px;
    }
    
    #hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .service-grid {
        margin-top: -50px;
    }

    .partner-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .partner-item img {
        max-width: 180px;
        margin: 0 auto;
    }
    
    .about-content-wrapper, .post-content-card {
        padding: 30px 20px;
    }
    
    .post-hero { height: 350px; }
    .hero-content h1 { font-size: 2rem; }
    .post-body-container { margin-top: -40px; }
}
