/* Import Ubuntu, Klee One, and Bad Script Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bad+Script&family=Klee+One:wght@400;600&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* Root Variables */
:root {
    --primary-black: #2B2F2E;
    --secondary-black: #1a1a1a;
    --primary-beige: #F8F5F0;
    --secondary-beige: #FDFCFA;
    --accent-beige: #E7DBCB;
    --pure-white: #FFFFFF;
    --text-gray: #666666;
    --border-light: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', sans-serif;
    background-color: var(--primary-beige);
    color: var(--primary-black);
    /* line-height: 1.6; */
    line-height: normal;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background-color: var(--pure-white);
    box-shadow: 0 2px 10px var(--shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-black) !important;
}

.navbar-nav .nav-link {
    color: var(--primary-black) !important;
    font-weight: 400;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    padding: 10px 20px !important;
}

.navbar-nav .nav-link.active {
    /* border: 1px solid red; */
    border-radius: 20px;
    background-color: var(--primary-beige);
}

.navbar-nav .nav-link:hover {
    color: var(--text-gray) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--pure-white) 0%, var(--secondary-beige) 100%);
    padding: 4rem 0;
    text-align: center;
}

.homepage-hero-section {
    height: 85dvh;
}

.homepage-hero-section  > .container {
    height: 100%;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: center;
}

.hero-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--accent-beige);
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-gray);
    border: 4px solid var(--pure-white);
    box-shadow: 0 4px 20px var(--shadow);
}

.hero-title {
    font-family: 'Klee One', cursive;
    letter-spacing: -0.02em;
    font-size: 3.64rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
    /* text-align: start; */
}

.homepage-hero-section  .hero-title {
    font-family: 'Klee One', cursive;
    letter-spacing: -0.02em;
    text-align: start;
    color: var(--pure-white);
    max-width: 40%;
    font-size: 3.97rem;
    margin-bottom: 50px;
}

@media screen and (max-width: 768px) {
    .homepage-hero-section .hero-title {
        max-width: 100%;
        font-size: 3.03rem;
        text-align: center;
    }
}

.hero-subtitle {
    font-family: 'Klee One', cursive;
    letter-spacing: -0.02em;
    font-size: 1.6rem;
    color: var(--text-gray);
    margin-bottom: 6rem;
    font-weight: 300;
}

.homepage-hero-section .hero-subtitle {
    color: var(--pure-white);
}

.btn-custom {
    background-color: var(--primary-black);
    color: var(--pure-white);
    border: none;
    /* padding: 0.75rem 2rem; */
    padding: 1rem 2rem;
    margin: 0 0.5rem;
    /* border-radius: 5px; */
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: var(--secondary-black);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

.homepage-hero-section .btn-custom {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--pure-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.homepage-hero-section .btn-custom:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--primary-black);
    border: 2px solid var(--primary-black);
    /* padding: 0.75rem 2rem; */
    padding: 1rem 2rem;
    margin: 0 0.5rem;
    /* border-radius: 5px; */
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--primary-black);
    color: var(--pure-white);
    transform: translateY(-2px);
}

.homepage-hero-section .btn-outline-custom {
    color: var(--pure-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.homepage-hero-section .btn-outline-custom:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Section Styles */
.section {
    /* min-height: 67vh; */
    padding: 4rem 0;
}

.section-title {
    font-family: 'Klee One', cursive;
    letter-spacing: -0.02em;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-black);
}

/* Content Cards */
.content-card {
    background-color: var(--pure-white);
    /* border-radius: 10px; */
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.card-image {
    width: 100%;
    height: 200px;
    background-color: var(--secondary-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-gray);

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.card-title a {
    color: var(--primary-black);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--text-gray);
}

.card-meta {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-weight: 400;
}

.card-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* News Cards */
.news-card {
    background-color: var(--pure-white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.news-card .news-date {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.news-card p {
    color: var(--text-gray);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--secondary-black);
    color: var(--pure-white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left p {
    margin-bottom: 0.5rem;
}

.footer-links {
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--pure-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    text-decoration: none;
    color: var(--pure-white);
    font-size: 2rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-beige);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        width: 100%;
    }

    .social-links {
        margin-top: 0.5rem;
    }

    .homepage-hero-section  > .container {
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

/* About Me Section */
.about-image {
    /* width: 200px;
    height: 200px; */
    /* width: 450px; */
    width: 26rem;
    height: auto;
    aspect-ratio: 16 / 12;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--accent-beige) 0%, var(--secondary-beige) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--text-gray);
    box-shadow: 0 4px 20px var(--shadow);
    overflow: hidden;
    border-radius: 25px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

.about-content .lead {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1.2rem;
}

/* View All Buttons */
.view-all-btn {
    text-align: center;
    margin-top: 2rem;
}

/* .view-all-btn a {
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-black);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.view-all-btn a:hover {
    background-color: var(--primary-black);
    color: var(--pure-white);
} */

/* Responsive Design */
/* Override Bootstrap container max-width to 1440px */
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    max-width: 1440px !important;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.43rem;
    }

    .hero-subtitle {
        font-size: 1.28rem;
    }

    .btn-custom, .btn-outline-custom {
        display: block;
        margin: 0.5rem auto;
        /* width: 200px; */
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-image {
        width: 90%;
    }
}

/* Utility Classes for Common Inline Styles */

/* Layout and Spacing */
.hero-top-margin {
    margin-top: 76px;
}

.hero-top-margin-with-padding {
    margin-top: 76px;
    padding: 3rem 0;
}

.section-padding-large {
    padding: 3rem;
}

.section-padding-medium {
    padding: 2.5rem;
}

.section-padding-small {
    padding: 2rem 0;
}

.card-body-large {
    padding: 2.5rem;
}

/* Background Utilities */
.bg-secondary-beige {
    background-color: var(--secondary-beige);
}

.bg-pure-white {
    background-color: var(--pure-white);
}

/* Image Utilities */
.about-profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.card-image-container {
    height: 250px;
}

.card-image-with-bg {
    background-size: cover;
    background-position: center;
}

.card-image-placeholder {
    background: linear-gradient(135deg, var(--accent-beige) 0%, var(--secondary-beige) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Content */
.card-body-flex {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-excerpt-limited {
    max-height: 80px;
    overflow: hidden;
    position: relative;
}

.card-excerpt-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, var(--pure-white));
    pointer-events: none;
}

.card-button-container {
    padding-top: 1rem;
}

/* Link Utilities */
.link-no-decoration {
    text-decoration: none;
    color: inherit;
}

/* Social Links */
.social-links-left {
    justify-content: flex-start;
}

/* Content Footer */
.content-footer-border {
    border-top: 1px solid var(--border-light);
}

/* Icon Styling */
.icon-placeholder {
    color: var(--text-gray);
    opacity: 0.3;
}

/* Content Navigation */
.content-navigation {
    margin-bottom: 1rem !important;
}

.nav-link-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--primary-black);
    border: 1px solid var(--border-light);
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: var(--pure-white);
    width: 20%;
    min-width: 300px;
}

.nav-link-btn:hover {
    background-color: var(--primary-black);
    color: var(--pure-white);
    border-color: var(--primary-black);
}

.nav-link-btn small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.nav-link-btn div {
    font-size: 0.8rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .nav-link-btn {
        width: 50%;
    }
}


.form-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    /* border-radius: 5px; */
    border-radius: 15px;
    text-decoration: none;
    color: var(--primary-black);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: var(--pure-white);
}

.form-select:hover,
.form-select:focus {
    /* background-color: var(--primary-black); */
    /* color: var(--pure-white); */
    border-color: var(--primary-black);
}

.form-select:focus {
    box-shadow: none;
}