/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #777;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    color: var(--primary);
    font-size: 1.5rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    background: var(--secondary);
    color: var(--white);
}

.admin-btn {
    background: var(--accent) !important;
    color: var(--white) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 15px;
    margin-top: 20px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Card Grid Layout */
.modern-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

/* News Cards */
.news-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.news-card-modern {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
}

.news-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.news-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.news-image-modern {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card-modern:hover .news-image-modern img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content-modern {
    padding: 25px;
}

.news-meta-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.news-date-modern {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.news-author-modern {
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-content-modern h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content-modern p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.news-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Staff Cards */
.staff-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.staff-card-modern {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.staff-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.staff-image-modern {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.staff-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-info-modern {
    padding: 25px 20px;
}

.staff-info-modern h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.staff-designation-modern {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.staff-department-modern {
    background: var(--light);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.staff-qualification-modern {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.staff-contact-modern {
    background: var(--light);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.staff-contact-modern p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: var(--text);
}

/* Students Cards */
.students-stats-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.stat-card-modern {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.stat-card-modern h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.stat-number-modern {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.stat-description {
    color: var(--text-light);
    font-size: 0.9rem;
}

.achievements-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.achievement-card-modern {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
}

.achievement-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.student-image-modern {
    width: 120px;
    flex-shrink: 0;
    position: relative;
}

.student-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.achievement-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.achievement-info-modern {
    padding: 20px;
    flex: 1;
}

.achievement-info-modern h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.student-class-modern {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.achievement-text-modern {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.achievement-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Gallery Cards */
.gallery-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.gallery-card-modern {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-image-modern {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.gallery-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card-modern:hover .gallery-image-modern img {
    transform: scale(1.1);
}

.gallery-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gallery-content-modern {
    padding: 20px;
}

.gallery-content-modern h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.gallery-content-modern p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Disciplines Cards */
.disciplines-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.discipline-card-modern {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.discipline-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.discipline-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 30px;
    text-align: center;
    color: var(--white);
}

.discipline-icon-modern {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.discipline-header h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.discipline-description-modern {
    opacity: 0.9;
    font-size: 0.95rem;
}

.discipline-body {
    padding: 25px;
}

.courses-list-modern {
    margin-bottom: 20px;
}

.courses-list-modern h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.course-tag {
    background: var(--light);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.course-tag:hover {
    background: var(--secondary);
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.feature-item {
    background: var(--light);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
}

.discipline-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.discipline-contact-modern p {
    margin: 5px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Filter Styles */
.filter-section {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.filter-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn-modern {
    padding: 12px 25px;
    background: var(--light);
    border: 2px solid transparent;
    color: var(--primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn-modern.active,
.filter-btn-modern:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 60px 0 40px;
}

.section-header h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--white);
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-modern:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline-modern:hover {
    background: var(--secondary);
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 50px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    opacity: 0.7;
}

/* Admin Dashboard Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--primary);
    color: var(--white);
    padding: 20px 0;
}

.admin-sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary);
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar ul li {
    margin-bottom: 10px;
}

.admin-sidebar ul li a {
    display: block;
    padding: 12px 20px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.admin-sidebar ul li a:hover,
.admin-sidebar ul li a.active {
    background: var(--secondary);
}

.admin-main {
    flex: 1;
    padding: 20px;
    background: var(--light);
}

.admin-header {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.dashboard-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.dashboard-card .number {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: bold;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Table Styles */
.data-table {
    width: 100%;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 500;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.action-btn {
    padding: 6px 12px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.edit-btn {
    background: var(--secondary);
    color: var(--white);
}

.delete-btn {
    background: var(--accent);
    color: var(--white);
}

.action-btn:hover {
    opacity: 0.8;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .modern-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .achievement-card-modern {
        flex-direction: column;
    }
    
    .student-image-modern {
        width: 100%;
        height: 150px;
    }
    
    .filter-grid {
        justify-content: flex-start;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
}