/* ==========================================================================

   Global Styles

   ========================================================================== */
   :root {
    --primary-dark: #1e3c72;
    --primary-light: #2a5298;
    --accent: #ffc107;
    --dark-bg: #2d3436;
    --text-light: #fff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================

   Navigation Section

   ========================================================================== */
nav {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 52px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #ffc107;
    transform: scale(1.1);
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

.mobile-menu-button span {
    /* Hamburger menu lines */
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu-button span.active:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-button span.active:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button span.active:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ==========================================================================

   Hero Section

   ========================================================================== */
.hero-section,
.services-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* Fallback */
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.7), rgba(42, 82, 152, 0.7)), 
                url('../admin/aboutpagephotos/standard-quality.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Optional parallax effect */
    color: white;
    text-align: center;
    padding: 8rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 0;
}

.services-hero {
    padding: 6rem 0 4rem;
}

.hero-section h1,
.services-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-section h1 {
    font-size: 3.5rem;
}

.hero-subtitle,
.services-hero p {
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.services-hero p {
    font-size: 1.2rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
    padding: 0 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: #f8f9fa;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero {
    padding: 100px 0;
    text-align: center;
    background-color: #f8f9fa;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================

   Button Styles

   ========================================================================== */
.btn,
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: #fff;
    color: #1e3c72;
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================

   Section Headers and Layouts

   ========================================================================== */
.section,
.notice-section,
.services-section,
.blogs-section,
.team-section,
.content-section {
    padding: 5rem 0;
}

.section {
    padding: 4rem 0;
}

.notice-section,
.content-section {
    position: relative;
}

.services-section,
.bg-light {
    background-color: #f8f9fa;
}

.section-header,
.notice-section h2,
.section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2,
.section h2 {
    font-size: 2.5rem;
    color: #1e3c72;
}

.section-subtitle {
    color: #2a5298;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    /* Blog and team section titles */
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3436;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #0984e3;
    margin: 1rem auto;
}

/* ==========================================================================

   Grid Layouts

   ========================================================================== */
.grid,
.services-grid,
.blog-grid,
.team-grid {
    display: grid;
    gap: 2rem;
}

.grid {
    padding: 2rem 0;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 1rem;
}

.blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 1rem;
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 1rem;
}

/* ==========================================================================

   Card and Box Styles

   ========================================================================== */
.service-box,
.blog-box,
.team-box,
.service-card,
.blog-card,
.team-card,
.notice-card,
.member-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box,
.blog-box,
.team-box {
    padding: 2rem;
    border-radius: 10px;
}

.service-card,
.blog-card,
.team-card,
.notice-card {
    overflow: hidden;
}

.service-card,
.team-card {
    text-align: center;
}

.service-box:hover,
.blog-box:hover,
.team-box:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.service-card:hover,
.blog-card:hover,
.team-card:hover,
.notice-card:hover,
.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Service Card Specific */
.service-card {
    position: relative;
    max-width: 380px;
/*    display: flex;*/
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 2rem;
}

.service-card-bg{
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    /* display: none; */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon,
.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-icon {
    width: 60px;
    height: 60px;
}

.service-card:hover .service-icon,
.service-card:hover .card-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-icon i,
.card-icon i {
    color: white;
}

.service-icon i {
    font-size: 1.5rem;
}

.card-icon i {
    font-size: 1.8rem;
}

.service-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Blog Card Specific */
.blog-content,
.team-content {
    padding: 1.5rem;
    flex-direction: column;
    gap: 2rem;
}

.member-content{
    padding: 2rem 1rem;
}

.blog-card h3,
.member-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3436;
}

.member-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.blog-card p {
    color: #636e72;
    margin-bottom: 1.5rem;
}

.blog-image {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    position: relative;
}

.blog-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    color: #1e3c72;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.blog-meta span {
    color: #666;
    font-size: 0.9rem;
}

/* Team Card Specific */
.team-image,
.team-image-wrapper {
    position: relative;
    overflow: hidden;
}

.team-image-wrapper {
    width: 100%;
    height: 250px;
}

.team-image img,
.member-team-image {
    width: 100%;
    transition: transform 0.3s ease;
}

.member-team-image {
    /*height: 100%;*/
    object-fit: cover;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

/* Notice Card Specific */
.notice-card {
    flex: 0 0 300px;
    padding: 1.5rem;
}

.notice-card h3 {
    color: #2a5298;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.notice-card p {
    color: #666;
    margin-bottom: 1rem;
}

.card-date {
    color: #999;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
}

/* ==========================================================================

   Links and Social Styles

   ========================================================================== */
.card-link,
.service-link,
.read-more,
.team-social a,
.social-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-link,
.service-link {
    color: #2a5298;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link {
    font-weight: 500;
}

.card-link:hover,
.service-link:hover {
    gap: 1rem;
}

.service-link:hover {
    color: #1e3c72;
}

.read-more {
    display: inline-block;
    color: #0984e3;
    font-weight: 500;
}

.read-more:hover {
    color: #0051a8;
}

.team-social,
.social-links {
    display: flex;
    gap: 1rem;
}

.team-social {
    justify-content: center;
    margin-top: 1rem;
}

.team-social a {
    color: #2a5298;
}

.team-social a:hover {
    color: #1e3c72;
    transform: translateY(-3px);
}

.social-link {
    color: #0984e3;
    font-size: 0.9rem;
}

.social-link:hover {
    color: #0051a8;
}

.role {
    color: #636e72;
    margin-bottom: 1rem;
}

/* ==========================================================================

   Slider Styles

   ========================================================================== */
.cards-slider {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.cards-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    scroll-snap-type: x mandatory;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.slide-button {
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    margin: 0 1rem;
}

.slide-button:hover {
    background: #1e3c72;
    transform: scale(1.1);
}

.slide-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================

   Content Section

   ========================================================================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.blog-text {
    padding: 1.5rem;
}

.featured-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.featured-image:hover img {
    transform: scale(1.02);
}

/* ==========================================================================

   Contact Section Styles

   ========================================================================== */
   .contact-section {
    background-color: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.contact-column {
    display: flex;
    flex-direction: column;
}

.contact-methods {
    list-style: none;
    margin-bottom: 1.5rem;
}

.contact-methods li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-methods i {
    margin-right: 0.75rem;
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.contact-methods a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

.contact-methods a:hover {
    color: var(--accent);
}

.contact-form label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.contact-form .btn {
    background: var(--primary-dark);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form .btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* ==========================================================================

   Form Specific Styles

   ========================================================================== */
.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2a5298;
    outline: none;
    box-shadow: 0 0 5px rgba(42, 82, 152, 0.2);
}

.content-text h4 {
    color: #2a5298;
    margin: 20px 0 10px;
    font-size: 18px;
}

.content-text p {
    margin-bottom: 15px;
}

/* ==========================================================================

   Map Styles

   ========================================================================== */
.map-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================

   Footer Styles

   ========================================================================== */
footer {
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-dark));
    color: var(--text-light);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.1), transparent 70%);
    z-index: 1;
    pointer-events: none;
}

footer .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer p {
    font-size: 1rem;
    opacity: 0.9;
    transition: var(--transition);
}

footer p:hover {
    opacity: 1;
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    justify-self: end;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.8rem;
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-icons a:hover,
.social-icons a:focus {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) translateY(-3px);
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================

   Animations

   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================

   Responsive Design
   
   ========================================================================== */

@media (max-width: 1312px) {
    .mobile-menu-button {
        display: block;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(42, 82, 152, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 90;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-menu a {
        padding: 0.8rem 1rem;
        display: block;
        font-size: 1.2rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-image {
        position: static;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .content-section {
        padding: 3rem 0;
    }

    .section-header h2,
    .section-title {
        font-size: 2rem;
    }

    .services-hero {
        padding: 4rem 0 3rem;
    }

    .services-hero h1 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .blog-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card,
    .team-card,
    .member-card {
        margin: 0 auto;
        max-width: 400px;
    }

    .blog-card h3 {
        font-size: 1.25rem;
    }

    .notice-card {
        flex: 0 0 260px;
    }

    .slider-controls {
        position: relative;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-column {
        margin-bottom: 1rem;
    }

    .map-container {
        padding-bottom: 75%;
    }

    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .social-icons {
        justify-self: center;
    }

    .footer-back-to-top {
        bottom: 15px;
        right: 15px;
    }
}


