/* Main Styles */
@font-face {
    font-family: 'Phetsarath OT';
    src: url('../fonts/PhetsarathOT.ttf') format('truetype');
}

:root {
    --primary-color: #004085;
    --secondary-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Phetsarath OT', sans-serif;
    background-color: var(--light-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand, .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

.dropdown-menu {
    background-color: var(--primary-color);
    border: none;
    border-radius: 0;
}

.dropdown-item {
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 64, 133, 0.8), rgba(0, 64, 133, 0.8)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

/* Content Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-links h5 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #003366;
    border-color: #003366;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
    background-color: #e9ecef;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(0, 64, 133, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 64, 133, 0.25);
}

/* Table */
.table thead th {
    background-color: var(--primary-color);
    color: white;
}

/* Alert */
.alert-primary {
    background-color: rgba(0, 64, 133, 0.1);
    border-color: rgba(0, 64, 133, 0.2);
    color: var(--primary-color);
}

/* Form */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 64, 133, 0.25);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
