        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            line-height: 1.6;
            color: #333;
            background-color: #f9f9f9;
        }

        header {
            background-color: #1a5276;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 5%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            color: white;
            font-size: 1.8rem;
            font-weight: 700;
            text-decoration: none;
        }

        .logo span {
            color: #f39c12;
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links li {
            margin-left: 2rem;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            padding: 0.5rem 0;
            position: relative;
        }

        .nav-links a:hover {
            color: #f39c12;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #f39c12;
            transition: width 0.3s;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .menu-toggle {
            display: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

    
       .portal-btn {
            background: #f39c12;
            color: white;
            padding: 0.7rem 1.5rem;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 600;
            transition: background 0.3s;
            margin-left: 1rem;
            min-width: 100px; 
            text-align: center;
            display: inline-block;
        }

        .portal-btn:hover {
            background: #e67e22;
        }

        .carousel {
            margin-top: 70px;
            position: relative;
            height: 500px;
            overflow: hidden;
        }

        .carousel-slides {
            display: flex;
            transition: transform 0.5s ease-in-out;
            height: 100%;
        }

        .carousel-slide {
            min-width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .carousel-slide::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
        }

        .slide-content {
            position: relative;
            z-index: 1;
            text-align: center;
            color: white;
            max-width: 800px;
            padding: 0 2rem;
        }

        .slide-content h2 {
            font-size: 3rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
        }

        .slide-content p {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
        }

        .btn {
            display: inline-block;
            background: #f39c12;
            color: white;
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 600;
            transition: background 0.3s, transform 0.3s;
        }

        .btn:hover {
            background: #e67e22;
            transform: translateY(-3px);
        }

        .carousel-controls {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
        }

        .carousel-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            margin: 0 5px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .carousel-indicator.active {
            background: white;
        }

        section {
            padding: 5rem 5%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
        }

        .section-title h2 {
            font-size: 2.5rem;
            color: #1a5276;
            position: relative;
            display: inline-block;
            padding-bottom: 10px;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: #f39c12;
        }

        #home {
            padding-top: 2rem;
            padding-bottom: 4rem;
        }

        .home-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 3rem;
        }

        .home-text {
            flex: 1;
        }

        .home-text h2 {
            font-size: 2.5rem;
            color: #1a5276;
            margin-bottom: 1.5rem;
        }

        .home-text p {
            font-size: 1.1rem;
            margin-bottom: 2rem;
            color: #555;
        }

        .home-image {
            flex: 1;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            animation: float 5s ease-in-out infinite;
        }

        .home-image img {
            width: 100%;
            height: auto;
            display: block;
        }

        @keyframes float {
            0% { transform: translateY(0); }
            50% { transform: translateY(-15px); }
            100% { transform: translateY(0); }
        }

        #about {
            background-color: #f1f1f1;
        }

        .about-content {
            display: flex;
            align-items: center;
            gap: 3rem;
        }

        .about-image {
            flex: 1;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .about-image img {
            width: 100%;
            height: auto;
            display: block;
        }

        .about-text {
            flex: 1;
        }

        .about-text h3 {
            font-size: 1.8rem;
            color: #1a5276;
            margin-bottom: 1.5rem;
        }

        .about-text p {
            margin-bottom: 1.5rem;
            color: #555;
        }

        .skills {
            margin-top: 2rem;
        }

        .skill {
            margin-bottom: 1rem;
        }

        .skill-name {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }

        .skill-bar {
            height: 8px;
            background: #ddd;
            border-radius: 4px;
            overflow: hidden;
        }

        .skill-level {
            height: 100%;
            background: #f39c12;
            border-radius: 4px;
        }

        #courses {
            background-color: white;
        }

        .courses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .course-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
        }

        .course-card:hover {
            transform: translateY(-10px);
        }

        .course-image {
            height: 200px;
            overflow: hidden;
        }

        .course-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .course-card:hover .course-image img {
            transform: scale(1.1);
        }

        .course-content {
            padding: 1.5rem;
        }

        .course-content h3 {
            color: #1a5276;
            margin-bottom: 1rem;
        }

        .course-content p {
            color: #666;
            margin-bottom: 1rem;
        }

        #contact {
            background-color: #f9f9f9;
        }

        .contact-content {
            display: flex;
            gap: 3rem;
        }

        .contact-info {
            flex: 1;
        }

        .contact-info h3 {
            font-size: 1.8rem;
            color: #1a5276;
            margin-bottom: 1.5rem;
        }

        .contact-info p {
            margin-bottom: 1.5rem;
            color: #555;
        }

        .contact-details {
            margin-top: 2rem;
        }

        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }

        .contact-item i {
            width: 40px;
            height: 40px;
            background: #f39c12;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
        }

        .contact-form {
            flex: 1;
            background: white;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: #1a5276;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
            transition: border 0.3s;
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: #f39c12;
        }

        footer {
            background: #1a5276;
            color: white;
            padding: 3rem 5% 1rem;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 2rem;
        }

        .footer-section {
            flex: 1;
            min-width: 250px;
        }

        .footer-section h3 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 2px;
            background: #f39c12;
        }

        .footer-section p {
            margin-bottom: 1rem;
            color: #bbb;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.8rem;
        }

        .footer-links a {
            color: #bbb;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: #f39c12;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            transition: background 0.3s, transform 0.3s;
        }

        .social-links a:hover {
            background: #f39c12;
            transform: translateY(-3px);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #bbb;
            font-size: 0.9rem;
        }

        .portal-container {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }

        .portal-content {
            background: white;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            padding: 2rem;
            box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .close-portal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5rem;
            cursor: pointer;
            color: #777;
        }

        .close-portal:hover {
            color: #333;
        }

        .portal-tabs {
            display: flex;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid #ddd;
        }

        .portal-tab {
            padding: 0.8rem 1.5rem;
            cursor: pointer;
            font-weight: 500;
            color: #777;
            transition: all 0.3s;
        }

        .portal-tab.active {
            color: #1a5276;
            border-bottom: 2px solid #1a5276;
        }

        .portal-form {
            display: none;
        }

        .portal-form.active {
            display: block;
        }

        .portal-form h3 {
            margin-bottom: 1.5rem;
            color: #1a5276;
            text-align: center;
        }

        .dashboard {
            display: none;
            padding-top: 80px;
            min-height: 100vh;
            background: #f5f5f5;
        }

        .dashboard-header {
            background: #1a5276;
            color: white;
            padding: 1rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }

        .dashboard-nav {
            display: flex;
            gap: 1rem;
        }

        .dashboard-nav a {
            color: white;
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            transition: background 0.3s;
        }

        .dashboard-nav a:hover, .dashboard-nav a.active {
            background: rgba(255, 255, 255, 0.2);
        }

        .dashboard-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem 5%;
        }

        .dashboard-section {
            background: white;
            border-radius: 10px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .dashboard-section h2 {
            color: #1a5276;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #f39c12;
        }

        .assignment-item, .briefing-item {
            padding: 1rem;
            border-left: 4px solid #f39c12;
            background: #f9f9f9;
            margin-bottom: 1rem;
            border-radius: 0 5px 5px 0;
        }

        .assignment-item h3, .briefing-item h3 {
            color: #1a5276;
            margin-bottom: 0.5rem;
        }

        .assignment-meta, .briefing-meta {
            font-size: 0.9rem;
            color: #777;
            margin-bottom: 0.5rem;
        }

        .teacher-dashboard {
            display: none;
        }

        .student-list {
            margin-top: 1.5rem;
        }

        .student-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 1rem;
        }

        .student-actions button {
            margin-left: 0.5rem;
            padding: 0.3rem 0.8rem;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }

        .btn-edit {
            background: #3498db;
            color: white;
        }

        .btn-delete {
            background: #e74c3c;
            color: white;
        }

        .add-student-form, .add-assignment-form, .add-briefing-form {
            margin-top: 1.5rem;
            padding: 1.5rem;
            background: #f9f9f9;
            border-radius: 5px;
        }
        .toggle-form-btn {
    background: #1a5276;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background 0.3s;
}

.toggle-form-btn:hover {
    background: #2c3e50;
}

.records-section {
    margin-top: 2rem;
}

.record-item {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 1rem;
    background: #f9f9f9;
}

.record-item h4 {
    color: #1a5276;
    margin-bottom: 0.5rem;
}

.record-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}
/* Exam Results Styles */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.result-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.result-pass {
    border-left: 4px solid #27ae60;
}

.result-fail {
    border-left: 4px solid #e74c3c;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.result-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.status-pass {
    background: #27ae60;
    color: white;
}

.status-fail {
    background: #e74c3c;
    color: white;
}

.result-details {
    space-y: 0.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.result-item span:first-child {
    color: #666;
    font-weight: 500;
}

.result-item strong {
    font-weight: 600;
}

.grade-A { color: #27ae60; }
.grade-A- { color: #2ecc71; }
.grade-B { color: #3498db; }
.grade-B- { color: #2980b9; }
.grade-C { color: #f39c12; }
.grade-C- { color: #e67e22; }
.grade-D { color: #e74c3c; }
.grade-E { color: #c0392b; }

.text-success {
    color: #27ae60;
}

.text-danger {
    color: #e74c3c;
}

.result-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.result-comments span {
    display: block;
    color: #666;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.result-comments p {
    margin: 0;
    color: #555;
    font-style: italic;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

        @media (max-width: 992px) {
            .home-content, .about-content, .contact-content {
                flex-direction: column;
            }
            
            .home-image, .about-image {
                order: -1;
            }
        }

        @media (max-width: 768px) {
            .menu-toggle {
                display: block;
            }
            
            .nav-links {
                position: fixed;
                top: 70px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 70px);
                background: #1a5276;
                flex-direction: column;
                align-items: center;
                justify-content: flex-start;
                padding-top: 2rem;
                transition: left 0.3s;
            }
            
            .nav-links.active {
                left: 0;
            }
            
            .nav-links li {
                margin: 1rem 0;
            }
            
            .carousel {
                height: 400px;
            }
            
            .slide-content h2 {
                font-size: 2rem;
            }
            
            section {
                padding: 3rem 5%;
            }

            .portal-btn {
                margin-left: 0;
                margin-top: 1rem;
            }
        }
        @media (min-width: 1200px) {
            .courses-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 1199px) and (min-width: 768px) {
            .courses-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 767px) {
            .courses-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 576px) {
            .carousel {
                height: 300px;
            }
            
            .slide-content h2 {
                font-size: 1.5rem;
            }
            
            .section-title h2 {
                font-size: 2rem;
            }
        }