:root {
    --primary: #1a5fb4;
    --primary-dark: #1a3a8f;
    --secondary: #f5f5f5;
    --accent: #ff7b00;
    --text: #333333;
    --light-text: #6b7280;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --bg: #E8F9FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent);
}

.btn-accent:hover {
    background-color: #e06c00;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    background-image: url('https://img.freepik.com/premium-photo/simple-blue-background-with-thin-white-lines-dots_1174990-200842.jpg?w=360');
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.2rem;
    color: var(--bg);
    font-weight: 700;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--light-text);
    font-weight: 400;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--text);
    font-weight: 500;
    padding: 8px 6px;
    border-radius: 4px;
    font-size: 15px;
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--white);
    background-color: var(--primary);
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
}

.modal-content button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button:hover {
    opacity: 0.9;
}

.error-message {
    color: red;
    margin-top: 10px;
    display: none;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}


.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text);
    padding: 10px 20px;
    display: block;
    transition: var(--transition);
    font-size: 13px;
}

.dropdown-content a:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Enrollment Options */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-title p {
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

.enrollment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.option-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.option-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.option-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.option-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.option-body {
    padding: 25px;
}

.option-body p {
    color: var(--light-text);
    margin-bottom: 20px;
}

.requirements {
    margin-top: 20px;
}

.requirements h4 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.1rem;
}

.requirements ul {
    list-style: none;
}

.requirements li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
    color: var(--light-text);
}

.requirements li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Timeline Section */
.timeline-section {
    background-color: var(--white);
    padding: 60px 0;
    margin: 60px 0;
    position: relative;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.timeline-item {
    background-color: var(--secondary);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.timeline-item:hover {
    background-color: var(--primary);
    color: var(--white);
}

.timeline-item:hover h3,
.timeline-item:hover p {
    color: var(--white);
}

.timeline-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.timeline-item p {
    color: var(--light-text);
    font-weight: 500;
}

.timeline-item i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.timeline-item:hover i {
    color: var(--white);
}

/* Help Section */
.help-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.help-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.help-card:hover {
    transform: translateY(-5px);
}

.help-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-right: 15px;
    margin-top: 3px;
}

.contact-info a {
    color: var(--text);
}

.contact-info a:hover {
    color: var(--primary);
}

.map-container {
    height: 250px;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: #1a1a2e;
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}



@media (max-width: 992px) {
    #mainNav ul {
        flex-direction: column;
    }
    
    #mainNav .dropdown {
        position: relative;
    }
    
    #mainNav .dropdown-content {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        border-left: 3px solid var(--accent);
        padding-left: 15px;
        margin-left: 15px;
    }
    
    #mainNav .dropdown.active .dropdown-content {
        display: block;
    }
    
    /*#mainNav .dropdown > a::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        margin-left: 5px;
        transition: transform 0.3s;
    }*/
    
    #mainNav .dropdown.active > a::after {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-200%);
        transition: var(--transition);
        z-index: 99;
    }
    
    nav.active {
        transform: translateY(0);
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    nav ul li a {
        display: block;
        padding: 10px;
    }
    
    /* Mobile dropdown styles */
    .dropdown {
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        padding: 0;
    }
    
    .dropdown-content a {
        padding: 10px 30px;
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .header-container {
        padding: 15px 0;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text span {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .option-header h3 {
        font-size: 1.3rem;
    }
    
    .timeline-item {
        padding: 20px;
    }
    
    .help-card {
        padding: 20px;
    }
}


/***************** history style *****************/
/* Main Content Styles */
main {
    padding: 40px 0;
    background-color: var(--bg);
}

.sc {
    text-align: center;
    margin-bottom: 40px;
}

.sc img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* History Section */
.history {
    background-color: var(--white);
    padding: 40px;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.history h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.history h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.history img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.history h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 25px 0 15px;
}

.history p {
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.7;
    position: relative;
    padding-left: 20px;
}

.history p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Government Section */
.gov {
    background-color: var(--secondary);
    padding: 40px;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.govtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 600;
}

.govlogo {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.govlogo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    cursor: pointer;
}

.govlogo img:hover {
    transform: translateY(-5px);
}

.gov span p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* MVC Section */
.mvc {
    background-color: var(--white);
    padding: 40px;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.mission, .vision {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--secondary);
}

.mvc h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.mvc p {
    color: var(--light-text);
    margin-bottom: 10px;
    line-height: 1.7;
}

.mvc > h3 {
    text-align: center;
    margin: 30px 0 20px;
    font-size: 1.5rem;
}

.mvc span {
    display: inline-block;
    margin: 0 10px 10px 0;
    padding: 8px 20px;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: 50px;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mvc span:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

/* Building Section */
.building {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.building img {
    width: 100%;
    height: 250px;
    object-fit: fill;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.building img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Enrollment Section */
.enroll {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.enroll h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.enroll p {
    color: var(--light-text);
    margin-bottom: 30px;
    line-height: 1.7;
}

.slideshow {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 350px;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.slideshow h4 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    padding: 20px;
    text-align: center;
    font-size: 1.3rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .history, .gov, .mvc, .enroll {
        padding: 30px;
    }
    
    .history h2 {
        font-size: 1.8rem;
    }
    
    .history h3 {
        font-size: 1.2rem;
    }
    
    .govlogo {
        gap: 20px;
    }
    
    .govlogo img {
        height: 60px;
    }
    
    .slideshow {
        height: 250px;
    }
    
    .slideshow h4 {
        font-size: 1.1rem;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .history, .gov, .mvc, .enroll {
        padding: 20px;
    }
    
    .history h2 {
        font-size: 1.5rem;
    }
    
    .history p {
        padding-left: 15px;
    }
    
    .govlogo {
        flex-direction: column;
        align-items: center;
    }
    
    .mvc span {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .building {
        grid-template-columns: 1fr;
    }
}

/********** dropdown **************/
/********** dropdown **************/
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--bg);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-toggle:hover {
    color: var(--text);
    background-color: var(--lb);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    width: 220px;
    box-shadow: var(--shadow);
    border-radius: 6px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    transform: translateY(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.95rem;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background-color: var(--secondary);
    color: var(--primary);
    padding-left: 25px;
}

.dropdown-menu a.active {
    background-color: var(--primary);
    color: var(--white);
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
    .dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 15px;
        color: var(--text);
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: block;
        background-color: var(--secondary);
        border: none;
        border-radius: 0;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 10px 0;
    }

    .dropdown-toggle .fa-chevron-down {
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .dropdown-menu a {
        padding: 10px 25px;
    }
}
