/**
 * Host Schools Specific Styles
 * Contains all the styles specific to the Host Schools page
 */

/* Hero Banner Styles */
.hero-banner {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.hero-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

/* Section Styles */
.content-section {
    padding: 80px 0;
    position: relative;
    width: 100%;
}

.content-section:nth-child(even) {
    background-color: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2a5298;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #f47920, #ed5f26);
    border-radius: 2px;
}

/* Introduction Section */
.intro-text {
    text-align: center;
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.button-container {
    text-align: center;
    margin: 30px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #f47920;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 10px;
}

.primary-btn {
    background: linear-gradient(135deg, #f47920, #ed5f26);
    box-shadow: 0 5px 15px rgba(244, 121, 32, 0.2);
}

.primary-btn:hover {
    background: linear-gradient(135deg, #ed5f26, #f47920);
    box-shadow: 0 8px 20px rgba(244, 121, 32, 0.3);
    transform: translateY(-2px);
}

.secondary-btn {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.2);
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
    transform: translateY(-2px);
}

/* Video and Programs Section */
.video-text-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

/* Update video container for better responsive behavior */
.video-container:not([style]) {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    margin: 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-container:not([style]) iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.text-content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.text-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    border-left: 4px solid #f47920;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.text-content p:last-child {
    margin-bottom: 0;
}

/* Program list */
.program-list {
    margin: 40px 0;
    padding: 0;
    list-style-type: none;
}

.program-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.program-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #f47920;
}

/* Benefits Sections */
.benefits-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 40px 0;
}

.benefit-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 30px;
    width: 100%;
    max-width: 350px;
    transition: all 0.3s ease;
    border-top: 4px solid #2a5298;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.benefit-card h3 {
    font-size: 1.4rem;
    color: #2a5298;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-card h3 i {
    color: #f47920;
}

.benefit-card p {
    color: #444;
    line-height: 1.6;
}

/* Registration form styles */
.registration-form-container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    padding: 50px;
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.registration-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 10px;
    width: 100%;
    background: linear-gradient(to right, #f47920, #ed5f26);
}

.form-title {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-field {
    margin-bottom: 5px;
}

.form-field.full-width {
    grid-column: span 2;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
}

.required::after {
    content: " *";
    color: #e74c3c;
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-input:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    outline: none;
    background-color: white;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.helper-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.submit-btn {
    background: linear-gradient(to right, #f47920, #ed5f26);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px auto;
    display: block;
    font-weight: 600;
    width: auto;
    min-width: 200px;
}

.submit-btn:hover {
    background: linear-gradient(to right, #ed5f26, #f47920);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(237, 95, 38, 0.3);
}

.alert {
    padding: 15px;
    margin-bottom: 30px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Loading indicator */
.loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #2a5298;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Go Top Button */
#go-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background-color: #2a5298;
    color: white;
    border: none;
    border-radius: 50%;
}

/* Representative Page Specific Styles */
/* Role Card Styles */
.role-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin: 30px 0;
}

.role-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 30px;
    width: 100%;
    max-width: 320px;
    transition: all 0.3s ease;
    border-left: 4px solid #f47920;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.role-card h3 {
    font-size: 1.4rem;
    color: #2a5298;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-card h3 i {
    color: #f47920;
}

.role-card p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.role-card ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.role-card ul li {
    margin-bottom: 8px;
    color: #444;
}

/* Section Footer Styles */
.section-footer {
    margin-top: 50px;
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.impact-message {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.impact-message h3, 
.cta-message h3 {
    font-size: 1.5rem;
    color: #2a5298;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.impact-message h3 i, 
.cta-message h3 i {
    color: #f47920;
}

.impact-message p, 
.cta-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.cta-message {
    text-align: center;
}

.cta-message h3 {
    justify-content: center;
}

/* New Role Cards Layout - Enhanced for longer text */
.role-container-enhanced {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 30px auto;
}

.role-card-enhanced {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.role-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.role-card-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(42, 82, 152, 0.03), rgba(42, 82, 152, 0.07));
    border-bottom: 1px solid #f0f0f0;
}

.role-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f47920, #ed5f26);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.role-card-icon i {
    font-size: 20px;
    color: white;
}

.role-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2a5298;
    margin: 0;
}

.role-card-body {
    padding: 25px;
    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
}

.role-card-body p {
    margin-bottom: 15px;
}

.role-card-body ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.role-card-body ul li {
    margin-bottom: 10px;
    position: relative;
}

.role-card-body ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #f47920;
    position: absolute;
    left: -20px;
}

.role-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #f47920, #ed5f26);
    border-radius: 0 2px 2px 0;
}

/* Two-column Layout Option */
.role-container-two-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 25px;
    max-width: 1200px;
    margin: 30px auto;
}

.role-card-enhanced {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.role-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.role-card-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(42, 82, 152, 0.03), rgba(42, 82, 152, 0.07));
    border-bottom: 1px solid #f0f0f0;
}

.role-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f47920, #ed5f26);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.role-card-icon i {
    font-size: 20px;
    color: white;
}

.role-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2a5298;
    margin: 0;
}

.role-card-body {
    padding: 20px 25px;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.role-card-body p {
    margin-bottom: 15px;
    margin-top: 0;
}

.role-card-body ul {
    padding-left: 20px;
    margin-bottom: 0;
    margin-top: 0;
}

.role-card-body ul li {
    margin-bottom: 8px;
    position: relative;
}

.role-card-body ul li:last-child {
    margin-bottom: 0;
}

.role-card-body ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #f47920;
    position: absolute;
    left: -20px;
}

.role-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #f47920, #ed5f26);
    border-radius: 0 2px 2px 0;
}

/* Enhanced Footer Section */
.section-footer-enhanced {
    margin-top: 40px;
    position: relative;
}

.impact-cta-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.impact-message-enhanced,
.cta-message-enhanced {
    background-color: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.impact-message-enhanced:hover,
.cta-message-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.impact-message-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, #2a5298, #1e3c72);
}

.cta-message-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, #f47920, #ed5f26);
}

.impact-message-enhanced h3,
.cta-message-enhanced h3 {
    font-size: 1.6rem;
    color: #2a5298;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.impact-message-enhanced h3 i,
.cta-message-enhanced h3 i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
}

.impact-message-enhanced h3 i {
    color: white;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
}

.cta-message-enhanced h3 i {
    color: white;
    background: linear-gradient(135deg, #f47920, #ed5f26);
}

.impact-message-enhanced p,
.cta-message-enhanced p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .role-container-two-column {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .impact-cta-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .role-container-two-column {
        grid-template-columns: 1fr;
    }
}

/* Accordion Style Option */
.role-accordion {
    max-width: 900px;
    margin: 30px auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.accordion-header {
    background: white;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 5px solid #f47920;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(42, 82, 152, 0.02);
}

.accordion-title-wrapper {
    display: flex;
    align-items: center;
}

.accordion-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f47920, #ed5f26);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.accordion-icon i {
    font-size: 18px;
    color: white;
}

.accordion-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: #2a5298;
    margin: 0;
}

.accordion-arrow {
    color: #f47920;
    transition: transform 0.3s ease;
}

.accordion-arrow.active {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.accordion-content.active {
    padding: 25px;
    max-height: 1000px;
}

/* Tabs Style Option */
.role-tabs {
    max-width: 900px;
    margin: 30px auto;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}

.tab-button {
    padding: 12px 20px;
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.tab-button i {
    margin-right: 8px;
    color: #f47920;
}

.tab-button.active {
    background: linear-gradient(135deg, #f47920, #ed5f26);
    color: white;
    box-shadow: 0 5px 15px rgba(244, 121, 32, 0.2);
}

.tab-button.active i {
    color: white;
}

.tab-content {
    display: none;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
    }
}

/* Media queries for responsive forms */
@media (max-width: 768px) {
    .registration-form-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-field {
        margin-bottom: 10px;
    }
    
    .form-input {
        padding: 12px;
    }
    
    .submit-btn {
        width: 100%;
        max-width: 280px;
        margin: 20px auto;
    }
    
    .form-title {
        font-size: 1.7rem;
        margin-bottom: 20px;
    }
    
    /* Improve role cards display on mobile */
    .role-container {
        gap: 15px;
    }
    
    .role-card {
        max-width: 100%;
        padding: 20px 15px;
    }
    
    /* Make two-column layout stack on mobile */
    .benefits-layout {
        flex-direction: column !important;
    }
    
    .benefits-layout > div {
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 30px;
    }
    
    /* Hide vertical divider on mobile */
    .benefits-layout > div + div {
        border-top: 1px dashed #ddd;
        padding-top: 30px;
        margin-top: 15px;
    }
    
    .benefits-layout > div:last-child {
        margin-bottom: 0;
    }
    
    /* Hide vertical line divider on mobile */
    .benefits-layout > div + div:before {
        display: none;
    }
    
    /* Hide the vertical divider between columns */
    .benefits-layout > div:nth-child(2) {
        border-left: none !important; 
    }
    
    div[style*="width: 1px; background-color: #e0e0e0; margin: 0 20px;"] {
        display: none !important;
    }
    
    /* Add spacing between sections */
    .content-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .registration-form-container {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .form-field {
        margin-bottom: 12px;
    }
    
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
    
    .form-input {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .helper-text {
        font-size: 0.75rem;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 1.1rem;
    }
    
    /* Further adjustments for extra small screens */
    .role-card h3 {
        font-size: 1.2rem;
    }
    
    .role-card p, 
    .role-card ul li {
        font-size: 0.9rem;
    }
    
    /* Fix for benefit icons alignment */
    [style*="display: flex; align-items: center;"] {
        flex-wrap: wrap;
    }
    
    /* Improve navigation for mobile */
    .section-header h2 {
        font-size: 1.8rem;
    }
}