/* assets/css/corporate_pages.css */

/* Sidebar Styles Override/Addition */
.corporate-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-header {
    background: var(--primary-color);
    padding: 1rem 1.25rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.sidebar-header h3 {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Corporate Article Styles */
.corporate-article {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    overflow: hidden;
}

.featured-image-wrapper {
    margin: -2rem -2rem 2rem -2rem;
    position: relative;
    max-height: 400px;
    overflow: hidden;
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.corporate-content-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.corporate-content-text p {
    margin-bottom: 1.25rem;
}

.corporate-content-text h2,
.corporate-content-text h3,
.corporate-content-text h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-weight: 700;
}

.corporate-content-text ul,
.corporate-content-text ol {
    margin: 1rem 0 1rem 1.5rem;
}

/* Gallery Section */
.corporate-gallery-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.gallery-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.corporate-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.corp-gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
}

.corp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.corp-gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.corp-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Footer Section */
.article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-buttons span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.whatsapp {
    background: #25d366;
}

.update-date {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Responsive */
@media (max-width: 992px) {
    .corporate-sidebar {
        width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .corporate-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-image-wrapper {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
        max-height: 250px;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Council Member Styles */
.council-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.party-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.council-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.council-member-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.council-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.member-photo {
    width: 100%;
    aspect-ratio: 4/5;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.council-member-card:hover .member-photo img {
    transform: scale(1.05);
}

.member-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.member-photo-placeholder i {
    font-size: 4rem;
}

.member-info {
    padding: 1.25rem 1rem;
    text-align: center;
    background: #fff;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.member-title {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Commission Grid Styles */
.commission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

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

@media (max-width: 576px) {
    .commission-grid {
        grid-template-columns: 1fr;
    }
}

.commission-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.commission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.member-image-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    color: var(--text-light);
}

.member-image-placeholder i {
    font-size: 3rem;
}

/* Directorate Grid Styles */
.directorates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.directorate-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.directorate-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.directorate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.directorate-card:hover::before {
    opacity: 1;
}

.dir-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.directorate-card:hover .dir-icon {
    background: var(--primary-color);
    color: white;
}

.dir-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.dir-arrow {
    color: #cbd5e1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.directorate-card:hover .dir-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Directorate Detail - Manager Card */
.manager-card {
    display: flex;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 2rem;
    align-items: center;
}

.manager-photo {
    width: 150px;
    height: 180px;
    background: #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.manager-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.manager-photo i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #cbd5e1;
    background: #f8fafc;
}

.manager-info {
    flex: 1;
}

.manager-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.manager-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 1rem 0;
}

.manager-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Department Files */
.department-files {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px dashed #cbd5e1;
}

.department-files h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.files-list {
    display: grid;
    gap: 0.75rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.file-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.file-item span {
    flex: 1;
    font-weight: 500;
}

.download-icon {
    color: #cbd5e1;
    transition: color 0.2s;
}

.file-item:hover .download-icon {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .manager-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}


/* Strategic Plans Grid */
.strategic-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.plan-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-cover {
    width: 100%;
    aspect-ratio: 1/1.4;
    /* A4 Ratio mostly */
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover .plan-cover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.plan-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plan-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    background: #f8fafc;
    gap: 0.5rem;
}

.plan-cover-placeholder i {
    font-size: 4rem;
}

.plan-cover-placeholder span {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.plan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card:hover .plan-overlay {
    opacity: 1;
}

.btn-download {
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.plan-card:hover .btn-download {
    transform: translateY(0);
}

.plan-info {
    text-align: center;
}

.plan-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.plan-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.plan-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


/* Archive List Styles */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.archive-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
}

.archive-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.archive-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    padding: 1rem;
    border-radius: var(--radius-sm);
    min-width: 90px;
    color: var(--text-main);
}

.archive-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

.archive-date .month {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0.25rem 0;
}

.archive-date .year {
    font-size: 0.85rem;
    color: var(--text-light);
}

.archive-content {
    flex: 1;
}

.archive-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.archive-actions {
    display: flex;
    gap: 1rem;
}

.btn-archive-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff1f2;
    color: #e11d48;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-archive-download:hover {
    background: #e11d48;
    color: white;
}

@media (max-width: 576px) {
    .archive-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .archive-date {
        width: 100%;
        flex-direction: row;
        gap: 0.5rem;
        align-items: baseline;
    }

    .archive-actions {
        justify-content: center;
    }
}
