/* Author: James O. Gaygay | Professor */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

header {
    color: white;
    padding: .5rem;
    text-align: center;
    font-size: 1.5rem;
}

main {
    padding: 1rem;
    font-size: 1.2rem;
}

/* FOR THE HERO SECTION */

.hero {
    padding: 4rem 1rem;
    background-color: #f8f9fa;
    max-width: 100%;
}

.container {

    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;

}

.hero__content {
    flex: 1 1 500px;
}

.hero__image-wrapper {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
}

.hero__image {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.flex-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn--primary {
    background-color: #0077cc;
    color: white;
}

.btn--primary:hover {
    background-color: #005fa3;
}

.btn--neutral {
    background-color: #e0e0e0;
    color: #333;
}

.btn--neutral:hover {
    background-color: #ccc;
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
        text-align: center;
        padding: 1.5rem 1rem 3rem;
    }

    .container {
        flex-direction: column;
        align-items: center;
        gap: .5rem;
        width: 100%;
        align-items: flex-start;
        max-width: 100%;
        padding: 0 1rem;
    }


    .hero__content {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .hero__image-wrapper {
        flex: 1 1 auto;
        justify-content: center;
        width: 100%;
        margin-top: 1.5rem;
    }

    .hero__image {
        max-width: 100%;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .flex-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    @media (max-width: 768px) {
        .container {}
    }

}

/* FOR THE HEADER */

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

body {
    font-family: 'Segoe UI', sans-serif;
}

.main-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    z-index: 1000;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #222;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 10px 0;
}

.logo img {
    max-height: 50px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 100px) {
    .logo img {
        max-height: 40px;
    }
}

.navbar {
    display: flex;
    justify-content: center;
    /* center horizontally */
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    /* remove default ul padding */
    margin: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: 0.3s;
    text-align: center;
}

.nav-menu li a:hover {
    color: #fcb13e;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #333;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .navbar {
        position: absolute;
        /* top: 70px; */
        right: 0;
        background: #fff;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .navbar.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 20px;
    }

    .hamburger {
        display: flex;
    }
}



/* FOR THE ARTICLES CARDS*/
.featured-articles .articles__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;

}

@media (max-width: 480px) {
    .featured-articles .articles__list {
        grid-template-columns: 1fr !important;
        /* 1 column that spans full width */
        max-width: 480px;
    }

    .article-card {
        width: 100% !important;
    }
}

.article-card {
    /* display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease; */

    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.article-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #007BFF;
    font-weight: 100;
}

.article-excerpt {
    font-size: 0.95rem;
    color: #000000;
    line-height: 1.4;
}

.article-image {
    width: 100%;       /* ensures image fills card width */
    height: auto;      /* keeps aspect ratio */
    display: block;    /* removes inline spacing below image */
    border-top-left-radius: 8px;  /* match card radius */
    border-top-right-radius: 8px; /* match card radius */
    margin: 0;       
}

/* FOR THE INDIVIDUAL ARTICLE SECTION */

.post {
    padding-block: 0rem;
    /* top: -8rem; */
}

.post__container {
    max-width: 90ch;
    margin-inline: auto;
    padding-inline: 1rem;
}

.post__content a {
    text-decoration: none;
}

.post-updated {
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .post-updated {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
}

.post__title {
    font-size: 2rem;
    margin-top: 2rem;
    /* font-weight: bold; */
    color: #007acc;
    border-bottom: 6px double #000000;
    border-top: 6px double #000000;

}

.post__meta {
    font-size: 0.875rem;
    color: #007acc;
    font-weight: bolder;
    margin-top: 2rem;
    border-top: 1px solid #000000;
}

.post__image img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    margin-top: 1rem;

}

.post__content {
    line-height: 1.7;
    font-size: 1rem;
}

.post__content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem auto;
    display: block;
    /* centers the image */
}


.post__content h2,
.post__content h3 {
    margin-top: 1rem;
    font-weight: 600;
}

.post__content p {
    margin-bottom: 1.5rem;
}

.reading-time {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .post {
        padding-block: 0rem;
    }

    .post__title {
        font-size: 1.5rem;
    }

    .post__container {
        padding-inline: 0.5rem;

    }

    .post__content {
        font-size: 0.95rem;
    }

    .post__content h2,
    .post__content h3 {
        margin-top: 0rem;
    }

    .post__content p {
        margin-bottom: 1rem;
    }

    .reading-time {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
}


/* TO SHARE AN ARTICLE TO SOCIAL MEDIA */

.post__share {
    margin-top: 2rem;
}

.post__share h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Flex container for buttons */
.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* General button styling */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    margin: 5px 5px 5px 0;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
    color: #fff;
    margin-top: 0rem;
}

/* Icon sizing */
.share-btn i {
    font-size: 1rem;
}

/* Facebook button */
.share-facebook {
    background-color: #3b5998;
}

.share-facebook:hover {
    background-color: #fcb13e;
    transform: scale(1.05);
}

/* X / Twitter button */
.share-twitter {
    background-color: #1da1f2;
}

.share-twitter:hover {
    background-color: #fcb13e;
    transform: scale(1.05);
}

/* LinkedIn button */
.share-linkedin {
    background-color: #0077b5;
}

.share-linkedin:hover {
    background-color: #fcb13e;
    transform: scale(1.05);
}

/* WhatsApp */
.share-whatsapp {
    background-color: #25D366;
}

.share-whatsapp:hover {
    background-color: #fcb13e;
}

/* Email */
.share-email {
    background-color: #f2545b;
}

.share-email:hover {
    background-color: #fcb13e;
}

/* Icon size */
.share-btn i {
    font-size: 16px;
}


/* Responsive: smaller screens */
@media (max-width: 480px) {
    .share-btn {
        padding: 3px 10px;
        font-size: 12px;
        gap: 1rem;
        border-radius: 4px;
    }

    .share-btn i {
        font-size: 10px;
    }
}

/* FOR THE RELATED ARTICLE SECTION */
.related-posts {
    margin-top: 2rem;
}

.related-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.related-post-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.related-post-card img {
    width: 100%;       /* ensures image fills card width */
    height: auto;      /* keeps aspect ratio */
    display: block;    /* removes inline spacing below image */
    border-top-left-radius: 8px;  /* match card radius */
    border-top-right-radius: 8px; /* match card radius */
    margin: 0;         /* remove any default margin */
}

.related-post-card h3 {
    font-size: 1rem;
    margin: 0.25rem 0 0.5rem 0;
    color: #111;
    padding: 0.5rem;
    /* Space inside title box */
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* FOR THE CONTACT PAGE */
#contact {
    width: 100%;
    min-height: 100vh;
    background-color: #fff;
    padding: 60px 20px;
    box-sizing: border-box;
    color: #fff;
    font-family: 'Lato', sans-serif;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 700;
    color: #fff;
}

/* Contact wrapper */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 20px;
}

/* Contact form */
.contact-form {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    background-color: #000;
    color: #fff;
    border: 1px solid #333;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #fcb13e;
    background-color: #111;
}

/* Button */
.contact-form button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;
}

.contact-form button:hover {
    background-color: #fcb13e;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-wrapper {
        padding: 0 15px;
    }

    .section-header {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .contact-form {
        width: 100%;
        gap: 12px;
    }

    .contact-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-header {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .contact-wrapper {
        padding: 0 10px;
    }
}

/* FOR THE ABOUT PAGE */
.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    justify-content: center;
}

.about-left {
    flex: 2 1 250px;
    max-width: 300px;
    justify-content: center;
}

.about-text h1 {
    margin-bottom: 0.5rem;
    /* adjust space between heading and body */
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    align-items: center;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.handpicked {
    margin-top: 1.5rem;
}

.handpicked h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    text-align: center;
    color: #0056b3;
}

.handpicked ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.handpicked li {
    margin-bottom: 0.5rem;
}

.handpicked a {
    text-decoration: none;
    color: var(--primary-color);
}

.handpicked a:hover {
    text-decoration: underline;
}

.about-text {
    flex: 2 1 500px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .about-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .about-left,
    .about-text {
        flex: 1 1 100%;
        max-width: 90%;
    }

    .about-text {
        text-align: left;
    }

    .about-image img {
        max-width: 100%;
        margin: 0 auto;
    }
}


/* FOR THE READ MORE  BTN */
.read-more {
    display: inline-block;
    margin-top: 0rem;
    align-self: flex-start;
    font-weight: bold;
    color: #0077cc;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* FOR THE PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination .prev,
.pagination .next {
    padding: 0.5rem 1rem;
    background: #007acc;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    min-width: 100px;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #005fa3;
}

.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.page-numbers li a {
    padding: 0.5rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.page-numbers li a:hover {
    background: #007acc;
    color: #fff;
}

.page-numbers .current {
    padding: 0.5rem 0.8rem;
    border: 1px solid #007acc;
    background: #007acc;
    color: #fff;
    border-radius: 4px;
}


@media (max-width: 600px) {
    .pagination {
        flex-direction: column;
        gap: 0.75rem;
    }

    .pagination .prev,
    .pagination .next {
        width: 100%;
        text-align: center;
    }

    .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }

    .page-numbers li a,
    .page-numbers .current {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
}

/* FOR THE FOOTER PAGE */
.footer-section {
    background-color: #111;
    color: #fff;
    padding: 60px 0 20px 0;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.footer-cta {
    border-bottom: 1px solid #444;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin: 15px 0;
}

.single-cta {
    display: flex;
    align-items: center;
}

.single-cta span {
    font-size: 24px;
    color: #ff6b6b;
    margin-right: 15px;
}

.cta-text h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.cta-text span {
    font-size: 14px;
    color: #ccc;
}

.footer-content {
    display: flex;
    flex-direction: column;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 15px;
}

.footer-widget p {
    color: #bbb;
    font-size: 14px;
    line-height: 1.6;
}

.social-icons {
    margin-top: 15px;
}

.social-icons span {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #aaa;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
    color: #fff;
    font-size: 18px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ff6b6b;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

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

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget ul li a:hover {
    color: #ff6b6b;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
}

.subscribe-form input {
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
}

.subscribe-form button {
    padding: 10px;
    border: none;
    background-color: #ff6b6b;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.subscribe-form button:hover {
    background-color: #ff4757;
}

.copyright {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #888;
}

.copyright a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s;
}

.copyright a:hover {
    color: #ff4757;
}

@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
    }

    .footer-col {
        min-width: 100%;
    }
}

.single-cta {
    display: flex;

    gap: 10px;
    max-width: 100%;
    box-sizing: border-box;

    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    flex-wrap: wrap;
}

.single-cta .icon {
    font-size: 24px;
    color: #ff5e14;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .footer-col {
        text-align: center;
    }

    .footer-col .single-cta,
    .footer-social-wrapper {
        justify-content: center;
    }
}

.cta-text h4 {
    margin: 0;
    font-size: 18px;
}

.cta-text span {
    color: #ccc;
    font-size: 14px;
}

.footer-widget {
    margin-bottom: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: -15px;
}

.footer-widget p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}

.footer-widget h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #fff;
    position: relative;
}

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

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}

.footer-widget ul li a:hover {
    color: #fcb13e;
}

.footer-social-icon a {
    display: inline-block;
    margin-right: 10px;
    font-size: 20px;
    color: #fff;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {

    .footer-social-icon,
    .social-icons {
        justify-content: center;
    }
}

.subscribe-form {

    .subscribe-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-width: 300px;
        margin: 0 auto;
        align-items: center;
    }

}

.subscribe-form input,
.subscribe-form button {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.subscribe-form button {
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}

.subscribe-form button:hover {
    background-color: #fcb13e;
}

.copyright {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

.copyright a {
    color: #fcb13e;
    text-decoration: none;
}

.footer-menu {
    margin-top: 10px;
}

.footer-menu a {
    margin: 0 10px;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}

.footer-menu a:hover {
    color: #0056b3;
}

.social-icon {
    font-size: 1.5rem;
    color: #ffffff;
    padding: 7px;
    border-radius: 50%;
    text-decoration: none;
    display: inline-flex;
}

.social-icon:hover {
    background-color: #fcb13e;
    color: #fff;
    transform: scale(1.1);
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

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

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
}

.footer-widget ul li a:hover {
    color: #fcb13e;
}

@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .single-cta {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .footer-widget ul {
        text-align: center;
    }

    .footer-social-icon {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-logo {
        text-align: center;
    }
}