/* MyProgram CSS Styles - Matching Original Design */

* {
    box-sizing: border-box;
}

.myprogram-container {
    min-height: 100vh;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

.myprogram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 0;
}

.myprogram-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styles */
.myprogram-header {
    text-align: center;
    margin-bottom: 3rem;
    background: #14532d;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid #14532d;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.header-content .logo {
    width: 7.5rem;
    height: 6rem;
    margin-right: 0.75rem;
}

.header-content h1 {
    font-size: 2.25rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

.subtitle {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.subtitle .highlight {
    color: #fbbf24;
    font-weight: bold;
}

.myprogram-header .description {
    color: white;
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 0;
}

/* Grid Layout */
.myprogram-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .myprogram-grid {
        grid-template-columns: 1fr 2fr 1fr;
    }
}

.grid-item {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
}

/* Section Headers */
.campus-life h2 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #14532d;
    margin: 0 0 1rem 0;
}

.input-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #14532d;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.admission-section h2 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #14532d;
    margin: 0 0 1rem 0;
}

/* Carousel Styles */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #f3f4f6;
    height: 16rem;
    margin-bottom: 1.5rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-track img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.875rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    color: #1f2937;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.carousel-btn.prev {
    left: 0.5rem;
}

.carousel-btn.next {
    right: 0.5rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.carousel-indicator.active {
    background: white;
    width: 2rem;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
}

.btn-yellow {
    background: #eab308;
    color: #14532d;
}

.btn-yellow:hover {
    background: #facc15;
}

.btn-green {
    background: #14532d;
    color: white;
}

.btn-green:hover {
    background: #15803d;
}

.btn-reset {
    background: white;
    border: 2px solid #d1d5db !important;
    color: #374151;
    padding: 0.75rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reset:hover {
    background: #f9fafb;
}

.btn-large {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

.button-group .btn {
    flex: 1;
}

.button-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.button-row .btn-reset {
    flex-shrink: 0;
}

/* Input Section */
.input-section {
    border: 2px solid #14532d;
}

.input-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

#myprogram-form {
    margin: 0;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.keyword-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: white;
}

.keyword-input::placeholder {
    color: #9ca3af;
}

.keyword-input:focus {
    outline: none;
    border-color: #22c55e;
}

.clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: none;
    line-height: 1;
}

.clear-btn:hover {
    color: #4b5563;
}

/* Admission Section */
.admission-section {
    display: flex;
    flex-direction: column;
}

.requirements-list {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(20, 83, 45, 0.1);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.requirement-item {
    color: #14532d;
    padding: 0.75rem 0.5rem;
    line-height: 1.4;
}

.social-media {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(20, 83, 45, 0.1);
    margin-top: 1.25rem;
}

.social-media h3 {
    font-weight: bold;
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    color: #14532d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: #14532d;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.875rem;
    transition: all 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: white;
    padding: 2rem 3rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1001;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #e5e7eb;
    border-top-color: #14532d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #4b5563;
    font-size: 1.125rem;
    margin: 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    max-width: 72rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #14532d;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #14532d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.75rem;
    padding: 0.5rem;
    transition: all 0.3s;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-btn:hover {
    color: #374151;
    background: #f3f4f6;
}

.modal-body {
    margin: 0;
}

/* Course Count Badge */
.course-count {
    background: #f0fdf4;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.course-count p {
    color: #14532d;
    font-weight: 600;
    margin: 0;
}

.course-count .count {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Campus Tabs */
.campus-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
}

.campus-tab {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    border: none;
    border-bottom: 4px solid transparent;
    color: #6b7280;
    position: relative;
    font-size: 1rem;
}

.campus-tab.active {
    color: #14532d;
    border-bottom-color: #14532d;
}

.campus-tab:hover {
    color: #374151;
}

.tab-badge {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    display: inline-block;
}

.campus-tab.active .tab-badge {
    background: #14532d;
    color: white;
}

.campus-tab:not(.active) .tab-badge {
    background: #e5e7eb;
    color: #6b7280;
}

/* Course Grid */
.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.course-card {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: all 0.3s;
    cursor: pointer;
    background: white;
}

.course-card:hover {
    border-color: #22c55e;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.course-card h4 {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.course-card .description {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.course-card .description.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.keyword-more {
    color: #6b7280;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* College Section */
.college-section {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.college-header {
    margin-bottom: 1.25rem;
}

.college-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.college-title h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #14532d;
    margin: 0;
}

.college-badge {
    background: #14532d;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Modal Footer */
.modal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
    text-align: center;
}

.modal-footer p {
    color: #4b5563;
    margin: 0 0 1rem 0;
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
    .myprogram-container {
        padding: 1rem;
    }
    
    .myprogram-header {
        padding: 1rem;
    }
    
    .header-content h1 {
        font-size: 1.875rem;
    }
    
    .header-content .logo {
        width: 5rem;
        height: 4rem;
    }
    
    .carousel {
        height: 12rem;
    }
    
    .modal-content {
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .button-group {
        flex-direction: column;
    }
    
    .campus-tabs {
        flex-direction: column;
    }
    
    .campus-tab {
        border-bottom: none;
        border-left: 4px solid transparent;
        padding: 0.5rem 1rem;
    }
    
    .campus-tab.active {
        border-bottom: none;
        border-left-color: #14532d;
    }
}