/* ============================================ */
/* EASY LOGO SIZE CONTROLS - EDIT THESE NUMBERS */
/* ============================================ */
:root {
    --foundation-logo-size: 80px;
    --goldstar-logo-size: 80px;
}
/* ============================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f1e8;
}

.header {
    background: linear-gradient(135deg, #8B7355 0%, #6B5544 100%);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: var(--foundation-logo-size);
}

.logo-right {
    display: flex;
    justify-content: flex-end;
}

.logo-right img {
    height: var(--goldstar-logo-size);
}

.nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #DAA520;
}

.hero-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: #2d2d2d;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: url('/assets/goldstar_logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.hero-banner img {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.85) 0%, rgba(107, 85, 68, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    z-index: 2;
}

.hero-overlay h1 {
    color: #DAA520;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-overlay p {
    color: white;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

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

.hero {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    text-align: center;
}

.hero h1 {
    color: #8B7355;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.button-group {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #DAA520;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    background: #B8860B;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: #8B7355;
}

.btn-secondary:hover {
    background: #6B5544;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.card h2 {
    color: #8B7355;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.list-item {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid #DAA520;
    transition: all 0.3s;
}

.list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

.list-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb {
    padding: 1rem 0;
    color: #666;
}

.breadcrumb a {
    color: #8B7355;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.student-profile {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.profile-header {
    border-bottom: 2px solid #DAA520;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.profile-header h1 {
    color: #8B7355;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: #f5f1e8;
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: #8B7355;
    font-size: 1.8rem;
    font-weight: bold;
}

.stat-value.fail {
    color: #dc3545;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #8B7355;
    color: white;
}

tr:hover {
    background: #f5f1e8;
}

.footer {
    background: #8B7355;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mission-box {
    background: linear-gradient(135deg, #8B7355 0%, #6B5544 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.mission-box h2 {
    color: #DAA520;
    margin-bottom: 1rem;
}

.qa-item {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f5f1e8;
    border-left: 4px solid #DAA520;
    border-radius: 4px;
}

.question {
    font-weight: bold;
    color: #6B5544;
    margin-bottom: 0.5rem;
}

.answer {
    color: #333;
}

.form-group {
    margin: 1.5rem 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #6B5544;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #DAA520;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

.signature-box {
    border: 2px dashed #8B7355;
    padding: 3rem 1rem;
    text-align: center;
    color: #999;
    background: #fafafa;
    border-radius: 4px;
    margin: 1rem 0;
}

.agreement-text {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
}

.agreement-text p {
    margin: 1rem 0;
}

/* ============================================ */
/* MOBILE RESPONSIVE STYLES */
/* ============================================ */

@media (max-width: 768px) {
    /* Header adjustments */
    .header {
        padding: 1rem;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .logo, .logo-right {
        justify-content: center;
    }
    
    .logo img, .logo-right img {
        height: 60px;
    }
    
    .nav {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .nav a {
        font-size: 0.9rem;
    }
    
    /* Container padding */
    .container {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    /* Cards */
    .card {
        padding: 1.25rem;
    }
    
    .card h1 {
        font-size: 1.5rem;
    }
    
    .card h2 {
        font-size: 1.25rem;
    }
    
    /* Tables - make scrollable */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .button-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Grid layouts */
    .grid {
        grid-template-columns: 1fr;
    }
    
    /* Homepage specific */
    .homepage-layout {
        grid-template-columns: 1fr !important;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .left-sidebar, .right-sidebar {
        padding: 1.5rem;
    }
    
    .center-logo img {
        max-width: 250px;
    }
    
    .portal-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .mission-section {
        padding: 1rem;
        margin: 2rem auto;
    }
    
    .mission-box {
        padding: 1.5rem;
    }
    
    .mission-box h2 {
        font-size: 1.5rem;
    }
    
    .mission-box p {
        font-size: 1rem;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-grid img {
        height: 200px;
    }
    
    /* Hero section */
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.85rem;
        line-height: 1.8;
    }
    
    /* Forms */
    .form-group input, .form-group textarea {
        padding: 0.6rem;
    }
    
    /* Password gate (student pages) */
    .password-box {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo img, .logo-right img {
        height: 50px;
    }
    
    .nav {
        gap: 0.5rem;
    }
    
    .nav a {
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .center-logo img {
        max-width: 200px;
    }
    
    th, td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
}
