:root {
    --primary-blue: #00264d;
    --accent-gold: #c5a065;
    --body-bg: #faf8f5;
    --section-bg: #f5f2ed;
    --text-main: #2c3e50;
    --text-light: #666;
}

* { 
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Top Navigation */
.top-nav {
    background: var(--primary-blue);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px 0;
}

.logo-img {
    height: 42px;
    width: auto;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 28px 18px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav-item > a:hover,
.nav-item > a.active {
    color: #fff;
    border-bottom-color: var(--accent-gold);
    background: rgba(255,255,255,0.05);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 250px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 5px;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: var(--primary-blue);
    border-left-color: var(--accent-gold);
    padding-left: 25px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003d7a 100%);
    color: #fff;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: 50% 30%;
    opacity: 0.12;
    z-index: 0;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.95);
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-gold);
    color: #fff;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(197, 160, 101, 0.3);
}

.btn-primary:hover {
    background: #d4b377;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 101, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #fff;
    margin-left: 15px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Content Sections */
.section {
    padding: 44px 40px 80px;
}

.section-alt {
    background: var(--section-bg);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text ul {
    margin-top: 20px;
    padding-left: 20px;
}

.about-text li {
    margin-bottom: 12px;
    color: var(--text-main);
}

.about-image {
    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;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-top: 4px solid var(--accent-gold);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card h3 {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Courses Section */
.courses-table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.courses-table table {
    width: 100%;
    border-collapse: collapse;
}

.courses-table thead {
    background: var(--primary-blue);
    color: #fff;
}

.courses-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.courses-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.courses-table tbody tr:hover {
    background: #f8f9fa;
}

.courses-table tbody tr:last-child td {
    border-bottom: none;
}

.date-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-card h3 {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-gold);
}

.contact-info-item {
    margin-bottom: 20px;
}

.contact-info-item strong {
    display: block;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-size: 14px;
}

.contact-info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Content Page Styles */
.page-content {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.page-content h2 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-content h3 {
    font-size: 22px;
    color: var(--primary-blue);
    margin-top: 30px;
    margin-bottom: 12px;
}

.page-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-content ul, .page-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: rgba(255,255,255,0.8);
    padding: 40px;
    text-align: center;
    font-size: 14px;
}

/* Homepage Revamped Styles */
.homepage-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.homepage-section-card {
    background: linear-gradient(160deg, #fffdf8 0%, #faf5ec 100%);
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(197, 160, 101, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(197, 160, 101, 0.25);
    border-top: 3px solid var(--accent-gold);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Gold corner bracket accents */
.homepage-section-card::before,
.homepage-section-card::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: var(--accent-gold);
    border-style: solid;
    opacity: 0.55;
    transition: all 0.3s ease;
}

.homepage-section-card::before {
    bottom: 12px;
    left: 12px;
    border-width: 0 0 2px 2px;
}

.homepage-section-card::after {
    bottom: 12px;
    right: 12px;
    border-width: 0 2px 2px 0;
}

.homepage-section-card:hover {
    box-shadow: 0 8px 25px rgba(197, 160, 101, 0.2);
    transform: translateY(-5px);
    border-top-color: var(--primary-blue);
}

.homepage-section-card:hover::before,
.homepage-section-card:hover::after {
    opacity: 0.85;
    width: 36px;
    height: 36px;
}

.homepage-section-header {
    margin-bottom: 20px;
}

.homepage-section-card h2 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.homepage-section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), #d9be85);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.homepage-section-card:hover .homepage-section-divider {
    width: 80px;
    background: var(--primary-blue);
}

.homepage-section-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
}

.homepage-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-top: auto;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.homepage-section-link span {
    transition: transform 0.3s ease;
}

.homepage-section-link:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.homepage-section-link:hover span {
    transform: translateX(5px);
}

/* Important Notice Section */
.important-notice-section {
    padding: 30px 40px;
    background: var(--section-bg);
}

.important-notice {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 30px;
    background: #fff;
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.important-notice-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: #ff9800;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 50%;
}

.important-notice-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.important-notice-content {
    flex: 1;
}

.important-notice-content h3 {
    font-size: 20px;
    color: #ff9800;
    margin-bottom: 12px;
    font-weight: 700;
}

.important-notice-content p {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
}

.important-notice-content a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.important-notice-content a:hover {
    text-decoration: underline;
    color: var(--accent-gold);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003d7a 100%);
    color: #fff;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: 50% 30%;
    opacity: 0.15;
    z-index: 0;
}

.page-banner h1 {
    position: relative;
    z-index: 1;
    font-size: 36px;
    margin-bottom: 10px;
}

.page-banner p {
    position: relative;
    z-index: 1;
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* Content page image */
.content-image {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* Project Thumbnail Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.project-card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-card-body {
    padding: 20px;
}

.project-card-body h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 8px;
    line-height: 1.4;
}

.project-card-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Project Detail Page - Blog Style */
.project-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.project-detail h1 {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.project-detail-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.project-detail-block {
    margin-bottom: 35px;
}

.project-detail-block img {
    width: 100%;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-detail-block p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

.project-detail-block h2 {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 25px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary-blue);
}

/* Course Search */
.course-search-bar {
    margin-bottom: 20px;
}

.course-search-bar input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e0dcd6;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    color: var(--text-main);
    transition: border-color 0.2s;
}

.course-search-bar input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.course-search-bar input::placeholder {
    color: #aaa;
}

/* Course date on newlines */
.course-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-dates span {
    display: block;
    white-space: nowrap;
}

/* No results message */
.no-results {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    display: none;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-container {
        flex-direction: column;
        padding: 15px 20px;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .nav-item > a {
        padding: 15px 12px;
        font-size: 13px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin-left: 20px;
    }

    .dropdown-menu a {
        color: rgba(255,255,255,0.9);
        padding: 10px 20px;
    }

    .dropdown-menu a:hover {
        background: rgba(255,255,255,0.1);
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .hero-section p {
        font-size: 18px;
    }

    .section {
        padding: 36px 20px 60px;
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
        display: block;
    }

    .page-content {
        padding: 20px;
    }

    .homepage-sections-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .homepage-section-card {
        padding: 40px 30px;
    }

    .homepage-section-card h2 {
        font-size: 24px;
    }

    .important-notice-section {
        padding: 20px;
    }

    .important-notice {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .important-notice-icon {
        width: 35px;
        height: 35px;
    }

    .important-notice-content h3 {
        font-size: 18px;
    }

    .important-notice-content p {
        font-size: 14px;
    }

    .page-banner {
        padding: 35px 20px;
    }

    .page-banner h1 {
        font-size: 28px;
    }

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

    .project-detail {
        padding: 25px 15px;
    }

    .content-image img {
        height: 200px;
    }
}
