/* Additional Styles for Better Layout */

/* About Page Redesign */
.about-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
    align-items: start;
}

.about-image-wrapper {
    position: sticky;
    top: 100px;
}

.about-main-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-text-wrapper h3 {
    color: #ff6b35;
    font-size: 32px;
    margin-bottom: 25px;
}

.about-text-wrapper p {
    color: #424242;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

.vision-mission-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 50px 0;
}

.vision-box,
.mission-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid #ff6b35;
    transition: transform 0.3s, box-shadow 0.3s;
}

.vision-box:hover,
.mission-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Icon and Title Horizontal Layout */
.vision-box h3,
.mission-box h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ff6b35;
    font-size: 24px;
    margin-bottom: 20px;
}

.vm-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0;
}

.vm-icon i {
    font-size: 28px;
    color: white;
}

.vision-box p,
.mission-box p {
    color: #424242;
    line-height: 1.8;
    font-size: 15px;
    text-align: justify;
}

@media (max-width: 992px) {
    .about-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrapper {
        position: relative;
        top: 0;
    }
    
    .vision-mission-wrapper {
        grid-template-columns: 1fr;
    }
}

.core-activities-section {
    margin: 50px 0;
}

.core-activities-section h3 {
    color: #ff6b35;
    font-size: 26px;
    margin-bottom: 25px;
    text-align: center;
}

.events-initiatives-section {
    margin: 50px 0;
}

.events-initiatives-section h3 {
    color: #ff6b35;
    font-size: 26px;
    margin-bottom: 15px;
    text-align: center;
}

.events-initiatives-section > p {
    text-align: center;
    color: #616161;
    margin-bottom: 40px;
}

/* Gallery Filter Tabs */
.gallery-filters-home,
.gallery-filters-oat {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.filter-tab-home,
.filter-tab-oat {
    padding: 10px 25px;
    border: 2px solid #ff6b35;
    background: white;
    color: #ff6b35;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-tab-home:hover,
.filter-tab-oat:hover {
    background: #fff3e0;
}

.filter-tab-home.active,
.filter-tab-oat.active {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-color: transparent;
}

.gallery-item-home[data-type],
.gallery-item[data-type] {
    display: block;
}

.gallery-item-home[data-type].hidden,
.gallery-item[data-type].hidden {
    display: none;
}

/* OAT List Page Styles */
.oat-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.oat-list-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 400px 1fr;
    transition: transform 0.3s;
}

.oat-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.oat-list-image {
    position: relative;
    overflow: hidden;
}

.oat-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oat-list-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.oat-list-image:hover .oat-list-overlay {
    opacity: 1;
}

.oat-list-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.oat-list-content h3 {
    color: #ff6b35;
    font-size: 24px;
    margin-bottom: 15px;
}

.oat-description {
    color: #424242;
    line-height: 1.8;
    margin-bottom: 20px;
}

.oat-meta {
    margin-bottom: 20px;
}

.oat-meta p {
    margin-bottom: 10px;
    color: #616161;
}

/* OAT Details Page */
.oat-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.oat-main-content h2,
.oat-main-content h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    margin-top: 30px;
}

.oat-main-content h2:first-child,
.oat-main-content h3:first-child {
    margin-top: 0;
}

.oat-facilities {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.facilities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.facilities-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
}

.facilities-list i {
    color: #10b981;
    font-size: 18px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.oat-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.oat-gallery-grid .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.oat-gallery-grid .gallery-item img:hover {
    transform: scale(1.05);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.event-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
}

.event-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.event-content h4 {
    color: #1e293b;
    margin-bottom: 10px;
}

.event-date {
    color: #f7931e;
    font-weight: 600;
    margin-bottom: 10px;
}

.oat-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 20px;
}

.location-info p,
.contact-info p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.contact-info a {
    color: #f7931e;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* About Page */
.about-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
}

.about-text h3 {
    color: #ff6b35;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
}

.tagline-box {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 25px 30px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
}

.tagline-box h2 {
    font-size: 24px;
    font-style: italic;
}

.core-activities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.core-activities li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #ff6b35;
}

.core-activities i {
    color: #10b981;
    font-size: 20px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.event-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-item i {
    font-size: 48px;
    color: #f7931e;
    margin-bottom: 15px;
}

.event-item h4 {
    color: #1e293b;
    margin-bottom: 10px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 36px;
}

.value-card h3 {
    color: #1e293b;
    margin-bottom: 10px;
}

.cta-section {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Gallery Page */
.gallery-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 10px 25px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-color: transparent;
}

.filter-select select {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.gallery-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-main-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-image-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-image-wrapper:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-image-wrapper:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-video-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.gallery-video-wrapper .video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-video-wrapper:hover .video-thumbnail-img {
    transform: scale(1.05);
}

.gallery-video-wrapper .video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s;
    z-index: 2;
}

.gallery-video-wrapper:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-video-wrapper .video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    z-index: 1;
}

/* Certificates Page */
.year-section {
    margin-bottom: 50px;
}

.year-heading {
    color: #ff6b35;
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f7931e;
}

.certificates-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.cert-card-page {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.cert-card-page:hover {
    transform: translateY(-5px);
}

.cert-image-page {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.cert-image-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.cert-image-page:hover .cert-overlay {
    opacity: 1;
}

.view-btn {
    padding: 10px 25px;
    background: white;
    color: #ff6b35;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.cert-content-page {
    padding: 25px;
}

.cert-description {
    color: #616161;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cert-meta {
    margin-bottom: 20px;
}

.cert-year-badge {
    display: inline-block;
    padding: 6px 15px;
    background: #fff3e0;
    color: #f7931e;
    border-radius: 20px;
    font-weight: 600;
}

/* Contact Page */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

.contact-form-section h3,
.contact-info-section h3 {
    color: #ff6b35;
    margin-bottom: 25px;
    font-size: 24px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #ff6b35;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.info-content h4 {
    color: #1e293b;
    margin-bottom: 8px;
}

.social-section {
    padding: 25px;
    background: #f8fafc;
    border-radius: 10px;
    text-align: center;
}

.social-section h4 {
    color: #1e293b;
    margin-bottom: 20px;
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links-large a {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    transition: transform 0.3s;
}

.social-links-large a:hover {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .oat-list-card {
        grid-template-columns: 1fr;
    }
    
    .oat-details-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        grid-template-columns: 1fr;
    }
    
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .facilities-list {
        grid-template-columns: 1fr;
    }
    
    .gallery-main-grid {
        grid-template-columns: 1fr;
    }
    
    .certificates-grid-page {
        grid-template-columns: 1fr;
    }
}
