/*
Theme Name: Writink Services
Theme URI: https://writinkservice.com/
Author: Writink Services Team
Description: A custom WordPress theme for Writink Services.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: writinkservices
*/

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Colors - Derived from research */
:root {
    --primary-color: #0046be;
    /* Vibrant Blue */
    --secondary-color: #ff9900;
    /* Warm Orange/Yellow */
    --text-color: #333;
    --light-bg: #f4f7fa;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #00379b;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    width: 100%;
}

.btn-secondary:hover {
    background-color: #e68a00;
}

/* Page Headers with Backgrounds */
.page-header {
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.page-header p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.service-detail-header,
.uni-header,
.about-header,
.contact-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Logo / Site Title */
.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
}

.site-title a {
    text-decoration: none;
    color: var(--primary-color);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-title a span {
    color: var(--secondary-color);
}

.site-branding-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.site-branding {
    flex: 0 0 auto;
}

.site-branding img,
.custom-logo-link img {
    max-height: 60px;
    width: auto;
    display: block;
}

/* CSS_LOAD_VERIFIED_V1 */

/* Main Horizontal Menu - Only affects the top-most level */
.main-navigation {
    display: flex !important;
    align-items: center;
    margin-left: auto;
    gap: 30px;
}

/* Force the top-level UL to be horizontal */
.main-navigation>ul,
.main-navigation>div>ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-navigation li {
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    /* Crucial for absolute positioning of sub-menus */
    list-style: none !important;
}

/* Sub-Menus (Dropdowns) - FORCE VERTICAL AND HIDDEN */
.main-navigation .sub-menu,
.main-navigation ul ul {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #ffffff !important;
    min-width: 230px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    display: none !important;
    /* Start hidden */
    flex-direction: column !important;
    /* Vertical orientation */
    z-index: 9999 !important;
    padding: 10px 0 !important;
    border-top: 3px solid var(--primary-color) !important;
}

/* Show Sub-Menu on Hover */
.main-navigation li:hover>.sub-menu,
.main-navigation li:hover>ul {
    display: flex !important;
}

.main-navigation ul ul li {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

.main-navigation ul ul a {
    padding: 12px 25px !important;
    display: block !important;
    width: 100% !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    white-space: normal !important;
    /* Allow long titles to wrap instead of pushing width */
    line-height: 1.4 !important;
}

.main-navigation ul ul a:hover {
    background: #f4f7fa !important;
    color: var(--primary-color) !important;
}

/* 3rd Level Sub-Menus (e.g., Universities under Services) */
.main-navigation ul ul .sub-menu,
.main-navigation ul ul ul {
    top: 0 !important;
    left: 100% !important;
    /* Position to the right */
    margin-top: -10px !important;
}

.header-cta {
    margin-left: 30px;
}

/* Aggressively hide the ghost "Menu" button/text */
.menu-toggle,
button.menu-toggle,
.main-navigation button,
#site-navigation button,
.site-header button,
.site-header span#menu-text {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 70, 190, 0.05) 0%, rgba(255, 255, 255, 1) 100%), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    color: #002e7a;
}

.hero-form-container {
    flex: 0 0 400px;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.order-form-mini input,
.order-form-mini select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Trust Bar */
.trust-bar {
    background: var(--light-bg);
    padding: 30px 0;
    text-align: center;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
    font-weight: bold;
    color: #888;
    font-size: 1.2rem;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
}

.steps-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.step-item {
    flex: 1;
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.step-item:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--white);
}

.services-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.service-card {
    flex: 1;
    text-align: center;
    padding: 40px;
    background: var(--light-bg);
    border-radius: 15px;
    transition: 0.3s;
}

.service-card:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.service-card img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 50%;
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #002e7a;
}

.service.uni-card p {
    font-size: 0.9rem;
    color: #666;
}

/* All Services List Styles */
.all-services-list {
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.all-services-list h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.cat-block h4 {
    font-size: 1.2rem;
    color: #002e7a;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.cat-block ul {
    list-style: none;
    padding: 0;
}

.cat-block li {
    margin-bottom: 10px;
}

.cat-block a {
    font-size: 0.95rem;
    color: #555;
}

.cat-block a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.order-form-full textarea {
    width: 100%;
    margin-bottom: 20px;
}

.payment-trust {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #eee;
}

.payment-badge {
    max-width: 200px;
    margin-top: 20px;
}

/* Sidebar */
.sidebar-box {
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.promo-box {
    background: #fffdf0;
    border: 1px solid #ffeeba;
}

.price-bubble {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 15px 0;
}

.help-box {
    background: var(--primary-color);
    color: var(--white);
}

.help-box h4 {
    color: var(--white);
    margin-top: 0;
}

/* Detailed Services grid */
.services-grid-detailed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.service-detail-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.service-detail-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-detail-card ul {
    margin: 20px 0;
    list-style: none;
    padding: 0;
}

.service-detail-card li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
}

.service-detail-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-top: auto;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* Process Detailed */
.process-detailed {
    margin: 60px 0;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.step-icon img {
    width: 150px;
    opacity: 0.8;
}

.step-text {
    flex: 1;
}

/* Reviews Stats & Grid */
.reviews-stats {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    background: var(--light-bg);
    border-radius: 15px;
    margin-bottom: 50px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.review-card {
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.review-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.8rem;
}

.stars {
    color: var(--secondary-color);
}

.reviewer {
    margin-top: 20px;
    font-style: italic;
    color: #888;
    border-top: 1px solid #f9f9f9;
    padding-top: 10px;
}

/* Enhanced Service Template Styles */
.service-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.s-feature {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
    text-align: center;
}

.s-feature .icon {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-faq {
    margin: 60px 0;
    padding: 40px;
    background: #fdfdfd;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
}

.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item strong {
    display: block;
    margin-bottom: 8px;
    color: #002e7a;
    font-size: 1.1rem;
}

/* University Template Styles */
.uni-grid-detailed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.uni-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    transition: 0.3s;
}

.uni-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.uni-card h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.uni-card p {
    font-size: 0.9rem;
    color: #666;
}

/* All Services List Styles */
.all-services-list {
    padding: 80px 0;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.all-services-list h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.service-categories {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.cat-block {
    flex: 1;
}

.cat-block h4 {
    font-size: 1.3rem;
    color: #002e7a;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 12px;
    margin-bottom: 25px;
}

.cat-block ul {
    list-style: none;
    padding: 0;
}

.cat-block li {
    margin-bottom: 15px;
}

.cat-block a {
    font-size: 1rem;
    color: #444;
    text-decoration: none;
    transition: 0.2s;
}

.cat-block a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

/* Footer Styling */
.site-footer {
    background: #111;
    color: #ccc;
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

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

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

.footer-column a {
    color: #999;
    text-decoration: none;
    transition: 0.3s;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--white);
}