.travel-programs {
    padding: 40px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.program-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-image {
    height: 200px;
    overflow: hidden;
}

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

.program-content {
    padding: 20px;
}

.program-content h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.program-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
    text-align: center;
}

.location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
}

.location i {
    margin-right: 8px;
    color: #3498db;
}

.program-footer {
    margin-top: 20px;
    text-align: center;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.btn-primary {
    padding: 8px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

.hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
}

/* Add a dark overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content h1,
.hero-content h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.intro-section {
    margin-bottom: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-section h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

/* Sidebar application widget */
.widget .btn-primary {
    display: block;
    text-align: center;
    margin-top: 20px;
}

.main-site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.main-site-content-wrapper {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 40px;
}

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

.main-site-sidebar {
    position: sticky;
    top: 20px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-site-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .main-site-sidebar {
        position: static;
    }
}

/* Program Details Page Specific Styles */
.program-details {
    padding-top: 40px;
}

.program-header {
    text-align: center;
    margin-bottom: 40px;
}

section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

section h3 {
    font-size: 1.2rem;
    color: #34495e;
    margin: 20px 0 15px 0;
}

/* Teachers Grid */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.teacher-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.teacher-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.teacher-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.teacher-title {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Housing Rates */
.housing-rates {
    list-style: none;
    padding-left: 0;
}

.housing-rates li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.housing-rates li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
}

/* Testimonials */
blockquote {
    font-style: italic;
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 20px 0;
}

blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    color: #7f8c8d;
}

/* Secondary Button */
.btn-secondary {
    display: inline-block;
    padding: 8px 20px;
    background-color: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #27ae60;
}

.teacher-preview {
    cursor: pointer;
    transition: transform 0.2s;
}

.teacher-preview:hover {
    transform: translateY(-5px);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

.modal-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.modal-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-title {
    color: #666;
    margin-top: 0.5rem;
}

.modal-bio {
    line-height: 1.6;
    color: #333;
}

@media (max-width: 600px) {
    .modal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-image {
        margin: 0 auto;
    }
}

/* Carousel Styles */
.program-gallery {
    margin: 40px 0;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-slides {
    position: relative;
    height: 450px;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 16px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 2;
    transition: background-color 0.3s;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #3498db;
}

/* Fade Animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
} 


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

.admin-section {
    background: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-item {
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.gallery-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 10px;
    display: flex;
    justify-content: space-around;
}

.btn-small {
    padding: 4px 8px;
    font-size: 0.9rem;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.upload-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.current-hero {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.hero-preview {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin: 1rem 0;
}

.image-details {
    color: #666;
    font-size: 0.9rem;
}

.preview-container {
    margin: 1rem 0;
}

.preview-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 4px;
}

.help-text {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.widget.application-widget img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

.widget.application-widget {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.widget.application-widget h3 {
    margin-bottom: 1rem;
}

.widget.application-widget p {
    margin-top: 1rem;
    text-align: center;
}


/* Shared styles for both admin and public views */
.program-container, .admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero section */
.hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    margin-bottom: 2rem;
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}
*/

/* Program content */
.program-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 2rem 0;
}

.program-content h3 {
    text-align: left;
    color: #E5901A;
    font-size: 20px;
    text-transform: uppercase;
    border-bottom: 3px solid #1F5478;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-weight: normal
}

/* Admin specific styles */
.admin-section {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

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

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

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 200px;
}

.image-preview {
    margin: 1rem 0;
}

.preview-image {
    max-width: 300px;
    margin: 1rem 0;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-right: 1rem;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    text-decoration: none;
}

/* Alert messages */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 40vh;
    }
    
    .admin-container {
        padding: 1rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

.program-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.program-content {
    flex: 1;
}

.program-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

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

.sidebar-section h3 {
    color: #E5901A;
    font-size: 20px;
    text-transform: uppercase;
    border-bottom: 3px solid #1F5478;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-weight: normal;
}

.highlights-list {
    list-style-type: none;
    padding-left: 0;
}

.highlights-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.highlights-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #007bff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .program-wrapper {
        flex-direction: column;
    }
    
    .program-sidebar {
        width: 100%;
        position: static;
    }
}

.hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.edit-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #E5901A;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.edit-button:hover {
    background: #d48318;
    color: white;
    text-decoration: none;
}

/* If you're using Font Awesome icons */
.edit-button i {
    font-size: 14px;
}

/* Carousel Admin Styles */
.carousel-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.carousel-image-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.carousel-image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.carousel-image-item p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.carousel-image-item .actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.carousel-image-item button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.carousel-image-item button:first-child {
    background: #007bff;
    color: white;
}

.carousel-image-item button:last-child {
    background: #dc3545;
    color: white;
}

.carousel-image-item input[type="number"] {
    width: 60px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Add New Image Form */
.add-carousel-image {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.add-carousel-image .form-group {
    margin-bottom: 15px;
}

.add-carousel-image label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.add-carousel-image input[type="text"],
.add-carousel-image textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-carousel-image button[type="submit"] {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* Modal styles for edit form */
.carousel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.carousel-modal-content {
    position: relative;
    background-color: #fff;
    margin: 20px auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-modal .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
}

.carousel-modal .form-group {
    margin-bottom: 15px;
}

@media screen and (max-height: 600px) {
    .carousel-modal-content {
        margin: 10px auto;
    }
}

.add-carousel-form {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.add-carousel-form h3 {
    margin-bottom: 20px;
    color: #333;
}

.add-carousel-form .form-group {
    margin-bottom: 15px;
}

.add-carousel-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.add-carousel-form input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.add-carousel-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 100px;
}

.add-carousel-form input[type="number"] {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-carousel-form button {
    margin-top: 10px;
}

/* Success/Error messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

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

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}