/* Container and Layout */
.container {
    max-width: 100%;
    margin-top:  70px; /* Adjusted for header height */
    padding:20px;
    background: #fff;

}

h2 {
    
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.universities-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* University */
.university-section {
    background: #f5f7fa;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(44,62,80,0.04);
}

.university-section h3 {
    font-size: 1.7rem;
    color: #1565c0;
    margin-bottom: 10px;
}

/* College */
.college-details {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.college-photo {
    width: 200px;
    height: 100px;
    object-fit:fill;
    border-radius: 6px;
    background: #e0e7ef;
}

.course-card {
    flex: 1;
    min-width: 180px;
}

.course-card h4 {
    font-size: 1.4rem;
    color: #1565c0;
    margin-bottom: 6px;
}

.university-name {
    font-weight: 800;
    color: #444;
    margin-bottom: 6px;
}

/* List */
.course-card ul {
    margin: 8px 0 0 0;
    padding-left: 16px;
}

.course-card ul li {
    margin-bottom: 6px;
    font-size: 1.2rem;
    color: #444;
}

.course-card ul ul {
    margin: 4px 0;
    padding-left: 14px;
}

.course-card ul ul li {
    font-size: 1.3rem;
    color: #424040;
    padding: 1px;
}

/* Button Styling */
.learn-more-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background: #1565c0;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    }

    .learn-more-button {
        transition: background 0.2s ease;

    }

    .learn-more-button:hover {
        background: #0d47a1;
            transform: translateY(-2px);
    }

/* Responsive Design */
@media (max-width: 700px) {
    .college-details {
        flex-direction: column;
        align-items: stretch;
    }
    .college-photo {
        width: 100%;
        height: 140px;
    }
    .container {
        padding: 6px;
    }
    .university-section {
        padding: 8px;
    }
    h2 {
        font-size: 1.1rem;
    }
    .university-section h3 {
        font-size: 1rem;
    }
}

/* form  */
/* --- Modal (Popup) Styles --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    padding: 20px; /* Add some padding around the modal */
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* Centers the modal vertically and horizontally */
    padding: 30px;
    border: 1px solid #888;
    width: 90%; /* Responsive width */
    max-width: 600px; /* Maximum width for larger screens */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeInModal 0.3s ease-out; /* Simple fade in animation */
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
}

.modal-content h2 {
    color: #3498db;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8em;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="tel"],
.modal-content textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width calculation */
}

.modal-content textarea {
    resize: vertical; /* Allow vertical resizing */
}

.modal-content button[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content button[type="submit"]:hover {
    background-color: #2980b9;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%; /* Take more width on smaller screens */
        padding: 20px;
    }
    .modal-content h2 {
        font-size: 1.5em;
    }
    .close-button {
        font-size: 28px;
        top: 5px;
        right: 10px;
    }
}

/* Add or adjust these styles for the apply button in college cards */
.apply-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    background-color: #28a745; /* Green color for apply button */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.apply-btn:hover {
    background-color: #218838;
}