body {
    font-family: 'Heebo', Arial, sans-serif;
    background: #F1FBFE;
    margin: 0;
    color: #333;
}

header {
    background: #1B5773;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    min-height: 120px; 
}

header h1 {
    margin-bottom: 5px; 
}

header h3 {
    margin-top: 0;
    margin-bottom: 10px; 
}

header p {
    margin-top: 0; 
}

#hit-logo {
    position: absolute;
    top: 15px;     
    right: 30px;   
    left: auto;     
    height: 60px;   
    width: auto;    
}

.header-buttons {
    position: absolute;
    bottom: 15px; 
    left: 25px;   
    top: auto;   
    display: flex;
    gap: 12px;
}

#about-btn, #credits-btn {
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    transition: 0.3s;
}

#about-btn:hover, #credits-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

#main-logo {
    position: absolute;
    top: 20px;
    left: 25px;  
    right: auto; 
    height: 55px; 
    width: auto;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem;
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    cursor: pointer;
    border: 1px solid #e1e4e8;
}

.card:hover {
    transform: translateY(-8px);
    border-color: #1a2a6c;
}

.disabled-card {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(60%);
    cursor: not-allowed;
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content {
    background-color: #fdfaf5;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 75%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: fadeIn 0.6s ease-out;
}


.about-official-modal {
    direction: rtl;
    padding: 30px 50px 20px 50px;
}

.close-btn {
    position: absolute;
    right: 25px; 
    left: auto;  
    top: 20px;
    font-size: 35px; 
    cursor: pointer;
    color: #999;
}
.close-btn:hover {
    color: #333;
}

.modal-top-title {
    text-align: center;
    color: #333;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: bold; 
}

.about-header-centered {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}
.about-header-centered h1 {
    color: #1B5773;
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    font-weight: bold; 
    text-align: center;
}
.about-header-centered p {
    font-size: 1rem;
    margin: 3px 0;
    color: #333;
    text-align: center;
}
.about-header-centered a {
    font-size: 1rem;
    color: #0000EE;
    text-decoration: underline;
    display: inline-block;
    margin-top: 5px;
}

.about-split-section {
    display: flex;
    justify-content: center; 
    align-items: center;
    max-width: 550px; 
    margin: 0 auto 15px auto;
    gap: 30px;
}

.about-logo-side {
    flex: 0 0 160px; 
    text-align: right; 
}
.about-logo-side img {
    max-width: 140px;
    height: auto;
}

.about-text-side {
    flex: 1;
    text-align: right;
}
.about-text-side p {
    font-size: 1rem;
    margin: 5px 0;
    line-height: 1.3;
}

.about-footer-centered {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    width: 100%;
}
.about-footer-centered p {
    color: #666;
    font-size: 1rem;
    margin: 0;
    text-align: center;
}


.credits-section {
    direction: rtl;
}

.credits-section h2 {
    color: #1B5773;
    margin-bottom: 25px;
    font-size: 1.6rem;
    border-bottom: 2px solid #e1e4e8;
    padding-bottom: 10px;
}

.credits-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.credits-col {
    flex: 1;
    min-width: 250px;
}

.credits-col h4 {
    color: #333;
    border-bottom: 2px solid #1B5773;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.credits-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credits-col ul li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #555;
}

.license-box {
    background: #f1f3f5;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.license-box p {
    margin: 0 0 5px 0;
}

details {
    cursor: pointer;
    color: #1B5773;
    font-weight: bold;
    font-size: 0.9rem;
}

details summary {
    outline: none;
    padding: 2px 0;
}

details pre {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.8rem;
    color: #444;
    margin-top: 8px;
    max-height: 120px;
    overflow-y: auto;
    font-weight: normal;
}