/* Subpage specific styles */
.subpage-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-banner {
    background: linear-gradient(rgba(0, 0, 51, 0.8), rgba(0, 0, 51, 0.8)), url('../images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 0 0 10px 10px;
}

.page-banner h1 {
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.content-wrapper {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: #000066;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.content-section ul {
    list-style: none;
    padding-left: 1.5rem;
}

.content-section ul li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.content-section ul li:before {
    content: "•";
    color: #ffd700;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

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

.value-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.value-card i {
    font-size: 2.5rem;
    color: #000066;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: #000066;
    margin-bottom: 1rem;
}

/* Campus Grid */
.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

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

.campus-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.campus-card h3 {
    color: #000066;
    padding: 1rem;
    margin: 0;
}

.campus-card p {
    padding: 0 1rem 1rem;
    color: #666;
}

/* Programme Cards */
.programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.programme-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.programme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.programme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #000066, #0000cc);
}

.programme-icon {
    width: 70px;
    height: 70px;
    background: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.programme-icon i {
    font-size: 2rem;
    color: #000066;
}

.programme-card h3 {
    color: #000066;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.programme-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.programme-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.programme-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #000066;
}

.programme-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #000066;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.programme-btn:hover {
    background: #0000cc;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #000066;
    margin-right: 1rem;
    padding-top: 0.25rem;
}

.contact-details h3 {
    color: #000066;
    margin-bottom: 0.5rem;
}

.social-connect {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #000066;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: #0000cc;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000066;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #000066;
    outline: none;
}

.submit-btn {
    background: #000066;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #0000cc;
}

/* Study Page Styles */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #000066;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.quick-link:hover {
    transform: translateY(-5px);
}

.quick-link i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.study-section {
    margin-bottom: 4rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.requirement-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.application-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #000066;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

.fees-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.funding-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.funding-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.funding-card i {
    font-size: 2rem;
    color: #000066;
    margin-bottom: 1rem;
}

.accommodation-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.accommodation-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.accommodation-details {
    padding: 2rem;
}

.accommodation-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #000066;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.accommodation-btn:hover {
    background: #0000cc;
}

/* Campus Life Styles */
.life-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.highlight-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.highlight-card i {
    font-size: 2.5rem;
    color: #000066;
    margin-bottom: 1rem;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.org-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.org-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.org-content {
    padding: 1.5rem;
}

.org-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #000066;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.org-btn:hover {
    background: #0000cc;
}

.sports-facilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.facility-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.facility-card:hover .facility-image img {
    transform: scale(1.1);
}

.facility-card h3 {
    padding: 1rem;
    margin: 0;
    color: #000066;
}

.facility-card ul {
    list-style: none;
    padding: 0 1rem 1rem;
    margin: 0;
}

.facility-card ul li {
    padding: 0.5rem 0;
    color: #666;
}

.support-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.service-card i {
    font-size: 2rem;
    color: #000066;
    margin-bottom: 1rem;
}

.events-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-date {
    background: #000066;
    color: white;
    padding: 1rem;
    text-align: center;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: bold;
}

.event-details {
    padding: 1rem;
}

/* News Page Styles */
.news-filters {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: #f0f0f0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #000066;
    color: white;
}

.featured-news {
    margin-bottom: 3rem;
}

.featured-article {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-image {
    position: relative;
    height: 400px;
}

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

.category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #000066;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: #666;
    margin-bottom: 1rem;
}

.article-meta i {
    margin-right: 0.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

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

.news-image {
    position: relative;
    height: 200px;
}

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

.news-content {
    padding: 1.5rem;
}

.news-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.read-more {
    display: inline-block;
    color: #000066;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: bold;
}

.read-more:hover {
    color: #0000cc;
}

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link.active,
.page-link:hover {
    background: #000066;
    color: white;
}

.page-link.next {
    width: auto;
    padding: 0 1rem;
    border-radius: 20px;
}

.news-sidebar {
    margin-top: 3rem;
}

.sidebar-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #000066;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: #000066;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #0000cc;
}

@media (max-width: 768px) {
    .page-banner {
        padding: 2rem 1rem;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .values-grid,
    .campus-grid,
    .programme-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding-right: 0;
    }
    
    .fees-info {
        grid-template-columns: 1fr;
    }
    
    .news-filters {
        justify-content: center;
    }
    
    .article-image {
        height: 250px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section {
    animation: fadeIn 0.5s ease-out forwards;
}
