:root {
    --primary: #002060;
    --primary-light: #012874;
    --white: #ffffff;
    --bg: #f8f8fd;
    --card-bg: #e6f4ff;
    --hero-bg: #e6f4ff;
    --black: #3b2f2f;
    --hover-color: #3b2f2f;
    --hover-bg: #3b2f2f;
    --secondary: #3c3f8b;
}

/* :root {
    --bg: #f6f6fd;
    --primary: #002060;
    --secondary: #3c3f8b;
} */

/* :root {
    --primary: #3b2f2f;
    --white: #fdfaf6;
    --black: #3b2f2f;
    --hover-color: #3b2f2f;
    --hover-bg: #3b2f2f;
    --secondary: #8b5e3c;
} */

/* ------------------------------------------ General Reset ------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hide Google Translate top banner */
body > .skiptranslate {
    display: none !important;
}

/* Style your custom select */
#languageSwitcher { 
  width: 180px;
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #fff;
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Prevent page shift caused by banner */
body {
    top: 0px !important;
    position: static !important;
    background-color: var(--bg);
    line-height: 1.6;
}

/* Links */
a {
    text-decoration: none;
    color: #ffffff;
    transition: 0.3s;

}

a:hover {
    color: rgb(41, 54, 152);
}

/* ------------------------------------------ Header ------------------------------------------ */
header {
    background-color: var(--primary);
    padding: 10px 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
}

nav a {
    margin-left: 25px;
    font-weight: 500;
}

/* ------------------------------------------ Hero Section ------------------------------------------ */
.hero {
    background: linear-gradient(135deg, var(--white) 0%, #d3dfe8 100%);
    text-align: center;
    padding: 70px 20px;
    position: relative;
}

.hero h1 {
    text-transform: uppercase;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: 25px;
}

.cta-btn {
    background-color: #060046;
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.cta-btn:hover {
    color: var(--white);
    background-color: #07006b;
}

/* ------------------------------------------ Sections ------------------------------------------ */
.section-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    padding: 60px 20px;
    max-width: 1000px;
    width: 100%;
    margin: auto;
}

.section-title {
    text-align: center;
}

.section-card {
    flex: 1 1 400px;
    background-color: #eef8ff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.section-card h2 {
    color: var(--secondary);
    margin-bottom: 15px;
    text-align: center;
}

.section-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* ------------------------------------------ Blog List Zig-Zag ------------------------------------------ */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1000px;
    margin: 60px auto;
}

.blog-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    background-color: #e6f4ff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card img,
.blog-card video {
    width: 45%;
    border-radius: 10px;
    min-height: 260px;
    object-fit: cover;
}

.blog-card-content {
    width: 50%;
}

.blog-card-content h3 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.blog-card-content p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.blog-card-content a {
    font-weight: bold;
    color: var(--primary-light);
}

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

.media-carousel {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  scroll-behavior: smooth;
}

.media-carousel img,
.media-carousel video {
  flex-shrink: 0;
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}


/* ------------------------------------------ History Timeline ------------------------------------------ */
.timeline {
    position: relative;
    margin: 60px auto;
    padding-left: 30px;
    max-width: 1000px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.timeline-item:nth-child(even) {
    margin-left: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 10px;
    width: 20px;
    height: 20px;
    background-color: var(--secondary);
    border-radius: 50%;
    border: 3px solid var(--white);
}

.timeline-item h4 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.timeline-item p {
    color: var(--primary-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* ------------------------------------------ Documents Grid ------------------------------------------ */
.docs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.doc-card {
    padding: 12px;
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.doc-card-content {
    padding: 20px;
    text-align: center;
}

.doc-card-content h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.doc-card-content p {
    color: var(--primary-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.view-btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.view-btn:hover {
    background-color: var(--primary-light);
}

/* PDF preview area */
.pdf-preview {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-bottom: 1px solid #ccc;
}

/* ------------------------------------------ Contact Form ------------------------------------------ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 40px auto;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--secondary);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.contact-form button:hover {
    color: var(--primary-light);
}

/* ------------------------------------------ Footer ------------------------------------------ */
footer {
    background-color: #2f77ba;
    text-align: center;
    padding: 10px 25px;
    margin-top: 40px;
    color: var(--white);
}

/* ------------------------------------------ Responsive ------------------------------------------ */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .section-wrapper,
    .blog-card,
    .timeline-item {
        flex-direction: column !important;
        width: 100% !important;
    }

    .blog-card img,
    .blog-card video,
    .blog-card-content {
        width: 100% !important;
    }
}