﻿@media (min-width: 992px) {
    .hero {
        --section-padding: 30px !important;
    }
}

@media (min-width: 992px) {
    :root {
        --fs-35: 4.5rem !important;
        --section-padding: 90px !important;
    }
}

@media (min-width: 992px) {
    .header {
        background-color: transparent;
        border-block-end: none;
        padding-block: 15px !important;
        padding-top : 20px !important;
        transition: var(--transition);
    }
}

.project-detail-card {
    max-width: 1200px;
    margin: 1rem auto;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.project-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom:1rem;
    max-height:300px !important;
}

.project-image-wrapper,
.project-text-wrapper {
    width: 100%;
}

.project-image {
    width: 100%;
    max-height:300px !important;
    border-radius: 0.5rem;
    object-fit: cover;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.project-summary {
    font-size: 1rem;
    line-height: 1.6;
}

/* Breakpoint: ≥800px - Side-by-side layout */
@media (min-width: 800px) {
    .project-detail-content {
        flex-direction: row;
        align-items: center;
    }

    .project-image-wrapper {
        width: 40%;
    }

    .project-text-wrapper {
        width: 60%;
        padding-left: 2rem;
    }
}

/* Breakpoint: <767px - Adjust padding */
@media (max-width: 767px) {
    .project-detail-card {
        padding: 1.5rem 1.25rem;
    }
}

/* Breakpoint: <500px - Smaller padding and font */
@media (max-width: 500px) {
    .project-detail-card {
        padding: 1rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-summary {
        font-size: 0.95rem;
    }
}

/* Breakpoint: <300px - Extra small font */
@media (max-width: 300px) {
    .project-title {
        font-size: 1.1rem;
    }

    .project-summary {
        font-size: 0.85rem;
    }
}
::-webkit-scrollbar {
    width: 20px;
    height: 8px !important;
}

/*.project-detail-card {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background-color: #fff;
    box-sizing: border-box;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 600;
}

.project-summary {
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .project-detail-card {
        padding: 1rem;
        width: 95vw;
        margin: 1rem auto;
    }
}

@media (max-width: 500px) {
    .project-detail-card {
        width: 98vw;
        padding: 0.75rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-summary {
        font-size: 0.95rem;
    }
}

@media (max-width: 300px) {
    .project-title {
        font-size: 1.1rem;
    }

    .project-summary {
        font-size: 0.85rem;
    }
}

@media (max-width: 767px) {
    .responsive-padding {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}*/



.has-scrollbar {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    justify-content: center; /* Center single item */
}

.scrollbar-item {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
}

@media (min-width: 576px) {
    .scrollbar-item {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
}

@media (min-width: 992px) {
    .scrollbar-item {
        flex: 0 0 calc(33.333% - 13.33px) !important;
        max-width: calc(33.333% - 13.33px) !important;
    }
}

.card-banner {
    aspect-ratio: 600 / 675;
    width: 100%;
    overflow: hidden;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}




/*-----------------------------------*\
  #FINAL FLEX FIX FOR SKILLS SECTION
\*-----------------------------------*/

/*.skills-content-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 50px;
}

.skills-content-flex > div {
  flex: 1 1 48%;
  max-width: 48%;
}*/

/* Mobile Responsive */
/*@media (max-width: 1000px) {
  .skills-content-flex {
    flex-direction: column;
    gap: 40px;
  }

  .skills-content-flex > div {
    max-width: 100% !important;
  }

  .skills-list ul {
    padding-left: 20px;
  }
}*/

/* Optional Enhancement: Skill card style */
/*.skills-item {
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--radius-10);
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.skills-item .skill-title {
  font-size: var(--fs-17);
  font-weight: var(--fw-600);
  color: var(--theme-color);
  margin-bottom: 10px;
}

.skills-item ul {
  padding-left: 20px;
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--sonic-silver);
}

.skills-item ul li {
  list-style: disc;
  margin-bottom: 6px;
}*/

/*-----------------------------------*\
  #Skills Section - Best Dark Theme
\*-----------------------------------*/

.skills-section {
    background-color: var(--black); /* Dark section background */
    color: var(--white);
    padding-block: var(--section-padding);
}

/* About text */
.skills-about {
    margin-bottom: 50px;
    color: var(--white);
}

    .skills-about .section-subtitle {
        color: var(--theme-color);
        font-weight: var(--fw-600);
        margin-bottom: 10px;
    }

    .skills-about .section-title {
        color: var(--white);
        font-size: var(--fs-25);
        font-weight: var(--fw-800);
        margin-bottom: 15px;
    }

    .skills-about .section-text {
        color: var(--gray-x-11);
        font-size: 1.6rem;
        line-height: 1.7;
        max-width: 700px;
    }

/* Grid layout for skills */
.skills-grid {
    display: grid;
    gap: 30px;
}

@media (min-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual skill card */
.skills-item {
    background-color: hsl(0, 0%, 15%); /* Dark gray card */
    color: var(--white);
    padding: 20px 25px;
    border-radius: var(--radius-10);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

    .skills-item:hover {
        background-color: hsl(0, 0%, 20%);
    }

    /* Skill title */
    .skills-item .skill-title {
        font-size: 1.7rem;
        font-weight: var(--fw-600);
        color: var(--theme-color);
        margin-bottom: 10px;
    }

    /* Skill list */
    .skills-item ul {
        padding-left: 20px;
        list-style: disc;
        font-size: 1.5rem;
        color: var(--spanish-gray);
        line-height: 1.7;
    }

        .skills-item ul li {
            margin-bottom: 6px;
        }

@media (min-width: 992px) {
    .timeline-item {
         padding-block: 15px !important; 
    }
}
:root {
    --section-padding: 50px !important;
}





/*#news-articles-content {
    padding: 2rem 1rem !important;
    background-color: #fff;
    color: #333;
    font-family: 'Segoe UI', sans-serif;
}

    #news-articles-content .container {
        max-width: 1200px;
        margin: auto;
    }

    #news-articles-content .layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

@media (min-width: 900px) {
    #news-articles-content .layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

#news-articles-content .article-main {
    flex: 3;
}

#news-articles-content .article-header {
    margin-bottom: 1.5rem;
}

#news-articles-content .article-title {
    font-size: 2rem;
    margin: 0;
}

#news-articles-content .article-date {
    font-size: 0.9rem;
    color: #666;
}

#news-articles-content .article-body h2 {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    color: #2c3e50;
}

#news-articles-content .article-body p {
    margin-bottom: 1rem;
    text-align: justify;
}

#news-articles-content .article-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: disc;
}

#news-articles-content .article-body li {
    margin-bottom: 0.5rem;
}*/

/* Images */
/*#news-articles-content .article-image {
    margin: 1.5rem auto;
    max-width: 100%;
    text-align: center;
}

    #news-articles-content .article-image img {
        width: 100%;
        max-width: 800px;
        max-height: 400px;
        height: auto;
        border-radius: 6px;
        object-fit: cover;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    #news-articles-content .article-image figcaption {
        font-size: 0.85rem;
        color: #777;
        margin-top: 0.5rem;
    }*/

/* Sidebar */
/*#news-articles-content .article-sidebar {
    flex: 1;
    padding-left: 1.5rem;
    border-left: 1px solid #eee;
}

@media (max-width: 899px) {
    #news-articles-content .article-sidebar {
        padding-left: 0;
        border-left: none;
        margin-top: 2rem;
    }
}

#news-articles-content .sidebar-section {
    margin-bottom: 2rem;
}

#news-articles-content .sidebar-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #2d3748;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.4rem;
}

#news-articles-content .related-articles {
    list-style: none;
    padding: 0;
    font-size: 0.95rem;
}

    #news-articles-content .related-articles li {
        margin-bottom: 0.7rem;
    }

    #news-articles-content .related-articles a {
        color: #2b6cb0;
        text-decoration: none;
    }

        #news-articles-content .related-articles a:hover,
        #news-articles-content .related-articles a:focus-visible {
            text-decoration: underline;
            outline: none;
        }*/

/* Advertisement Box */
/*#news-articles-content .ad-box {
    text-align: center;
    background: #f9f9f9;
    padding: 1rem;
    border: 1px dashed #ccc;
    font-size: 0.85rem;
    color: #555;
    border-radius: 4px;
}

    #news-articles-content .ad-box img {
        width: 100%;
        max-width: 250px;
        margin-top: 0.5rem;
    }*/

/* Related Cards in Sidebar */
/*#news-articles-content .related-cards {
    list-style: none;
    padding: 0;
    margin: 0;
}

#news-articles-content .related-card {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: 0.2s;
}

    #news-articles-content .related-card:hover {
        transform: translateY(-2px);
    }

    #news-articles-content .related-card a {
        display: flex;
        text-decoration: none;
        color: inherit;
        width: 100%;
        cursor: pointer;
    }

        #news-articles-content .related-card a:focus-visible {
            outline: 2px solid #2b6cb0;
            outline-offset: 2px;
        }

    #news-articles-content .related-card img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        flex-shrink: 0;
    }

#news-articles-content .card-info {
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    #news-articles-content .card-info .card-date {
        font-size: 0.75rem;
        color: #888;
        margin-bottom: 0.25rem;
    }

    #news-articles-content .card-info .card-title {
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.2;
    }

.section-page{
    padding-top:30px !important;
}*/

/* Container section */
#unique-articles-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

    /* Each article card */
    #unique-articles-section .article-card {
        display: flex;
        min-height: 200px;
        max-height: 350px;
        border: 1px solid #ccc;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

        /* Image container on left */
        #unique-articles-section .article-card .image-container {
            flex: 0 0 40%;
            height: 100%;
            overflow: hidden;
        }

            /* Image fills container */
            #unique-articles-section .article-card .image-container img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

        /* Text container on right */
        #unique-articles-section .article-card .text-container {
            flex: 1;
            padding: 1rem 2rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

/* Responsive: stack vertically below 800px */
@media (max-width: 799px) {
    #unique-articles-section .article-card {
        flex-direction: column;
        min-height: 200px;
        max-height: 350px;
    }

        #unique-articles-section .article-card .image-container {
            flex: none;
            width: 100%;
            height: 200px; /* fixed height on small screens */
        }

        #unique-articles-section .article-card .text-container {
            padding: 1rem 1rem 2rem 1rem;
        }
}




/* Reset some basic */
/** {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
}*/


#page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Layout: main + sidebar */
#content-wrapper {
    display: flex;
    flex-direction: column;
}

/* Article container */
#main-article {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
    margin-bottom: 30px;
    max-width: 800px;
    margin: auto;
}

    #main-article #article-image {
        width: 100%;
        max-height: 350px;
        object-fit: cover;
        border-radius: 6px;
        margin-bottom: 15px;
        margin-top: 15px;
    }

    #main-article #article-heading {
        /*    font-size: 2rem;
        margin-bottom: 12px;
        color: #222;*/
        font-size: 2rem;
        margin-bottom: 12px;
        color: #222;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    #main-article #article-description {
        font-size: 1.125rem;
        line-height: 1.6;
        color: #555;
        width: 100%;
        word-wrap: break-word; /* Break long words if needed */
        overflow-wrap: break-word; /* Modern equivalent */
        white-space: normal; /* Allow text to wrap */
    }

/* Sidebar */
#sidebar {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
    max-width: 350px;
}

    #sidebar #sidebar-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
        border-bottom: 2px solid #007BFF;
        padding-bottom: 8px;
        color: #007BFF;
    }

    /* Sidebar articles with thumbnails */
/*    #sidebar .sidebar-article {
        display: flex;
        gap: 12px;
        margin-bottom: 20px;
        cursor: pointer;
        align-items: flex-start;
    }
*/
        #sidebar .sidebar-article:last-child {
            margin-bottom: 0;
        }

/*    #sidebar .sidebar-thumb {
        width: 80px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;
    }*/

 /*   #sidebar .sidebar-text {
        flex: 1;
    }

    #sidebar .sidebar-article-heading {
        font-weight: 600;
        font-size: 1.1rem;
        margin: 0 0 6px 0;
        color: #333;
    }

    #sidebar .sidebar-article-description {
        font-size: 0.9rem;
        color: #666;
        line-height: 1.3;
        margin: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }*/

/*.sidebar-article {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

    .sidebar-article:hover {
        background: #f8f9fa;
        border-radius: 6px;
    }

.sidebar-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-text {
    flex: 1;
}

.sidebar-article-heading {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 6px 0;
    color: #333;
}

.sidebar-article-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
*/
.sidebar-article {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    flex-wrap: nowrap;
}

.sidebar-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-text {
    flex: 1;
    min-width: 0; /* ⭐ Important: allows content to wrap properly */
}

.sidebar-article-heading {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 6px 0;
    color: #333;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.sidebar-article-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
    margin: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}


/* Responsive layout */
@media (min-width: 768px) {
    #content-wrapper {
        flex-direction: row;
        gap: 30px;
    }

    #main-article {
        flex: 3;
    }

    #sidebar {
        flex: 1;
        max-width: 320px;
        position: sticky;
        top: 70px;
        height: fit-content;
    }
}
/*@media (max-width: 768px) {
    #sidebar {
        margin-top: 30px;
    }

        #sidebar .sidebar-article {
            flex-direction: column;
            align-items: flex-start;
        }

        #sidebar .sidebar-thumb {
            width: 100%;
            height: auto;
            margin-bottom: 8px;
        }
}*/
@media (max-width: 768px) {
    .sidebar-article {
        flex-direction: column;
    }

    .sidebar-thumb {
        width: 100%;
        height: auto;
    }

    .sidebar-text {
        margin-top: 8px;
    }
}



/* Very small device tweaks */
@media (max-width: 320px) {
    #main-article #article-heading {
        font-size: 1.5rem;
    }

    #main-article #article-description {
        font-size: 1rem;
    }

    #sidebar #sidebar-title {
        font-size: 1.3rem;
    }
}

.section-title {
    margin-block-end: 30px !important;
}
.article-type-change {
    white-space: nowrap;
    display: inline-block;
    min-width: 60px;
    color: var(--theme-color);
}

.input-field {
    margin-block-end: 15px !important;
}

.contact-us-message{
    color:#239944 !important;
    text-align:center !important;
    font-weight:bold !important;
    margin-bottom:5px !important;
}