/* Enhanced Hero Section */
.alumni-hero {
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url("https://blog.cmbaarchitects.com/hubfs/Imported_Blog_Media/058_NWU_DeWitt-Science_Ext_1134.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    transition: background 0.5s ease-in-out;
}

/* Hero Content */
.alumni-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: var(--spacing-sm);
}

.alumni-hero p {
    font-size: 1.2rem;
    color: var(--light-bg);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Hero Button */
.alumni-hero .hero-btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--accent);
    color: var(--primary);
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease-in-out;
    margin-top: var(--spacing-md);
    text-decoration: none;
}

.alumni-hero .hero-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--accent);
    box-shadow: 0 5px 15px var(--hover-shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .alumni-hero {
        height: 400px;
        background-attachment: scroll; /* Disable parallax on mobile */
    }

    .alumni-hero h1 {
        font-size: 2.2rem;
    }

    .alumni-hero p {
        font-size: 1rem;
    }

    .alumni-hero .hero-btn {
        font-size: 1rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}


.hero-content {
    position: relative;
    z-index: 2;
    color: var(--accent);
    padding: 0 2rem;
    max-width: 800px;
    text-align: center;
    animation: fadeInUp 1s ease both;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Flexed H1 Divided */
.hero-content h1 {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    /* Space between the two halves */
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    line-height: 1.1;
    transition: transform 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
    /* To avoid the frame around h1 */
}

.hero-content h1 span {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover Effect for H1 */
.hero-content h1:hover {
    text-shadow: 0 0 30px var(--primary);
    transform: scale(1.05);
    /* Hover effect on scaling */
}

.hero-content h1:hover span {
    transform: translateX(10px);
    /* Adds flex effect on text parts */
}

/* Hover Effect for P */
.hero-content p {
    font-size: 1.7rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover Effects for Paragraph */
.hero-content p:hover {
    transform: translateY(-3px) scale(1.02);
    text-shadow: 0 0 30px var(--primary);

}

/* Button Styling */
.hero-content button {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-content button:hover {
    background-color: var(--hover-color-1);
}

/* Keyframes for Fade-in Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        flex-direction: column;
    }

    .hero-content p {
        font-size: 1.3rem;
    }
}

/* Directory Filters */
.directory-container {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.directory-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem;
    background-color: var(--accent);
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow);
    position: sticky;
    top: 1rem;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.search-input,
.filter-select {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--bg);
    color: var(--text);
}

.search-input {
    flex: 1;
    min-width: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    padding-left: 2.5rem;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.filter-select {
    min-width: 150px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 2.5rem;
}

.filter-label {
    font-weight: 600;
    margin-right: 0.5rem;
    color: var(--primary);
}

.filter-group {
    display: flex;
    align-items: center;
    min-width: 200px;
}

/* Alumni Grid */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.alumni-card {
    background-color: var(--accent);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.alumni-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow);
}

.alumni-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.alumni-card:hover::before {
    transform: scaleX(1);
}

.alumni-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.alumni-card:hover img {
    transform: scale(1.05);
}

.alumni-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.alumni-batch,
.alumni-dept,
.alumni-position {
    margin: 0.4rem 0;
    color: var(--text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.alumni-batch::before,
.alumni-dept::before,
.alumni-position::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7;
}

.alumni-batch::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
}

.alumni-dept::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 5H8.5a6.5 6.5 0 1 0 0 13H12'%3E%3C/path%3E%3Cline x1='2' y1='12' x2='20' y2='12'%3E%3C/line%3E%3C/svg%3E");
}

.alumni-position::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'%3E%3C/path%3E%3C/svg%3E");
}

.alumni-social {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.social-icon {
    color: var(--accent);
    background-color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-3px) rotate(5deg);
    background-color: var(--secondary);
    color: var(--primary);
}

/* Events Section */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    width: 400px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: red;
}

input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.submit-btn {
    background: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.cancel-btn {
    background: #dc3545;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.submit-btn:hover {
    background: #0056b3;
}

.cancel-btn:hover {
    background: #c82333;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 500px) {
    .modal-content {
        width: 90%;
    }
}

.events-section {
    margin-bottom: 4rem;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.section-header h2 {
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

.section-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.7), transparent);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive Grid */
    gap: 2rem;
}

/* Event Card */
.event-card {
    display: flex;
    flex-direction: column;
    background-color: var(--accent);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow);
}

/* Event Date */
.event-date {
    background-color: var(--primary);
    color: var(--accent);
    padding: 1.5rem;
    text-align: center;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.event-date::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 5px;
    background: var(--secondary);
}

.date {
    font-size: 2.5rem;
    font-weight: 800;
}

.month {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Event Details */
.event-details {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-details h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Event Metadata */
.event-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    opacity: 0.8;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

/* Description */
.event-description {
    flex: 1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Register Button */
.register-btn {
    align-self: flex-start;
    background-color: var(--primary);
    color: var(--accent);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.register-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(var(--primary-rgb), 0.4);
}

.register-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Article Preview Modal */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* Darker background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Improved Preview Modal */
.preview-content {
    background-color: white;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    text-align: left;
    border-radius: 10px;
    position: relative;
    overflow-y: auto; /* Allow scrolling */
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive News Preview Image */
.preview-content img {
    width: 100%; /* Makes sure image scales properly */
    max-width: 100%; /* Ensures image does not exceed container width */
    height: auto; /* Keeps aspect ratio */
    max-height: 350px; /* Restrict height for better readability */
    object-fit: cover; /* Crop and fit image nicely */
    border-radius: 8px; /* Smooth rounded corners */
    margin-bottom: 15px; /* Spacing between image and text */
}


.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
    color: red;
    font-weight: bold;
}

/* News Grid */
.news-section {
    margin-bottom: 4rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 2.5rem;
}

.news-card {
    background-color: var(--accent);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-content h3 {
    color: var(--secondary);
}

.news-date {
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-date::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.news-excerpt {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text);
    opacity: 0.9;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 0.5rem;
    margin-top: auto;
}

.read-more::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--secondary);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Loading and Animation States */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skeleton-loader {
    background: linear-gradient(90deg, var(--accent) 25%, var(--border) 50%, var(--accent) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background-color: var(--accent);
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-btn:hover {
    background-color: var(--primary);
    color: var(--accent);
    border-color: var(--primary);
}

.page-btn.active {
    background-color: var(--primary);
    color: var(--accent);
    border-color: var(--primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .alumni-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .alumni-card {
        padding: 1.5rem;
    }

    .event-date {
        min-width: 100px;
        padding: 1.5rem 1rem;
    }

    .date {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .alumni-hero {
        height: 320px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .directory-filters {
        flex-direction: column;
        gap: 1rem;
        position: relative;
        top: 0;
    }

    .search-input,
    .filter-select {
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .event-date::after {
        width: 100%;
        height: 5px;
        bottom: 0;
        top: auto;
    }

    .alumni-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .alumni-hero {
        height: 280px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .alumni-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .event-details {
        padding: 1.5rem;
    }

    .register-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {

    .alumni-hero,
    .directory-filters,
    .pagination,
    .register-btn,
    .read-more,
    .alumni-social {
        display: none !important;
    }

    .alumni-grid,
    .events-grid,
    .news-grid {
        display: block;
    }

    .alumni-card,
    .event-card,
    .news-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
        break-inside: avoid;
    }

    .section-header::after {
        display: none;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Toast Container Styles */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

/* Toast Notification Styles */
.toast {
    background-color: white;
    color: #333;
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
    max-width: 100%;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Toast Content Styles */
.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content i {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    flex-grow: 1;
}

/* Toast Types */
.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.success i {
    color: #4CAF50;
}

.toast.error {
    border-left: 4px solid #F44336;
}

.toast.error i {
    color: #F44336;
}

.toast.info {
    border-left: 4px solid #2196F3;
}

.toast.info i {
    color: #2196F3;
}

.toast.warning {
    border-left: 4px solid #FF9800;
}

.toast.warning i {
    color: #FF9800;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #f1f1f1;
}

.toast-progress::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background: #ccc;
    animation: progress 5s linear forwards;
}

.toast.success .toast-progress::before {
    background: #4CAF50;
}

.toast.error .toast-progress::before {
    background: #F44336;
}

.toast.info .toast-progress::before {
    background: #2196F3;
}

.toast.warning .toast-progress::before {
    background: #FF9800;
}

@keyframes progress {
    100% {
        width: 0%;
    }
}

/* Media query for small screens */
@media (max-width: 480px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }

    .toast {
        width: 100%;
    }
}
/* Show More Button Styles */
.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  
  .show-more-btn {
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .show-more-btn i {
    margin-right: 8px;
  }
  
  .show-more-btn:hover {
    background-color: var(--secondary);
    color: var(--primary);
  }
  
  .show-more-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  /* Optional: Loading state for when content is being fetched */
  .show-more-btn.loading {
    background-color: #95a5a6;
    cursor: wait;
  }
  
  .show-more-btn.loading i {
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  /* College Cards Section */
.college-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    max-width: 1300px;
    margin: 0 auto;
  }
  
  /* Card Styling */
  .card {
    background: var(--light-bg);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid var(--border);
    overflow: hidden;
  }
  
  /* Card Hover Effects */
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px var(--hover-shadow);
    background: var(--secondary);
    border-color: var(--accent);
  }
  
  /* Card Image Styling */
  .card img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Ensures image fills container properly */
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  }
  
  /* Image Hover Effect */
  .card:hover img {
    transform: scale(1.05); /* Subtle zoom effect */
    box-shadow: 0 8px 20px var(--hover-shadow);
  }
  
  /* Card Title */
  .card h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    transition: color var(--transition-speed);
  }
  
  /* Title Hover Effect */
  .card:hover h3 {
    color: var(--accent);
  }
  
  /* Card Description */
  .card p {
    flex-grow: 1;
    color: var(--text);
    font-size: 1rem;
    text-align: center;
    margin-bottom: var(--spacing-xs);
  }
  
  /* Button Styling */
  .card a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius-sm);
    transition: background var(--transition-speed), color var(--transition-speed);
    border: 2px solid transparent;
  }
  
  /* Button Hover Effect */
  .card a:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 5px 15px var(--hover-shadow);
  }
  
  /* Responsive Design */
  
  /* Tablets (2 cards per row) */
  @media (max-width: 992px) {
    .college-cards {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* Mobile (1 card per row) */
  @media (max-width: 600px) {
    .college-cards {
      grid-template-columns: repeat(1, 1fr);
    }
  }
 /* Style for the main registration modal container */
#registerModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* High z-index to appear on top */
    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.4); /* Black w/ opacity */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    flex-direction: column; /* Stack elements vertically */
    opacity: 0; /* For fade-in effect */
    transition: opacity 0.3s ease-in-out;
}

#registerModal.show {
    opacity: 1;
}

/* Style for the modal content (small and white) */
#registerModal > div {
    background-color: var(--accent); /* White background using the variable */
    margin: 10% auto; /* Adjust top margin for a smaller appearance */
    padding: 20px;
    border: 1px solid var(--border); /* Use border variable */
    width: 90%; /* Adjust width for a smaller feel */
    max-width: 400px; /* Smaller maximum width */
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 var(--shadow); /* Use shadow variable */
    text-align: center;
}

#eventTitle {
    color: var(--secondary); /* Use text color variable */
    margin-bottom: 15px; /* Slightly less margin */
    font-size: 1.2em; /* Slightly smaller font */
}

#registrationForm {
    margin-bottom: 15px; /* Slightly less margin */
}

/* Style for the "Confirm Registration" button */
#registrationForm button[type="submit"] {
    background-color: var(--primary); /* Primary color */
    color: var(--accent); /* White text */
    padding: 8px 15px; /* Smaller padding */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em; /* Smaller font size */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#registrationForm button[type="submit"]:hover {
    background-color: darken(var(--primary), 10%); /* Darken on hover */
    box-shadow: 0 2px 4px 0 var(--hover-shadow); /* Use hover shadow */
}

#registrationForm button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem lighten(var(--primary), 40%); /* Lighter shadow on focus */
}

/* Style for the "Close" button */
#closeformbutton {
    background-color: var(--secondary); /* Use secondary color as background */
    color: var(--primary); /* Primary color for text */
    padding: 6px 12px; /* Smaller padding */
    border: 1px solid var(--border); /* Use border variable */
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em; /* Even smaller font */
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

#closeformbutton:hover {
    background-color: darken(var(--secondary), 10%); /* Darken secondary on hover */
    color: var(--primary); /* Primary color on hover */
    box-shadow: 0 2px 4px 0 var(--hover-shadow); /* Use hover shadow */
}

#closeformbutton:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem var(--secondary); /* Secondary color shadow on focus */
}

/* Responsive adjustments (optional) */
@media (max-width: 600px) {
    #registerModal > div {
        width: 95%;
        margin: 20% auto; /* Adjust margin for smaller screens */
    }

    #registrationForm button[type="submit"],
    #closeformbutton {
        font-size: 0.9em;
        padding: 6px 12px;
    }
}   