/* Corporate Page Styles - matches reference design */

/* Hero Banner */
.main {
    overflow: hidden;
    position: relative;
    margin-top: 80px;
}

.main img {
    width: 100%;
    min-height: 200px;
    margin-bottom: 160px;
}

.main .content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    text-align: center;
    width: 600px;
    max-width: calc(100% - 30px);
}

.main .content h1 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 400;
    padding-top: 400px;
    color: black;
    line-height: 1.1;
}

/* Section spacing */
.corporate-section {
    padding-top: 0;
}

/* Articles */
.articles {
    overflow: hidden;
}

.articles h2 {
    font-size: 32px;
    font-weight: 400;
    color: #000;
}

.articles .article,
.articles .article .article-wrap {
    overflow: hidden;
}

.articles .article .article-wrap img {
    width: 100%;
    border-radius: 12px;
    height: 120px;
    object-fit: cover;
}

.articles .article .article-wrap h3 {
    font-size: 20px;
    margin: 15px 0 7px;
    font-weight: 500;
    line-height: 1.1;
}

.articles .article .article-wrap h3 a {
    color: #000;
    text-decoration: none;
}

.articles .article .article-wrap h3 a:hover {
    text-decoration: underline;
}

.articles .article .article-wrap .category {
    position: relative;
    color: var(--ct-red);
    font-weight: 100;
    font-size: 16px;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.articles .article .article-wrap .category::before {
    content: "";
    background-color: var(--ct-red);
    margin-right: 7px;
    border-radius: 10px;
    width: 10px;
    height: 10px;
    display: inline-block;
    flex-shrink: 0;
}

.articles .article .article-wrap p {
    color: #7F7F7F;
    font-weight: 100;
    font-size: 16px;
    margin: 0;
}

/* Resources */
.resources-selector {
    overflow: hidden;
}

.resources-wrap {
    background-color: #f6f6f6;
}

.resources h2.with-icon {
    display: flex;
    align-items: center;
    font-size: 32px;
    font-weight: 400;
    color: #000;
    margin: 0;
}

.resources h2.with-icon::before {
    content: "";
    width: 40px;
    height: 40px;
    background: var(--ct-red);
    background-size: 15px;
    display: block;
    border-radius: 40px;
    margin-right: 15px;
    flex-shrink: 0;
}

.resources .button {
    border: 2px solid var(--ct-red);
    background-color: var(--ct-red);
    color: #fff;
    border-radius: 25px;
    padding: 7px 30px;
    display: inline-block;
    font-size: 16px;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.3s;
}

.resources .button:hover {
    color: var(--ct-red);
    background-color: transparent;
    text-decoration: none;
}

.list-resources {
    overflow: hidden;
    border-top: 1px solid var(--ct-red);
    margin-top: 10px;
}

.list-resources .single-resource {
    padding: 25px 0;
    border-bottom: 1px solid #CCCCCC;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.list-resources .single-resource:last-child {
    border-bottom: 0;
}

.list-resources .single-resource h4 {
    font-size: 17px;
    font-weight: 500;
    margin: 0;
    padding-right: 25px;
    width: calc(100% - 24px);
    color: #000;
}

.list-resources .single-resource h4 span {
    display: block;
    font-weight: 100;
    font-size: 16px;
    margin-top: 10px;
    color: #000;
}

.list-resources .single-resource img {
    width: 24px;
    height: 24px;
}

/* Pagination */
.corporate-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
}

.corporate-page-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ct-red);
    transition: all 0.2s ease;
}

.corporate-page-btn:hover:not(:disabled) {
    background-color: var(--ct-red);
    color: #fff;
    border-color: var(--ct-red);
}

.corporate-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.corporate-page-info {
    font-size: 0.85rem;
    color: #666;
}

/* Responsive */
@media screen and (max-width: 991px) {
    .corporate-section .row > div {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media screen and (max-width: 768px) {
    .main .content h1 {
        font-size: 30px;
    }
}

@media screen and (max-width: 580px) {
    .main .content h1 {
        font-size: 20px;
        padding-top: 150px !important;
        margin-bottom: 0px;
    }

    .articles h2 {
        font-size: 28px;
    }

    .resources h2.with-icon::before {
        margin-right: 6px;
    }

    .list-resources .single-resource h4 {
        font-size: 17px;
    }

    .button {
        padding: 5px 14px;
        font-size: 14px;
    }
}
