/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
header {
    background-color: #ffffff;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
}

.header-top {
    background-color: #f8f9fa;
    padding: 8px 0;
    font-size: 0.875rem;
}

.header-top .quick-links ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

.header-top .quick-links a {
    color: #6c757d;
    text-decoration: none;
}


.header-content {
    text-align: center;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #0f2439;
    margin-bottom: 5px;
}

.subtitle-bg{
    height: max(10vw, 100px);
    background: linear-gradient(90deg, rgb(36, 114, 181) 0%, rgb(56, 70, 96) 100%)
}
.bottom-left{
    height: 100%;
    display:  flex;
    align-items: end;
}

.site-subtitle {
    display:  flex;
    align-items: end;
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: bold;
    width: 100%;
   
}

/* Navigation */
.main-nav {
    background-color: #0f2439;
    border-top: 1px solid #e0e0e0;
    border-bottom: 2px solid #0f2439;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.main-nav li {
    border-right: none;
}

.main-nav a {
    display: block;
    padding: 15px 25px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
}

/* Main Content */
main {
    padding: 40px 0;
    min-height: 60vh;
}

section {
    margin-bottom: 50px;
}

.intro-section {
    padding: 30px 0;
    margin-bottom: 40px;
}

.intro-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0f2439;
    text-align: center;
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #0f2439;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.intro-content p {
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.8;
    margin-bottom: 15px;
}

.resource-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.resource-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.7;
    color: #495057;
}

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

.resource-list li strong {
    color: #212529;
    font-weight: 600;
}

.resource-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #0f2439;
    border-bottom: 3px solid #0f2439;
    padding-bottom: 10px;
}

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

.resource-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 25px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.resource-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.resource-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #0f2439;
    font-weight: 600;
}

.resource-card .grades {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-card p {
    color: #495057;
    line-height: 1.7;
}

.resource-card em {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.resource-intro {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 25px;
    border-left: 4px solid #0f2439;
}

.resource-intro p {
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.8;
}

.resource-note {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f4f8;
    border-radius: 5px;
    border-left: 4px solid #0f2439;
}

.resource-note p {
    color: #495057;
    line-height: 1.8;
}

.resource-note a {
    color: #0f2439;
    text-decoration: underline;
    font-weight: 600;
}

.resource-note a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

.footer-section h3::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 0.5px;
    background-color: rgb(255, 255, 255);
}

.footer-section p {
    margin-bottom: 8px;
    color: #e0e0e0;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #3a4a5c;
    padding-top: 20px;
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Three Column Layout */
.three-column-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.column {
    background-color: #ffffff;
    border: 2px solid #0f2439;
    border-radius: 5px;
    padding: 25px;
    overflow: hidden;
}

.column h2 {
    font-size: 1.75rem;
    margin-bottom: 25px;
    margin-top: -25px;
    margin-left: -25px;
    margin-right: -25px;
    color: #ffffff;
    background-color: #226baa;
    border-bottom: none;
    padding: 15px 25px;
    text-align: center;
}

.resource-item {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.resource-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.resource-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #226baa;
    font-weight: 600;
}

.resource-item .resource-url {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.resource-item .resource-url a {
    color: #0f2439;
    text-decoration: underline;
    word-break: break-all;
}

.resource-item .resource-url a:hover {
    text-decoration: underline;
}

.resource-item p {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 10px;
}

.resource-item ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.resource-item ul li {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 8px;
}

.resource-item ul li a {
    color: #0f2439;
    text-decoration: underline;
}

.resource-item ul li a:hover {
    text-decoration: underline;
}

.resource-item em {
    font-style: italic;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .three-column-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        text-align: left;
    }

    .intro-section {
        text-align: left;
    }

    .intro-section h2 {
        text-align: left;
    }

    .column h2 {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.75rem;
    }

    .resource-section h2 {
        font-size: 1.5rem;
    }

    .resource-card {
        padding: 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Link Styles */
a {
    color: #0f2439;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a3d5a;
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

.chatbot-toggle {
    width: 80px;
    height: 80px;
    background: #0f2439;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.chatbot-toggle svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin-bottom: 2px;
}

.chatbot-toggle-text {
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1;
    margin-top: 2px;
}

.chatbot-redirect{
    display: none;
    inset: 0;
    position: fixed;
    background: rgba(0, 0, 0, 0.26);
    width: 100%;
    height: 100%;
}
.chatbot-redirect.open{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Redirect Modal Content */
.redirect-content {
    border-radius: 8px;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
    color: #212529;
    width: max(300px, 50%);
    max-width: 500px;
    height: auto;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.redirect-header {
    background-color: #0f2439;
    color: #ffffff;
    padding: 20px 25px;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid #226baa;
}

.redirect-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.redirect-body {
    padding: 25px;
    flex-grow: 1;
}

.redirect-body p {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

.redirect-url {
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 5px;
    border-left: 4px solid #0f2439;
    margin: 15px 0;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.9rem;
    color: #0f2439;
}

.redirect-actions {
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.redirect-button {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.redirect-button.cancel {
    background-color: #ffffff;
    color: #6c757d;
    border: 1px solid #e0e0e0;
}

.redirect-button.cancel:hover {
    background-color: #f8f9fa;
    border-color: #6c757d;
    color: #495057;
}

.redirect-button.continue {
    background-color: #0f2439;
    color: #ffffff;
}

.redirect-button.continue:hover {
    background-color: #1a3d5a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(15, 36, 57, 0.3);
}

.center-content{
    display: flex;
    justify-content: center;
    align-items: center;
}