/* ==========================================================================
   Global Reset & Base Styles
   ========================================================================== */

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

body {
    font-family: 'Georgia', serif;
    line-height: 1.8;
    color: #2c3e50;
    background: #fdfbf7;
}

.brochure {
    max-width: 1800px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

.form-width {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Typography & Headings
   ========================================================================== */

h2 {
    font-size: 2.5em;
    color: #2d5016;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #4a7c2c;
}

h3 {
    font-size: 1.8em;
    color: #4a7c2c;
    margin: 30px 0 15px;
}

h4 {
    font-size: 1.3em;
    color: #2d5016;
    margin: 20px 0 10px;
}

p {
    margin-bottom: 20px;
    text-align: justify;
}

/* ==========================================================================
   Section Layout
   ========================================================================== */

section {
    padding: 60px;
    border-bottom: 1px solid #e8e4dc;
}

section:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Cover Page Component
   ========================================================================== */

.cover {
    background: linear-gradient(135deg, #4a7c2c 20%, #2d5016 80%);
    color: #fdf0d8;
    padding: 60px 60px;
    text-align: center;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 45px;
}

.cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M20 50 Q 40 30, 60 50 T 100 50" stroke="rgba(255,255,255,0.05)" fill="none" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.cover-content {
    position: relative;
    z-index: 1;
}

.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: normal;
    letter-spacing: 2px;
    line-height: 1.2;
}

.cover .subtitle {
    font-size: 1.5em;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.95;
    line-height: 1.2;
}

.cover .tagline {
    font-size: 1.1em;
    margin-top: 30px;
    opacity: 0.9;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.cover .age-group {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 35px;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    font-size: 1.2em;
    letter-spacing: 1px;
}

/* ==========================================================================
   Visual Elements & Illustrations
   ========================================================================== */

.illustration {
    width: 100%;
    height: 230px;
    background: linear-gradient(135deg, #f5f2ed 0%, #e8e4dc 100%);
    border-radius: 15px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid #d4cfc4;
}

.illustration-text {
    text-align: center;
    padding: 20px;
    color: #5a6c57;
    font-style: italic;
    font-size: 1.1em;
}

/* ==========================================================================
   Grid Components (Values, Benefits, Weeks, Team)
   ========================================================================== */

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.value-card {
    text-align: center;
    padding: 30px 20px;
    background: #f9f7f3;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-top: 5px solid #4a7c2c;
}

.value-card:hover,
.benefit-card:hover,
.team-member:hover,
.week-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.value-icon,
.benefit-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.value-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2d5016;
}

.value-text {
    font-size: 0.95em;
    line-height: 1.6;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    background: #f9f7f3;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: #9f785a;
    color: white;
    transform: scale(1.05);
}

.benefit-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.benefit-text {
    font-size: 0.95em;
    line-height: 1.6;
}

/* Weeks Container */
.weeks-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.week-card {
    background: #f9f7f3;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #4a7c2c;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.week-number {
    font-size: 2.5em;
    color: #4a7c2c;
    font-weight: bold;
    margin-bottom: 10px;
}

.week-title {
    font-size: 1.5em;
    color: #2d5016;
    margin-bottom: 15px;
}

.week-location {
    color: #7a8a77;
    font-style: italic;
    margin-bottom: 15px;
}

.week-card ul {
    list-style: none;
    padding-left: 0;
}

.week-card li {
    padding: 8px 0 8px 25px;
    position: relative;
}

.week-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4a7c2c;
    font-size: 1.5em;
    line-height: 1;
}

/* Team Container */
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 40px 0;
}

.team-member {
    text-align: center;
    background: #f9f7f3;
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.team-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cbd5c0 0%, #b8c4aa 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid #4a7c2c;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo-placeholder {
    font-size: 3em;
    color: #5a6c57;
}

.team-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #2d5016;
    margin-bottom: 5px;
}

.team-role {
    color: #4a7c2c;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.team-bio {
    font-size: 0.9em;
    text-align: left;
    line-height: 1.65;
    color: #4a5562;
}

.team-bio p {
    margin-bottom: 10px;
    text-align: left;
}

/* ==========================================================================
   Highlight Box & Target Audience
   ========================================================================== */

.highlight-box {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe8cc 100%);
    border-left: 5px solid #f39c12;
    padding: 30px;
    margin: 30px 0;
    border-radius: 10px;
}

.highlight-box h3 {
    color: #d68910;
    margin-top: 0;
}

.target-audience {
    background: #f9f7f3;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.target-audience ul {
    list-style: none;
    padding: 0;
}

.target-audience li {
    padding: 15px 0 15px 40px;
    position: relative;
    font-size: 1.1em;
}

.target-audience li::before {
    content: '❖';
    position: absolute;
    left: 0;
    color: #4a7c2c;
    font-size: 1.0em;
    font-weight: bold;
}

/* ==========================================================================
   Table & Itinerary Components
   ========================================================================== */

.routine-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #f9f7f3;
    border-radius: 15px;
    overflow: hidden;
}

.routine-table th,
.routine-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #e8e4dc;
}

.routine-table th {
    background: #4a7c2c;
    color: white;
    font-weight: bold;
}

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

.routine-table tr:hover {
    background: #f5f2ed;
}

.itinerary-list {
    background: #f9f7f3;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.itinerary-list ul {
    list-style: none;
    padding: 0;
}

.itinerary-list li {
    padding: 12px 0 12px 40px;
    position: relative;
    border-bottom: 1px solid #e8e4dc;
}

.itinerary-list li:last-child {
    border-bottom: none;
}

.itinerary-list li::before {
    content: '◼ ︎ ';
    position: relative;
    left: 0;
    color: #4a7c2c;
    font-size: 1.2em;
}

.itinerary-day {
    font-weight: bold;
    color: #2d5016;
    display: inline-block;
    width: 100px;
}

/* ==========================================================================
   Fee Card & Diagram Components
   ========================================================================== */

.fee-card {
    background: linear-gradient(135deg, #f0f4e8 0%, #e8f0e0 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
    border: 2px solid #4a7c2c;
}

.fee-amount {
    font-size: 3.5em;
    color: #2d5016;
    font-weight: bold;
    margin: 20px 0;
}

.fee-amount small {
    font-size: 0.4em;
    font-weight: normal;
}

.scholarship-note {
    background: #fff9e6;
    border-left: 5px solid #f39c12;
    padding: 20px 25px;
    margin-top: 25px;
    border-radius: 10px;
    text-align: left;
}

.support-note {
    background: #f9f7f3;
    padding: 20px 25px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: left;
}

.diagram {
    background: white;
    border: 2px solid #4a7c2c;
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
}

.diagram-title {
    font-size: 1.5em;
    color: #2d5016;
    margin-bottom: 30px;
    font-weight: bold;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-box {
    background: linear-gradient(135deg, #4a7c2c 0%, #5a8c3c 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    min-width: 150px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(74, 124, 44, 0.3);
}

.flow-arrow {
    font-size: 2em;
    color: #4a7c2c;
}

/* ==========================================================================
   Form Components
   ========================================================================== */

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2d5016;
}

.required-star {
    color: #e74c3c;
    margin-left: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d4cfc4;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1em;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4a7c2c;
    box-shadow: 0 0 0 2px rgba(74, 124, 44, 0.2);
}

input.error-field,
select.error-field,
textarea.error-field {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

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

.checkbox-group.error-group {
    background: #fff5f5;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #e74c3c;
}

.radio-group {
    display: flex;
    gap: 30px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input {
    width: auto;
    margin: 0;
}

.radio-option label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.fee-section {
    background: #f9f7f3;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid #e8e4dc;
}

.fee-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2d5016;
}

.scholarship-check {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #d4cfc4;
}

.submit-btn {
    background: linear-gradient(135deg, #4a7c2c 20%, #2d5016 80%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.photo-upload {
    border: 2px dashed #d4cfc4;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    background: #f9f7f3;
}

.photo-upload.error-zone {
    border-color: #e74c3c;
    background: #fff5f5;
}

.validation-summary {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.validation-summary h4 {
    color: #721c24;
    margin-bottom: 10px;
}

.validation-summary ul {
    margin-left: 20px;
    color: #721c24;
}

.note {
    background: #f9f7f3;
    padding: 15px;
    border-left: 4px solid #4a7c2c;
    margin-bottom: 30px;
    font-size: 0.9em;
}

.character-count {
    font-size: 0.75em;
    color: #7f8c8d;
    text-align: right;
    margin-top: 5px;
}

.character-count.warning {
    color: #e67e22;
}

.character-count.danger {
    color: #e74c3c;
}

.character-count.success {
    color: #27ae60;
}

.photo-preview {
    margin-top: 15px;
    text-align: center;
}

.photo-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 10px;
    border: 2px solid #4a7c2c;
}

.date-note {
    font-size: 0.8em;
    color: #4a7c2c;
    margin-top: 5px;
}

/* ==========================================================================
   Contact Section & Button
   ========================================================================== */

.contact-section {
    background: linear-gradient(135deg, #4a7c2c 20%, #2d5016 80%);
    color: white;
    text-align: center;
    padding: 10px;
}

.contact-section h2 {
    color: white;
}

.contact-section h2::after {
    background: white;
}

.contact-section a {
    color: #f8e8c5;
}

.apply-button {
    display: inline-block;
    margin-top: 30px;
    padding: 18px 50px;
    background: #f8e8c5;
    color: #2d5016;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.apply-button:hover {
    transform: translateY(-3px);
    color: #cc6600 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Fix for apply button visibility - override contact-section link color */
.contact-section .apply-button {
    color: #2d5016;
}

/* ==========================================================================
   Top Menu Navigation
   ========================================================================== */

.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 0;
    z-index: 1000;
}

.top-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.top-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.8em;
}

.top-menu a:hover {
    font-size: 1.0em;
    color: orange;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 768px) {
    section {
        padding: 40px 30px;
    }
    
    .cover {
        padding: 20px 30px;
    }
    
    .cover h1 {
        font-size: 2.2em;
    }
    
    h2 {
        font-size: 2em;
    }
    
    .values-grid,
    .team-container,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .weeks-container {
        grid-template-columns: 1fr;
    }
    
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(0deg);
    }
    
    .routine-table th,
    .routine-table td {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    .fee-amount {
        font-size: 2.5em;
    }
    
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .brochure {
        box-shadow: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}