/* Updated CSS for about.css */

/* --- Variables --- */
:root {
    --primary-blue: #6DD5ED; /* Sky Blue */
    --secondary-gold: #FFD700;
    --neutral-white: #ffffff;
    --light-blue: #E0FFFF; /* Light Cyan (very light sky blue) */
    --dark-blue: #1E90FF; /* Dodger Blue (a darker accent) */
    --text-color: #333;
    --accent-gold-light: #ffe57f;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Slightly softer shadow */
    --transition: all 0.3s ease-in-out;
    --font-primary: 'Open Sans', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

/* --- Global Body & Base Styles --- */
body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    background-color: var(--neutral-white);
    color: var(--text-color);
    line-height: 1.7; /* Slightly improved line height for readability */
    position: relative;
    overflow-x: hidden; /* Prevents horizontal scroll from overflows */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Removed problematic background watermark */

/* --- Top Bar Styling --- */
.top-bar {
    background-color: var(--dark-blue); /* Darker blue for top bar */
    color: var(--neutral-white);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.logo-link {
    display: block;
}

.logo-link img {
    height: 60px;
    width: 150px;
    object-fit: contain;
}

.social-media-top {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-media-top a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-media-top img {
    height: 24px; /* Icon size */
    width: 24px;
    opacity: 0.9;
    transition: var(--transition);
}

.social-media-top img:hover {
    opacity: 1;
    transform: scale(1.1); /* Slight hover effect */
}

/* --- Navigation Bar Styling --- */
nav {
    background-color: var(--primary-blue);
    color: var(--neutral-white);
    padding: 1rem 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2.5rem; /* Increased gap for better spacing */
    max-width: 1200px;
}

nav li a {
    color: var(--neutral-white);
    text-decoration: none;
    padding: 0.75rem 1.5rem; /* Larger clickable area */
    border-radius: 5px;
    transition: var(--transition);
    font-family: var(--font-secondary);
    font-weight: 700; /* Make navigation links bold */
    text-transform: uppercase; /* Uppercase for nav links */
}

nav li a:hover {
    background-color: var(--light-blue);
    color: var(--dark-blue);
    transform: translateY(-2px); /* Slight lift on hover */
}

/* --- Main Content Area --- */
main {
    padding: 3rem 2rem; /* Increased vertical padding */
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Section Styling --- */
section {
    background-color: var(--neutral-white);
    padding: 2.5rem; /* Increased padding */
    margin-bottom: 2.5rem; /* Increased margin */
    border-radius: 10px; /* Slightly more rounded corners */
    box-shadow: var(--shadow);
    border: 1px solid var(--light-blue); /* Subtle border for definition */
}

section h2 {
    font-family: var(--font-secondary);
    color: var(--dark-blue);
    border-bottom: 3px solid var(--secondary-gold); /* Thicker gold border */
    padding-bottom: 1.2rem; /* More space below border */
    margin-bottom: 2rem; /* More space below heading */
    font-size: 2.8rem; /* Larger heading size */
    text-align: center; /* Center section titles */
    text-transform: uppercase; /* Uppercase for section titles */
}

/* --- Our Story Section --- */
#our-story {
    padding-top: 3.5rem;
    text-align: center;
}

#our-story h2 {
    font-size: 3rem; /* Even larger for the main story title */
    margin-bottom: 2rem;
}

#our-story p {
    font-family: var(--font-primary);
    max-width: 850px; /* Slightly wider paragraphs */
    margin: 1.2rem auto; /* More vertical spacing between paragraphs */
    line-height: 1.8; /* Enhanced line height for readability */
    color: var(--text-color);
    font-size: 1.1rem; /* Slightly larger text */
}

/* --- Mission and Vision Bubbles --- */
#mission-vision {
    display: flex;
    justify-content: center;
    gap: 2.5rem; /* Increased gap */
    padding: 3rem; /* More padding for the section */
    background-color: var(--light-blue);
    border-radius: 10px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.mission-bubble,
.vision-bubble {
    background-color: var(--neutral-white);
    border-radius: 15px; /* More rounded bubbles */
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 320px; /* Ensure a decent minimum width */
    max-width: 45%; /* Max width for two columns */
    border: 2px solid var(--primary-blue); /* Stronger border for bubbles */
    transition: var(--transition); /* Add transition for hover effect */
}

.mission-bubble:hover,
.vision-bubble:hover {
    transform: translateY(-5px); /* Lift on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* More prominent shadow on hover */
}


.mission-bubble h3,
.vision-bubble h3 {
    font-family: var(--font-secondary);
    color: var(--dark-blue); /* Changed to dark blue for headings */
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem; /* Larger subheadings */
}

.mission-bubble p,
.vision-bubble p {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    font-size: 1.05rem;
}

/* --- Why Choose Us Section --- */
#why-choose-us ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width for grid items */
    gap: 2rem; /* Increased gap */
}

#why-choose-us li {
    background-color: var(--light-blue);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--primary-blue); /* Primary blue border */
    font-size: 1.1rem;
    font-weight: 600; /* Make text a bit bolder */
    color: var(--dark-blue);
    transition: var(--transition);
}

#why-choose-us li:hover {
    background-color: var(--primary-blue); /* Change background on hover */
    color: var(--neutral-white); /* Change text color on hover */
    transform: translateY(-3px); /* Lift on hover */
}

#why-choose-us li::before {
    content: "\2713"; /* Checkmark icon */
    color: var(--secondary-gold); /* Gold checkmark */
    font-size: 2rem; /* Larger checkmark */
    margin-bottom: 0.8rem;
    display: block;
    font-weight: bold;
}

/* --- Our Commitment Section --- */
#our-commitment {
    background-color: var(--light-blue);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--primary-blue);
    text-align: center;
}

#our-commitment h2 {
    font-size: 2.8rem; /* Consistent heading size */
}

#our-commitment p {
    font-family: var(--font-primary);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer Styling --- */
footer {
    background-color: var(--primary-blue);
    color: var(--neutral-white);
    padding: 2.5rem 2rem; /* Increased padding */
    margin-top: 3.5rem; /* More space above footer */
    display: grid;
    /* Adjusted grid-template-columns to handle the logo section better */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px; /* Increased gap */
    align-items: flex-start; /* Align sections to the top */
    font-family: var(--font-primary);
    line-height: 1.6;
}

/* IMPORTANT: Adjust your HTML footer structure */
/* Remove the <table> tags from your footer, they are not needed and can cause issues.
   Your footer HTML should ideally look like this:
   <footer>
       <div class="footer-section"> ... </div>
       <div class="footer-section"> ... </div>
       <div class="footer-section"> ... </div>
       <div class="footer-copyright"> ... </div>
   </footer>
*/
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left within each section */
    text-align: left; /* Text alignment within sections */
}

.footer-section h3 {
    font-family: var(--font-secondary);
    color: var(--secondary-gold);
    border-bottom: 2px solid var(--secondary-gold);
    padding-bottom: 0.6rem;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section ul li a {
    color: var(--neutral-white);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    font-family: var(--font-primary);
}

.footer-section ul li a:hover {
    color: var(--accent-gold-light);
}

.footer-section p {
    margin-bottom: 0.8rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

.footer-section p a {
    color: var(--accent-gold-light);
    text-decoration: underline;
    font-family: var(--font-primary);
}

/* Specific styling for the logo in the footer */
.footer-section .logo-link-footer img { /* Added a class for distinction if needed */
    height: 80px; /* Adjust as needed */
    width: auto;
    margin-top: 10px; /* Space below heading if present */
}

/* For the "Starling Credit Limited" section, specifically the image */
.footer-section #12 img { /* Using ID is generally discouraged for styling, but here for direct targeting */
    height: 80px;
    width: auto;
    margin-top: 10px;
}


.social-media-footer {
    display: flex;
    gap: 15px; /* Increased gap */
    margin-top: 1rem;
    align-self: flex-start; /* Align icons to the left within their section */
}

.social-media-footer img {
    height: 30px; /* Larger icons */
    width: auto;
    opacity: 0.8;
    transition: var(--transition);
}

.social-media-footer img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-copyright {
    grid-column: 1 / -1; /* Make copyright span across all columns */
    text-align: center;
    padding-top: 1.5rem; /* More padding above the line */
    border-top: 1px solid rgba(255, 255, 255, 0.3); /* Softer white border */
    margin-top: 2.5rem;
    font-family: var(--font-primary);
}

.footer-copyright p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    nav ul {
        gap: 1.5rem; /* Reduce gap for smaller screens */
    }
    section h2 {
        font-size: 2.2rem;
    }
    #our-story h2 {
        font-size: 2.5rem;
    }
    .mission-bubble,
    .vision-bubble {
        max-width: 48%; /* Adjust for 2 columns on slightly smaller screens */
    }
    footer {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjust min width for footer columns */
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 10px;
        padding: 0.8rem 1rem;
    }
    nav ul {
        flex-wrap: wrap; /* Allow nav items to wrap */
        justify-content: center;
        gap: 1rem;
    }
    nav li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    main {
        padding: 2rem 1rem; /* Reduce main padding */
    }
    section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    section h2 {
        font-size: 1.8rem;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }
    #our-story h2 {
        font-size: 2rem;
    }
    #our-story p {
        font-size: 1rem;
        margin: 0.8rem auto;
    }
    #mission-vision {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    .mission-bubble,
    .vision-bubble {
        min-width: auto;
        width: 100%; /* Take full width on small screens */
        max-width: 90%; /* Max width for single column */
        padding: 1.5rem;
    }
    .mission-bubble h3,
    .vision-bubble h3 {
        font-size: 1.4rem;
    }
    #why-choose-us ul {
        grid-template-columns: 1fr; /* Single column for list items */
        gap: 1.2rem;
    }
    #why-choose-us li {
        padding: 1.2rem;
        font-size: 1rem;
    }
    #our-commitment {
        padding: 1.5rem;
    }
    #our-commitment p {
        font-size: 1rem;
    }
    footer {
        grid-template-columns: 1fr; /* Stack footer sections vertically */
        text-align: center;
        padding: 2rem 1rem;
    }
    .footer-section {
        align-items: center; /* Center content in stacked sections */
        text-align: center;
    }
    .footer-section h3 {
        border-bottom: none; /* Remove border when stacked */
        padding-bottom: 0;
        margin-bottom: 0.5rem;
        font-size: 1.4rem;
    }
    .social-media-footer {
        justify-content: center; /* Center social icons */
        align-self: center;
    }
}

/* About Page Specific Styles */

/* Page Header */
.page-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(var(--primary-blue-rgb), 0.1), rgba(var(--primary-blue-rgb), 0.2));
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}

.page-header p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
    font-size: 1.1rem;
    font-family: var(--font-primary);
}

/* Story Section */
.story-section {
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.story-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.story-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--dark-blue);
    margin-bottom: 2rem;
    font-family: var(--font-secondary);
    position: relative;
    padding-bottom: 1rem;
}

.story-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-gold);
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-family: var(--font-primary);
}

/* Mission & Vision Section */
.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.mission-card,
.vision-card {
    background-color: var(--neutral-white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.mission-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--secondary-gold);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
}

.mission-card h3,
.vision-card h3 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-secondary);
}

.mission-card p,
.vision-card p {
    color: var(--text-color);
    line-height: 1.7;
    font-family: var(--font-primary);
}

/* Values Section */
.values-section {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--light-blue);
    margin: 3rem -2rem;
    padding: 4rem 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background-color: var(--neutral-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}

.value-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-family: var(--font-primary);
}

/* Team Section */
.team-section {
    padding: 4rem 0;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member {
    background-color: var(--neutral-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
}

.member-info p {
    color: var(--text-color);
    font-size: 1.1rem;
    font-family: var(--font-primary);
}

.member-social {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.member-social a {
    color: var(--dark-blue);
    font-size: 1.2rem;
    transition: var(--transition);
}

.member-social a:hover {
    color: var(--primary-blue);
}

/* Stats Section */
.stats-section {
    background-color: var(--light-blue);
    padding: 4rem 2rem;
    margin: 3rem -2rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    padding: 2rem;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--dark-blue);
    font-weight: bold;
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
}

.stat-label {
    color: var(--text-color);
    font-size: 1.1rem;
    font-family: var(--font-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 3rem 1rem;
    }

    .story-section {
        padding: 2rem 0;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .values-section,
    .stats-section {
        margin: 2rem -1rem;
        padding: 3rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .story-content h2 {
        font-size: 1.8rem;
    }

    .mission-card,
    .vision-card {
        padding: 1.5rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    .team-member {
        margin: 0 1rem;
    }
}