:root {
    --primary-blue: #0088d1;
    --secondary-blue: #005b8e;
    --light-blue: #eef4ff;
    --border-blue: #d1e0ff;
    --text-dark: #333333;
    --text-muted: #6b7280;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #fcfcfc;
    position: relative;
}

/* Sacred Geometry Background */
.geometric-bg {
    position: relative;
    background-image: 
        linear-gradient(to right, rgba(44, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(44, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.geometric-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill-opacity='0' stroke='%232c63eb' stroke-width='1' stroke-opacity='0.05'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    z-index: -1;
    pointer-events: none;
}

/* Top bar */
.top-bar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-blue);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.top-bar a {
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 1.5rem;
    text-transform: uppercase;
}
.top-bar a:hover { color: var(--primary-blue); }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--text-dark);
    color: white;
    margin-left: 5px;
    text-decoration: none;
}
.social-icons a.fb { background-color: #1877f2; }
.social-icons a.yt { background-color: #ff0000; }

/* Navbar */
.navbar-brand .logo-box {
    width: 45px;
    height: 45px;
    background-color: var(--bg-white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
    position: relative;
}
.navbar-brand .logo-box::before {
    content: '';
    position: absolute;
    left: -6px; top: -6px; right: -6px; bottom: -6px;
    border: 1px solid rgba(22, 66, 198, 0.2);
}
.navbar-brand h1 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
    text-transform: uppercase;
}
.navbar-brand p {
    font-size: 0.8rem;
    color: var(--primary-blue);
    margin: 0;
}

.main-nav .nav-link {
    font-weight: 700;
    color: var(--text-dark) !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem !important;
    position: relative;
    white-space: nowrap;
}
.main-nav .nav-link.active::after, .main-nav .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--primary-blue);
}

.search-box {
    background-color: #f3f4f6;
    border: none;
    border-radius: 0;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-primary-sharp {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 0;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.btn-primary-sharp:hover {
    background-color: var(--text-dark);
    color: white;
}

/* Service Cards */
.service-card {
    background: white;
    border: 1px solid var(--border-blue);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
    height: 100%;
}
.service-card:hover {
    box-shadow: 0 10px 25px rgba(44, 99, 235, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}
.icon-hexagon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    margin-bottom: 1rem;
}
.service-card h5 {
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Hero Section */
.hero-box {
    border: 1px solid rgba(22, 66, 198, 0.2);
    padding: 2rem;
    position: relative;
    background-color: white;
}
.hero-box::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 1px solid rgba(22, 66, 198, 0.1);
    z-index: -1;
}

.stat-box {
    border-top: 2px solid var(--primary-blue);
    padding: 1rem 0;
    text-align: center;
}
.stat-box h3 {
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.2rem;
}
.stat-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    border-top: 5px solid var(--primary-blue);
}
footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
footer a:hover { color: white; }

/* Utilities */
.text-primary-blue { color: var(--primary-blue) !important; }
.section-title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.4rem;
    position: relative;
    display: inline-flex;
    align-items: center;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary-blue);
    transform: rotate(45deg);
    margin-right: 10px;
}

/* Dropdown Hover */
@media all and (min-width: 992px) {
    .user-dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}
/* Header NTTHNUE Style */
.header-main {
    background-color: var(--bg-white);
    padding: 15px 0;
}
.header-brand-text {
    color: var(--secondary-blue);
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
}
.header-sub-text {
    color: var(--secondary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin: 0;
}
.header-bottom {
    background-color: var(--primary-blue);
}
.header-bottom .nav-link {
    color: var(--bg-white) !important;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 20px !important;
    transition: background-color 0.2s;
}
.header-bottom .nav-link:hover, .header-bottom .nav-link.active {
    background-color: var(--secondary-blue);
}

/* News Grid Top */
.grid_3tin {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 450px;
}
@media (max-width: 768px) {
    .grid_3tin {
        grid-template-columns: 1fr;
        grid-template-rows: 300px 200px 200px;
        height: auto;
    }
    .grid_3tin_col { grid-row: 1; }
}
.grid_3tin_col {
    grid-row: 1 / 3;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}
.grid_3tin_col2, .grid_3tin_col3 {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}
.grid_3tin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.grid_3tin_col:hover img, .grid_3tin_col2:hover img, .grid_3tin_col3:hover img {
    transform: scale(1.05);
}
.news-grid__overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
}
.news-grid__overlay a {
    color: white;
    text-decoration: none;
}
.news-grid__overlay a:hover {
    color: var(--border-blue);
}
.news-grid__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}
.grid_3tin_col .news-grid__title {
    font-size: 1.4rem;
}

/* Event Slider Box */
.bg-primary-blue {
    background-color: var(--primary-blue);
}
.box_shadow2 {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* List News */
.date-box {
    min-width: 65px;
    text-align: center;
    background-color: var(--bg-gray);
    border: 1px solid var(--border-blue);
    padding: 5px;
    border-radius: 4px;
}
.date-box .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    line-height: 1;
}
.date-box .month {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.hover-primary:hover {
    color: var(--primary-blue) !important;
}