/* 
 * Milton International School - Subpage Styles
 * Common styles for all inner pages
 */

/* ==================== Page Banner ==================== */
.page-banner {
    position: relative;
    width: 100%;
    height: 350px;
    margin-top: 80px;
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(140, 21, 21, 0.85) 0%, rgba(140, 21, 21, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-banner-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
}

/* ==================== Breadcrumb ==================== */
.breadcrumb {
    background: #f8f8f8;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #5cb531;
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: #8c1515;
    font-weight: 500;
}

/* ==================== Page Content ==================== */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 15px;
}

.page-section {
    margin-bottom: 60px;
}

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

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-top: -30px;
    margin-bottom: 40px;
}

/* ==================== Content Card ==================== */
.content-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.content-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 20px;
    font-weight: 600;
}

.content-card p {
    color: #666;
    line-height: 1.9;
    margin-bottom: 15px;
    font-size: 15px;
    text-align: justify;
}

.content-card p:last-child {
    margin-bottom: 0;
}

/* ==================== Timeline ==================== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #5cb531, #8c1515);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
    padding-left: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 15px;
    height: 15px;
    background: #5cb531;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #5cb531;
}

.timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #8c1515;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 18px;
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}

/* ==================== Two Column Layout ==================== */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

/* ==================== Image Gallery ==================== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ==================== Stats Section ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
    background: linear-gradient(135deg, #5cb531 0%, #4a9628 100%);
    border-radius: 8px;
    color: #fff;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ==================== Team Grid ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.team-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.team-card-image {
    height: 280px;
    overflow: hidden;
}

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

.team-card-info {
    padding: 20px;
    text-align: center;
}

.team-card-name {
    font-size: 18px;
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-card-title {
    font-size: 13px;
    color: #888;
}

/* ==================== Sidebar Navigation ==================== */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

.sidebar-nav {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-nav-title {
    background: #8c1515;
    color: #fff;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-nav-list {
    padding: 10px 0;
}

.sidebar-nav-item {
    display: block;
    padding: 15px 20px;
    color: #666;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
    background: #f8f8f8;
    color: #5cb531;
    border-left-color: #5cb531;
}

.main-content {
    min-height: 500px;
}

/* ==================== Contact Form ==================== */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

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

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

.btn-submit {
    display: inline-block;
    padding: 14px 50px;
    background: #5cb531;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #4a9628;
}

/* ==================== Contact Info ==================== */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5cb531 0%, #4a9628 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
}

.contact-info-title {
    font-size: 16px;
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-info-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ==================== News List ==================== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-list-item {
    display: flex;
    gap: 25px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.news-list-image {
    width: 300px;
    flex-shrink: 0;
}

.news-list-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-list-content {
    padding: 25px;
    flex: 1;
}

.news-list-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.news-list-content h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.news-list-content p {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .page-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-nav {
        position: static;
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 250px;
        margin-top: 60px;
    }
    
    .page-banner-title {
        font-size: 28px;
    }
    
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .news-list-item {
        flex-direction: column;
    }
    
    .news-list-image {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 40px 15px;
    }
    
    .content-card {
        padding: 25px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
}


/* ==================== Inquiry Form Additional Styles ==================== */
.inquiry-form .form-group.full-width {
    grid-column: 1 / -1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5cb531;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-submit {
    background: linear-gradient(135deg, #5cb531, #4a9628);
    border-radius: 30px;
    padding: 15px 50px;
    font-size: 16px;
    font-weight: 600;
}

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


/* ==================== Faculty Grid ==================== */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.faculty-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.faculty-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    gap: 20px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.faculty-card.compact {
    flex-direction: column;
    text-align: center;
    padding: 0;
}

.faculty-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.faculty-card.compact .faculty-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 20px auto 0;
}

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

.faculty-info {
    flex: 1;
}

.faculty-card.compact .faculty-info {
    padding: 20px;
}

.faculty-info h3 {
    font-size: 18px;
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 5px;
}

.faculty-title {
    font-size: 14px;
    color: #5cb531;
    margin-bottom: 10px;
}

.faculty-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* ==================== News Item ==================== */
.news-item {
    display: flex;
    gap: 25px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.news-image {
    width: 280px;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 180px;
}

.news-content {
    padding: 25px 25px 25px 0;
    flex: 1;
}

.news-date {
    display: inline-block;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.read-more {
    font-size: 14px;
    color: #5cb531;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #4a9628;
}

/* ==================== News Featured ==================== */
.news-featured {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-featured-item {
    position: relative;
}

.news-featured-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.news-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.news-featured-content .news-date {
    color: rgba(255,255,255,0.8);
}

.news-featured-content h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 10px;
}

.news-featured-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* ==================== Sidebar Search ==================== */
.sidebar-search {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-submit {
    padding: 10px 15px;
    background: #5cb531;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit:hover {
    background: #4a9628;
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.page-info {
    font-size: 14px;
    color: #888;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-num,
.page-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.page-num:hover,
.page-next:hover {
    border-color: #5cb531;
    color: #5cb531;
}

.page-num.active {
    background: #5cb531;
    border-color: #5cb531;
    color: #fff;
}

/* ==================== CTA Section ==================== */
.cta-section {
    background: linear-gradient(135deg, #5cb531 0%, #4a9628 100%);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: #fff;
    color: #5cb531;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #1a1a2e;
    color: #fff;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .page-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-nav {
        position: static;
    }
    
    .faculty-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 250px;
    }
    
    .page-banner-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .faculty-grid,
    .faculty-grid.three-col {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
}
