/* ==========================================
   GPHMT Website Styles
   Clean, Modern, Minimal Design
   ========================================== */

/* Root Variables */
:root {
    --primary-color: #000;
    --secondary-color: #666;
    --accent-color: #0066cc;
    --light-bg: #fafafa;
    --border: #e0e0e0;
    --text: #333;
    --text-light: #666;
    
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    --base-font-size: 16px;
    --line-height: 1.6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: var(--line-height);
    color: var(--text);
    background-color: #fff;
    font-size: var(--base-font-size);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   Typography
   ========================================== */

h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* ==========================================
   Navigation
   ========================================== */

.navbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    flex: 1;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
}

.nav-menu a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-register {
    background: var(--accent-color);
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-register:hover {
    background: #004999;
    color: #fff !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--text);
}

.menu-toggle:hover {
    color: var(--accent-color);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background: #004999;
    transform: translateY(-2px);
}

/* ==========================================
   Main Sections
   ========================================== */

section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

section:last-of-type {
    border-bottom: none;
}

/* ==========================================
   Overview Section (Homepage)
   ========================================== */

.overview {
    background: #fff;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.overview-item {
    background: #fafafa;
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.overview-item h3 {
    margin-bottom: 1rem;
}

.overview-item a {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
}

/* ==========================================
   CTA Section (Homepage)
   ========================================== */

.cta-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ==========================================
   Page Header (for individual pages)
   ========================================== */

.page-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ==========================================
   Page Content
   ========================================== */

.page-content {
    padding: 4rem 0;
}

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

.content-item {
    background: #fff;
    margin-top: 3rem;
}

.content-item h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.content-item h2:first-child {
    margin-top: 0;
}

.content-item ul {
    margin-left: 1.5rem;
}

.content-item li {
    margin-bottom: 0.75rem;
}

/* ==========================================
   Rules Section
   ========================================== */

.rules {
    background: #fff;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.rules-box {
    background: #fafafa;
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.rules-box h3 {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.75rem;
}

.rules-box ul {
    margin-left: 1.5rem;
}

.rules-box li {
    margin-bottom: 0.75rem;
}

/* ==========================================
   Contests Section
   ========================================== */

.contests {
    background: #fafafa;
}

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

.contest-card {
    background: #fff;
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.contest-card h3 {
    margin-bottom: 0.5rem;
}

.contest-card p {
    flex: 1;
    margin-bottom: 1.5rem;
}

.contest-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contest-links a {
    color: var(--accent-color);
    font-weight: 500;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.contest-links a:hover {
    border-bottom-color: var(--accent-color);
}

/* ==========================================
   Organizers Section
   ========================================== */

.organizers {
    background: #fff;
}

.organizers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0 3rem 0;
}

.organizer-card {
    background: #fafafa;
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    text-align: center;
}

.organizer-card h3 {
    margin-bottom: 0.5rem;
}

.organizer-card .role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.organizer-card p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* ==========================================
   Contact Box
   ========================================== */

.contact-box {
    background: #fafafa;
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    text-align: center;
    margin-top: 2rem;
}

.contact-box h3 {
    margin-bottom: 1rem;
}

.contact-box a {
    font-weight: 600;
}

.cta-box {
    background: #f5f5f5;
    padding: 1.5rem 2rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.cta-box::after {
    content: '→';
    font-size: 1.25rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.cta-box:hover {
    background: #f0f0f0;
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.cta-box:hover::after {
    transform: translateX(3px);
}

.cta-box h2 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.cta-box p {
    margin-bottom: 0;
    color: var(--text-light);
}
    color: var(--text-light);
}

/* ==========================================
   Registration Section
   ========================================== */

.register {
    background: #fafafa;
}

.register-content {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    margin-top: 2rem;
}

.register-info {
    background: #fff;
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    height: fit-content;
    flex: 1;
}

.register-form {
    background: #fff;
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    flex: 1;
}

.warning-text {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.register-info h3 {
    margin-bottom: 1.5rem;
}

.register-info p {
    margin-bottom: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: #fff;
    color: var(--text);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background: #fafafa;
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem 0;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-light);
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        gap: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .navbar {
        position: relative;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .about-grid,
    .rules-grid,
    .contests-grid,
    .organizers-grid,
    .overview-grid,
    .footer-grid {
        flex-direction: column;
    }
    
    .register-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contest-links {
        flex-direction: column;
    }
    
    .contest-links a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .nav-menu li:last-child {
        display: none;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-content {
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .overview-item,
    .rules-box,
    .contest-card,
    .organizer-card {
        padding: 1.5rem;
    }
    
    .register-info,
    .register-form {
        padding: 1.5rem;
    }
    
    .contact-box,
    .cta-box {
        padding: 1.5rem;
    }
    
    .cta-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cta-box h2 {
        font-size: 1.25rem;
    }
    
    .footer {
        padding: 2rem 0 1rem 0;
    }
    
    .footer-col {
        min-width: 100%;
    }
    
    .organizer-card {
        text-align: left;
    }
}

/* ==========================================
   Accessibility
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}
