/* org-styles.css - Official Organization Design System for GoTutify Inner Pages */

:root {
    --org-primary: #1E3A8A;
    /* Deep Blue */
    --org-primary-light: #3B82F6;
    --org-primary-dark: #1E40AF;
    --org-secondary: #0F172A;
    /* Slate */
    --org-text-main: #334155;
    --org-text-muted: #64748B;
    --org-bg-main: #F8FAFC;
    --org-bg-card: #FFFFFF;
    --org-border: #E2E8F0;
    --org-accent: #F59E0B;
    --org-radius: 8px;
    --org-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --org-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --org-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --org-font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html, body.org-body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: var(--org-font);
    color: var(--org-text-main);
    background-color: var(--org-bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Ensure images don't break layouts */
img {
    max-width: 100%;
    height: auto;
}

/* Typography */
.org-h1,
.org-h2,
.org-h3,
.org-h4 {
    color: var(--org-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.org-h1 {
    font-size: 2.5rem;
    letter-spacing: -0.025em;
}

.org-h2 {
    font-size: 2rem;
    letter-spacing: -0.025em;
    margin-top: 2rem;
}

.org-h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

.org-p {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

/* Layout */
.org-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    overflow-x: hidden;
}

/* Header & Nav */
.org-header {
    background: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--org-border);
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 50;
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.org-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 4%;
}

.org-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--org-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.org-logo span.go {
    color: var(--org-secondary);
}

.org-logo span.tutify {
    color: #4c64e6;
}

.org-footer .org-logo span.go,
.org-footer .org-logo span.tutify {
    color: white;
}

.org-nav-links {
    display: flex;
    gap: 2rem;
}

.org-nav-links a {
    text-decoration: none;
    color: var(--org-text-muted);
    font-weight: 500;
    transition: all 0.2s;
}

.org-nav-links a:hover {
    color: var(--org-primary);
}

.org-btn {
    display: inline-block;
    background-color: var(--org-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--org-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
}

.org-btn:hover {
    background-color: var(--org-primary-dark);
    transform: translateY(-1px);
}

/* Hero Section */
.org-hero {
    background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.org-hero-container {
    max-width: 1600px;
    width: 95%;
    margin: 0 auto;
}

.org-hero-title {
    color: white;
    font-size: 3.8rem;
    line-height: 1.1;
    max-width: none;
    margin: 0 auto 1.5rem;
}

.org-hero-badge {
    display: block;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.4rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    opacity: 0.85;
}

.org-hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: none;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .org-hero {
        padding: 4rem 0 3rem;
    }
    .org-hero-title {
        font-size: 2.2rem;
    }
    .org-hero-badge {
        font-size: 1rem;
        letter-spacing: 0.2rem;
        margin-bottom: 0.8rem;
    }
    .org-hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Main Content Area */
.org-main {
    padding: 4rem 0;
}

.org-content-card {
    background: var(--org-bg-card);
    border-radius: var(--org-radius);
    padding: 3rem;
    box-shadow: var(--org-shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--org-border);
}

/* Sections */
.org-section {
    margin-bottom: 3rem;
}

.org-section:last-child {
    margin-bottom: 0;
}

.org-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Lists */
.org-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.org-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.org-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--org-primary);
    font-weight: bold;
}

/* Call to Action Banner */
.org-cta {
    background: var(--org-bg-card);
    border-radius: var(--org-radius);
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--org-border);
    box-shadow: var(--org-shadow-lg);
    margin: 4rem auto;
    position: relative;
    overflow: hidden;
}

.org-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--org-primary);
}

/* Form Styles */
.org-form-group {
    margin-bottom: 1.5rem;
}

.org-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--org-secondary);
}

.org-input,
.org-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--org-border);
    border-radius: var(--org-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.org-input:focus,
.org-textarea:focus {
    outline: none;
    border-color: var(--org-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.org-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Table Styles for Policies */
.org-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--org-bg-card);
    border-radius: var(--org-radius);
    overflow: hidden;
    box-shadow: var(--org-shadow-sm);
    border: 1px solid var(--org-border);
}

.org-table th,
.org-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--org-border);
}

.org-table th {
    background-color: var(--org-bg-main);
    font-weight: 600;
    color: var(--org-secondary);
}

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

/* Footer */
.org-footer {
    background-color: var(--org-secondary);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.org-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.org-footer-col h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.org-footer-links {
    list-style: none;
}

.org-footer-links li {
    margin-bottom: 0.75rem;
}

.org-footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
}

.org-footer-links a:hover {
    color: white;
}

.org-footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #94A3B8;
    font-size: 0.875rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Animations */
@keyframes orgFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.org-animate-fade {
    animation: orgFadeIn 0.6s ease-out forwards;
}

/* ── MOBILE DRAWER ── */
.gt-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 30, 0.4);
    z-index: 1999;
}

.gt-overlay.open {
    display: block;
}

.gt-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: #ffffff;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 30px 24px 28px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}

/* ── FAQ COMPONENTS ── */
.org-faq-container {
    padding: 0 !important;
    overflow: hidden;
}

.org-faq-item {
    border-bottom: 1px solid var(--org-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.org-faq-item:last-child {
    border-bottom: none;
}

.org-faq-item:hover {
    background: rgba(30, 58, 138, 0.03);
}

.org-faq-item[open] {
    background: #ffffff;
    box-shadow: inset 4px 0 0 var(--org-primary);
}

.org-faq-item summary {
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: var(--org-secondary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    transition: color 0.2s ease;
}

.org-faq-item summary::-webkit-details-marker {
    display: none;
}

.org-faq-item summary::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 2.5px solid var(--org-primary);
    border-bottom: 2.5px solid var(--org-primary);
    transform: rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 5px;
}

.org-faq-item[open] summary {
    color: var(--org-primary);
    padding-bottom: 0.75rem;
}

.org-faq-item[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 8px;
}

.org-faq-content {
    padding: 0 4rem 1.75rem 2rem;
    color: var(--org-text-main);
    font-size: 1.05rem;
    line-height: 1.7;
    animation: orgFadeIn 0.4s ease-out;
}

@media (max-width: 768px) {
    .org-faq-item summary {
        padding: 1.25rem 1.5rem;
        font-size: 0.95rem;
    }
    .org-faq-content {
        padding: 0 1.5rem 1.25rem;
        font-size: 0.95rem;
    }
}

.gt-drawer.open {
    transform: translateX(0);
}

.gt-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #3c44ad;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gt-drawer-logo-img {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 36px;
}

.gt-drawer nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gt-drawer nav a {
    color: #3c44ad;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all .18s;
    font-weight: 500;
}

.gt-drawer nav a:hover {
    background: rgba(60, 68, 173, 0.08);
}

.gt-drawer-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 12px 0;
}

.gt-drawer-social {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
}

.gt-drawer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(60, 68, 173, 0.08);
    border: 1px solid rgba(60, 68, 173, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3c44ad;
    transition: all .18s;
}

/* Responsive */
@media (max-width: 768px) {
    .org-header {
        position: fixed;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 92vw;
        background: #ffffff;
        border-radius: 14px;
        padding: 10px 16px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        z-index: 1000;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .org-header.nav-hidden {
        transform: translate(-50%, -150%);
    }

    .org-nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
        width: 100%;
    }

    .org-mob-menu {
        display: block;
        width: 34px;
        height: 34px;
        background-color: #3c44ad;
        background-image: linear-gradient(to bottom, #fff 2px, transparent 2px, transparent 6px, #fff 6px, #fff 8px, transparent 8px, transparent 12px, #fff 12px);
        background-size: 20px 14px;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 8px;
        cursor: pointer;
        border: none;
        box-shadow: 0 2px 8px rgba(60, 68, 173, 0.3);
        flex-shrink: 0;
    }

    /* Hide menu button on desktop */
    @media (min-width: 769px) {
        .org-mob-menu {
            display: none;
        }
    }

    .org-logo {
        order: 2;
        font-size: 1.2rem;
    }

    .org-hero {
        padding: 4rem 0 3rem;
    }

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

    .org-content-card {
        padding: 1.5rem;
    }

    .org-h2 {
        font-size: 1.5rem;
    }

    .org-cta {
        padding: 2rem 1.5rem;
    }
}