/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PT Sans', sans-serif;
    line-height: 1.6;
    color: #333333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: 700;
}

/* Main Header Styles */
.main-header {
    background-color: #002147;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 64px;
    height: 75px;
}

.nav-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
    flex-grow: 1;
}

.oxford-logo {
    height: 55px;
    width: auto;
}

.main-nav .nav-links {
    display: flex;
    list-style: none;
    margin-right: auto;
}

.main-nav .nav-links li {
    margin-right: 25px;
}

.main-nav .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 19px;
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: 400;
    transition: text-decoration 0.3s;
}

.main-nav .nav-links a:hover {
    text-decoration: underline;
}

.secondary-nav .secondary-links {
    display: flex;
    list-style: none;
    margin-left: auto;
}

.secondary-nav .secondary-links li {
    margin-left: 20px;
}

.secondary-nav {
    margin-left: auto;
}

.secondary-nav .secondary-links a {
    color: white;
    text-decoration: none;
    font-size: 19px;
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: 400;
    transition: text-decoration 0.3s;
}

.secondary-nav .secondary-links a:hover {
    text-decoration: underline;
}

.external-link {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

/* Sub-Header Styles */
.sub-header {
    background-color: #4a6b7c;
    margin-top: 75px;
    transition: all 0.3s ease;
}

.sub-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin-top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sub-header.sticky .sub-header-container {
    padding: 10px 64px;
}

.sub-header.sticky .section-title {
    display: none;
}

.home-icon-container {
    display: none;
    margin-right: 15px;
}

.sub-header.sticky .home-icon-container {
    display: block;
}

.home-icon {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.home-icon:hover {
    transform: translateY(-2px);
}

.home-icon svg {
    width: 27px;
    height: 27px;
}

.sub-header.sticky .compliance-nav .compliance-links a {
    padding: 10px 8px;
    font-size: 19px;
}

.sub-header.sticky .search-bar {
    width: 150px;
}

.sub-header-container {
    display: flex;
    flex-direction: column;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 64px 15px 64px;
}

.sub-header-nav-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 0px;
}

.compliance-nav .compliance-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.compliance-nav .compliance-links li {
    margin-right: 0;
}

.compliance-nav .compliance-links a {
    color: white;
    text-decoration: none;
    font-size: 19px;
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: 400;
    transition: text-decoration 0.3s;
    padding: 15px 8px;
    display: block;
}

.compliance-nav .compliance-links a:hover {
    text-decoration: underline;
}

.compliance-nav .compliance-links a.active {
    text-decoration: underline;
    font-weight: 700;
}

.search-container {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.search-bar {
    padding: 8px 12px;
    border: none;
    border-bottom: 2px solid white;
    border-radius: 0;
    width: 200px;
    font-size: 1rem;
    background-color: transparent;
    color: white;
}

.search-bar::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: none;
    border: none;
    margin-left: 8px;
    cursor: pointer;
    color: white;
}

/* Main Content Styles */
.main-content {
    background-color: #ffffff;
    padding: 60px 0;
}

.content-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 64px;
    text-align: left;
}

.hero-section {
    background-color: #f8f9fa;
    border-left: 4px solid #4a6b7c;
    padding: 30px;
    margin: 0 0 40px 0;
    border-radius: 0 4px 4px 0;
}

.hero-section p {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-family: 'PT Sans', sans-serif;
}

.hero-section p:last-child {
    margin-bottom: 0;
}

.hero-section p:first-child {
    font-weight: 700;
    color: #002147;
    font-size: 1.6rem;
}

.content-container h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333333;
}

.content-container p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 0 30px 0;
    line-height: 1.7;
    text-align: left;
    font-family: 'PT Sans', sans-serif;
}

.login-btn {
    background-color: #c0202f;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #a01a28;
}

.login-btn svg {
    margin-right: 8px;
}

/* Additional styles for email security content */
.content-container h2 {
    font-size: 2.2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #002147;
    border-bottom: 2px solid #4a6b7c;
    padding-bottom: 10px;
}

.content-container h3 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #002147;
}

.content-container h4 {
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #4a6b7c;
}

.content-container ul {
    margin-bottom: 30px;
    padding-left: 25px;
}

.content-container ul li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.content-container a {
    color: #c0202f;
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

.content-container a:hover {
    color: #a01a28;
    text-decoration: underline;
}

.info-box {
    background-color: #f8f9fa;
    border-left: 4px solid #4a6b7c;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 4px 4px 0;
}

.info-box p {
    margin-bottom: 15px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.page-navigation {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-top: 40px;
    border-radius: 4px;
}

.page-navigation h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #002147;
    font-size: 1.4rem;
}

.page-navigation ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.page-navigation ul li {
    margin-bottom: 8px;
}

.page-navigation ul li:last-child {
    margin-bottom: 0;
}

/* Support Grid Styles */
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.support-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 30px;
    transition: transform 0.3s ease;
    text-align: center;
}

.support-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 40px;
    height: 40px;
}

.support-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #002147;
    font-size: 1.4rem;
    font-family: 'PT Sans', sans-serif;
}

.support-card p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: 'PT Sans', sans-serif;
}

.card-cta {
    text-align: center;
}

.card-cta a {
    display: inline-flex;
    align-items: center;
    color: #c00;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    font-family: 'PT Sans', sans-serif;
}

.card-cta a:hover {
    color: #a01a28;
    text-decoration: underline;
}

.card-cta svg {
    margin-left: 8px;
}

/* Section Divider */
.section-divider {
    height: 2px;
    background-color: #e0e0e0;
    margin: 40px 0;
    width: 100%;
}

/* Footer Styles */
.main-footer {
    background-color: #4a6b7c;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 64px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-column p {
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    transition: text-decoration 0.3s;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

/* Bottom Footer Styles */
.bottom-footer {
    background-color: #002147;
    padding: 20px 0;
}

.bottom-footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 64px;
}

.copyright p {
    color: white;
    font-size: 1rem;
    font-family: 'PT Sans Narrow', sans-serif;
}

.legal-links ul {
    display: flex;
    list-style: none;
}

.legal-links ul li {
    margin-left: 20px;
}

.legal-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    transition: text-decoration 0.3s;
}

.legal-links ul li a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1350px) {
    .header-container {
        padding: 0 32px;
    }
    
    .sub-header-container {
        padding: 20px 32px 15px 32px;
    }
    
    .content-container {
        padding: 0 32px;
    }
    
    .footer-container {
        padding: 0 32px;
    }
    
    .bottom-footer-container {
        padding: 0 32px;
    }
}

@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compliance-nav .compliance-links {
        flex-wrap: wrap;
    }
    
    .compliance-nav .compliance-links li {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 64px;
    }
    
    .main-nav .nav-links {
        margin: 15px 0;
    }
    
    .main-nav .nav-links li {
        margin-right: 15px;
    }
    
    .secondary-nav .secondary-links {
        margin-bottom: 10px;
    }
    
    .sub-header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 64px 15px 64px;
    }
    
    .section-title {
        margin-bottom: 20px;
        margin-right: 0;
    }
    
    .compliance-nav .compliance-links {
        flex-direction: column;
        margin-bottom: 20px;
    }
    
    .compliance-nav .compliance-links li {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .sub-header {
        margin-top: 0;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .content-container h1 {
        font-size: 2rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bottom-footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-bottom: 15px;
    }
    
    .legal-links ul {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-links ul li {
        margin: 5px 0;
    }
}

/* Callout highlight */
.callout {
    background: linear-gradient(90deg, #f6fbff, #eaf6ff);
    border-left: 6px solid #4a6b7c;
    padding: 18px 22px;
    margin: 80px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(6,30,68,0.06);
}

.callout p {
    margin: 0;
    font-size: 1.4rem;
    color: #0b1f33;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

/* Emphasised percentage value inside callout */
.callout-value {
    display: inline-block;
    font-family: 'PT Sans', sans-serif;
    font-size: 4.2rem;
    font-weight: 800;
    color: #323236;
    margin: 0;
    line-height: 1;
    vertical-align: middle;
}

/* Responsive tweak for small screens */
@media (max-width: 640px) {
    .callout-value {
        font-size: 3rem;
    }
    .callout p {
        display: block;
        white-space: normal;
    }
}

/* On larger screens keep the percentage and surrounding text together on one line */
@media (min-width: 800px) {
    .callout p {
        display: flex;
        align-items: center;
        gap: 12px;
        white-space: nowrap; /* prevents wrapping when there is sufficient width */
    }
    .callout-value {
        flex: 0 0 auto; /* don't let the big number shrink or wrap */
    }
}

/* On larger screens keep the percentage and surrounding text together on one line */
@media (min-width: 800px) {
    .callout p {
        display: flex;
        align-items: center;
        gap: 12px;
        white-space: nowrap; /* prevents wrapping when there is sufficient width */
    }
    .callout-value {
        flex: 0 0 auto; /* don't let the big number shrink or wrap */
    }
}

@media (max-width: 480px) {
    .main-nav .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav .nav-links li {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .secondary-nav .secondary-links {
        flex-direction: column;
        align-items: center;
    }
    
    .secondary-nav .secondary-links li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}